@pega/cosmos-react-demos 3.0.0-dev.1.0 → 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 (1160) hide show
  1. package/jsx/build/AppHeader/AppHeader.stories.d.ts.map +1 -1
  2. package/jsx/build/AppHeader/AppHeader.stories.jsx +6 -1
  3. package/jsx/build/AppHeader/AppHeader.stories.jsx.map +1 -1
  4. package/jsx/build/AppShell/AppShell.mocks.d.ts +19 -0
  5. package/jsx/build/AppShell/AppShell.mocks.d.ts.map +1 -1
  6. package/jsx/build/AppShell/{AppShell.mocks.js → AppShell.mocks.jsx} +33 -1
  7. package/jsx/build/AppShell/AppShell.mocks.jsx.map +1 -0
  8. package/jsx/build/AppShell/AppShell.stories.d.ts +2 -2
  9. package/jsx/build/AppShell/AppShell.stories.d.ts.map +1 -1
  10. package/jsx/build/AppShell/AppShell.stories.jsx +20 -45
  11. package/jsx/build/AppShell/AppShell.stories.jsx.map +1 -1
  12. package/jsx/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts +8 -0
  13. package/jsx/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts.map +1 -0
  14. package/jsx/build/DynamicContentEditor/DynamicContentEditor.stories.jsx +101 -0
  15. package/jsx/build/DynamicContentEditor/DynamicContentEditor.stories.jsx.map +1 -0
  16. package/jsx/build/DynamicContentEditor/FieldSelector.d.ts +11 -0
  17. package/jsx/build/DynamicContentEditor/FieldSelector.d.ts.map +1 -0
  18. package/jsx/build/DynamicContentEditor/FieldSelector.jsx +80 -0
  19. package/jsx/build/DynamicContentEditor/FieldSelector.jsx.map +1 -0
  20. package/jsx/build/FlowModeller/FlowModeller.mocks.d.ts +19 -2
  21. package/jsx/build/FlowModeller/FlowModeller.mocks.d.ts.map +1 -1
  22. package/jsx/build/FlowModeller/{FlowModeller.mocks.js → FlowModeller.mocks.jsx} +110 -28
  23. package/jsx/build/FlowModeller/FlowModeller.mocks.jsx.map +1 -0
  24. package/jsx/build/FlowModeller/FlowModeller.stories.d.ts +8 -10
  25. package/jsx/build/FlowModeller/FlowModeller.stories.d.ts.map +1 -1
  26. package/jsx/build/FlowModeller/FlowModeller.stories.jsx +159 -154
  27. package/jsx/build/FlowModeller/FlowModeller.stories.jsx.map +1 -1
  28. package/jsx/build/FlowModeller/FlowModeller.styles.d.ts +2 -0
  29. package/jsx/build/FlowModeller/FlowModeller.styles.d.ts.map +1 -0
  30. package/jsx/build/FlowModeller/FlowModeller.styles.js +8 -0
  31. package/jsx/build/FlowModeller/FlowModeller.styles.js.map +1 -0
  32. package/jsx/build/ItemLibrary/LibraryPicker.mocks.d.ts +1 -5
  33. package/jsx/build/ItemLibrary/LibraryPicker.mocks.d.ts.map +1 -1
  34. package/jsx/build/ItemLibrary/LibraryPicker.mocks.js +5 -10
  35. package/jsx/build/ItemLibrary/LibraryPicker.mocks.js.map +1 -1
  36. package/jsx/build/ItemLibrary/LibraryPicker.stories.d.ts +3 -7
  37. package/jsx/build/ItemLibrary/LibraryPicker.stories.d.ts.map +1 -1
  38. package/jsx/build/ItemLibrary/LibraryPicker.stories.jsx.map +1 -1
  39. package/jsx/build/LifeCycle/LifeCycle.mocks.d.ts +3 -0
  40. package/jsx/build/LifeCycle/LifeCycle.mocks.d.ts.map +1 -1
  41. package/jsx/build/LifeCycle/LifeCycle.mocks.js +106 -18
  42. package/jsx/build/LifeCycle/LifeCycle.mocks.js.map +1 -1
  43. package/jsx/build/LifeCycle/LifeCycle.stories.d.ts +6 -9
  44. package/jsx/build/LifeCycle/LifeCycle.stories.d.ts.map +1 -1
  45. package/jsx/build/LifeCycle/LifeCycle.stories.jsx +111 -27
  46. package/jsx/build/LifeCycle/LifeCycle.stories.jsx.map +1 -1
  47. package/jsx/build/LifeCycle/utils.d.ts.map +1 -1
  48. package/jsx/build/LifeCycle/utils.js +5 -4
  49. package/jsx/build/LifeCycle/utils.js.map +1 -1
  50. package/jsx/build/ObjectSelect/ObjectSelect.mocks.d.ts +46 -0
  51. package/jsx/build/ObjectSelect/ObjectSelect.mocks.d.ts.map +1 -0
  52. package/jsx/build/ObjectSelect/ObjectSelect.mocks.jsx +335 -0
  53. package/jsx/build/ObjectSelect/ObjectSelect.mocks.jsx.map +1 -0
  54. package/jsx/build/ObjectSelect/ObjectSelect.stories.d.ts +8 -0
  55. package/jsx/build/ObjectSelect/ObjectSelect.stories.d.ts.map +1 -0
  56. package/jsx/build/ObjectSelect/ObjectSelect.stories.jsx +169 -0
  57. package/jsx/build/ObjectSelect/ObjectSelect.stories.jsx.map +1 -0
  58. package/jsx/build/ObjectSelect/ObjectSelect.styles.d.ts +4 -0
  59. package/jsx/build/ObjectSelect/ObjectSelect.styles.d.ts.map +1 -0
  60. package/jsx/build/ObjectSelect/ObjectSelect.styles.js +27 -0
  61. package/jsx/build/ObjectSelect/ObjectSelect.styles.js.map +1 -0
  62. package/jsx/build/PageTemplates/GalleryPage.mocks.d.ts +46 -0
  63. package/jsx/build/PageTemplates/GalleryPage.mocks.d.ts.map +1 -0
  64. package/jsx/build/PageTemplates/GalleryPage.mocks.jsx +76 -0
  65. package/jsx/build/PageTemplates/GalleryPage.mocks.jsx.map +1 -0
  66. package/jsx/build/PageTemplates/GalleryPage.stories.d.ts.map +1 -1
  67. package/jsx/build/PageTemplates/GalleryPage.stories.jsx +14 -92
  68. package/jsx/build/PageTemplates/GalleryPage.stories.jsx.map +1 -1
  69. package/jsx/build/PageTemplates/PageTemplates.mocks.d.ts +18 -0
  70. package/jsx/build/PageTemplates/PageTemplates.mocks.d.ts.map +1 -0
  71. package/jsx/build/PageTemplates/PageTemplates.mocks.jsx +287 -0
  72. package/jsx/build/PageTemplates/PageTemplates.mocks.jsx.map +1 -0
  73. package/jsx/build/PageTemplates/PageTemplates.stories.d.ts +4 -9
  74. package/jsx/build/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
  75. package/jsx/build/PageTemplates/PageTemplates.stories.jsx +99 -277
  76. package/jsx/build/PageTemplates/PageTemplates.stories.jsx.map +1 -1
  77. package/jsx/build/Workbench/Workbench.stories.d.ts.map +1 -1
  78. package/jsx/build/Workbench/Workbench.stories.jsx +14 -27
  79. package/jsx/build/Workbench/Workbench.stories.jsx.map +1 -1
  80. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.mocks.d.ts +3 -0
  81. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.mocks.d.ts.map +1 -0
  82. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.mocks.js +13 -0
  83. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.mocks.js.map +1 -0
  84. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts +16 -8
  85. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts.map +1 -1
  86. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.jsx +59 -56
  87. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.jsx.map +1 -1
  88. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.styles.d.ts +5 -0
  89. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.styles.d.ts.map +1 -0
  90. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.styles.js +15 -0
  91. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.styles.js.map +1 -0
  92. package/jsx/condition-builder/ConditionBuilder/props.mock.d.ts.map +1 -1
  93. package/jsx/condition-builder/ConditionBuilder/props.mock.js +17 -2
  94. package/jsx/condition-builder/ConditionBuilder/props.mock.js.map +1 -1
  95. package/jsx/core/AppShell/AppShell.stories.d.ts +6 -0
  96. package/jsx/core/AppShell/AppShell.stories.d.ts.map +1 -1
  97. package/jsx/core/AppShell/AppShell.stories.jsx +28 -2
  98. package/jsx/core/AppShell/AppShell.stories.jsx.map +1 -1
  99. package/jsx/core/Avatar/Avatar.stories.d.ts +5 -0
  100. package/jsx/core/Avatar/Avatar.stories.d.ts.map +1 -1
  101. package/jsx/core/Avatar/Avatar.stories.jsx +27 -2
  102. package/jsx/core/Avatar/Avatar.stories.jsx.map +1 -1
  103. package/jsx/core/Badges/Keyboard.stories.d.ts +6 -0
  104. package/jsx/core/Badges/Keyboard.stories.d.ts.map +1 -0
  105. package/jsx/core/Badges/Keyboard.stories.jsx +17 -0
  106. package/jsx/core/Badges/Keyboard.stories.jsx.map +1 -0
  107. package/jsx/core/Badges/Selection.stories.d.ts +2 -3
  108. package/jsx/core/Badges/Selection.stories.d.ts.map +1 -1
  109. package/jsx/core/Badges/Selection.stories.jsx.map +1 -1
  110. package/jsx/core/Badges/Status.stories.d.ts +5 -0
  111. package/jsx/core/Badges/Status.stories.d.ts.map +1 -1
  112. package/jsx/core/Badges/Status.stories.jsx +25 -1
  113. package/jsx/core/Badges/Status.stories.jsx.map +1 -1
  114. package/jsx/core/Badges/Tag.stories.d.ts +2 -3
  115. package/jsx/core/Badges/Tag.stories.d.ts.map +1 -1
  116. package/jsx/core/Badges/Tag.stories.jsx.map +1 -1
  117. package/jsx/core/Banner/Banner.stories.d.ts +12 -19
  118. package/jsx/core/Banner/Banner.stories.d.ts.map +1 -1
  119. package/jsx/core/Banner/Banner.stories.jsx +24 -3
  120. package/jsx/core/Banner/Banner.stories.jsx.map +1 -1
  121. package/jsx/core/Breadcrumbs/Breadcrumbs.stories.d.ts +3 -4
  122. package/jsx/core/Breadcrumbs/Breadcrumbs.stories.d.ts.map +1 -1
  123. package/jsx/core/Breadcrumbs/Breadcrumbs.stories.jsx.map +1 -1
  124. package/jsx/core/Button/Button.stories.d.ts +10 -3
  125. package/jsx/core/Button/Button.stories.d.ts.map +1 -1
  126. package/jsx/core/Button/Button.stories.jsx +36 -7
  127. package/jsx/core/Button/Button.stories.jsx.map +1 -1
  128. package/jsx/core/Card/Card.stories.d.ts +6 -2
  129. package/jsx/core/Card/Card.stories.d.ts.map +1 -1
  130. package/jsx/core/Card/Card.stories.jsx +30 -1
  131. package/jsx/core/Card/Card.stories.jsx.map +1 -1
  132. package/jsx/core/Checkbox/Checkbox.stories.d.ts +12 -0
  133. package/jsx/core/Checkbox/Checkbox.stories.d.ts.map +1 -1
  134. package/jsx/core/Checkbox/Checkbox.stories.jsx +54 -1
  135. package/jsx/core/Checkbox/Checkbox.stories.jsx.map +1 -1
  136. package/jsx/core/CheckboxGroup/CheckboxGroup.stories.d.ts +3 -3
  137. package/jsx/core/CheckboxGroup/CheckboxGroup.stories.d.ts.map +1 -1
  138. package/jsx/core/CheckboxGroup/CheckboxGroup.stories.jsx.map +1 -1
  139. package/jsx/core/ColorPicker/ColorPicker.stories.d.ts +1 -2
  140. package/jsx/core/ColorPicker/ColorPicker.stories.d.ts.map +1 -1
  141. package/jsx/core/ColorPicker/ColorPicker.stories.jsx +2 -10
  142. package/jsx/core/ColorPicker/ColorPicker.stories.jsx.map +1 -1
  143. package/jsx/core/ColorPicker/ColorPicker.styles.d.ts +4 -0
  144. package/jsx/core/ColorPicker/ColorPicker.styles.d.ts.map +1 -0
  145. package/jsx/core/ColorPicker/ColorPicker.styles.js +11 -0
  146. package/jsx/core/ColorPicker/ColorPicker.styles.js.map +1 -0
  147. package/jsx/core/Configuration/Configuration.mocks.d.ts +7 -0
  148. package/jsx/core/Configuration/Configuration.mocks.d.ts.map +1 -0
  149. package/jsx/core/Configuration/Configuration.mocks.jsx +9 -0
  150. package/jsx/core/Configuration/Configuration.mocks.jsx.map +1 -0
  151. package/jsx/core/Configuration/Configuration.stories.d.ts +19 -3
  152. package/jsx/core/Configuration/Configuration.stories.d.ts.map +1 -1
  153. package/jsx/core/Configuration/Configuration.stories.jsx +96 -21
  154. package/jsx/core/Configuration/Configuration.stories.jsx.map +1 -1
  155. package/jsx/core/Configuration/Configuration.styles.d.ts +6 -0
  156. package/jsx/core/Configuration/Configuration.styles.d.ts.map +1 -0
  157. package/jsx/core/Configuration/Configuration.styles.js +12 -0
  158. package/jsx/core/Configuration/Configuration.styles.js.map +1 -0
  159. package/jsx/core/CreditCard/CreditCard.stories.d.ts +11 -0
  160. package/jsx/core/CreditCard/CreditCard.stories.d.ts.map +1 -0
  161. package/jsx/core/CreditCard/CreditCard.stories.jsx +45 -0
  162. package/jsx/core/CreditCard/CreditCard.stories.jsx.map +1 -0
  163. package/jsx/core/Currency/Currency.stories.d.ts +7 -4
  164. package/jsx/core/Currency/Currency.stories.d.ts.map +1 -1
  165. package/jsx/core/Currency/Currency.stories.jsx +30 -12
  166. package/jsx/core/Currency/Currency.stories.jsx.map +1 -1
  167. package/jsx/core/DateTime/DateTime.stories.d.ts.map +1 -1
  168. package/jsx/core/DateTime/DateTime.stories.jsx +2 -1
  169. package/jsx/core/DateTime/DateTime.stories.jsx.map +1 -1
  170. package/jsx/core/FieldGroup/FieldGroup.stories.d.ts +6 -4
  171. package/jsx/core/FieldGroup/FieldGroup.stories.d.ts.map +1 -1
  172. package/jsx/core/FieldGroup/FieldGroup.stories.jsx +8 -4
  173. package/jsx/core/FieldGroup/FieldGroup.stories.jsx.map +1 -1
  174. package/jsx/core/FieldGroup/FieldGroupList.mocks.d.ts +4 -0
  175. package/jsx/core/FieldGroup/FieldGroupList.mocks.d.ts.map +1 -1
  176. package/jsx/core/FieldGroup/FieldGroupList.mocks.jsx +70 -2
  177. package/jsx/core/FieldGroup/FieldGroupList.mocks.jsx.map +1 -1
  178. package/jsx/core/FieldGroup/FieldGroupList.stories.d.ts +9 -8
  179. package/jsx/core/FieldGroup/FieldGroupList.stories.d.ts.map +1 -1
  180. package/jsx/core/FieldGroup/FieldGroupList.stories.jsx +51 -88
  181. package/jsx/core/FieldGroup/FieldGroupList.stories.jsx.map +1 -1
  182. package/jsx/core/FieldValueList/FieldValueList.stories.d.ts +2 -2
  183. package/jsx/core/FieldValueList/FieldValueList.stories.d.ts.map +1 -1
  184. package/jsx/core/FieldValueList/FieldValueList.stories.jsx.map +1 -1
  185. package/jsx/core/File/FileDisplay.stories.d.ts.map +1 -1
  186. package/jsx/core/File/FileDisplay.stories.jsx +16 -38
  187. package/jsx/core/File/FileDisplay.stories.jsx.map +1 -1
  188. package/jsx/core/File/FileInput.stories.d.ts.map +1 -1
  189. package/jsx/core/File/FileInput.stories.jsx +1 -1
  190. package/jsx/core/File/FileInput.stories.jsx.map +1 -1
  191. package/jsx/core/Flex/FlexContainer.stories.d.ts +1 -2
  192. package/jsx/core/Flex/FlexContainer.stories.d.ts.map +1 -1
  193. package/jsx/core/Flex/FlexContainer.stories.jsx.map +1 -1
  194. package/jsx/core/Form/Form.mocks.d.ts.map +1 -1
  195. package/jsx/core/Form/Form.mocks.jsx +2 -2
  196. package/jsx/core/Form/Form.mocks.jsx.map +1 -1
  197. package/jsx/core/Form/Form.stories.d.ts +10 -0
  198. package/jsx/core/Form/Form.stories.d.ts.map +1 -1
  199. package/jsx/core/Form/Form.stories.jsx +42 -2
  200. package/jsx/core/Form/Form.stories.jsx.map +1 -1
  201. package/jsx/core/Grid/GridContainer.stories.d.ts +4 -5
  202. package/jsx/core/Grid/GridContainer.stories.d.ts.map +1 -1
  203. package/jsx/core/Grid/GridContainer.stories.jsx.map +1 -1
  204. package/jsx/core/Grid/GridItem.stories.d.ts +1 -2
  205. package/jsx/core/Grid/GridItem.stories.d.ts.map +1 -1
  206. package/jsx/core/Grid/GridItem.stories.jsx.map +1 -1
  207. package/jsx/core/HTML/HTML.stories.d.ts +6 -0
  208. package/jsx/core/HTML/HTML.stories.d.ts.map +1 -0
  209. package/jsx/core/HTML/HTML.stories.jsx +13 -0
  210. package/jsx/core/HTML/HTML.stories.jsx.map +1 -0
  211. package/jsx/core/Icon/Icon.stories.d.ts +5 -6
  212. package/jsx/core/Icon/Icon.stories.d.ts.map +1 -1
  213. package/jsx/core/Icon/Icon.stories.jsx +5 -27
  214. package/jsx/core/Icon/Icon.stories.jsx.map +1 -1
  215. package/jsx/core/Icon/Icon.styles.d.ts +4 -0
  216. package/jsx/core/Icon/Icon.styles.d.ts.map +1 -0
  217. package/jsx/core/Icon/Icon.styles.js +25 -0
  218. package/jsx/core/Icon/Icon.styles.js.map +1 -0
  219. package/jsx/core/IconPicker/IconPicker.stories.jsx +1 -1
  220. package/jsx/core/IconPicker/IconPicker.stories.jsx.map +1 -1
  221. package/jsx/core/Image/Image.stories.d.ts +2 -3
  222. package/jsx/core/Image/Image.stories.d.ts.map +1 -1
  223. package/jsx/core/Image/Image.stories.jsx.map +1 -1
  224. package/jsx/core/Input/Input.stories.d.ts +9 -0
  225. package/jsx/core/Input/Input.stories.d.ts.map +1 -1
  226. package/jsx/core/Input/Input.stories.jsx +40 -1
  227. package/jsx/core/Input/Input.stories.jsx.map +1 -1
  228. package/jsx/core/Label/Label.stories.d.ts +4 -0
  229. package/jsx/core/Label/Label.stories.d.ts.map +1 -1
  230. package/jsx/core/Label/Label.stories.jsx +18 -1
  231. package/jsx/core/Label/Label.stories.jsx.map +1 -1
  232. package/jsx/core/Link/Link.stories.d.ts +1 -11
  233. package/jsx/core/Link/Link.stories.d.ts.map +1 -1
  234. package/jsx/core/Link/Link.stories.jsx.map +1 -1
  235. package/jsx/core/List/CommaSeparatedList.stories.d.ts +2 -2
  236. package/jsx/core/List/CommaSeparatedList.stories.d.ts.map +1 -1
  237. package/jsx/core/List/CommaSeparatedList.stories.jsx.map +1 -1
  238. package/jsx/core/ListToolbar/ListToolbar.mocks.d.ts +9 -0
  239. package/jsx/core/ListToolbar/ListToolbar.mocks.d.ts.map +1 -0
  240. package/jsx/core/ListToolbar/ListToolbar.mocks.jsx +71 -0
  241. package/jsx/core/ListToolbar/ListToolbar.mocks.jsx.map +1 -0
  242. package/jsx/core/ListToolbar/ListToolbar.stories.d.ts +6 -0
  243. package/jsx/core/ListToolbar/ListToolbar.stories.d.ts.map +1 -0
  244. package/jsx/core/ListToolbar/ListToolbar.stories.jsx +87 -0
  245. package/jsx/core/ListToolbar/ListToolbar.stories.jsx.map +1 -0
  246. package/jsx/core/MenuButton/MenuButton.stories.d.ts +6 -6
  247. package/jsx/core/MenuButton/MenuButton.stories.d.ts.map +1 -1
  248. package/jsx/core/MenuButton/MenuButton.stories.jsx.map +1 -1
  249. package/jsx/core/Modal/Modal.mocks.d.ts.map +1 -1
  250. package/jsx/core/Modal/Modal.mocks.jsx +3 -3
  251. package/jsx/core/Modal/Modal.mocks.jsx.map +1 -1
  252. package/jsx/core/Modal/Modal.stories.d.ts +10 -5
  253. package/jsx/core/Modal/Modal.stories.d.ts.map +1 -1
  254. package/jsx/core/Modal/Modal.stories.jsx +34 -43
  255. package/jsx/core/Modal/Modal.stories.jsx.map +1 -1
  256. package/jsx/core/MultiStep/MultiStep.stories.d.ts +2 -3
  257. package/jsx/core/MultiStep/MultiStep.stories.d.ts.map +1 -1
  258. package/jsx/core/MultiStep/MultiStep.stories.jsx.map +1 -1
  259. package/jsx/core/Number/Number.stories.d.ts +10 -6
  260. package/jsx/core/Number/Number.stories.d.ts.map +1 -1
  261. package/jsx/core/Number/Number.stories.jsx +38 -19
  262. package/jsx/core/Number/Number.stories.jsx.map +1 -1
  263. package/jsx/core/PageTemplates/PageTemplates.stories.d.ts +5 -3
  264. package/jsx/core/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
  265. package/jsx/core/PageTemplates/PageTemplates.stories.jsx +85 -31
  266. package/jsx/core/PageTemplates/PageTemplates.stories.jsx.map +1 -1
  267. package/jsx/core/PageTemplates/PageTemplates.styles.d.ts +1 -0
  268. package/jsx/core/PageTemplates/PageTemplates.styles.d.ts.map +1 -1
  269. package/jsx/core/PageTemplates/PageTemplates.styles.js +9 -0
  270. package/jsx/core/PageTemplates/PageTemplates.styles.js.map +1 -1
  271. package/jsx/core/Phone/Phone.stories.d.ts.map +1 -1
  272. package/jsx/core/Phone/Phone.stories.jsx +3 -1
  273. package/jsx/core/Phone/Phone.stories.jsx.map +1 -1
  274. package/jsx/core/Popover/Popover.stories.d.ts +1 -1
  275. package/jsx/core/Popover/Popover.stories.d.ts.map +1 -1
  276. package/jsx/core/Popover/Popover.stories.jsx.map +1 -1
  277. package/jsx/core/Progress/Progress.stories.d.ts +4 -0
  278. package/jsx/core/Progress/Progress.stories.d.ts.map +1 -1
  279. package/jsx/core/Progress/Progress.stories.jsx +22 -1
  280. package/jsx/core/Progress/Progress.stories.jsx.map +1 -1
  281. package/jsx/core/RadioButton/RadioButton.stories.d.ts +12 -0
  282. package/jsx/core/RadioButton/RadioButton.stories.d.ts.map +1 -1
  283. package/jsx/core/RadioButton/RadioButton.stories.jsx +53 -1
  284. package/jsx/core/RadioButton/RadioButton.stories.jsx.map +1 -1
  285. package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts +3 -3
  286. package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts.map +1 -1
  287. package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.jsx.map +1 -1
  288. package/jsx/core/Rating/Rating.stories.d.ts +4 -0
  289. package/jsx/core/Rating/Rating.stories.d.ts.map +1 -1
  290. package/jsx/core/Rating/Rating.stories.jsx +18 -1
  291. package/jsx/core/Rating/Rating.stories.jsx.map +1 -1
  292. package/jsx/core/SearchInput/SearchInput.mocks.d.ts +12 -0
  293. package/jsx/core/SearchInput/SearchInput.mocks.d.ts.map +1 -0
  294. package/jsx/core/SearchInput/SearchInput.mocks.js +25 -0
  295. package/jsx/core/SearchInput/SearchInput.mocks.js.map +1 -0
  296. package/jsx/core/SearchInput/SearchInput.stories.d.ts +1 -0
  297. package/jsx/core/SearchInput/SearchInput.stories.d.ts.map +1 -1
  298. package/jsx/core/SearchInput/SearchInput.stories.jsx +30 -1
  299. package/jsx/core/SearchInput/SearchInput.stories.jsx.map +1 -1
  300. package/jsx/core/Select/Select.stories.d.ts +8 -0
  301. package/jsx/core/Select/Select.stories.d.ts.map +1 -1
  302. package/jsx/core/Select/Select.stories.jsx +35 -1
  303. package/jsx/core/Select/Select.stories.jsx.map +1 -1
  304. package/jsx/core/Sentiment/Sentiment.stories.d.ts +6 -0
  305. package/jsx/core/Sentiment/Sentiment.stories.d.ts.map +1 -1
  306. package/jsx/core/Sentiment/Sentiment.stories.jsx +32 -1
  307. package/jsx/core/Sentiment/Sentiment.stories.jsx.map +1 -1
  308. package/jsx/core/Slider/Slider.stories.d.ts +4 -3
  309. package/jsx/core/Slider/Slider.stories.d.ts.map +1 -1
  310. package/jsx/core/Slider/Slider.stories.jsx +1 -1
  311. package/jsx/core/Slider/Slider.stories.jsx.map +1 -1
  312. package/jsx/core/SummaryItem/SummaryItem.stories.d.ts +5 -5
  313. package/jsx/core/SummaryItem/SummaryItem.stories.d.ts.map +1 -1
  314. package/jsx/core/SummaryItem/SummaryItem.stories.jsx.map +1 -1
  315. package/jsx/core/SummaryList/SummaryList.stories.d.ts +2 -2
  316. package/jsx/core/SummaryList/SummaryList.stories.d.ts.map +1 -1
  317. package/jsx/core/SummaryList/SummaryList.stories.jsx.map +1 -1
  318. package/jsx/core/Switch/Switch.stories.d.ts +7 -0
  319. package/jsx/core/Switch/Switch.stories.d.ts.map +1 -1
  320. package/jsx/core/Switch/Switch.stories.jsx +34 -1
  321. package/jsx/core/Switch/Switch.stories.jsx.map +1 -1
  322. package/jsx/core/Table/Table.mocks.d.ts +6 -0
  323. package/jsx/core/Table/Table.mocks.d.ts.map +1 -1
  324. package/jsx/core/Table/Table.mocks.jsx +134 -0
  325. package/jsx/core/Table/Table.mocks.jsx.map +1 -1
  326. package/jsx/core/Table/Table.stories.d.ts +25 -0
  327. package/jsx/core/Table/Table.stories.d.ts.map +1 -1
  328. package/jsx/core/Table/Table.stories.jsx +120 -1
  329. package/jsx/core/Table/Table.stories.jsx.map +1 -1
  330. package/jsx/core/Tabs/Tabs.stories.d.ts +10 -2
  331. package/jsx/core/Tabs/Tabs.stories.d.ts.map +1 -1
  332. package/jsx/core/Tabs/Tabs.stories.jsx +39 -1
  333. package/jsx/core/Tabs/Tabs.stories.jsx.map +1 -1
  334. package/jsx/core/Text/Text.stories.d.ts +19 -0
  335. package/jsx/core/Text/Text.stories.d.ts.map +1 -1
  336. package/jsx/core/Text/Text.stories.jsx +112 -1
  337. package/jsx/core/Text/Text.stories.jsx.map +1 -1
  338. package/jsx/core/TextArea/TextArea.stories.d.ts +5 -0
  339. package/jsx/core/TextArea/TextArea.stories.d.ts.map +1 -1
  340. package/jsx/core/TextArea/TextArea.stories.jsx +22 -1
  341. package/jsx/core/TextArea/TextArea.stories.jsx.map +1 -1
  342. package/jsx/core/Toaster/Toaster.stories.d.ts +2 -3
  343. package/jsx/core/Toaster/Toaster.stories.d.ts.map +1 -1
  344. package/jsx/core/Toaster/Toaster.stories.jsx +17 -12
  345. package/jsx/core/Toaster/Toaster.stories.jsx.map +1 -1
  346. package/jsx/core/Tooltip/Tooltip.stories.d.ts +8 -6
  347. package/jsx/core/Tooltip/Tooltip.stories.d.ts.map +1 -1
  348. package/jsx/core/Tooltip/Tooltip.stories.jsx +28 -1
  349. package/jsx/core/Tooltip/Tooltip.stories.jsx.map +1 -1
  350. package/jsx/core/Tree/Tree.stories.d.ts +1 -2
  351. package/jsx/core/Tree/Tree.stories.d.ts.map +1 -1
  352. package/jsx/core/Tree/Tree.stories.jsx +2 -2
  353. package/jsx/core/Tree/Tree.stories.jsx.map +1 -1
  354. package/jsx/cs/Article/Article.stories.d.ts +4 -13
  355. package/jsx/cs/Article/Article.stories.d.ts.map +1 -1
  356. package/jsx/cs/Article/Article.stories.jsx.map +1 -1
  357. package/jsx/cs/ArticleList/ArticleList.stories.d.ts +4 -14
  358. package/jsx/cs/ArticleList/ArticleList.stories.d.ts.map +1 -1
  359. package/jsx/cs/ArticleList/ArticleList.stories.jsx +2 -1
  360. package/jsx/cs/ArticleList/ArticleList.stories.jsx.map +1 -1
  361. package/jsx/cs/CSCaseView/CSAppShell.stories.d.ts +3 -37
  362. package/jsx/cs/CSCaseView/CSAppShell.stories.d.ts.map +1 -1
  363. package/jsx/cs/CSCaseView/CSAppShell.stories.jsx +15 -42
  364. package/jsx/cs/CSCaseView/CSAppShell.stories.jsx.map +1 -1
  365. package/jsx/cs/CSCaseView/CSCaseView.mocks.d.ts +9 -0
  366. package/jsx/cs/CSCaseView/CSCaseView.mocks.d.ts.map +1 -1
  367. package/jsx/cs/CSCaseView/{CSCaseView.mocks.js → CSCaseView.mocks.jsx} +30 -1
  368. package/jsx/cs/CSCaseView/CSCaseView.mocks.jsx.map +1 -0
  369. package/jsx/cs/CallControlPanel/CallControlPanel.stories.d.ts +3 -2
  370. package/jsx/cs/CallControlPanel/CallControlPanel.stories.d.ts.map +1 -1
  371. package/jsx/cs/CallControlPanel/CallControlPanel.stories.jsx +20 -5
  372. package/jsx/cs/CallControlPanel/CallControlPanel.stories.jsx.map +1 -1
  373. package/jsx/cs/IntelligentGuidance/IntelligentGuidance.stories.d.ts +4 -11
  374. package/jsx/cs/IntelligentGuidance/IntelligentGuidance.stories.d.ts.map +1 -1
  375. package/jsx/cs/IntelligentGuidance/IntelligentGuidance.stories.jsx +11 -11
  376. package/jsx/cs/IntelligentGuidance/IntelligentGuidance.stories.jsx.map +1 -1
  377. package/jsx/cs/InteractionNotification/InteractionNotification.stories.d.ts +7 -6
  378. package/jsx/cs/InteractionNotification/InteractionNotification.stories.d.ts.map +1 -1
  379. package/jsx/cs/InteractionNotification/InteractionNotification.stories.jsx +13 -5
  380. package/jsx/cs/InteractionNotification/InteractionNotification.stories.jsx.map +1 -1
  381. package/jsx/cs/InteractionTimer/InteractionTimer.mocks.d.ts +11 -0
  382. package/jsx/cs/InteractionTimer/InteractionTimer.mocks.d.ts.map +1 -0
  383. package/jsx/cs/InteractionTimer/InteractionTimer.mocks.js +29 -0
  384. package/jsx/cs/InteractionTimer/InteractionTimer.mocks.js.map +1 -0
  385. package/jsx/cs/InteractionTimer/InteractionTimer.stories.d.ts +3 -7
  386. package/jsx/cs/InteractionTimer/InteractionTimer.stories.d.ts.map +1 -1
  387. package/jsx/cs/InteractionTimer/InteractionTimer.stories.jsx +38 -43
  388. package/jsx/cs/InteractionTimer/InteractionTimer.stories.jsx.map +1 -1
  389. package/jsx/cs/TaskManager/TaskManager.mocks.d.ts +6 -0
  390. package/jsx/cs/TaskManager/TaskManager.mocks.d.ts.map +1 -1
  391. package/jsx/cs/TaskManager/TaskManager.mocks.js +7 -0
  392. package/jsx/cs/TaskManager/TaskManager.mocks.js.map +1 -1
  393. package/jsx/cs/TaskManager/TaskManager.stories.d.ts +6 -5
  394. package/jsx/cs/TaskManager/TaskManager.stories.d.ts.map +1 -1
  395. package/jsx/cs/TaskManager/TaskManager.stories.jsx +26 -30
  396. package/jsx/cs/TaskManager/TaskManager.stories.jsx.map +1 -1
  397. package/jsx/cs/TaskManager/TaskManager.styles.d.ts +3 -0
  398. package/jsx/cs/TaskManager/TaskManager.styles.d.ts.map +1 -0
  399. package/jsx/cs/TaskManager/TaskManager.styles.js +8 -0
  400. package/jsx/cs/TaskManager/TaskManager.styles.js.map +1 -0
  401. package/jsx/dnd/DragDropList/DragDropList.mocks.d.ts +15 -0
  402. package/jsx/dnd/DragDropList/DragDropList.mocks.d.ts.map +1 -0
  403. package/jsx/dnd/DragDropList/DragDropList.mocks.jsx +33 -0
  404. package/jsx/dnd/DragDropList/DragDropList.mocks.jsx.map +1 -0
  405. package/jsx/dnd/DragDropList/DragDropList.stories.d.ts +8 -9
  406. package/jsx/dnd/DragDropList/DragDropList.stories.d.ts.map +1 -1
  407. package/jsx/dnd/DragDropList/DragDropList.stories.jsx +14 -78
  408. package/jsx/dnd/DragDropList/DragDropList.stories.jsx.map +1 -1
  409. package/jsx/dnd/DragDropList/DragDropList.styles.d.ts +6 -0
  410. package/jsx/dnd/DragDropList/DragDropList.styles.d.ts.map +1 -0
  411. package/jsx/dnd/DragDropList/DragDropList.styles.js +32 -0
  412. package/jsx/dnd/DragDropList/DragDropList.styles.js.map +1 -0
  413. package/jsx/rte/Editor/Editor.mocks.d.ts +309 -0
  414. package/jsx/rte/Editor/Editor.mocks.d.ts.map +1 -0
  415. package/jsx/rte/Editor/Editor.mocks.jsx +23 -0
  416. package/jsx/rte/Editor/Editor.mocks.jsx.map +1 -0
  417. package/jsx/rte/Editor/Editor.stories.d.ts +7 -8
  418. package/jsx/rte/Editor/Editor.stories.d.ts.map +1 -1
  419. package/jsx/rte/Editor/Editor.stories.jsx +3 -21
  420. package/jsx/rte/Editor/Editor.stories.jsx.map +1 -1
  421. package/jsx/rte/RichTextEditor/RichTextEditor.mocks.jsx.map +1 -1
  422. package/jsx/rte/RichTextEditor/RichTextEditor.stories.d.ts +2 -3
  423. package/jsx/rte/RichTextEditor/RichTextEditor.stories.d.ts.map +1 -1
  424. package/jsx/rte/RichTextEditor/RichTextEditor.stories.jsx.map +1 -1
  425. package/jsx/rte/RichTextEditor/RichTextViewer.stories.d.ts +5 -5
  426. package/jsx/rte/RichTextEditor/RichTextViewer.stories.d.ts.map +1 -1
  427. package/jsx/rte/RichTextEditor/RichTextViewer.stories.jsx +18 -1
  428. package/jsx/rte/RichTextEditor/RichTextViewer.stories.jsx.map +1 -1
  429. package/jsx/social/Chat/Chat.stories.d.ts +6 -7
  430. package/jsx/social/Chat/Chat.stories.d.ts.map +1 -1
  431. package/jsx/social/Chat/Chat.stories.jsx +7 -5
  432. package/jsx/social/Chat/Chat.stories.jsx.map +1 -1
  433. package/jsx/social/Chat/RepeatingView.mocks.d.ts +14 -0
  434. package/jsx/social/Chat/RepeatingView.mocks.d.ts.map +1 -0
  435. package/jsx/social/Chat/RepeatingView.mocks.js +11 -0
  436. package/jsx/social/Chat/RepeatingView.mocks.js.map +1 -0
  437. package/jsx/social/Chat/RepeatingView.stories.d.ts +6 -17
  438. package/jsx/social/Chat/RepeatingView.stories.d.ts.map +1 -1
  439. package/jsx/social/Chat/RepeatingView.stories.jsx +16 -46
  440. package/jsx/social/Chat/RepeatingView.stories.jsx.map +1 -1
  441. package/jsx/social/Chat/RepeatingView.styles.d.ts +2 -0
  442. package/jsx/social/Chat/RepeatingView.styles.d.ts.map +1 -0
  443. package/jsx/social/Chat/RepeatingView.styles.js +22 -0
  444. package/jsx/social/Chat/RepeatingView.styles.js.map +1 -0
  445. package/jsx/social/Email/Email.mocks.d.ts +172 -2
  446. package/jsx/social/Email/Email.mocks.d.ts.map +1 -1
  447. package/jsx/social/Email/Email.mocks.jsx +766 -0
  448. package/jsx/social/Email/Email.mocks.jsx.map +1 -0
  449. package/jsx/social/Email/Email.stories.d.ts +19 -25
  450. package/jsx/social/Email/Email.stories.d.ts.map +1 -1
  451. package/jsx/social/Email/Email.stories.jsx +156 -418
  452. package/jsx/social/Email/Email.stories.jsx.map +1 -1
  453. package/jsx/social/Email/Email.styles.d.ts +4 -0
  454. package/jsx/social/Email/Email.styles.d.ts.map +1 -0
  455. package/jsx/social/Email/Email.styles.js +14 -0
  456. package/jsx/social/Email/Email.styles.js.map +1 -0
  457. package/jsx/social/Feed/Feed.mocks.d.ts.map +1 -1
  458. package/jsx/social/Feed/Feed.mocks.jsx.map +1 -1
  459. package/jsx/social/Feed/Feed.stories.d.ts +6 -11
  460. package/jsx/social/Feed/Feed.stories.d.ts.map +1 -1
  461. package/jsx/social/Feed/Feed.stories.jsx +24 -19
  462. package/jsx/social/Feed/Feed.stories.jsx.map +1 -1
  463. package/jsx/social/Feed/FeedNewPost.stories.d.ts +7 -14
  464. package/jsx/social/Feed/FeedNewPost.stories.d.ts.map +1 -1
  465. package/jsx/social/Feed/FeedNewPost.stories.jsx.map +1 -1
  466. package/jsx/social/Feed/FeedPost.stories.d.ts +4 -5
  467. package/jsx/social/Feed/FeedPost.stories.d.ts.map +1 -1
  468. package/jsx/social/Feed/FeedPost.stories.jsx +30 -20
  469. package/jsx/social/Feed/FeedPost.stories.jsx.map +1 -1
  470. package/jsx/social/Feed/FeedReply.stories.d.ts +10 -10
  471. package/jsx/social/Feed/FeedReply.stories.d.ts.map +1 -1
  472. package/jsx/social/Feed/FeedReply.stories.jsx +21 -16
  473. package/jsx/social/Feed/FeedReply.stories.jsx.map +1 -1
  474. package/jsx/social/Feed/FeedReplyInput.stories.d.ts +7 -12
  475. package/jsx/social/Feed/FeedReplyInput.stories.d.ts.map +1 -1
  476. package/jsx/social/Feed/FeedReplyInput.stories.jsx.map +1 -1
  477. package/jsx/work/CaseView/CaseView.mocks.d.ts.map +1 -1
  478. package/jsx/work/CaseView/CaseView.mocks.jsx +1 -1
  479. package/jsx/work/CaseView/CaseView.mocks.jsx.map +1 -1
  480. package/jsx/work/CaseView/CaseView.stories.d.ts +4 -11
  481. package/jsx/work/CaseView/CaseView.stories.d.ts.map +1 -1
  482. package/jsx/work/CaseView/CaseView.stories.jsx +7 -7
  483. package/jsx/work/CaseView/CaseView.stories.jsx.map +1 -1
  484. package/jsx/work/CaseView/Details.mocks.d.ts.map +1 -1
  485. package/jsx/work/CaseView/Details.mocks.jsx +1 -1
  486. package/jsx/work/CaseView/Details.mocks.jsx.map +1 -1
  487. package/jsx/work/CaseView/MobileCaseView.stories.d.ts +3 -9
  488. package/jsx/work/CaseView/MobileCaseView.stories.d.ts.map +1 -1
  489. package/jsx/work/CaseView/MobileCaseView.stories.jsx.map +1 -1
  490. package/jsx/work/CaseView/Pulse.mocks.d.ts.map +1 -1
  491. package/jsx/work/CaseView/Pulse.mocks.jsx +1 -1
  492. package/jsx/work/CaseView/Pulse.mocks.jsx.map +1 -1
  493. package/jsx/work/ConfigurableLayout/ConfigurableLayout.mocks.d.ts +45 -0
  494. package/jsx/work/ConfigurableLayout/ConfigurableLayout.mocks.d.ts.map +1 -0
  495. package/jsx/work/ConfigurableLayout/ConfigurableLayout.mocks.jsx +166 -0
  496. package/jsx/work/ConfigurableLayout/ConfigurableLayout.mocks.jsx.map +1 -0
  497. package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts +3 -8
  498. package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts.map +1 -1
  499. package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.jsx +3 -175
  500. package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.jsx.map +1 -1
  501. package/jsx/work/ConfigurableLayout/ConfigurableLayout.styles.d.ts +4 -0
  502. package/jsx/work/ConfigurableLayout/ConfigurableLayout.styles.d.ts.map +1 -0
  503. package/jsx/work/ConfigurableLayout/ConfigurableLayout.styles.js +11 -0
  504. package/jsx/work/ConfigurableLayout/ConfigurableLayout.styles.js.map +1 -0
  505. package/jsx/work/Confirmation/Confirmation.stories.d.ts.map +1 -1
  506. package/jsx/work/Confirmation/Confirmation.stories.jsx +3 -3
  507. package/jsx/work/Confirmation/Confirmation.stories.jsx.map +1 -1
  508. package/jsx/work/Details/Details.stories.d.ts.map +1 -1
  509. package/jsx/work/Details/Details.stories.jsx +21 -16
  510. package/jsx/work/Details/Details.stories.jsx.map +1 -1
  511. package/jsx/work/Glimpse/Glimpse.stories.d.ts.map +1 -1
  512. package/jsx/work/Glimpse/Glimpse.stories.jsx.map +1 -1
  513. package/jsx/work/SearchResults/SearchResults.stories.d.ts.map +1 -1
  514. package/jsx/work/SearchResults/SearchResults.stories.jsx +1 -1
  515. package/jsx/work/SearchResults/SearchResults.stories.jsx.map +1 -1
  516. package/jsx/work/Stakeholders/Stakeholders.mocks.d.ts.map +1 -1
  517. package/jsx/work/Stakeholders/Stakeholders.mocks.jsx +2 -2
  518. package/jsx/work/Stakeholders/Stakeholders.mocks.jsx.map +1 -1
  519. package/jsx/work/Stakeholders/Stakeholders.stories.d.ts +2 -3
  520. package/jsx/work/Stakeholders/Stakeholders.stories.d.ts.map +1 -1
  521. package/jsx/work/Stakeholders/Stakeholders.stories.jsx +1 -0
  522. package/jsx/work/Stakeholders/Stakeholders.stories.jsx.map +1 -1
  523. package/jsx/work/Tasks/Tasks.stories.jsx +1 -1
  524. package/jsx/work/Tasks/Tasks.stories.jsx.map +1 -1
  525. package/jsx/work/Timeline/Timeline.stories.d.ts +1 -0
  526. package/jsx/work/Timeline/Timeline.stories.d.ts.map +1 -1
  527. package/jsx/work/Timeline/Timeline.stories.jsx +29 -1
  528. package/jsx/work/Timeline/Timeline.stories.jsx.map +1 -1
  529. package/lib/build/AppHeader/AppHeader.stories.d.ts.map +1 -1
  530. package/lib/build/AppHeader/AppHeader.stories.js +7 -2
  531. package/lib/build/AppHeader/AppHeader.stories.js.map +1 -1
  532. package/lib/build/AppShell/AppShell.mocks.d.ts +19 -0
  533. package/lib/build/AppShell/AppShell.mocks.d.ts.map +1 -1
  534. package/lib/build/AppShell/AppShell.mocks.js +32 -0
  535. package/lib/build/AppShell/AppShell.mocks.js.map +1 -1
  536. package/lib/build/AppShell/AppShell.stories.d.ts +2 -2
  537. package/lib/build/AppShell/AppShell.stories.d.ts.map +1 -1
  538. package/lib/build/AppShell/AppShell.stories.js +22 -45
  539. package/lib/build/AppShell/AppShell.stories.js.map +1 -1
  540. package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts +8 -0
  541. package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts.map +1 -0
  542. package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.js +85 -0
  543. package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.js.map +1 -0
  544. package/lib/build/DynamicContentEditor/FieldSelector.d.ts +14 -0
  545. package/lib/build/DynamicContentEditor/FieldSelector.d.ts.map +1 -0
  546. package/lib/build/DynamicContentEditor/FieldSelector.js +81 -0
  547. package/lib/build/DynamicContentEditor/FieldSelector.js.map +1 -0
  548. package/lib/build/FlowModeller/FlowModeller.mocks.d.ts +19 -2
  549. package/lib/build/FlowModeller/FlowModeller.mocks.d.ts.map +1 -1
  550. package/lib/build/FlowModeller/FlowModeller.mocks.js +81 -27
  551. package/lib/build/FlowModeller/FlowModeller.mocks.js.map +1 -1
  552. package/lib/build/FlowModeller/FlowModeller.stories.d.ts +8 -10
  553. package/lib/build/FlowModeller/FlowModeller.stories.d.ts.map +1 -1
  554. package/lib/build/FlowModeller/FlowModeller.stories.js +147 -138
  555. package/lib/build/FlowModeller/FlowModeller.stories.js.map +1 -1
  556. package/lib/build/FlowModeller/FlowModeller.styles.d.ts +2 -0
  557. package/lib/build/FlowModeller/FlowModeller.styles.d.ts.map +1 -0
  558. package/lib/build/FlowModeller/FlowModeller.styles.js +8 -0
  559. package/lib/build/FlowModeller/FlowModeller.styles.js.map +1 -0
  560. package/lib/build/ItemLibrary/LibraryPicker.mocks.d.ts +1 -5
  561. package/lib/build/ItemLibrary/LibraryPicker.mocks.d.ts.map +1 -1
  562. package/lib/build/ItemLibrary/LibraryPicker.mocks.js +5 -10
  563. package/lib/build/ItemLibrary/LibraryPicker.mocks.js.map +1 -1
  564. package/lib/build/ItemLibrary/LibraryPicker.stories.d.ts +3 -7
  565. package/lib/build/ItemLibrary/LibraryPicker.stories.d.ts.map +1 -1
  566. package/lib/build/ItemLibrary/LibraryPicker.stories.js +1 -1
  567. package/lib/build/ItemLibrary/LibraryPicker.stories.js.map +1 -1
  568. package/lib/build/LifeCycle/LifeCycle.mocks.d.ts +3 -0
  569. package/lib/build/LifeCycle/LifeCycle.mocks.d.ts.map +1 -1
  570. package/lib/build/LifeCycle/LifeCycle.mocks.js +106 -18
  571. package/lib/build/LifeCycle/LifeCycle.mocks.js.map +1 -1
  572. package/lib/build/LifeCycle/LifeCycle.stories.d.ts +6 -9
  573. package/lib/build/LifeCycle/LifeCycle.stories.d.ts.map +1 -1
  574. package/lib/build/LifeCycle/LifeCycle.stories.js +115 -31
  575. package/lib/build/LifeCycle/LifeCycle.stories.js.map +1 -1
  576. package/lib/build/LifeCycle/utils.d.ts.map +1 -1
  577. package/lib/build/LifeCycle/utils.js +5 -4
  578. package/lib/build/LifeCycle/utils.js.map +1 -1
  579. package/lib/build/ObjectSelect/ObjectSelect.mocks.d.ts +46 -0
  580. package/lib/build/ObjectSelect/ObjectSelect.mocks.d.ts.map +1 -0
  581. package/lib/build/ObjectSelect/ObjectSelect.mocks.js +308 -0
  582. package/lib/build/ObjectSelect/ObjectSelect.mocks.js.map +1 -0
  583. package/lib/build/ObjectSelect/ObjectSelect.stories.d.ts +8 -0
  584. package/lib/build/ObjectSelect/ObjectSelect.stories.d.ts.map +1 -0
  585. package/lib/build/ObjectSelect/ObjectSelect.stories.js +151 -0
  586. package/lib/build/ObjectSelect/ObjectSelect.stories.js.map +1 -0
  587. package/lib/build/ObjectSelect/ObjectSelect.styles.d.ts +4 -0
  588. package/lib/build/ObjectSelect/ObjectSelect.styles.d.ts.map +1 -0
  589. package/lib/build/ObjectSelect/ObjectSelect.styles.js +27 -0
  590. package/lib/build/ObjectSelect/ObjectSelect.styles.js.map +1 -0
  591. package/lib/build/PageTemplates/GalleryPage.mocks.d.ts +46 -0
  592. package/lib/build/PageTemplates/GalleryPage.mocks.d.ts.map +1 -0
  593. package/lib/build/PageTemplates/GalleryPage.mocks.js +77 -0
  594. package/lib/build/PageTemplates/GalleryPage.mocks.js.map +1 -0
  595. package/lib/build/PageTemplates/GalleryPage.stories.d.ts.map +1 -1
  596. package/lib/build/PageTemplates/GalleryPage.stories.js +14 -92
  597. package/lib/build/PageTemplates/GalleryPage.stories.js.map +1 -1
  598. package/lib/build/PageTemplates/PageTemplates.mocks.d.ts +18 -0
  599. package/lib/build/PageTemplates/PageTemplates.mocks.d.ts.map +1 -0
  600. package/lib/build/PageTemplates/PageTemplates.mocks.js +248 -0
  601. package/lib/build/PageTemplates/PageTemplates.mocks.js.map +1 -0
  602. package/lib/build/PageTemplates/PageTemplates.stories.d.ts +4 -9
  603. package/lib/build/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
  604. package/lib/build/PageTemplates/PageTemplates.stories.js +115 -253
  605. package/lib/build/PageTemplates/PageTemplates.stories.js.map +1 -1
  606. package/lib/build/Workbench/Workbench.stories.d.ts.map +1 -1
  607. package/lib/build/Workbench/Workbench.stories.js +26 -39
  608. package/lib/build/Workbench/Workbench.stories.js.map +1 -1
  609. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.mocks.d.ts +3 -0
  610. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.mocks.d.ts.map +1 -0
  611. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.mocks.js +13 -0
  612. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.mocks.js.map +1 -0
  613. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts +16 -8
  614. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts.map +1 -1
  615. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.js +59 -57
  616. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.js.map +1 -1
  617. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.styles.d.ts +5 -0
  618. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.styles.d.ts.map +1 -0
  619. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.styles.js +15 -0
  620. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.styles.js.map +1 -0
  621. package/lib/condition-builder/ConditionBuilder/props.mock.d.ts.map +1 -1
  622. package/lib/condition-builder/ConditionBuilder/props.mock.js +17 -2
  623. package/lib/condition-builder/ConditionBuilder/props.mock.js.map +1 -1
  624. package/lib/core/AppShell/AppShell.mocks.js +5 -5
  625. package/lib/core/AppShell/AppShell.mocks.js.map +1 -1
  626. package/lib/core/AppShell/AppShell.stories.d.ts +6 -0
  627. package/lib/core/AppShell/AppShell.stories.d.ts.map +1 -1
  628. package/lib/core/AppShell/AppShell.stories.js +33 -9
  629. package/lib/core/AppShell/AppShell.stories.js.map +1 -1
  630. package/lib/core/Avatar/Avatar.stories.d.ts +5 -0
  631. package/lib/core/Avatar/Avatar.stories.d.ts.map +1 -1
  632. package/lib/core/Avatar/Avatar.stories.js +30 -7
  633. package/lib/core/Avatar/Avatar.stories.js.map +1 -1
  634. package/lib/core/Backdrop/Backdrop.stories.js +2 -2
  635. package/lib/core/Backdrop/Backdrop.stories.js.map +1 -1
  636. package/lib/core/Badges/Alert.stories.js +1 -1
  637. package/lib/core/Badges/Alert.stories.js.map +1 -1
  638. package/lib/core/Badges/Count.stories.js +1 -1
  639. package/lib/core/Badges/Count.stories.js.map +1 -1
  640. package/lib/core/Badges/Keyboard.stories.d.ts +6 -0
  641. package/lib/core/Badges/Keyboard.stories.d.ts.map +1 -0
  642. package/lib/core/Badges/Keyboard.stories.js +16 -0
  643. package/lib/core/Badges/Keyboard.stories.js.map +1 -0
  644. package/lib/core/Badges/Selection.stories.d.ts +2 -3
  645. package/lib/core/Badges/Selection.stories.d.ts.map +1 -1
  646. package/lib/core/Badges/Selection.stories.js +1 -1
  647. package/lib/core/Badges/Selection.stories.js.map +1 -1
  648. package/lib/core/Badges/Status.stories.d.ts +5 -0
  649. package/lib/core/Badges/Status.stories.d.ts.map +1 -1
  650. package/lib/core/Badges/Status.stories.js +24 -2
  651. package/lib/core/Badges/Status.stories.js.map +1 -1
  652. package/lib/core/Badges/Tag.stories.d.ts +2 -3
  653. package/lib/core/Badges/Tag.stories.d.ts.map +1 -1
  654. package/lib/core/Badges/Tag.stories.js +1 -1
  655. package/lib/core/Badges/Tag.stories.js.map +1 -1
  656. package/lib/core/Banner/Banner.mocks.js +1 -1
  657. package/lib/core/Banner/Banner.mocks.js.map +1 -1
  658. package/lib/core/Banner/Banner.stories.d.ts +12 -19
  659. package/lib/core/Banner/Banner.stories.d.ts.map +1 -1
  660. package/lib/core/Banner/Banner.stories.js +30 -13
  661. package/lib/core/Banner/Banner.stories.js.map +1 -1
  662. package/lib/core/Boolean/BooleanDisplay.stories.js +1 -1
  663. package/lib/core/Boolean/BooleanDisplay.stories.js.map +1 -1
  664. package/lib/core/Breadcrumbs/Breadcrumbs.stories.d.ts +3 -4
  665. package/lib/core/Breadcrumbs/Breadcrumbs.stories.d.ts.map +1 -1
  666. package/lib/core/Breadcrumbs/Breadcrumbs.stories.js +2 -2
  667. package/lib/core/Breadcrumbs/Breadcrumbs.stories.js.map +1 -1
  668. package/lib/core/Button/Button.stories.d.ts +10 -3
  669. package/lib/core/Button/Button.stories.d.ts.map +1 -1
  670. package/lib/core/Button/Button.stories.js +35 -8
  671. package/lib/core/Button/Button.stories.js.map +1 -1
  672. package/lib/core/Card/Card.stories.d.ts +6 -2
  673. package/lib/core/Card/Card.stories.d.ts.map +1 -1
  674. package/lib/core/Card/Card.stories.js +22 -4
  675. package/lib/core/Card/Card.stories.js.map +1 -1
  676. package/lib/core/Checkbox/Checkbox.stories.d.ts +12 -0
  677. package/lib/core/Checkbox/Checkbox.stories.d.ts.map +1 -1
  678. package/lib/core/Checkbox/Checkbox.stories.js +54 -3
  679. package/lib/core/Checkbox/Checkbox.stories.js.map +1 -1
  680. package/lib/core/CheckboxGroup/CheckboxGroup.stories.d.ts +3 -3
  681. package/lib/core/CheckboxGroup/CheckboxGroup.stories.d.ts.map +1 -1
  682. package/lib/core/CheckboxGroup/CheckboxGroup.stories.js +3 -3
  683. package/lib/core/CheckboxGroup/CheckboxGroup.stories.js.map +1 -1
  684. package/lib/core/ColorPicker/ColorPicker.stories.d.ts +1 -2
  685. package/lib/core/ColorPicker/ColorPicker.stories.d.ts.map +1 -1
  686. package/lib/core/ColorPicker/ColorPicker.stories.js +7 -15
  687. package/lib/core/ColorPicker/ColorPicker.stories.js.map +1 -1
  688. package/lib/core/ColorPicker/ColorPicker.styles.d.ts +4 -0
  689. package/lib/core/ColorPicker/ColorPicker.styles.d.ts.map +1 -0
  690. package/lib/core/ColorPicker/ColorPicker.styles.js +11 -0
  691. package/lib/core/ColorPicker/ColorPicker.styles.js.map +1 -0
  692. package/lib/core/ComboBox/ComboBox.stories.js +6 -6
  693. package/lib/core/ComboBox/ComboBox.stories.js.map +1 -1
  694. package/lib/core/Configuration/Configuration.mocks.d.ts +7 -0
  695. package/lib/core/Configuration/Configuration.mocks.d.ts.map +1 -0
  696. package/lib/core/Configuration/Configuration.mocks.js +6 -0
  697. package/lib/core/Configuration/Configuration.mocks.js.map +1 -0
  698. package/lib/core/Configuration/Configuration.stories.d.ts +19 -3
  699. package/lib/core/Configuration/Configuration.stories.d.ts.map +1 -1
  700. package/lib/core/Configuration/Configuration.stories.js +71 -24
  701. package/lib/core/Configuration/Configuration.stories.js.map +1 -1
  702. package/lib/core/Configuration/Configuration.styles.d.ts +6 -0
  703. package/lib/core/Configuration/Configuration.styles.d.ts.map +1 -0
  704. package/lib/core/Configuration/Configuration.styles.js +12 -0
  705. package/lib/core/Configuration/Configuration.styles.js.map +1 -0
  706. package/lib/core/CreditCard/CreditCard.stories.d.ts +11 -0
  707. package/lib/core/CreditCard/CreditCard.stories.d.ts.map +1 -0
  708. package/lib/core/CreditCard/CreditCard.stories.js +46 -0
  709. package/lib/core/CreditCard/CreditCard.stories.js.map +1 -0
  710. package/lib/core/Currency/Currency.stories.d.ts +7 -4
  711. package/lib/core/Currency/Currency.stories.d.ts.map +1 -1
  712. package/lib/core/Currency/Currency.stories.js +32 -14
  713. package/lib/core/Currency/Currency.stories.js.map +1 -1
  714. package/lib/core/DateTime/DateTime.stories.d.ts.map +1 -1
  715. package/lib/core/DateTime/DateTime.stories.js +12 -10
  716. package/lib/core/DateTime/DateTime.stories.js.map +1 -1
  717. package/lib/core/DateTime/DateTimeDisplay.stories.js +2 -2
  718. package/lib/core/DateTime/DateTimeDisplay.stories.js.map +1 -1
  719. package/lib/core/DateTime/DateTimePicker.stories.js +2 -2
  720. package/lib/core/DateTime/DateTimePicker.stories.js.map +1 -1
  721. package/lib/core/Drawer/Drawer.stories.js +4 -4
  722. package/lib/core/Drawer/Drawer.stories.js.map +1 -1
  723. package/lib/core/Email/EmailDisplay.stories.js +1 -1
  724. package/lib/core/Email/EmailDisplay.stories.js.map +1 -1
  725. package/lib/core/EmojiPicker/EmojiPicker.stories.js +3 -3
  726. package/lib/core/EmojiPicker/EmojiPicker.stories.js.map +1 -1
  727. package/lib/core/EmptyState/EmptyState.stories.js +1 -1
  728. package/lib/core/EmptyState/EmptyState.stories.js.map +1 -1
  729. package/lib/core/ErrorState/ErrorState.stories.js +1 -1
  730. package/lib/core/ErrorState/ErrorState.stories.js.map +1 -1
  731. package/lib/core/ExpandCollapse/ExpandCollapse.stories.js +2 -2
  732. package/lib/core/ExpandCollapse/ExpandCollapse.stories.js.map +1 -1
  733. package/lib/core/FieldGroup/FieldGroup.stories.d.ts +6 -4
  734. package/lib/core/FieldGroup/FieldGroup.stories.d.ts.map +1 -1
  735. package/lib/core/FieldGroup/FieldGroup.stories.js +7 -3
  736. package/lib/core/FieldGroup/FieldGroup.stories.js.map +1 -1
  737. package/lib/core/FieldGroup/FieldGroupList.mocks.d.ts +4 -0
  738. package/lib/core/FieldGroup/FieldGroupList.mocks.d.ts.map +1 -1
  739. package/lib/core/FieldGroup/FieldGroupList.mocks.js +47 -3
  740. package/lib/core/FieldGroup/FieldGroupList.mocks.js.map +1 -1
  741. package/lib/core/FieldGroup/FieldGroupList.stories.d.ts +9 -8
  742. package/lib/core/FieldGroup/FieldGroupList.stories.d.ts.map +1 -1
  743. package/lib/core/FieldGroup/FieldGroupList.stories.js +54 -67
  744. package/lib/core/FieldGroup/FieldGroupList.stories.js.map +1 -1
  745. package/lib/core/FieldValueList/FieldValueList.stories.d.ts +2 -2
  746. package/lib/core/FieldValueList/FieldValueList.stories.d.ts.map +1 -1
  747. package/lib/core/FieldValueList/FieldValueList.stories.js +4 -4
  748. package/lib/core/FieldValueList/FieldValueList.stories.js.map +1 -1
  749. package/lib/core/File/FileDisplay.stories.d.ts.map +1 -1
  750. package/lib/core/File/FileDisplay.stories.js +25 -37
  751. package/lib/core/File/FileDisplay.stories.js.map +1 -1
  752. package/lib/core/File/FileInput.stories.d.ts.map +1 -1
  753. package/lib/core/File/FileInput.stories.js +3 -3
  754. package/lib/core/File/FileInput.stories.js.map +1 -1
  755. package/lib/core/Flex/FlexContainer.stories.d.ts +1 -2
  756. package/lib/core/Flex/FlexContainer.stories.d.ts.map +1 -1
  757. package/lib/core/Flex/FlexContainer.stories.js +7 -7
  758. package/lib/core/Flex/FlexContainer.stories.js.map +1 -1
  759. package/lib/core/Flex/FlexItem.stories.js +3 -3
  760. package/lib/core/Flex/FlexItem.stories.js.map +1 -1
  761. package/lib/core/Form/Form.mocks.d.ts.map +1 -1
  762. package/lib/core/Form/Form.mocks.js +5 -5
  763. package/lib/core/Form/Form.mocks.js.map +1 -1
  764. package/lib/core/Form/Form.stories.d.ts +10 -0
  765. package/lib/core/Form/Form.stories.d.ts.map +1 -1
  766. package/lib/core/Form/Form.stories.js +47 -9
  767. package/lib/core/Form/Form.stories.js.map +1 -1
  768. package/lib/core/Grid/GridContainer.stories.d.ts +4 -5
  769. package/lib/core/Grid/GridContainer.stories.d.ts.map +1 -1
  770. package/lib/core/Grid/GridContainer.stories.js +9 -9
  771. package/lib/core/Grid/GridContainer.stories.js.map +1 -1
  772. package/lib/core/Grid/GridItem.stories.d.ts +1 -2
  773. package/lib/core/Grid/GridItem.stories.d.ts.map +1 -1
  774. package/lib/core/Grid/GridItem.stories.js +3 -3
  775. package/lib/core/Grid/GridItem.stories.js.map +1 -1
  776. package/lib/core/HTML/HTML.stories.d.ts +6 -0
  777. package/lib/core/HTML/HTML.stories.d.ts.map +1 -0
  778. package/lib/core/HTML/HTML.stories.js +14 -0
  779. package/lib/core/HTML/HTML.stories.js.map +1 -0
  780. package/lib/core/Icon/Icon.mocks.js +1 -1
  781. package/lib/core/Icon/Icon.mocks.js.map +1 -1
  782. package/lib/core/Icon/Icon.stories.d.ts +5 -6
  783. package/lib/core/Icon/Icon.stories.d.ts.map +1 -1
  784. package/lib/core/Icon/Icon.stories.js +12 -35
  785. package/lib/core/Icon/Icon.stories.js.map +1 -1
  786. package/lib/core/Icon/Icon.styles.d.ts +4 -0
  787. package/lib/core/Icon/Icon.styles.d.ts.map +1 -0
  788. package/lib/core/Icon/Icon.styles.js +25 -0
  789. package/lib/core/Icon/Icon.styles.js.map +1 -0
  790. package/lib/core/IconPicker/IconPicker.stories.js +2 -2
  791. package/lib/core/IconPicker/IconPicker.stories.js.map +1 -1
  792. package/lib/core/Image/Image.stories.d.ts +2 -3
  793. package/lib/core/Image/Image.stories.d.ts.map +1 -1
  794. package/lib/core/Image/Image.stories.js +1 -1
  795. package/lib/core/Image/Image.stories.js.map +1 -1
  796. package/lib/core/Input/Input.stories.d.ts +9 -0
  797. package/lib/core/Input/Input.stories.d.ts.map +1 -1
  798. package/lib/core/Input/Input.stories.js +39 -2
  799. package/lib/core/Input/Input.stories.js.map +1 -1
  800. package/lib/core/Label/Label.stories.d.ts +4 -0
  801. package/lib/core/Label/Label.stories.d.ts.map +1 -1
  802. package/lib/core/Label/Label.stories.js +17 -2
  803. package/lib/core/Label/Label.stories.js.map +1 -1
  804. package/lib/core/Lightbox/Lightbox.stories.js +3 -3
  805. package/lib/core/Lightbox/Lightbox.stories.js.map +1 -1
  806. package/lib/core/Link/Link.stories.d.ts +1 -11
  807. package/lib/core/Link/Link.stories.d.ts.map +1 -1
  808. package/lib/core/Link/Link.stories.js +3 -3
  809. package/lib/core/Link/Link.stories.js.map +1 -1
  810. package/lib/core/List/CommaSeparatedList.stories.d.ts +2 -2
  811. package/lib/core/List/CommaSeparatedList.stories.d.ts.map +1 -1
  812. package/lib/core/List/CommaSeparatedList.stories.js +1 -1
  813. package/lib/core/List/CommaSeparatedList.stories.js.map +1 -1
  814. package/lib/core/List/OrderedList.stories.js +1 -1
  815. package/lib/core/List/OrderedList.stories.js.map +1 -1
  816. package/lib/core/List/UnorderedList.stories.js +1 -1
  817. package/lib/core/List/UnorderedList.stories.js.map +1 -1
  818. package/lib/core/ListToolbar/ListToolbar.mocks.d.ts +9 -0
  819. package/lib/core/ListToolbar/ListToolbar.mocks.d.ts.map +1 -0
  820. package/lib/core/ListToolbar/ListToolbar.mocks.js +50 -0
  821. package/lib/core/ListToolbar/ListToolbar.mocks.js.map +1 -0
  822. package/lib/core/ListToolbar/ListToolbar.stories.d.ts +6 -0
  823. package/lib/core/ListToolbar/ListToolbar.stories.d.ts.map +1 -0
  824. package/lib/core/ListToolbar/ListToolbar.stories.js +79 -0
  825. package/lib/core/ListToolbar/ListToolbar.stories.js.map +1 -0
  826. package/lib/core/Location/Location.stories.js +4 -4
  827. package/lib/core/Location/Location.stories.js.map +1 -1
  828. package/lib/core/Menu/Menu.stories.js +5 -5
  829. package/lib/core/Menu/Menu.stories.js.map +1 -1
  830. package/lib/core/MenuButton/MenuButton.stories.d.ts +6 -6
  831. package/lib/core/MenuButton/MenuButton.stories.d.ts.map +1 -1
  832. package/lib/core/MenuButton/MenuButton.stories.js +9 -9
  833. package/lib/core/MenuButton/MenuButton.stories.js.map +1 -1
  834. package/lib/core/MetaList/MetaList.stories.js +3 -3
  835. package/lib/core/MetaList/MetaList.stories.js.map +1 -1
  836. package/lib/core/Modal/Modal.mocks.d.ts.map +1 -1
  837. package/lib/core/Modal/Modal.mocks.js +11 -11
  838. package/lib/core/Modal/Modal.mocks.js.map +1 -1
  839. package/lib/core/Modal/Modal.stories.d.ts +10 -5
  840. package/lib/core/Modal/Modal.stories.d.ts.map +1 -1
  841. package/lib/core/Modal/Modal.stories.js +40 -35
  842. package/lib/core/Modal/Modal.stories.js.map +1 -1
  843. package/lib/core/MultiStep/MultiStep.stories.d.ts +2 -3
  844. package/lib/core/MultiStep/MultiStep.stories.d.ts.map +1 -1
  845. package/lib/core/MultiStep/MultiStep.stories.js +3 -3
  846. package/lib/core/MultiStep/MultiStep.stories.js.map +1 -1
  847. package/lib/core/Number/Number.stories.d.ts +10 -6
  848. package/lib/core/Number/Number.stories.d.ts.map +1 -1
  849. package/lib/core/Number/Number.stories.js +41 -22
  850. package/lib/core/Number/Number.stories.js.map +1 -1
  851. package/lib/core/PageTemplates/PageTemplates.stories.d.ts +5 -3
  852. package/lib/core/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
  853. package/lib/core/PageTemplates/PageTemplates.stories.js +88 -42
  854. package/lib/core/PageTemplates/PageTemplates.stories.js.map +1 -1
  855. package/lib/core/PageTemplates/PageTemplates.styles.d.ts +1 -0
  856. package/lib/core/PageTemplates/PageTemplates.styles.d.ts.map +1 -1
  857. package/lib/core/PageTemplates/PageTemplates.styles.js +9 -0
  858. package/lib/core/PageTemplates/PageTemplates.styles.js.map +1 -1
  859. package/lib/core/Pagination/Pagination.stories.js +1 -1
  860. package/lib/core/Pagination/Pagination.stories.js.map +1 -1
  861. package/lib/core/Paragraph/ParagraphDisplay.stories.js +1 -1
  862. package/lib/core/Paragraph/ParagraphDisplay.stories.js.map +1 -1
  863. package/lib/core/Phone/Phone.stories.d.ts.map +1 -1
  864. package/lib/core/Phone/Phone.stories.js +4 -2
  865. package/lib/core/Phone/Phone.stories.js.map +1 -1
  866. package/lib/core/Popover/Popover.stories.d.ts +1 -1
  867. package/lib/core/Popover/Popover.stories.d.ts.map +1 -1
  868. package/lib/core/Popover/Popover.stories.js +2 -2
  869. package/lib/core/Popover/Popover.stories.js.map +1 -1
  870. package/lib/core/Progress/Progress.stories.d.ts +4 -0
  871. package/lib/core/Progress/Progress.stories.d.ts.map +1 -1
  872. package/lib/core/Progress/Progress.stories.js +20 -3
  873. package/lib/core/Progress/Progress.stories.js.map +1 -1
  874. package/lib/core/RadioButton/RadioButton.stories.d.ts +12 -0
  875. package/lib/core/RadioButton/RadioButton.stories.d.ts.map +1 -1
  876. package/lib/core/RadioButton/RadioButton.stories.js +53 -3
  877. package/lib/core/RadioButton/RadioButton.stories.js.map +1 -1
  878. package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts +3 -3
  879. package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts.map +1 -1
  880. package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.js +3 -3
  881. package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.js.map +1 -1
  882. package/lib/core/Rating/Rating.stories.d.ts +4 -0
  883. package/lib/core/Rating/Rating.stories.d.ts.map +1 -1
  884. package/lib/core/Rating/Rating.stories.js +17 -2
  885. package/lib/core/Rating/Rating.stories.js.map +1 -1
  886. package/lib/core/SearchInput/SearchInput.mocks.d.ts +12 -0
  887. package/lib/core/SearchInput/SearchInput.mocks.d.ts.map +1 -0
  888. package/lib/core/SearchInput/SearchInput.mocks.js +25 -0
  889. package/lib/core/SearchInput/SearchInput.mocks.js.map +1 -0
  890. package/lib/core/SearchInput/SearchInput.stories.d.ts +1 -0
  891. package/lib/core/SearchInput/SearchInput.stories.d.ts.map +1 -1
  892. package/lib/core/SearchInput/SearchInput.stories.js +30 -1
  893. package/lib/core/SearchInput/SearchInput.stories.js.map +1 -1
  894. package/lib/core/Select/Select.stories.d.ts +8 -0
  895. package/lib/core/Select/Select.stories.d.ts.map +1 -1
  896. package/lib/core/Select/Select.stories.js +29 -2
  897. package/lib/core/Select/Select.stories.js.map +1 -1
  898. package/lib/core/Sentiment/Sentiment.stories.d.ts +6 -0
  899. package/lib/core/Sentiment/Sentiment.stories.d.ts.map +1 -1
  900. package/lib/core/Sentiment/Sentiment.stories.js +30 -3
  901. package/lib/core/Sentiment/Sentiment.stories.js.map +1 -1
  902. package/lib/core/Slider/Slider.stories.d.ts +4 -3
  903. package/lib/core/Slider/Slider.stories.d.ts.map +1 -1
  904. package/lib/core/Slider/Slider.stories.js +2 -2
  905. package/lib/core/Slider/Slider.stories.js.map +1 -1
  906. package/lib/core/SummaryItem/SummaryItem.stories.d.ts +5 -5
  907. package/lib/core/SummaryItem/SummaryItem.stories.d.ts.map +1 -1
  908. package/lib/core/SummaryItem/SummaryItem.stories.js +4 -4
  909. package/lib/core/SummaryItem/SummaryItem.stories.js.map +1 -1
  910. package/lib/core/SummaryList/SummaryList.mocks.js +2 -2
  911. package/lib/core/SummaryList/SummaryList.mocks.js.map +1 -1
  912. package/lib/core/SummaryList/SummaryList.stories.d.ts +2 -2
  913. package/lib/core/SummaryList/SummaryList.stories.d.ts.map +1 -1
  914. package/lib/core/SummaryList/SummaryList.stories.js +5 -5
  915. package/lib/core/SummaryList/SummaryList.stories.js.map +1 -1
  916. package/lib/core/Switch/Switch.stories.d.ts +7 -0
  917. package/lib/core/Switch/Switch.stories.d.ts.map +1 -1
  918. package/lib/core/Switch/Switch.stories.js +34 -3
  919. package/lib/core/Switch/Switch.stories.js.map +1 -1
  920. package/lib/core/Table/Table.mocks.d.ts +6 -0
  921. package/lib/core/Table/Table.mocks.d.ts.map +1 -1
  922. package/lib/core/Table/Table.mocks.js +135 -1
  923. package/lib/core/Table/Table.mocks.js.map +1 -1
  924. package/lib/core/Table/Table.stories.d.ts +25 -0
  925. package/lib/core/Table/Table.stories.d.ts.map +1 -1
  926. package/lib/core/Table/Table.stories.js +118 -6
  927. package/lib/core/Table/Table.stories.js.map +1 -1
  928. package/lib/core/Tabs/Tabs.stories.d.ts +10 -2
  929. package/lib/core/Tabs/Tabs.stories.d.ts.map +1 -1
  930. package/lib/core/Tabs/Tabs.stories.js +32 -3
  931. package/lib/core/Tabs/Tabs.stories.js.map +1 -1
  932. package/lib/core/Text/Text.stories.d.ts +19 -0
  933. package/lib/core/Text/Text.stories.d.ts.map +1 -1
  934. package/lib/core/Text/Text.stories.js +103 -3
  935. package/lib/core/Text/Text.stories.js.map +1 -1
  936. package/lib/core/TextArea/TextArea.stories.d.ts +5 -0
  937. package/lib/core/TextArea/TextArea.stories.d.ts.map +1 -1
  938. package/lib/core/TextArea/TextArea.stories.js +21 -2
  939. package/lib/core/TextArea/TextArea.stories.js.map +1 -1
  940. package/lib/core/Toaster/Toaster.stories.d.ts +2 -3
  941. package/lib/core/Toaster/Toaster.stories.d.ts.map +1 -1
  942. package/lib/core/Toaster/Toaster.stories.js +15 -19
  943. package/lib/core/Toaster/Toaster.stories.js.map +1 -1
  944. package/lib/core/Tooltip/Tooltip.stories.d.ts +8 -6
  945. package/lib/core/Tooltip/Tooltip.stories.d.ts.map +1 -1
  946. package/lib/core/Tooltip/Tooltip.stories.js +21 -2
  947. package/lib/core/Tooltip/Tooltip.stories.js.map +1 -1
  948. package/lib/core/Tree/Tree.stories.d.ts +1 -2
  949. package/lib/core/Tree/Tree.stories.d.ts.map +1 -1
  950. package/lib/core/Tree/Tree.stories.js +5 -5
  951. package/lib/core/Tree/Tree.stories.js.map +1 -1
  952. package/lib/core/URL/URL.stories.js +1 -1
  953. package/lib/core/URL/URL.stories.js.map +1 -1
  954. package/lib/cs/Article/Article.stories.d.ts +4 -13
  955. package/lib/cs/Article/Article.stories.d.ts.map +1 -1
  956. package/lib/cs/Article/Article.stories.js +9 -9
  957. package/lib/cs/Article/Article.stories.js.map +1 -1
  958. package/lib/cs/ArticleList/ArticleList.stories.d.ts +4 -14
  959. package/lib/cs/ArticleList/ArticleList.stories.d.ts.map +1 -1
  960. package/lib/cs/ArticleList/ArticleList.stories.js +12 -11
  961. package/lib/cs/ArticleList/ArticleList.stories.js.map +1 -1
  962. package/lib/cs/CSCaseView/CSAppShell.stories.d.ts +3 -37
  963. package/lib/cs/CSCaseView/CSAppShell.stories.d.ts.map +1 -1
  964. package/lib/cs/CSCaseView/CSAppShell.stories.js +24 -37
  965. package/lib/cs/CSCaseView/CSAppShell.stories.js.map +1 -1
  966. package/lib/cs/CSCaseView/CSCaseView.mocks.d.ts +9 -0
  967. package/lib/cs/CSCaseView/CSCaseView.mocks.d.ts.map +1 -1
  968. package/lib/cs/CSCaseView/CSCaseView.mocks.js +16 -0
  969. package/lib/cs/CSCaseView/CSCaseView.mocks.js.map +1 -1
  970. package/lib/cs/CallControlPanel/CallControlPanel.stories.d.ts +3 -2
  971. package/lib/cs/CallControlPanel/CallControlPanel.stories.d.ts.map +1 -1
  972. package/lib/cs/CallControlPanel/CallControlPanel.stories.js +22 -7
  973. package/lib/cs/CallControlPanel/CallControlPanel.stories.js.map +1 -1
  974. package/lib/cs/DialPad/DialPad.stories.js +1 -1
  975. package/lib/cs/DialPad/DialPad.stories.js.map +1 -1
  976. package/lib/cs/IntelligentGuidance/IntelligentGuidance.stories.d.ts +4 -11
  977. package/lib/cs/IntelligentGuidance/IntelligentGuidance.stories.d.ts.map +1 -1
  978. package/lib/cs/IntelligentGuidance/IntelligentGuidance.stories.js +26 -26
  979. package/lib/cs/IntelligentGuidance/IntelligentGuidance.stories.js.map +1 -1
  980. package/lib/cs/InteractionNotification/InteractionNotification.stories.d.ts +7 -6
  981. package/lib/cs/InteractionNotification/InteractionNotification.stories.d.ts.map +1 -1
  982. package/lib/cs/InteractionNotification/InteractionNotification.stories.js +13 -5
  983. package/lib/cs/InteractionNotification/InteractionNotification.stories.js.map +1 -1
  984. package/lib/cs/InteractionTimer/InteractionTimer.mocks.d.ts +11 -0
  985. package/lib/cs/InteractionTimer/InteractionTimer.mocks.d.ts.map +1 -0
  986. package/lib/cs/InteractionTimer/InteractionTimer.mocks.js +29 -0
  987. package/lib/cs/InteractionTimer/InteractionTimer.mocks.js.map +1 -0
  988. package/lib/cs/InteractionTimer/InteractionTimer.stories.d.ts +3 -7
  989. package/lib/cs/InteractionTimer/InteractionTimer.stories.d.ts.map +1 -1
  990. package/lib/cs/InteractionTimer/InteractionTimer.stories.js +38 -43
  991. package/lib/cs/InteractionTimer/InteractionTimer.stories.js.map +1 -1
  992. package/lib/cs/TaskManager/TaskManager.mocks.d.ts +6 -0
  993. package/lib/cs/TaskManager/TaskManager.mocks.d.ts.map +1 -1
  994. package/lib/cs/TaskManager/TaskManager.mocks.js +7 -0
  995. package/lib/cs/TaskManager/TaskManager.mocks.js.map +1 -1
  996. package/lib/cs/TaskManager/TaskManager.stories.d.ts +6 -5
  997. package/lib/cs/TaskManager/TaskManager.stories.d.ts.map +1 -1
  998. package/lib/cs/TaskManager/TaskManager.stories.js +34 -38
  999. package/lib/cs/TaskManager/TaskManager.stories.js.map +1 -1
  1000. package/lib/cs/TaskManager/TaskManager.styles.d.ts +3 -0
  1001. package/lib/cs/TaskManager/TaskManager.styles.d.ts.map +1 -0
  1002. package/lib/cs/TaskManager/TaskManager.styles.js +8 -0
  1003. package/lib/cs/TaskManager/TaskManager.styles.js.map +1 -0
  1004. package/lib/dnd/DragDropList/DragDropList.mocks.d.ts +15 -0
  1005. package/lib/dnd/DragDropList/DragDropList.mocks.d.ts.map +1 -0
  1006. package/lib/dnd/DragDropList/DragDropList.mocks.js +32 -0
  1007. package/lib/dnd/DragDropList/DragDropList.mocks.js.map +1 -0
  1008. package/lib/dnd/DragDropList/DragDropList.stories.d.ts +8 -9
  1009. package/lib/dnd/DragDropList/DragDropList.stories.d.ts.map +1 -1
  1010. package/lib/dnd/DragDropList/DragDropList.stories.js +16 -87
  1011. package/lib/dnd/DragDropList/DragDropList.stories.js.map +1 -1
  1012. package/lib/dnd/DragDropList/DragDropList.styles.d.ts +6 -0
  1013. package/lib/dnd/DragDropList/DragDropList.styles.d.ts.map +1 -0
  1014. package/lib/dnd/DragDropList/DragDropList.styles.js +32 -0
  1015. package/lib/dnd/DragDropList/DragDropList.styles.js.map +1 -0
  1016. package/lib/rte/Editor/Editor.mocks.d.ts +309 -0
  1017. package/lib/rte/Editor/Editor.mocks.d.ts.map +1 -0
  1018. package/lib/rte/Editor/Editor.mocks.js +26 -0
  1019. package/lib/rte/Editor/Editor.mocks.js.map +1 -0
  1020. package/lib/rte/Editor/Editor.stories.d.ts +7 -8
  1021. package/lib/rte/Editor/Editor.stories.d.ts.map +1 -1
  1022. package/lib/rte/Editor/Editor.stories.js +8 -28
  1023. package/lib/rte/Editor/Editor.stories.js.map +1 -1
  1024. package/lib/rte/RichTextEditor/RichTextEditor.mocks.js +5 -5
  1025. package/lib/rte/RichTextEditor/RichTextEditor.mocks.js.map +1 -1
  1026. package/lib/rte/RichTextEditor/RichTextEditor.stories.d.ts +2 -3
  1027. package/lib/rte/RichTextEditor/RichTextEditor.stories.d.ts.map +1 -1
  1028. package/lib/rte/RichTextEditor/RichTextEditor.stories.js +5 -5
  1029. package/lib/rte/RichTextEditor/RichTextEditor.stories.js.map +1 -1
  1030. package/lib/rte/RichTextEditor/RichTextViewer.stories.d.ts +5 -5
  1031. package/lib/rte/RichTextEditor/RichTextViewer.stories.d.ts.map +1 -1
  1032. package/lib/rte/RichTextEditor/RichTextViewer.stories.js +19 -6
  1033. package/lib/rte/RichTextEditor/RichTextViewer.stories.js.map +1 -1
  1034. package/lib/social/Chat/Chat.stories.d.ts +6 -7
  1035. package/lib/social/Chat/Chat.stories.d.ts.map +1 -1
  1036. package/lib/social/Chat/Chat.stories.js +31 -31
  1037. package/lib/social/Chat/Chat.stories.js.map +1 -1
  1038. package/lib/social/Chat/RepeatingView.mocks.d.ts +14 -0
  1039. package/lib/social/Chat/RepeatingView.mocks.d.ts.map +1 -0
  1040. package/lib/social/Chat/RepeatingView.mocks.js +11 -0
  1041. package/lib/social/Chat/RepeatingView.mocks.js.map +1 -0
  1042. package/lib/social/Chat/RepeatingView.stories.d.ts +6 -17
  1043. package/lib/social/Chat/RepeatingView.stories.d.ts.map +1 -1
  1044. package/lib/social/Chat/RepeatingView.stories.js +18 -48
  1045. package/lib/social/Chat/RepeatingView.stories.js.map +1 -1
  1046. package/lib/social/Chat/RepeatingView.styles.d.ts +2 -0
  1047. package/lib/social/Chat/RepeatingView.styles.d.ts.map +1 -0
  1048. package/lib/social/Chat/RepeatingView.styles.js +22 -0
  1049. package/lib/social/Chat/RepeatingView.styles.js.map +1 -0
  1050. package/lib/social/Email/Email.mocks.d.ts +172 -2
  1051. package/lib/social/Email/Email.mocks.d.ts.map +1 -1
  1052. package/lib/social/Email/Email.mocks.js +420 -1
  1053. package/lib/social/Email/Email.mocks.js.map +1 -1
  1054. package/lib/social/Email/Email.stories.d.ts +19 -25
  1055. package/lib/social/Email/Email.stories.d.ts.map +1 -1
  1056. package/lib/social/Email/Email.stories.js +148 -440
  1057. package/lib/social/Email/Email.stories.js.map +1 -1
  1058. package/lib/social/Email/Email.styles.d.ts +4 -0
  1059. package/lib/social/Email/Email.styles.d.ts.map +1 -0
  1060. package/lib/social/Email/Email.styles.js +14 -0
  1061. package/lib/social/Email/Email.styles.js.map +1 -0
  1062. package/lib/social/Feed/Feed.mocks.d.ts.map +1 -1
  1063. package/lib/social/Feed/Feed.mocks.js +40 -40
  1064. package/lib/social/Feed/Feed.mocks.js.map +1 -1
  1065. package/lib/social/Feed/Feed.stories.d.ts +6 -11
  1066. package/lib/social/Feed/Feed.stories.d.ts.map +1 -1
  1067. package/lib/social/Feed/Feed.stories.js +30 -25
  1068. package/lib/social/Feed/Feed.stories.js.map +1 -1
  1069. package/lib/social/Feed/FeedNewPost.stories.d.ts +7 -14
  1070. package/lib/social/Feed/FeedNewPost.stories.d.ts.map +1 -1
  1071. package/lib/social/Feed/FeedNewPost.stories.js +2 -2
  1072. package/lib/social/Feed/FeedNewPost.stories.js.map +1 -1
  1073. package/lib/social/Feed/FeedPost.stories.d.ts +4 -5
  1074. package/lib/social/Feed/FeedPost.stories.d.ts.map +1 -1
  1075. package/lib/social/Feed/FeedPost.stories.js +37 -27
  1076. package/lib/social/Feed/FeedPost.stories.js.map +1 -1
  1077. package/lib/social/Feed/FeedReply.stories.d.ts +10 -10
  1078. package/lib/social/Feed/FeedReply.stories.d.ts.map +1 -1
  1079. package/lib/social/Feed/FeedReply.stories.js +25 -20
  1080. package/lib/social/Feed/FeedReply.stories.js.map +1 -1
  1081. package/lib/social/Feed/FeedReplyInput.stories.d.ts +7 -12
  1082. package/lib/social/Feed/FeedReplyInput.stories.d.ts.map +1 -1
  1083. package/lib/social/Feed/FeedReplyInput.stories.js +2 -2
  1084. package/lib/social/Feed/FeedReplyInput.stories.js.map +1 -1
  1085. package/lib/work/AppAnnouncement/AppAnnouncement.stories.js +1 -1
  1086. package/lib/work/AppAnnouncement/AppAnnouncement.stories.js.map +1 -1
  1087. package/lib/work/CaseView/Attachments.mocks.js +15 -15
  1088. package/lib/work/CaseView/Attachments.mocks.js.map +1 -1
  1089. package/lib/work/CaseView/CaseView.mocks.d.ts.map +1 -1
  1090. package/lib/work/CaseView/CaseView.mocks.js +8 -8
  1091. package/lib/work/CaseView/CaseView.mocks.js.map +1 -1
  1092. package/lib/work/CaseView/CaseView.stories.d.ts +4 -11
  1093. package/lib/work/CaseView/CaseView.stories.d.ts.map +1 -1
  1094. package/lib/work/CaseView/CaseView.stories.js +28 -28
  1095. package/lib/work/CaseView/CaseView.stories.js.map +1 -1
  1096. package/lib/work/CaseView/Details.mocks.d.ts.map +1 -1
  1097. package/lib/work/CaseView/Details.mocks.js +2 -2
  1098. package/lib/work/CaseView/Details.mocks.js.map +1 -1
  1099. package/lib/work/CaseView/FileService.mock.js +1 -1
  1100. package/lib/work/CaseView/FileService.mock.js.map +1 -1
  1101. package/lib/work/CaseView/MobileCaseView.stories.d.ts +3 -9
  1102. package/lib/work/CaseView/MobileCaseView.stories.d.ts.map +1 -1
  1103. package/lib/work/CaseView/MobileCaseView.stories.js +1 -1
  1104. package/lib/work/CaseView/MobileCaseView.stories.js.map +1 -1
  1105. package/lib/work/CaseView/Pulse.mocks.d.ts.map +1 -1
  1106. package/lib/work/CaseView/Pulse.mocks.js +3 -3
  1107. package/lib/work/CaseView/Pulse.mocks.js.map +1 -1
  1108. package/lib/work/ConfigurableLayout/ConfigurableLayout.mocks.d.ts +45 -0
  1109. package/lib/work/ConfigurableLayout/ConfigurableLayout.mocks.d.ts.map +1 -0
  1110. package/lib/work/ConfigurableLayout/ConfigurableLayout.mocks.js +165 -0
  1111. package/lib/work/ConfigurableLayout/ConfigurableLayout.mocks.js.map +1 -0
  1112. package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts +3 -8
  1113. package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts.map +1 -1
  1114. package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.js +5 -175
  1115. package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.js.map +1 -1
  1116. package/lib/work/ConfigurableLayout/ConfigurableLayout.styles.d.ts +4 -0
  1117. package/lib/work/ConfigurableLayout/ConfigurableLayout.styles.d.ts.map +1 -0
  1118. package/lib/work/ConfigurableLayout/ConfigurableLayout.styles.js +11 -0
  1119. package/lib/work/ConfigurableLayout/ConfigurableLayout.styles.js.map +1 -0
  1120. package/lib/work/Confirmation/Confirmation.stories.d.ts.map +1 -1
  1121. package/lib/work/Confirmation/Confirmation.stories.js +4 -4
  1122. package/lib/work/Confirmation/Confirmation.stories.js.map +1 -1
  1123. package/lib/work/Details/Details.stories.d.ts.map +1 -1
  1124. package/lib/work/Details/Details.stories.js +56 -53
  1125. package/lib/work/Details/Details.stories.js.map +1 -1
  1126. package/lib/work/Glimpse/Glimpse.stories.d.ts.map +1 -1
  1127. package/lib/work/Glimpse/Glimpse.stories.js +3 -3
  1128. package/lib/work/Glimpse/Glimpse.stories.js.map +1 -1
  1129. package/lib/work/SearchResults/SearchResults.mocks.js +4 -4
  1130. package/lib/work/SearchResults/SearchResults.mocks.js.map +1 -1
  1131. package/lib/work/SearchResults/SearchResults.stories.d.ts.map +1 -1
  1132. package/lib/work/SearchResults/SearchResults.stories.js +12 -12
  1133. package/lib/work/SearchResults/SearchResults.stories.js.map +1 -1
  1134. package/lib/work/Stages/Stages.stories.js +2 -2
  1135. package/lib/work/Stages/Stages.stories.js.map +1 -1
  1136. package/lib/work/Stakeholders/Stakeholders.mocks.d.ts.map +1 -1
  1137. package/lib/work/Stakeholders/Stakeholders.mocks.js +4 -4
  1138. package/lib/work/Stakeholders/Stakeholders.mocks.js.map +1 -1
  1139. package/lib/work/Stakeholders/Stakeholders.stories.d.ts +2 -3
  1140. package/lib/work/Stakeholders/Stakeholders.stories.d.ts.map +1 -1
  1141. package/lib/work/Stakeholders/Stakeholders.stories.js +2 -1
  1142. package/lib/work/Stakeholders/Stakeholders.stories.js.map +1 -1
  1143. package/lib/work/Tags/Tags.stories.js +1 -1
  1144. package/lib/work/Tags/Tags.stories.js.map +1 -1
  1145. package/lib/work/Tasks/TaskList.stories.js +3 -3
  1146. package/lib/work/Tasks/TaskList.stories.js.map +1 -1
  1147. package/lib/work/Tasks/Tasks.stories.js +11 -11
  1148. package/lib/work/Tasks/Tasks.stories.js.map +1 -1
  1149. package/lib/work/Timeline/Timeline.mocks.js +8 -8
  1150. package/lib/work/Timeline/Timeline.mocks.js.map +1 -1
  1151. package/lib/work/Timeline/Timeline.stories.d.ts +1 -0
  1152. package/lib/work/Timeline/Timeline.stories.d.ts.map +1 -1
  1153. package/lib/work/Timeline/Timeline.stories.js +24 -3
  1154. package/lib/work/Timeline/Timeline.stories.js.map +1 -1
  1155. package/package.json +22 -18
  1156. package/jsx/build/AppShell/AppShell.mocks.js.map +0 -1
  1157. package/jsx/build/FlowModeller/FlowModeller.mocks.js.map +0 -1
  1158. package/jsx/cs/CSCaseView/CSCaseView.mocks.js.map +0 -1
  1159. package/jsx/social/Email/Email.mocks.js +0 -348
  1160. package/jsx/social/Email/Email.mocks.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"AppHeader.stories.d.ts","sourceRoot":"","sources":["../../../src/build/AppHeader/AppHeader.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAG/C,OAAO,EAAa,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;;AAExE,wBAMU;AAEV,UAAU,mBAAoB,SAAQ,iBAAiB;IACrD,WAAW,EAAE,OAAO,CAAC;CACtB;AAED,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,mBAAmB,CA+EhD,CAAC"}
1
+ {"version":3,"file":"AppHeader.stories.d.ts","sourceRoot":"","sources":["../../../src/build/AppHeader/AppHeader.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAG/C,OAAO,EAAa,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;;AAExE,wBAMU;AAEV,UAAU,mBAAoB,SAAQ,iBAAiB;IACrD,WAAW,EAAE,OAAO,CAAC;CACtB;AAED,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,mBAAmB,CAoFhD,CAAC"}
@@ -9,6 +9,9 @@ export default {
9
9
  };
10
10
  export const appHeader = (args) => (<AppHeader brand={{
11
11
  name: 'AppStudioX',
12
+ visual: {
13
+ icon: 'pegasus'
14
+ },
12
15
  onClick: action('Clicked application')
13
16
  }} utils={{
14
17
  avatar: { name: 'Lee Ram' },
@@ -53,7 +56,9 @@ export const appHeader = (args) => (<AppHeader brand={{
53
56
  }
54
57
  ]
55
58
  },
56
- onPreviewClick: args.showPreview ? action('Clicked preview button') : undefined
59
+ action: args.showPreview
60
+ ? { id: 'preview', text: 'Preview', onClick: action('Clicked preview button') }
61
+ : undefined
57
62
  }} links={[
58
63
  {
59
64
  id: '1',
@@ -1 +1 @@
1
- {"version":3,"file":"AppHeader.stories.jsx","sourceRoot":"","sources":["../../../src/build/AppHeader/AppHeader.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAElD,OAAO,EAAE,SAAS,EAAqB,MAAM,0BAA0B,CAAC;AAExE,eAAe;IACb,KAAK,EAAE,iBAAiB;IACxB,SAAS,EAAE,SAAS;IACpB,UAAU,EAAE;QACV,MAAM,EAAE,YAAY;KACrB;CACM,CAAC;AAMV,MAAM,CAAC,MAAM,SAAS,GAA+B,CAAC,IAAyB,EAAE,EAAE,CAAC,CAClF,CAAC,SAAS,CACR,KAAK,CAAC,CAAC;QACL,IAAI,EAAE,YAAY;QAClB,OAAO,EAAE,MAAM,CAAC,qBAAqB,CAAC;KACvC,CAAC,CACF,KAAK,CAAC,CAAC;QACL,MAAM,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;QAC3B,MAAM,EAAE;YACN,WAAW,EAAE,4BAA4B;SAC1C;QACD,MAAM,EAAE;YACN,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,KAAK,EAAE;gBACL;oBACE,OAAO,EAAE,kBAAkB;oBAC3B,EAAE,EAAE,gBAAgB;oBACpB,OAAO,EAAE,MAAM,CAAC,wBAAwB,CAAC;iBAC1C;gBACD;oBACE,OAAO,EAAE,cAAc;oBACvB,EAAE,EAAE,aAAa;oBACjB,OAAO,EAAE,MAAM,CAAC,qBAAqB,CAAC;iBACvC;gBACD;oBACE,OAAO,EAAE,aAAa;oBACtB,EAAE,EAAE,YAAY;oBAChB,OAAO,EAAE,MAAM,CAAC,oBAAoB,CAAC;iBACtC;gBACD;oBACE,OAAO,EAAE,eAAe;oBACxB,EAA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AAE,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE;IACvE,IAAI,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;IACnC,KAAK,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;IACtC,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IACzC,WAAW,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;CAC9C,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\nimport { action } from '@storybook/addon-actions';\n\nimport { AppHeader, BranchButtonProps } from '@pega/cosmos-react-build';\n\nexport default {\n title: 'Build/AppHeader',\n component: AppHeader,\n parameters: {\n layout: 'fullscreen'\n }\n} as Meta;\n\ninterface AppHeaderStoryProps extends BranchButtonProps {\n showPreview: boolean;\n}\n\nexport const appHeader: Story<AppHeaderStoryProps> = (args: AppHeaderStoryProps) => (\n <AppHeader\n brand={{\n name: 'AppStudioX',\n onClick: action('Clicked application')\n }}\n utils={{\n avatar: { name: 'Lee Ram' },\n search: {\n placeholder: 'Search anything, anywhere…'\n },\n branch: {\n text: args.text,\n count: args.count,\n variant: args.variant,\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 onPreviewClick: args.showPreview ? action('Clicked preview button') : 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\nappHeader.args = {\n variant: undefined,\n text: 'Alpha branch',\n count: null,\n compact: false,\n showPreview: true\n};\n\nappHeader.argTypes = {\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};\n"]}
1
+ {"version":3,"file":"AppHeader.stories.jsx","sourceRoot":"","sources":["../../../src/build/AppHeader/AppHeader.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAElD,OAAO,EAAE,SAAS,EAAqB,MAAM,0BAA0B,CAAC;AAExE,eAAe;IACb,KAAK,EAAE,iBAAiB;IACxB,SAAS,EAAE,SAAS;IACpB,UAAU,EAAE;QACV,MAAM,EAAE,YAAY;KACrB;CACM,CAAC;AAMV,MAAM,CAAC,MAAM,SAAS,GAA+B,CAAC,IAAyB,EAAE,EAAE,CAAC,CAClF,CAAC,SAAS,CACR,KAAK,CAAC,CAAC;QACL,IAAI,EAAE,YAAY;QAClB,MAAM,EAAE;YACN,IAAI,EAAE,SAAS;SAChB;QACD,OAAO,EAAE,MAAM,CAAC,qBAAqB,CAAC;KACvC,CAAC,CACF,KAAK,CAAC,CAAC;QACL,MAAM,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;QAC3B,MAAM,EAAE;YACN,WAAW,EAAE,4BAA4B;SAC1C;QACD,MAAM,EAAE;YACN,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,KAAK,EAAE,IAAI,CAA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OAAO;YACb,OAAO,EAAE,MAAM,CAAC,eAAe,CAAC;SACjC;QACD;YACE,EAAE,EAAE,GAAG;YACP,IAAI,EAAE,gBAAgB;YACtB,OAAO,EAAE,MAAM,CAAC,wBAAwB,CAAC;SAC1C;QACD;YACE,EAAE,EAAE,GAAG;YACP,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,MAAM,CAAC,gBAAgB,CAAC;SAClC;KACF,CAAC,EACF,CACH,CAAC;AAEF,SAAS,CAAC,IAAI,GAAG;IACf,OAAO,EAAE,SAAS;IAClB,IAAI,EAAE,cAAc;IACpB,KAAK,EAAE,IAAI;IACX,OAAO,EAAE,KAAK;IACd,WAAW,EAAE,IAAI;CAClB,CAAC;AAEF,SAAS,CAAC,QAAQ,GAAG;IACnB,OAAO,EAAE,EAAE,OAAO,EAAE,CAAC,SAAS,EAAE,QAAQ,CAAC,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE;IACvE,IAAI,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;IACnC,KAAK,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;IACtC,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IACzC,WAAW,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;CAC9C,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\nimport { action } from '@storybook/addon-actions';\n\nimport { AppHeader, BranchButtonProps } from '@pega/cosmos-react-build';\n\nexport default {\n title: 'Build/AppHeader',\n component: AppHeader,\n parameters: {\n layout: 'fullscreen'\n }\n} as Meta;\n\ninterface AppHeaderStoryProps extends BranchButtonProps {\n showPreview: boolean;\n}\n\nexport const appHeader: Story<AppHeaderStoryProps> = (args: AppHeaderStoryProps) => (\n <AppHeader\n brand={{\n name: 'AppStudioX',\n visual: {\n icon: 'pegasus'\n },\n onClick: action('Clicked application')\n }}\n utils={{\n avatar: { name: 'Lee Ram' },\n search: {\n placeholder: 'Search anything, anywhere…'\n },\n branch: {\n text: args.text,\n count: args.count,\n variant: args.variant,\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 ? { id: 'preview', text: 'Preview', onClick: action('Clicked preview button') }\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\nappHeader.args = {\n variant: undefined,\n text: 'Alpha branch',\n count: null,\n compact: false,\n showPreview: true\n};\n\nappHeader.argTypes = {\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};\n"]}
@@ -1,3 +1,21 @@
1
+ import { FC } from 'react';
2
+ export interface TabbedPageStoryProps {
3
+ pageContent: PageContentProps;
4
+ showBreadcrumbs: boolean;
5
+ }
6
+ export interface PageContentProps {
7
+ id: string;
8
+ data: {
9
+ pageTitle: string;
10
+ breadcrumbsPath: string;
11
+ tabs: string[];
12
+ };
13
+ }
14
+ export declare const getPath: (args: TabbedPageStoryProps) => {
15
+ id: string;
16
+ primary: string;
17
+ href: string | undefined;
18
+ }[] | undefined;
1
19
  export declare const appExplorerMenuList: {
2
20
  id: string;
3
21
  label: string;
@@ -47,4 +65,5 @@ export declare const treeList: ({
47
65
  label: string;
48
66
  }[];
49
67
  })[];
68
+ export declare const TabbedPageComp: FC<TabbedPageStoryProps>;
50
69
  //# sourceMappingURL=AppShell.mocks.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AppShell.mocks.d.ts","sourceRoot":"","sources":["../../../src/build/AppShell/AppShell.mocks.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;GA2D/B,CAAC;AAEF,eAAO,MAAM,gBAAgB;;;;GAqB5B,CAAC;AAEF,eAAO,MAAM,QAAQ;;;;;;;GAkSpB,CAAC;AAEF,eAAO,MAAM,cAAc;;;;;;;GAiC1B,CAAC;AAEF,eAAO,MAAM,QAAQ;;;;;;;;;;;IA+FpB,CAAC"}
1
+ {"version":3,"file":"AppShell.mocks.d.ts","sourceRoot":"","sources":["../../../src/build/AppShell/AppShell.mocks.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAK3B,MAAM,WAAW,oBAAoB;IACnC,WAAW,EAAE,gBAAgB,CAAC;IAC9B,eAAe,EAAE,OAAO,CAAC;CAC1B;AAED,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE;QACJ,SAAS,EAAE,MAAM,CAAC;QAClB,eAAe,EAAE,MAAM,CAAC;QACxB,IAAI,EAAE,MAAM,EAAE,CAAC;KAChB,CAAC;CACH;AAED,eAAO,MAAM,OAAO,SAAU,oBAAoB;;;;eAqBjD,CAAC;AAEF,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;GA2D/B,CAAC;AAEF,eAAO,MAAM,gBAAgB;;;;GAqB5B,CAAC;AAEF,eAAO,MAAM,QAAQ;;;;;;;GAkSpB,CAAC;AAEF,eAAO,MAAM,cAAc;;;;;;;GAiC1B,CAAC;AAEF,eAAO,MAAM,QAAQ;;;;;;;;;;;IA+FpB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,oBAAoB,CAwBnD,CAAC"}
@@ -1,3 +1,19 @@
1
+ import { TabbedPage, Text } from '@pega/cosmos-react-core';
2
+ export const getPath = (args) => {
3
+ const { showBreadcrumbs, pageContent: { data: { pageTitle, breadcrumbsPath } } } = args;
4
+ if (showBreadcrumbs) {
5
+ const path = pageTitle === 'Overview' ? 'Home' : breadcrumbsPath;
6
+ return path
7
+ ? path.split(',').map((crumb, i) => {
8
+ return {
9
+ id: crumb,
10
+ primary: crumb,
11
+ href: i < 3 ? `#${crumb.replace(/\s/g, '-')}` : undefined
12
+ };
13
+ })
14
+ : [];
15
+ }
16
+ };
1
17
  export const appExplorerMenuList = [
2
18
  {
3
19
  id: '50',
@@ -500,4 +516,20 @@ export const treeList = [
500
516
  ]
501
517
  }
502
518
  ];
503
- //# sourceMappingURL=AppShell.mocks.js.map
519
+ export const TabbedPageComp = (args) => {
520
+ const { pageContent, showBreadcrumbs } = args;
521
+ return (<TabbedPage path={getPath({ showBreadcrumbs, pageContent })} title={pageContent.data.pageTitle} tabs={{
522
+ tabs: pageContent.data.tabs.map((name, i) => {
523
+ const id = `${i + 1}`;
524
+ return {
525
+ id,
526
+ name,
527
+ content: (<Text variant='h1' as='div'>
528
+ {`Tab ${id} content`}
529
+ </Text>)
530
+ };
531
+ }),
532
+ type: 'horizontal'
533
+ }}/>);
534
+ };
535
+ //# sourceMappingURL=AppShell.mocks.jsx.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AppShell.mocks.jsx","sourceRoot":"","sources":["../../../src/build/AppShell/AppShell.mocks.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE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AC,UAAU,CACT,IAAI,CAAC,CAAC,OAAO,CAAC,EAAE,eAAe,EAAE,WAAW,EAAE,CAAC,CAAC,CAChD,KAAK,CAAC,CAAC,WAAW,CAAC,IAAI,CAAC,SAAS,CAAC,CAClC,IAAI,CAAC,CAAC;YACJ,IAAI,EAAE,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE;gBAC1C,MAAM,EAAE,GAAG,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC;gBACtB,OAAO;oBACL,EAAE;oBACF,IAAI;oBACJ,OAAO,EAAE,CACP,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,KAAK,CACzB;gBAAA,CAAC,OAAO,EAAE,UAAU,CACtB;cAAA,EAAE,IAAI,CAAC,CACR;iBACF,CAAC;YACJ,CAAC,CAAC;YACF,IAAI,EAAE,YAAY;SACnB,CAAC,EACF,CACH,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { FC } from 'react';\n\nimport { TabbedPage, Text } from '@pega/cosmos-react-core';\n\n// cSpell:words SSOT\nexport interface TabbedPageStoryProps {\n pageContent: PageContentProps;\n showBreadcrumbs: boolean;\n}\n\nexport interface PageContentProps {\n id: string;\n data: {\n pageTitle: string;\n breadcrumbsPath: string;\n tabs: string[];\n };\n}\n\nexport const getPath = (args: TabbedPageStoryProps) => {\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\nexport const appExplorerMenuList = [\n {\n id: '50',\n label: 'SysAdmin',\n nodes: [\n {\n id: '54',\n label: 'Class',\n nodes: [\n {\n id: '55',\n label: 'OJ4RFS-PegaTest-Work'\n }\n ]\n }\n ]\n },\n {\n id: '51',\n label: 'XCompass',\n nodes: [\n {\n id: '56',\n label: 'Data Model'\n },\n {\n id: '57',\n label: 'Process',\n nodes: [\n {\n id: '60',\n label: 'Case Type'\n },\n {\n id: '61',\n label: 'Flow'\n },\n {\n id: '62',\n label: 'Work Parties'\n }\n ]\n },\n {\n id: '58',\n label: 'Reports',\n nodes: [\n {\n id: '63',\n label: 'Report Definition'\n }\n ]\n },\n {\n id: '59',\n label: 'SysAdmin'\n }\n ]\n }\n];\n\nexport const branchesMenuList = [\n {\n icon: 'nodes-right',\n id: '40',\n label: 'Theme-Cosmos'\n },\n {\n icon: 'nodes-right',\n id: '41',\n label: 'PegaDevelopment'\n },\n {\n icon: 'nodes-right',\n id: '42',\n label: 'PegaSSOT'\n },\n {\n icon: 'nodes-right',\n id: '43',\n label: 'PegaRULES'\n }\n];\n\nexport const contents = [\n {\n id: '1',\n data: {\n pageTitle: 'Application definition',\n breadcrumbsPath: 'Home',\n tabs: ['Application']\n }\n },\n {\n id: '100',\n data: {\n pageTitle: 'Decisions',\n breadcrumbsPath: 'Home, U+ Desk',\n tabs: ['Application', 'User Interface']\n }\n },\n {\n id: '101',\n data: {\n pageTitle: 'Validations',\n breadcrumbsPath: 'Home, U+ Desk',\n tabs: ['Application']\n }\n },\n {\n id: '102',\n data: {\n pageTitle: 'When',\n breadcrumbsPath: 'Home, U+ Desk',\n tabs: ['Application', 'User Interface']\n }\n },\n {\n id: '103',\n data: {\n pageTitle: 'Configuration sets',\n breadcrumbsPath: 'Home, U+ Desk',\n tabs: ['Application']\n }\n },\n {\n id: '104',\n data: {\n pageTitle: 'Data pages',\n breadcrumbsPath: 'Home, U+ Desk',\n tabs: ['Application', 'User Interface']\n }\n },\n {\n id: '105',\n data: {\n pageTitle: 'Data sources',\n breadcrumbsPath: 'Home, U+ Desk',\n tabs: ['Application']\n }\n },\n {\n id: '106',\n data: {\n pageTitle: 'Data transforms',\n breadcrumbsPath: 'Home, U+ Desk',\n tabs: ['Application', 'User Interface']\n }\n },\n {\n id: '107',\n data: {\n pageTitle: 'Fields',\n breadcrumbsPath: 'Home, U+ Desk',\n tabs: ['Application']\n }\n },\n {\n id: '108',\n data: {\n pageTitle: 'Queries',\n breadcrumbsPath: 'Home, U+ Desk',\n tabs: ['Application', 'User Interface']\n }\n },\n {\n id: '109',\n data: {\n pageTitle: 'Email account',\n breadcrumbsPath: 'Home, U+ Desk',\n tabs: ['Application']\n }\n },\n {\n id: '110',\n data: {\n pageTitle: 'Integration systems',\n breadcrumbsPath: 'Home, U+ Desk',\n tabs: ['Application', 'User Interface']\n }\n },\n {\n id: '111',\n data: {\n pageTitle: 'Actions',\n breadcrumbsPath: 'Home, U+ Desk',\n tabs: ['Application']\n }\n },\n {\n id: '112',\n data: {\n pageTitle: 'Automations',\n breadcrumbsPath: 'Home, U+ Desk',\n tabs: ['Application', 'User Interface']\n }\n },\n {\n id: '113',\n data: {\n pageTitle: 'Access groups',\n breadcrumbsPath: 'Home, U+ Desk',\n tabs: ['Application']\n }\n },\n {\n id: '114',\n data: {\n pageTitle: 'Access roles',\n breadcrumbsPath: 'Home, U+ Desk',\n tabs: ['Application', 'User Interface']\n }\n },\n {\n id: '55',\n data: {\n pageTitle: 'OJ4RFS-PegaTest-Work',\n breadcrumbsPath: 'Home, U+ Desk',\n tabs: ['Application']\n }\n },\n {\n id: '',\n data: {\n pageTitle: 'OJ4RFS-PegaTest-Work',\n breadcrumbsPath: 'Home, U+ Desk',\n tabs: ['Application', 'User Interface']\n }\n },\n {\n id: '56',\n data: {\n pageTitle: 'Data Model',\n breadcrumbsPath: 'Home, U+ Desk',\n tabs: ['Application']\n }\n },\n {\n id: '60',\n data: {\n pageTitle: 'Case Type',\n breadcrumbsPath: 'Home, U+ Desk',\n tabs: ['Application', 'User Interface']\n }\n },\n {\n id: '61',\n data: {\n pageTitle: 'Flow',\n breadcrumbsPath: 'Home, U+ Desk',\n tabs: ['Application']\n }\n },\n {\n id: '62',\n data: {\n pageTitle: 'Work Parties',\n breadcrumbsPath: 'Home, U+ Desk',\n tabs: ['Application', 'User Interface']\n }\n },\n {\n id: '63',\n data: {\n pageTitle: 'Report Definition',\n breadcrumbsPath: 'Home, U+ Desk',\n tabs: ['Application']\n }\n },\n {\n id: '59',\n data: {\n pageTitle: 'SysAdmin',\n breadcrumbsPath: 'Home, U+ Desk',\n tabs: ['Application', 'User Interface']\n }\n },\n\n {\n id: '40',\n data: {\n pageTitle: 'Theme-Cosmos',\n breadcrumbsPath: 'Home, U+ Desk',\n tabs: ['Application']\n }\n },\n {\n id: '41',\n data: {\n pageTitle: 'PegaDevelopment',\n breadcrumbsPath: 'Home, U+ Desk',\n tabs: ['Application', 'User Interface']\n }\n },\n {\n id: '42',\n data: {\n pageTitle: 'PegaSSOT',\n breadcrumbsPath: 'Home, U+ Desk',\n tabs: ['Application']\n }\n },\n {\n id: '43',\n data: {\n pageTitle: 'PegaRULES',\n breadcrumbsPath: 'Home, U+ Desk',\n tabs: ['Application', 'User Interface']\n }\n },\n {\n id: '25',\n data: {\n pageTitle: 'Association',\n breadcrumbsPath: 'Home, U+ Desk',\n tabs: ['Application']\n }\n },\n {\n id: '26',\n data: {\n pageTitle: 'Data Flow',\n breadcrumbsPath: 'Home, U+ Desk',\n tabs: ['Application', 'User Interface']\n }\n },\n {\n id: '27',\n data: {\n pageTitle: 'Adaptive Model',\n breadcrumbsPath: 'Home, U+ Desk',\n tabs: ['Application']\n }\n },\n {\n id: '28',\n data: {\n pageTitle: 'Case Match',\n breadcrumbsPath: 'Home, U+ Desk',\n tabs: ['Application', 'User Interface']\n }\n },\n {\n id: '29',\n data: {\n pageTitle: 'Connect File',\n breadcrumbsPath: 'Home, U+ Desk',\n tabs: ['Application']\n }\n },\n {\n id: '30',\n data: {\n pageTitle: 'Connect Cassandra',\n breadcrumbsPath: 'Home, U+ Desk',\n tabs: ['Application', 'User Interface']\n }\n },\n {\n id: '31',\n data: {\n pageTitle: 'EForm File',\n breadcrumbsPath: 'Home, U+ Desk',\n tabs: ['Application']\n }\n },\n {\n id: '32',\n data: {\n pageTitle: 'Map eForm',\n breadcrumbsPath: 'Home, U+ Desk',\n tabs: ['Application', 'User Interface']\n }\n }\n];\n\nexport const recordMenuList = [\n {\n id: '21',\n label: 'Data Model',\n nodes: [\n { id: '25', label: 'Association' },\n { id: '26', label: 'Data Flow' }\n ]\n },\n {\n id: '22',\n label: 'Decision',\n nodes: [\n { id: '27', label: 'Adaptive Model' },\n { id: '28', label: 'Case Match' }\n ]\n },\n {\n id: '23',\n label: 'Integration-Connectors',\n nodes: [\n { id: '29', label: 'Connect File' },\n { id: '30', label: 'Connect Cassandra' }\n ]\n },\n {\n id: '24',\n label: 'Integration-Mapping',\n nodes: [\n { id: '31', label: 'EForm File' },\n { id: '32', label: 'Map eForm' }\n ]\n }\n];\n\nexport const treeList = [\n {\n id: '1',\n label: 'Application definition'\n },\n {\n id: '2',\n label: 'App logic',\n nodes: [\n {\n id: '100',\n label: 'Decisions'\n },\n {\n id: '101',\n label: 'Validations'\n },\n {\n id: '102',\n label: 'When'\n }\n ]\n },\n {\n id: '3',\n label: 'Applications',\n nodes: [\n {\n id: '103',\n label: 'Configuration sets'\n }\n ]\n },\n {\n id: '4',\n label: 'Data',\n nodes: [\n {\n id: '104',\n label: 'Data pages'\n },\n {\n id: '105',\n label: 'Data sources'\n },\n {\n id: '106',\n label: 'Data transforms'\n },\n {\n id: '107',\n label: 'Fields'\n },\n {\n id: '108',\n label: 'Queries'\n }\n ]\n },\n {\n id: '5',\n label: 'Integration',\n nodes: [\n {\n id: '109',\n label: 'Email account'\n },\n {\n id: '110',\n label: 'Integration systems'\n }\n ]\n },\n {\n id: '6',\n label: 'Process',\n nodes: [\n {\n id: '111',\n label: 'Actions'\n },\n { id: '112', label: 'Automations' }\n ]\n },\n {\n id: '7',\n label: 'Security',\n nodes: [\n {\n id: '113',\n label: 'Access groups'\n },\n { id: '114', label: 'Access roles' }\n ]\n }\n];\n\nexport const TabbedPageComp: FC<TabbedPageStoryProps> = (args: TabbedPageStoryProps) => {\n const { pageContent, showBreadcrumbs } = args;\n\n return (\n <TabbedPage\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 {\n id,\n name,\n content: (\n <Text variant='h1' as='div'>\n {`Tab ${id} content`}\n </Text>\n )\n };\n }),\n type: 'horizontal'\n }}\n />\n );\n};\n"]}
@@ -1,5 +1,5 @@
1
- import { MouseEvent } from 'react';
2
1
  import { Meta, Story } from '@storybook/react';
2
+ import { Action } from '@pega/cosmos-react-core';
3
3
  import { BranchButtonProps } from '@pega/cosmos-react-build';
4
4
  declare const _default: Meta<import("@storybook/react").Args>;
5
5
  export default _default;
@@ -7,7 +7,7 @@ export interface AppShellStoryProps extends BranchButtonProps {
7
7
  hideNavigation: boolean;
8
8
  showBreadcrumbs: boolean;
9
9
  showPreview: boolean;
10
- onPreviewClick: (e: MouseEvent<HTMLButtonElement>) => void;
10
+ onPreviewClick: Action['onClick'];
11
11
  }
12
12
  export declare const AppShellDemo: Story<AppShellStoryProps>;
13
13
  //# sourceMappingURL=AppShell.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AppShell.stories.d.ts","sourceRoot":"","sources":["../../../src/build/AppShell/AppShell.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAY,UAAU,EAAE,MAAM,OAAO,CAAC;AAC7C,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAS/C,OAAO,EAAY,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;;AAUvE,wBAMU;AAEV,MAAM,WAAW,kBAAmB,SAAQ,iBAAiB;IAC3D,cAAc,EAAE,OAAO,CAAC;IACxB,eAAe,EAAE,OAAO,CAAC;IACzB,WAAW,EAAE,OAAO,CAAC;IACrB,cAAc,EAAE,CAAC,CAAC,EAAE,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;CAC5D;AAoED,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,kBAAkB,CAmLlD,CAAC"}
1
+ {"version":3,"file":"AppShell.stories.d.ts","sourceRoot":"","sources":["../../../src/build/AppShell/AppShell.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAG/C,OAAO,EAAE,MAAM,EAAkC,MAAM,yBAAyB,CAAC;AACjF,OAAO,EAAY,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;;AAYvE,wBAMU;AAEV,MAAM,WAAW,kBAAmB,SAAQ,iBAAiB;IAC3D,cAAc,EAAE,OAAO,CAAC;IACxB,eAAe,EAAE,OAAO,CAAC;IACzB,WAAW,EAAE,OAAO,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC,SAAS,CAAC,CAAC;CACnC;AAED,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,kBAAkB,CA4LlD,CAAC"}
@@ -1,8 +1,8 @@
1
1
  import { useState } from 'react';
2
2
  import { action } from '@storybook/addon-actions';
3
- import { Text, treeHelpers, TabbedPage as TabbedPageComp } from '@pega/cosmos-react-core';
3
+ import { treeHelpers } from '@pega/cosmos-react-core';
4
4
  import { AppShell } from '@pega/cosmos-react-build';
5
- import { appExplorerMenuList, branchesMenuList, contents, recordMenuList, treeList } from './AppShell.mocks';
5
+ import { appExplorerMenuList, branchesMenuList, contents, recordMenuList, treeList, TabbedPageComp } from './AppShell.mocks';
6
6
  export default {
7
7
  title: 'Build/AppShell',
8
8
  component: AppShell,
@@ -10,46 +10,12 @@ export default {
10
10
  layout: 'fullscreen'
11
11
  }
12
12
  };
13
- const getPath = (args) => {
14
- const { showBreadcrumbs, pageContent: { data: { pageTitle, breadcrumbsPath } } } = args;
15
- if (showBreadcrumbs) {
16
- const path = pageTitle === 'Overview' ? 'Home' : breadcrumbsPath;
17
- return path
18
- ? path.split(',').map((crumb, i) => {
19
- return {
20
- id: crumb,
21
- primary: crumb,
22
- href: i < 3 ? `#${crumb.replace(/\s/g, '-')}` : undefined
23
- };
24
- })
25
- : [];
26
- }
27
- };
28
- const TabbedPage = (args) => {
29
- const [currentTabId, setCurrentTabId] = useState('1');
30
- const [content, setContent] = useState('Tab 1 content');
31
- const { pageContent, showBreadcrumbs } = args;
32
- return (<TabbedPageComp a={<Text variant='h1' as='div'>
33
- {content}
34
- </Text>} 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
- }}/>);
46
- };
47
13
  export const AppShellDemo = (args) => {
48
14
  const [currentNodeId, setCurrentNodeId] = useState('60');
49
15
  const [allNodes, setAllNodes] = useState(treeHelpers.expandTo(appExplorerMenuList, currentNodeId));
50
16
  const [currentDrawer, setCurrentDrawer] = useState('explorer');
51
17
  const [currentUtil, setCurrentUtil] = useState('explorer');
52
- const [pageContent, setPageContent] = useState(contents[0]);
18
+ const [pageContent, setPageContent] = useState(contents[19]);
53
19
  const onNodeClick = (nodeId, activeDrawerId) => {
54
20
  const clickedNode = treeHelpers.getNode(allNodes, nodeId);
55
21
  if (!clickedNode?.nodes) {
@@ -67,7 +33,10 @@ export const AppShellDemo = (args) => {
67
33
  };
68
34
  const appHeader = {
69
35
  brand: {
70
- name: 'AppStudioX'
36
+ name: 'AppStudioX',
37
+ visual: {
38
+ icon: 'pegasus'
39
+ }
71
40
  },
72
41
  utils: {
73
42
  avatar: { name: 'Alan' },
@@ -112,7 +81,13 @@ export const AppShellDemo = (args) => {
112
81
  }
113
82
  ]
114
83
  },
115
- onPreviewClick: args.showPreview ? args.onPreviewClick : undefined
84
+ action: args.showPreview
85
+ ? {
86
+ id: 'preview',
87
+ text: 'Preview',
88
+ onClick: args.onPreviewClick
89
+ }
90
+ : undefined
116
91
  },
117
92
  links: [
118
93
  {
@@ -143,14 +118,14 @@ export const AppShellDemo = (args) => {
143
118
  ]
144
119
  };
145
120
  return (<>
146
- <AppShell main={<TabbedPage {...{ ...args, pageContent }}/>} appHeader={appHeader} hideNav={args.hideNavigation} appInfo={{
121
+ <AppShell main={<TabbedPageComp {...{ ...args, pageContent }}/>} appHeader={appHeader} hideNav={args.hideNavigation} appInfo={{
147
122
  text: 'U+ Desk',
148
123
  visual: {
149
- icon: {
150
- name: 'phone-in-solid',
151
- bgColor: '#0ac7c8'
152
- }
153
- }
124
+ icon: 'phone-in-solid',
125
+ backgroundColor: '#0ac7c8',
126
+ color: '#fff'
127
+ },
128
+ meta: ['1.0.0']
154
129
  }} navigation={{
155
130
  nodes: allNodes,
156
131
  currentNodeId,
@@ -1 +1 @@
1
- {"version":3,"file":"AppShell.stories.jsx","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,EAAqB,MAAM,0BAA0B,CAAC;AAEvE,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,MAA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Ac,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, BranchButtonProps } 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 extends BranchButtonProps {\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 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 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 variant: undefined,\n text: 'Alpha branch',\n count: null,\n compact: false,\n showPreview: true,\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"]}
1
+ {"version":3,"file":"AppShell.stories.jsx","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,yBAAyB,CAAC;AACjF,OAAO,EAAE,QAAQ,EAAqB,MAAM,0BAA0B,CAAC;AAEvE,OAAO,EACL,mBAAmB,EACnB,gBAAgB,EAChB,QAAQ,EAER,cAAc,EACd,QAAQ,EACR,cAAc,EACf,MAAM,kBAAkB,CAAC;AAE1B,eAAe;IACb,KAAK,EAAE,gBAAgB;IACvB,SAAS,EAAE,QAAQ;IACnB,UAAU,EAAE;QACV,MAAM,EAAE,YAAY;KACrB;CACM,CAAC;AASV,MAAM,CAAC,MAAM,YAAY,GAA8B,CAAC,IAAwB,EAAE,EAAE;IAClF,MAAM,CAAC,aAAa,EAAE,gBAAgB,CAAC,GAAG,QAAQ,CAAS,IAAI,CAAC,CAAC;IACjE,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,QAAQ,CACtC,WAAW,CAAC,QAAQ,CAAC,mBAAmB,EAAE,aAAa,CAAC,CACzD,CAAC;IACF,MAAM,CAAC,aAAa,EAAE,gBAAgB,CAAC,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AAC,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,OAAO,EAAE,EAAE,OAAO,EAAE,CAAC,SAAS,EAAE,QAAQ,CAAC,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE;IACvE,IAAI,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;IACnC,KAAK,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;IACtC,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IACzC,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 } 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,101 @@
1
+ import { useRef, useState, useCallback } from 'react';
2
+ import { action } from '@storybook/addon-actions';
3
+ import { Button, Card, CardContent, CardFooter, Flex, TextArea, useAutoResize, useConsolidatedRef, useI18n } from '@pega/cosmos-react-core';
4
+ import { DynamicContentEditor } from '@pega/cosmos-react-build';
5
+ import FieldSelector from './FieldSelector';
6
+ export default {
7
+ title: 'Build/DynamicContentEditor',
8
+ component: DynamicContentEditor
9
+ };
10
+ export const DynamicContentEditorDemo = (args) => {
11
+ 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>');
12
+ const rteRef = useRef(null);
13
+ const fieldItems = [
14
+ {
15
+ id: 'CustomerName',
16
+ primary: 'CustomerName',
17
+ items: [
18
+ {
19
+ id: '1-2',
20
+ primary: 'Locale'
21
+ },
22
+ {
23
+ id: '1-1',
24
+ primary: 'Response Type',
25
+ items: [
26
+ {
27
+ id: 'group-1-1-b',
28
+ label: 'B',
29
+ items: [{ id: '1-1-1', primary: 'Reply to' }]
30
+ },
31
+ { id: '1-1-4', primary: 'Forward to' }
32
+ ]
33
+ }
34
+ ]
35
+ },
36
+ { id: 'Address', primary: 'Address' },
37
+ { id: 'Locality', primary: 'Locality' },
38
+ { id: 'Country', primary: 'Country' },
39
+ { id: 'Region', primary: 'Region' },
40
+ { id: 'Occupation', primary: 'Occupation' },
41
+ { id: 'City', primary: 'City' },
42
+ { id: 'Colony', primary: 'Colony' },
43
+ { id: 'Lastname', primary: 'Lastname' },
44
+ { id: 'Preference', primary: 'Preference' },
45
+ { id: 'Currency', primary: 'Currency' },
46
+ { id: 'Iconname', primary: 'Iconname' }
47
+ ];
48
+ const onImageAdded = (image, id) => {
49
+ const src = URL.createObjectURL(image);
50
+ rteRef.current?.appendImage({ src, alt: image.name }, id);
51
+ };
52
+ const [textAreaRef, resizeTextArea] = useAutoResize(undefined, 100);
53
+ const ref = useRef(null);
54
+ const consolidatedRef = useConsolidatedRef(textAreaRef, ref);
55
+ const handleShowHtml = () => {
56
+ resizeTextArea();
57
+ setHtml(rteRef.current?.getHtml() || '');
58
+ };
59
+ const t = useI18n();
60
+ const [selectedField, setSelectedField] = useState({
61
+ id: '',
62
+ text: ''
63
+ });
64
+ const updateSelection = (selectedItem) => {
65
+ setSelectedField(selectedItem);
66
+ };
67
+ const onSubmit = useCallback((insertField) => {
68
+ insertField(selectedField);
69
+ }, [selectedField]);
70
+ const dynamicContentPicker = (<Flex container={{
71
+ gap: 2,
72
+ direction: 'column'
73
+ }}>
74
+ <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
+ ]} key={selectedField?.id} label='Field' updateSelection={updateSelection} placeholder={t('select')} defaultSelection={selectedField}/>
82
+ </Flex>);
83
+ const onActiveFieldChange = (field) => setSelectedField(field);
84
+ return (<Flex container={{ direction: 'column', gap: 2 }}>
85
+ <Card>
86
+ <CardContent>
87
+ <TextArea value={html} onChange={e => setHtml(e.target.value)} autoResize ref={consolidatedRef}/>
88
+ </CardContent>
89
+ <CardFooter>
90
+ <Button onClick={() => rteRef.current?.insertHtml(html.trim(), true)}>
91
+ Overwrite RTE with new HTML
92
+ </Button>
93
+ </CardFooter>
94
+ </Card>
95
+ <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')}/>
96
+ <Flex container={{ gap: 1 }}>
97
+ <Button onClick={() => handleShowHtml()}>Show HTML</Button>
98
+ </Flex>
99
+ </Flex>);
100
+ };
101
+ //# sourceMappingURL=DynamicContentEditor.stories.jsx.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DynamicContentEditor.stories.jsx","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,IAA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AM,CAC5D;MAAA,EAAE,IAAI,CACR;IAAA,EAAE,IAAI,CAAC,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,11 @@
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
+ itemList: ItemType[];
6
+ updateSelection: (selectedItem: ItemType, label: ComboBoxProps['label']) => void;
7
+ defaultSelection?: ItemType;
8
+ }
9
+ declare const FieldSelector: FunctionComponent<FieldSelectorProps & Pick<ComboBoxProps, 'label' | 'mode' | 'required' | 'placeholder'>>;
10
+ export default FieldSelector;
11
+ //# 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;IAExD,QAAQ,EAAE,QAAQ,EAAE,CAAC;IAErB,eAAe,EAAE,CAAC,YAAY,EAAE,QAAQ,EAAE,KAAK,EAAE,aAAa,CAAC,OAAO,CAAC,KAAK,IAAI,CAAC;IAEjF,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,80 @@
1
+ import { useMemo, useState, useCallback } from 'react';
2
+ import { ComboBox, createStringMatcher, useI18n } from '@pega/cosmos-react-core';
3
+ const FieldSelector = ({ itemList, label, mode = 'single-select', required = false, updateSelection, placeholder, defaultSelection }) => {
4
+ const t = useI18n();
5
+ const [filterValue, setFilterValue] = useState('');
6
+ const [items, setItems] = useState(() => {
7
+ return itemList.map(item => {
8
+ return {
9
+ id: item.id,
10
+ primary: item.text,
11
+ selected: defaultSelection ? defaultSelection.id === item.id : false
12
+ };
13
+ });
14
+ });
15
+ const filterRegex = createStringMatcher(filterValue, 'contains');
16
+ const itemsToRender = useMemo(() => {
17
+ return filterRegex ? items.filter(({ primary }) => filterRegex.test(primary)) : items;
18
+ }, [filterValue, items]);
19
+ const clearSelection = () => {
20
+ setItems(curr => {
21
+ return curr?.map(item => {
22
+ return {
23
+ ...item,
24
+ selected: false
25
+ };
26
+ });
27
+ });
28
+ };
29
+ const selectItem = useCallback((id) => {
30
+ setFilterValue('');
31
+ setItems(curr => curr?.map(item => {
32
+ if (item.id === id) {
33
+ return {
34
+ ...item,
35
+ selected: true
36
+ };
37
+ }
38
+ return { ...item, selected: false };
39
+ }));
40
+ const selectedItem = items?.find(item => item.id === id);
41
+ if (selectedItem?.id)
42
+ updateSelection({
43
+ id: selectedItem.id,
44
+ text: selectedItem.primary
45
+ }, label);
46
+ }, [filterValue, items]);
47
+ const selected = useMemo(() => {
48
+ return items?.find(item => item.selected);
49
+ }, [items]);
50
+ const comboBoxProps = {
51
+ label,
52
+ placeholder,
53
+ mode,
54
+ value: filterValue,
55
+ selected: selected
56
+ ? {
57
+ items: {
58
+ id: selected.id,
59
+ text: selected.primary
60
+ }
61
+ }
62
+ : undefined,
63
+ onChange: (e) => {
64
+ if (e.target.value)
65
+ clearSelection();
66
+ setFilterValue(e.target.value);
67
+ },
68
+ onBlur: () => setFilterValue(''),
69
+ menu: {
70
+ items: itemsToRender,
71
+ accent: filterRegex,
72
+ onItemClick: selectItem,
73
+ emptyText: t('no_items')
74
+ },
75
+ required
76
+ };
77
+ return <ComboBox {...comboBoxProps}/>;
78
+ };
79
+ export default FieldSelector;
80
+ //# sourceMappingURL=FieldSelector.jsx.map