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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1161) hide show
  1. package/jsx/build/AppHeader/AppHeader.stories.d.ts +2 -1
  2. package/jsx/build/AppHeader/AppHeader.stories.d.ts.map +1 -1
  3. package/jsx/build/AppHeader/AppHeader.stories.jsx +52 -14
  4. package/jsx/build/AppHeader/AppHeader.stories.jsx.map +1 -1
  5. package/jsx/build/AppShell/AppShell.mocks.d.ts +19 -0
  6. package/jsx/build/AppShell/AppShell.mocks.d.ts.map +1 -1
  7. package/jsx/build/AppShell/{AppShell.mocks.js → AppShell.mocks.jsx} +33 -1
  8. package/jsx/build/AppShell/AppShell.mocks.jsx.map +1 -0
  9. package/jsx/build/AppShell/AppShell.stories.d.ts +4 -3
  10. package/jsx/build/AppShell/AppShell.stories.d.ts.map +1 -1
  11. package/jsx/build/AppShell/AppShell.stories.jsx +65 -57
  12. package/jsx/build/AppShell/AppShell.stories.jsx.map +1 -1
  13. package/jsx/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts +8 -0
  14. package/jsx/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts.map +1 -0
  15. package/jsx/build/DynamicContentEditor/DynamicContentEditor.stories.jsx +101 -0
  16. package/jsx/build/DynamicContentEditor/DynamicContentEditor.stories.jsx.map +1 -0
  17. package/jsx/build/DynamicContentEditor/FieldSelector.d.ts +11 -0
  18. package/jsx/build/DynamicContentEditor/FieldSelector.d.ts.map +1 -0
  19. package/jsx/build/DynamicContentEditor/FieldSelector.jsx +80 -0
  20. package/jsx/build/DynamicContentEditor/FieldSelector.jsx.map +1 -0
  21. package/jsx/build/FlowModeller/FlowModeller.mocks.d.ts +19 -2
  22. package/jsx/build/FlowModeller/FlowModeller.mocks.d.ts.map +1 -1
  23. package/jsx/build/FlowModeller/{FlowModeller.mocks.js → FlowModeller.mocks.jsx} +110 -28
  24. package/jsx/build/FlowModeller/FlowModeller.mocks.jsx.map +1 -0
  25. package/jsx/build/FlowModeller/FlowModeller.stories.d.ts +8 -10
  26. package/jsx/build/FlowModeller/FlowModeller.stories.d.ts.map +1 -1
  27. package/jsx/build/FlowModeller/FlowModeller.stories.jsx +159 -154
  28. package/jsx/build/FlowModeller/FlowModeller.stories.jsx.map +1 -1
  29. package/jsx/build/FlowModeller/FlowModeller.styles.d.ts +2 -0
  30. package/jsx/build/FlowModeller/FlowModeller.styles.d.ts.map +1 -0
  31. package/jsx/build/FlowModeller/FlowModeller.styles.js +8 -0
  32. package/jsx/build/FlowModeller/FlowModeller.styles.js.map +1 -0
  33. package/jsx/build/ItemLibrary/LibraryPicker.mocks.d.ts +3 -0
  34. package/jsx/build/ItemLibrary/LibraryPicker.mocks.d.ts.map +1 -0
  35. package/jsx/build/ItemLibrary/LibraryPicker.mocks.js +45 -0
  36. package/jsx/build/ItemLibrary/LibraryPicker.mocks.js.map +1 -0
  37. package/jsx/build/ItemLibrary/LibraryPicker.stories.d.ts +5 -0
  38. package/jsx/build/ItemLibrary/LibraryPicker.stories.d.ts.map +1 -0
  39. package/jsx/build/ItemLibrary/LibraryPicker.stories.jsx +45 -0
  40. package/jsx/build/ItemLibrary/LibraryPicker.stories.jsx.map +1 -0
  41. package/jsx/build/LifeCycle/LifeCycle.mocks.d.ts +3 -0
  42. package/jsx/build/LifeCycle/LifeCycle.mocks.d.ts.map +1 -1
  43. package/jsx/build/LifeCycle/LifeCycle.mocks.js +107 -19
  44. package/jsx/build/LifeCycle/LifeCycle.mocks.js.map +1 -1
  45. package/jsx/build/LifeCycle/LifeCycle.stories.d.ts +6 -9
  46. package/jsx/build/LifeCycle/LifeCycle.stories.d.ts.map +1 -1
  47. package/jsx/build/LifeCycle/LifeCycle.stories.jsx +163 -61
  48. package/jsx/build/LifeCycle/LifeCycle.stories.jsx.map +1 -1
  49. package/jsx/build/LifeCycle/utils.d.ts.map +1 -1
  50. package/jsx/build/LifeCycle/utils.js +5 -4
  51. package/jsx/build/LifeCycle/utils.js.map +1 -1
  52. package/jsx/build/ObjectSelect/ObjectSelect.mocks.d.ts +46 -0
  53. package/jsx/build/ObjectSelect/ObjectSelect.mocks.d.ts.map +1 -0
  54. package/jsx/build/ObjectSelect/ObjectSelect.mocks.jsx +335 -0
  55. package/jsx/build/ObjectSelect/ObjectSelect.mocks.jsx.map +1 -0
  56. package/jsx/build/ObjectSelect/ObjectSelect.stories.d.ts +8 -0
  57. package/jsx/build/ObjectSelect/ObjectSelect.stories.d.ts.map +1 -0
  58. package/jsx/build/ObjectSelect/ObjectSelect.stories.jsx +169 -0
  59. package/jsx/build/ObjectSelect/ObjectSelect.stories.jsx.map +1 -0
  60. package/jsx/build/ObjectSelect/ObjectSelect.styles.d.ts +4 -0
  61. package/jsx/build/ObjectSelect/ObjectSelect.styles.d.ts.map +1 -0
  62. package/jsx/build/ObjectSelect/ObjectSelect.styles.js +27 -0
  63. package/jsx/build/ObjectSelect/ObjectSelect.styles.js.map +1 -0
  64. package/jsx/build/PageTemplates/GalleryPage.mocks.d.ts +46 -0
  65. package/jsx/build/PageTemplates/GalleryPage.mocks.d.ts.map +1 -0
  66. package/jsx/build/PageTemplates/GalleryPage.mocks.jsx +76 -0
  67. package/jsx/build/PageTemplates/GalleryPage.mocks.jsx.map +1 -0
  68. package/jsx/build/PageTemplates/GalleryPage.stories.d.ts.map +1 -1
  69. package/jsx/build/PageTemplates/GalleryPage.stories.jsx +14 -92
  70. package/jsx/build/PageTemplates/GalleryPage.stories.jsx.map +1 -1
  71. package/jsx/build/PageTemplates/PageTemplates.mocks.d.ts +18 -0
  72. package/jsx/build/PageTemplates/PageTemplates.mocks.d.ts.map +1 -0
  73. package/jsx/build/PageTemplates/PageTemplates.mocks.jsx +287 -0
  74. package/jsx/build/PageTemplates/PageTemplates.mocks.jsx.map +1 -0
  75. package/jsx/build/PageTemplates/PageTemplates.stories.d.ts +4 -9
  76. package/jsx/build/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
  77. package/jsx/build/PageTemplates/PageTemplates.stories.jsx +99 -277
  78. package/jsx/build/PageTemplates/PageTemplates.stories.jsx.map +1 -1
  79. package/jsx/build/Workbench/Workbench.stories.d.ts.map +1 -1
  80. package/jsx/build/Workbench/Workbench.stories.jsx +14 -27
  81. package/jsx/build/Workbench/Workbench.stories.jsx.map +1 -1
  82. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.mocks.d.ts +3 -0
  83. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.mocks.d.ts.map +1 -0
  84. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.mocks.js +13 -0
  85. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.mocks.js.map +1 -0
  86. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts +16 -8
  87. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts.map +1 -1
  88. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.jsx +59 -56
  89. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.jsx.map +1 -1
  90. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.styles.d.ts +5 -0
  91. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.styles.d.ts.map +1 -0
  92. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.styles.js +15 -0
  93. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.styles.js.map +1 -0
  94. package/jsx/condition-builder/ConditionBuilder/props.mock.d.ts.map +1 -1
  95. package/jsx/condition-builder/ConditionBuilder/props.mock.js +17 -2
  96. package/jsx/condition-builder/ConditionBuilder/props.mock.js.map +1 -1
  97. package/jsx/core/AppShell/AppShell.stories.d.ts +6 -0
  98. package/jsx/core/AppShell/AppShell.stories.d.ts.map +1 -1
  99. package/jsx/core/AppShell/AppShell.stories.jsx +28 -2
  100. package/jsx/core/AppShell/AppShell.stories.jsx.map +1 -1
  101. package/jsx/core/Avatar/Avatar.stories.d.ts +5 -0
  102. package/jsx/core/Avatar/Avatar.stories.d.ts.map +1 -1
  103. package/jsx/core/Avatar/Avatar.stories.jsx +32 -5
  104. package/jsx/core/Avatar/Avatar.stories.jsx.map +1 -1
  105. package/jsx/core/Badges/Keyboard.stories.d.ts +6 -0
  106. package/jsx/core/Badges/Keyboard.stories.d.ts.map +1 -0
  107. package/jsx/core/Badges/Keyboard.stories.jsx +17 -0
  108. package/jsx/core/Badges/Keyboard.stories.jsx.map +1 -0
  109. package/jsx/core/Badges/Selection.stories.d.ts +2 -3
  110. package/jsx/core/Badges/Selection.stories.d.ts.map +1 -1
  111. package/jsx/core/Badges/Selection.stories.jsx.map +1 -1
  112. package/jsx/core/Badges/Status.stories.d.ts +5 -0
  113. package/jsx/core/Badges/Status.stories.d.ts.map +1 -1
  114. package/jsx/core/Badges/Status.stories.jsx +25 -1
  115. package/jsx/core/Badges/Status.stories.jsx.map +1 -1
  116. package/jsx/core/Badges/Tag.stories.d.ts +2 -3
  117. package/jsx/core/Badges/Tag.stories.d.ts.map +1 -1
  118. package/jsx/core/Badges/Tag.stories.jsx.map +1 -1
  119. package/jsx/core/Banner/Banner.stories.d.ts +12 -19
  120. package/jsx/core/Banner/Banner.stories.d.ts.map +1 -1
  121. package/jsx/core/Banner/Banner.stories.jsx +24 -3
  122. package/jsx/core/Banner/Banner.stories.jsx.map +1 -1
  123. package/jsx/core/Breadcrumbs/Breadcrumbs.stories.d.ts +3 -4
  124. package/jsx/core/Breadcrumbs/Breadcrumbs.stories.d.ts.map +1 -1
  125. package/jsx/core/Breadcrumbs/Breadcrumbs.stories.jsx.map +1 -1
  126. package/jsx/core/Button/Button.stories.d.ts +10 -3
  127. package/jsx/core/Button/Button.stories.d.ts.map +1 -1
  128. package/jsx/core/Button/Button.stories.jsx +36 -7
  129. package/jsx/core/Button/Button.stories.jsx.map +1 -1
  130. package/jsx/core/Card/Card.stories.d.ts +6 -2
  131. package/jsx/core/Card/Card.stories.d.ts.map +1 -1
  132. package/jsx/core/Card/Card.stories.jsx +30 -1
  133. package/jsx/core/Card/Card.stories.jsx.map +1 -1
  134. package/jsx/core/Checkbox/Checkbox.stories.d.ts +12 -0
  135. package/jsx/core/Checkbox/Checkbox.stories.d.ts.map +1 -1
  136. package/jsx/core/Checkbox/Checkbox.stories.jsx +54 -1
  137. package/jsx/core/Checkbox/Checkbox.stories.jsx.map +1 -1
  138. package/jsx/core/CheckboxGroup/CheckboxGroup.stories.d.ts +3 -3
  139. package/jsx/core/CheckboxGroup/CheckboxGroup.stories.d.ts.map +1 -1
  140. package/jsx/core/CheckboxGroup/CheckboxGroup.stories.jsx.map +1 -1
  141. package/jsx/core/ColorPicker/ColorPicker.stories.d.ts +1 -2
  142. package/jsx/core/ColorPicker/ColorPicker.stories.d.ts.map +1 -1
  143. package/jsx/core/ColorPicker/ColorPicker.stories.jsx +2 -10
  144. package/jsx/core/ColorPicker/ColorPicker.stories.jsx.map +1 -1
  145. package/jsx/core/ColorPicker/ColorPicker.styles.d.ts +4 -0
  146. package/jsx/core/ColorPicker/ColorPicker.styles.d.ts.map +1 -0
  147. package/jsx/core/ColorPicker/ColorPicker.styles.js +11 -0
  148. package/jsx/core/ColorPicker/ColorPicker.styles.js.map +1 -0
  149. package/jsx/core/Configuration/Configuration.mocks.d.ts +7 -0
  150. package/jsx/core/Configuration/Configuration.mocks.d.ts.map +1 -0
  151. package/jsx/core/Configuration/Configuration.mocks.jsx +9 -0
  152. package/jsx/core/Configuration/Configuration.mocks.jsx.map +1 -0
  153. package/jsx/core/Configuration/Configuration.stories.d.ts +19 -3
  154. package/jsx/core/Configuration/Configuration.stories.d.ts.map +1 -1
  155. package/jsx/core/Configuration/Configuration.stories.jsx +96 -21
  156. package/jsx/core/Configuration/Configuration.stories.jsx.map +1 -1
  157. package/jsx/core/Configuration/Configuration.styles.d.ts +6 -0
  158. package/jsx/core/Configuration/Configuration.styles.d.ts.map +1 -0
  159. package/jsx/core/Configuration/Configuration.styles.js +12 -0
  160. package/jsx/core/Configuration/Configuration.styles.js.map +1 -0
  161. package/jsx/core/CreditCard/CreditCard.stories.d.ts +11 -0
  162. package/jsx/core/CreditCard/CreditCard.stories.d.ts.map +1 -0
  163. package/jsx/core/CreditCard/CreditCard.stories.jsx +45 -0
  164. package/jsx/core/CreditCard/CreditCard.stories.jsx.map +1 -0
  165. package/jsx/core/Currency/Currency.stories.d.ts +7 -4
  166. package/jsx/core/Currency/Currency.stories.d.ts.map +1 -1
  167. package/jsx/core/Currency/Currency.stories.jsx +30 -12
  168. package/jsx/core/Currency/Currency.stories.jsx.map +1 -1
  169. package/jsx/core/DateTime/DateTime.stories.d.ts.map +1 -1
  170. package/jsx/core/DateTime/DateTime.stories.jsx +2 -1
  171. package/jsx/core/DateTime/DateTime.stories.jsx.map +1 -1
  172. package/jsx/core/FieldGroup/FieldGroup.stories.d.ts +6 -4
  173. package/jsx/core/FieldGroup/FieldGroup.stories.d.ts.map +1 -1
  174. package/jsx/core/FieldGroup/FieldGroup.stories.jsx +8 -4
  175. package/jsx/core/FieldGroup/FieldGroup.stories.jsx.map +1 -1
  176. package/jsx/core/FieldGroup/FieldGroupList.mocks.d.ts +4 -0
  177. package/jsx/core/FieldGroup/FieldGroupList.mocks.d.ts.map +1 -1
  178. package/jsx/core/FieldGroup/FieldGroupList.mocks.jsx +70 -2
  179. package/jsx/core/FieldGroup/FieldGroupList.mocks.jsx.map +1 -1
  180. package/jsx/core/FieldGroup/FieldGroupList.stories.d.ts +9 -8
  181. package/jsx/core/FieldGroup/FieldGroupList.stories.d.ts.map +1 -1
  182. package/jsx/core/FieldGroup/FieldGroupList.stories.jsx +51 -88
  183. package/jsx/core/FieldGroup/FieldGroupList.stories.jsx.map +1 -1
  184. package/jsx/core/FieldValueList/FieldValueList.stories.d.ts +2 -2
  185. package/jsx/core/FieldValueList/FieldValueList.stories.d.ts.map +1 -1
  186. package/jsx/core/FieldValueList/FieldValueList.stories.jsx.map +1 -1
  187. package/jsx/core/File/FileDisplay.stories.d.ts.map +1 -1
  188. package/jsx/core/File/FileDisplay.stories.jsx +16 -38
  189. package/jsx/core/File/FileDisplay.stories.jsx.map +1 -1
  190. package/jsx/core/File/FileInput.stories.d.ts.map +1 -1
  191. package/jsx/core/File/FileInput.stories.jsx +1 -1
  192. package/jsx/core/File/FileInput.stories.jsx.map +1 -1
  193. package/jsx/core/Flex/FlexContainer.stories.d.ts +1 -2
  194. package/jsx/core/Flex/FlexContainer.stories.d.ts.map +1 -1
  195. package/jsx/core/Flex/FlexContainer.stories.jsx.map +1 -1
  196. package/jsx/core/Form/Form.mocks.d.ts.map +1 -1
  197. package/jsx/core/Form/Form.mocks.jsx +2 -2
  198. package/jsx/core/Form/Form.mocks.jsx.map +1 -1
  199. package/jsx/core/Form/Form.stories.d.ts +10 -0
  200. package/jsx/core/Form/Form.stories.d.ts.map +1 -1
  201. package/jsx/core/Form/Form.stories.jsx +42 -2
  202. package/jsx/core/Form/Form.stories.jsx.map +1 -1
  203. package/jsx/core/Grid/GridContainer.stories.d.ts +4 -5
  204. package/jsx/core/Grid/GridContainer.stories.d.ts.map +1 -1
  205. package/jsx/core/Grid/GridContainer.stories.jsx.map +1 -1
  206. package/jsx/core/Grid/GridItem.stories.d.ts +1 -2
  207. package/jsx/core/Grid/GridItem.stories.d.ts.map +1 -1
  208. package/jsx/core/Grid/GridItem.stories.jsx.map +1 -1
  209. package/jsx/core/HTML/HTML.stories.d.ts +6 -0
  210. package/jsx/core/HTML/HTML.stories.d.ts.map +1 -0
  211. package/jsx/core/HTML/HTML.stories.jsx +13 -0
  212. package/jsx/core/HTML/HTML.stories.jsx.map +1 -0
  213. package/jsx/core/Icon/Icon.stories.d.ts +5 -6
  214. package/jsx/core/Icon/Icon.stories.d.ts.map +1 -1
  215. package/jsx/core/Icon/Icon.stories.jsx +5 -27
  216. package/jsx/core/Icon/Icon.stories.jsx.map +1 -1
  217. package/jsx/core/Icon/Icon.styles.d.ts +4 -0
  218. package/jsx/core/Icon/Icon.styles.d.ts.map +1 -0
  219. package/jsx/core/Icon/Icon.styles.js +25 -0
  220. package/jsx/core/Icon/Icon.styles.js.map +1 -0
  221. package/jsx/core/IconPicker/IconPicker.stories.jsx +1 -1
  222. package/jsx/core/IconPicker/IconPicker.stories.jsx.map +1 -1
  223. package/jsx/core/Image/Image.stories.d.ts +2 -3
  224. package/jsx/core/Image/Image.stories.d.ts.map +1 -1
  225. package/jsx/core/Image/Image.stories.jsx.map +1 -1
  226. package/jsx/core/Input/Input.stories.d.ts +9 -0
  227. package/jsx/core/Input/Input.stories.d.ts.map +1 -1
  228. package/jsx/core/Input/Input.stories.jsx +40 -1
  229. package/jsx/core/Input/Input.stories.jsx.map +1 -1
  230. package/jsx/core/Label/Label.stories.d.ts +4 -0
  231. package/jsx/core/Label/Label.stories.d.ts.map +1 -1
  232. package/jsx/core/Label/Label.stories.jsx +18 -1
  233. package/jsx/core/Label/Label.stories.jsx.map +1 -1
  234. package/jsx/core/Link/Link.stories.d.ts +1 -11
  235. package/jsx/core/Link/Link.stories.d.ts.map +1 -1
  236. package/jsx/core/Link/Link.stories.jsx.map +1 -1
  237. package/jsx/core/List/CommaSeparatedList.stories.d.ts +2 -2
  238. package/jsx/core/List/CommaSeparatedList.stories.d.ts.map +1 -1
  239. package/jsx/core/List/CommaSeparatedList.stories.jsx.map +1 -1
  240. package/jsx/core/ListToolbar/ListToolbar.mocks.d.ts +9 -0
  241. package/jsx/core/ListToolbar/ListToolbar.mocks.d.ts.map +1 -0
  242. package/jsx/core/ListToolbar/ListToolbar.mocks.jsx +71 -0
  243. package/jsx/core/ListToolbar/ListToolbar.mocks.jsx.map +1 -0
  244. package/jsx/core/ListToolbar/ListToolbar.stories.d.ts +6 -0
  245. package/jsx/core/ListToolbar/ListToolbar.stories.d.ts.map +1 -0
  246. package/jsx/core/ListToolbar/ListToolbar.stories.jsx +87 -0
  247. package/jsx/core/ListToolbar/ListToolbar.stories.jsx.map +1 -0
  248. package/jsx/core/MenuButton/MenuButton.stories.d.ts +6 -6
  249. package/jsx/core/MenuButton/MenuButton.stories.d.ts.map +1 -1
  250. package/jsx/core/MenuButton/MenuButton.stories.jsx.map +1 -1
  251. package/jsx/core/Modal/Modal.mocks.d.ts.map +1 -1
  252. package/jsx/core/Modal/Modal.mocks.jsx +3 -3
  253. package/jsx/core/Modal/Modal.mocks.jsx.map +1 -1
  254. package/jsx/core/Modal/Modal.stories.d.ts +10 -5
  255. package/jsx/core/Modal/Modal.stories.d.ts.map +1 -1
  256. package/jsx/core/Modal/Modal.stories.jsx +34 -43
  257. package/jsx/core/Modal/Modal.stories.jsx.map +1 -1
  258. package/jsx/core/MultiStep/MultiStep.stories.d.ts +2 -3
  259. package/jsx/core/MultiStep/MultiStep.stories.d.ts.map +1 -1
  260. package/jsx/core/MultiStep/MultiStep.stories.jsx.map +1 -1
  261. package/jsx/core/Number/Number.stories.d.ts +10 -6
  262. package/jsx/core/Number/Number.stories.d.ts.map +1 -1
  263. package/jsx/core/Number/Number.stories.jsx +38 -19
  264. package/jsx/core/Number/Number.stories.jsx.map +1 -1
  265. package/jsx/core/PageTemplates/PageTemplates.stories.d.ts +5 -3
  266. package/jsx/core/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
  267. package/jsx/core/PageTemplates/PageTemplates.stories.jsx +85 -31
  268. package/jsx/core/PageTemplates/PageTemplates.stories.jsx.map +1 -1
  269. package/jsx/core/PageTemplates/PageTemplates.styles.d.ts +1 -0
  270. package/jsx/core/PageTemplates/PageTemplates.styles.d.ts.map +1 -1
  271. package/jsx/core/PageTemplates/PageTemplates.styles.js +9 -0
  272. package/jsx/core/PageTemplates/PageTemplates.styles.js.map +1 -1
  273. package/jsx/core/Phone/Phone.stories.d.ts.map +1 -1
  274. package/jsx/core/Phone/Phone.stories.jsx +3 -1
  275. package/jsx/core/Phone/Phone.stories.jsx.map +1 -1
  276. package/jsx/core/Popover/Popover.stories.d.ts +1 -1
  277. package/jsx/core/Popover/Popover.stories.d.ts.map +1 -1
  278. package/jsx/core/Popover/Popover.stories.jsx.map +1 -1
  279. package/jsx/core/Progress/Progress.stories.d.ts +4 -0
  280. package/jsx/core/Progress/Progress.stories.d.ts.map +1 -1
  281. package/jsx/core/Progress/Progress.stories.jsx +22 -1
  282. package/jsx/core/Progress/Progress.stories.jsx.map +1 -1
  283. package/jsx/core/RadioButton/RadioButton.stories.d.ts +12 -0
  284. package/jsx/core/RadioButton/RadioButton.stories.d.ts.map +1 -1
  285. package/jsx/core/RadioButton/RadioButton.stories.jsx +53 -1
  286. package/jsx/core/RadioButton/RadioButton.stories.jsx.map +1 -1
  287. package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts +3 -3
  288. package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts.map +1 -1
  289. package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.jsx.map +1 -1
  290. package/jsx/core/Rating/Rating.stories.d.ts +4 -0
  291. package/jsx/core/Rating/Rating.stories.d.ts.map +1 -1
  292. package/jsx/core/Rating/Rating.stories.jsx +18 -1
  293. package/jsx/core/Rating/Rating.stories.jsx.map +1 -1
  294. package/jsx/core/SearchInput/SearchInput.mocks.d.ts +12 -0
  295. package/jsx/core/SearchInput/SearchInput.mocks.d.ts.map +1 -0
  296. package/jsx/core/SearchInput/SearchInput.mocks.js +25 -0
  297. package/jsx/core/SearchInput/SearchInput.mocks.js.map +1 -0
  298. package/jsx/core/SearchInput/SearchInput.stories.d.ts +1 -0
  299. package/jsx/core/SearchInput/SearchInput.stories.d.ts.map +1 -1
  300. package/jsx/core/SearchInput/SearchInput.stories.jsx +30 -1
  301. package/jsx/core/SearchInput/SearchInput.stories.jsx.map +1 -1
  302. package/jsx/core/Select/Select.stories.d.ts +8 -0
  303. package/jsx/core/Select/Select.stories.d.ts.map +1 -1
  304. package/jsx/core/Select/Select.stories.jsx +35 -1
  305. package/jsx/core/Select/Select.stories.jsx.map +1 -1
  306. package/jsx/core/Sentiment/Sentiment.stories.d.ts +6 -0
  307. package/jsx/core/Sentiment/Sentiment.stories.d.ts.map +1 -1
  308. package/jsx/core/Sentiment/Sentiment.stories.jsx +32 -1
  309. package/jsx/core/Sentiment/Sentiment.stories.jsx.map +1 -1
  310. package/jsx/core/Slider/Slider.stories.d.ts +4 -3
  311. package/jsx/core/Slider/Slider.stories.d.ts.map +1 -1
  312. package/jsx/core/Slider/Slider.stories.jsx +1 -1
  313. package/jsx/core/Slider/Slider.stories.jsx.map +1 -1
  314. package/jsx/core/SummaryItem/SummaryItem.stories.d.ts +5 -5
  315. package/jsx/core/SummaryItem/SummaryItem.stories.d.ts.map +1 -1
  316. package/jsx/core/SummaryItem/SummaryItem.stories.jsx.map +1 -1
  317. package/jsx/core/SummaryList/SummaryList.stories.d.ts +2 -2
  318. package/jsx/core/SummaryList/SummaryList.stories.d.ts.map +1 -1
  319. package/jsx/core/SummaryList/SummaryList.stories.jsx.map +1 -1
  320. package/jsx/core/Switch/Switch.stories.d.ts +7 -0
  321. package/jsx/core/Switch/Switch.stories.d.ts.map +1 -1
  322. package/jsx/core/Switch/Switch.stories.jsx +34 -1
  323. package/jsx/core/Switch/Switch.stories.jsx.map +1 -1
  324. package/jsx/core/Table/Table.mocks.d.ts +6 -0
  325. package/jsx/core/Table/Table.mocks.d.ts.map +1 -1
  326. package/jsx/core/Table/Table.mocks.jsx +134 -0
  327. package/jsx/core/Table/Table.mocks.jsx.map +1 -1
  328. package/jsx/core/Table/Table.stories.d.ts +25 -0
  329. package/jsx/core/Table/Table.stories.d.ts.map +1 -1
  330. package/jsx/core/Table/Table.stories.jsx +120 -1
  331. package/jsx/core/Table/Table.stories.jsx.map +1 -1
  332. package/jsx/core/Tabs/Tabs.stories.d.ts +10 -2
  333. package/jsx/core/Tabs/Tabs.stories.d.ts.map +1 -1
  334. package/jsx/core/Tabs/Tabs.stories.jsx +39 -1
  335. package/jsx/core/Tabs/Tabs.stories.jsx.map +1 -1
  336. package/jsx/core/Text/Text.stories.d.ts +19 -0
  337. package/jsx/core/Text/Text.stories.d.ts.map +1 -1
  338. package/jsx/core/Text/Text.stories.jsx +112 -1
  339. package/jsx/core/Text/Text.stories.jsx.map +1 -1
  340. package/jsx/core/TextArea/TextArea.stories.d.ts +5 -0
  341. package/jsx/core/TextArea/TextArea.stories.d.ts.map +1 -1
  342. package/jsx/core/TextArea/TextArea.stories.jsx +22 -1
  343. package/jsx/core/TextArea/TextArea.stories.jsx.map +1 -1
  344. package/jsx/core/Toaster/Toaster.stories.d.ts +2 -3
  345. package/jsx/core/Toaster/Toaster.stories.d.ts.map +1 -1
  346. package/jsx/core/Toaster/Toaster.stories.jsx +17 -12
  347. package/jsx/core/Toaster/Toaster.stories.jsx.map +1 -1
  348. package/jsx/core/Tooltip/Tooltip.stories.d.ts +8 -6
  349. package/jsx/core/Tooltip/Tooltip.stories.d.ts.map +1 -1
  350. package/jsx/core/Tooltip/Tooltip.stories.jsx +28 -1
  351. package/jsx/core/Tooltip/Tooltip.stories.jsx.map +1 -1
  352. package/jsx/core/Tree/Tree.stories.d.ts +1 -2
  353. package/jsx/core/Tree/Tree.stories.d.ts.map +1 -1
  354. package/jsx/core/Tree/Tree.stories.jsx +2 -2
  355. package/jsx/core/Tree/Tree.stories.jsx.map +1 -1
  356. package/jsx/cs/Article/Article.stories.d.ts +4 -13
  357. package/jsx/cs/Article/Article.stories.d.ts.map +1 -1
  358. package/jsx/cs/Article/Article.stories.jsx.map +1 -1
  359. package/jsx/cs/ArticleList/ArticleList.stories.d.ts +4 -14
  360. package/jsx/cs/ArticleList/ArticleList.stories.d.ts.map +1 -1
  361. package/jsx/cs/ArticleList/ArticleList.stories.jsx +2 -1
  362. package/jsx/cs/ArticleList/ArticleList.stories.jsx.map +1 -1
  363. package/jsx/cs/CSCaseView/CSAppShell.stories.d.ts +3 -37
  364. package/jsx/cs/CSCaseView/CSAppShell.stories.d.ts.map +1 -1
  365. package/jsx/cs/CSCaseView/CSAppShell.stories.jsx +15 -42
  366. package/jsx/cs/CSCaseView/CSAppShell.stories.jsx.map +1 -1
  367. package/jsx/cs/CSCaseView/CSCaseView.mocks.d.ts +9 -0
  368. package/jsx/cs/CSCaseView/CSCaseView.mocks.d.ts.map +1 -1
  369. package/jsx/cs/CSCaseView/{CSCaseView.mocks.js → CSCaseView.mocks.jsx} +30 -1
  370. package/jsx/cs/CSCaseView/CSCaseView.mocks.jsx.map +1 -0
  371. package/jsx/cs/CallControlPanel/CallControlPanel.stories.d.ts +3 -2
  372. package/jsx/cs/CallControlPanel/CallControlPanel.stories.d.ts.map +1 -1
  373. package/jsx/cs/CallControlPanel/CallControlPanel.stories.jsx +20 -5
  374. package/jsx/cs/CallControlPanel/CallControlPanel.stories.jsx.map +1 -1
  375. package/jsx/cs/IntelligentGuidance/IntelligentGuidance.stories.d.ts +4 -11
  376. package/jsx/cs/IntelligentGuidance/IntelligentGuidance.stories.d.ts.map +1 -1
  377. package/jsx/cs/IntelligentGuidance/IntelligentGuidance.stories.jsx +23 -21
  378. package/jsx/cs/IntelligentGuidance/IntelligentGuidance.stories.jsx.map +1 -1
  379. package/jsx/cs/InteractionNotification/InteractionNotification.stories.d.ts +7 -6
  380. package/jsx/cs/InteractionNotification/InteractionNotification.stories.d.ts.map +1 -1
  381. package/jsx/cs/InteractionNotification/InteractionNotification.stories.jsx +13 -5
  382. package/jsx/cs/InteractionNotification/InteractionNotification.stories.jsx.map +1 -1
  383. package/jsx/cs/InteractionTimer/InteractionTimer.mocks.d.ts +11 -0
  384. package/jsx/cs/InteractionTimer/InteractionTimer.mocks.d.ts.map +1 -0
  385. package/jsx/cs/InteractionTimer/InteractionTimer.mocks.js +29 -0
  386. package/jsx/cs/InteractionTimer/InteractionTimer.mocks.js.map +1 -0
  387. package/jsx/cs/InteractionTimer/InteractionTimer.stories.d.ts +3 -7
  388. package/jsx/cs/InteractionTimer/InteractionTimer.stories.d.ts.map +1 -1
  389. package/jsx/cs/InteractionTimer/InteractionTimer.stories.jsx +38 -43
  390. package/jsx/cs/InteractionTimer/InteractionTimer.stories.jsx.map +1 -1
  391. package/jsx/cs/TaskManager/TaskManager.mocks.d.ts +7 -2
  392. package/jsx/cs/TaskManager/TaskManager.mocks.d.ts.map +1 -1
  393. package/jsx/cs/TaskManager/TaskManager.mocks.js +12 -10
  394. package/jsx/cs/TaskManager/TaskManager.mocks.js.map +1 -1
  395. package/jsx/cs/TaskManager/TaskManager.stories.d.ts +12 -6
  396. package/jsx/cs/TaskManager/TaskManager.stories.d.ts.map +1 -1
  397. package/jsx/cs/TaskManager/TaskManager.stories.jsx +164 -136
  398. package/jsx/cs/TaskManager/TaskManager.stories.jsx.map +1 -1
  399. package/jsx/cs/TaskManager/TaskManager.styles.d.ts +3 -0
  400. package/jsx/cs/TaskManager/TaskManager.styles.d.ts.map +1 -0
  401. package/jsx/cs/TaskManager/TaskManager.styles.js +8 -0
  402. package/jsx/cs/TaskManager/TaskManager.styles.js.map +1 -0
  403. package/jsx/dnd/DragDropList/DragDropList.mocks.d.ts +15 -0
  404. package/jsx/dnd/DragDropList/DragDropList.mocks.d.ts.map +1 -0
  405. package/jsx/dnd/DragDropList/DragDropList.mocks.jsx +33 -0
  406. package/jsx/dnd/DragDropList/DragDropList.mocks.jsx.map +1 -0
  407. package/jsx/dnd/DragDropList/DragDropList.stories.d.ts +8 -9
  408. package/jsx/dnd/DragDropList/DragDropList.stories.d.ts.map +1 -1
  409. package/jsx/dnd/DragDropList/DragDropList.stories.jsx +14 -78
  410. package/jsx/dnd/DragDropList/DragDropList.stories.jsx.map +1 -1
  411. package/jsx/dnd/DragDropList/DragDropList.styles.d.ts +6 -0
  412. package/jsx/dnd/DragDropList/DragDropList.styles.d.ts.map +1 -0
  413. package/jsx/dnd/DragDropList/DragDropList.styles.js +32 -0
  414. package/jsx/dnd/DragDropList/DragDropList.styles.js.map +1 -0
  415. package/jsx/rte/Editor/Editor.mocks.d.ts +309 -0
  416. package/jsx/rte/Editor/Editor.mocks.d.ts.map +1 -0
  417. package/jsx/rte/Editor/Editor.mocks.jsx +23 -0
  418. package/jsx/rte/Editor/Editor.mocks.jsx.map +1 -0
  419. package/jsx/rte/Editor/Editor.stories.d.ts +7 -8
  420. package/jsx/rte/Editor/Editor.stories.d.ts.map +1 -1
  421. package/jsx/rte/Editor/Editor.stories.jsx +3 -21
  422. package/jsx/rte/Editor/Editor.stories.jsx.map +1 -1
  423. package/jsx/rte/RichTextEditor/RichTextEditor.mocks.jsx.map +1 -1
  424. package/jsx/rte/RichTextEditor/RichTextEditor.stories.d.ts +2 -3
  425. package/jsx/rte/RichTextEditor/RichTextEditor.stories.d.ts.map +1 -1
  426. package/jsx/rte/RichTextEditor/RichTextEditor.stories.jsx.map +1 -1
  427. package/jsx/rte/RichTextEditor/RichTextViewer.stories.d.ts +5 -5
  428. package/jsx/rte/RichTextEditor/RichTextViewer.stories.d.ts.map +1 -1
  429. package/jsx/rte/RichTextEditor/RichTextViewer.stories.jsx +18 -1
  430. package/jsx/rte/RichTextEditor/RichTextViewer.stories.jsx.map +1 -1
  431. package/jsx/social/Chat/Chat.stories.d.ts +6 -7
  432. package/jsx/social/Chat/Chat.stories.d.ts.map +1 -1
  433. package/jsx/social/Chat/Chat.stories.jsx +7 -5
  434. package/jsx/social/Chat/Chat.stories.jsx.map +1 -1
  435. package/jsx/social/Chat/RepeatingView.mocks.d.ts +14 -0
  436. package/jsx/social/Chat/RepeatingView.mocks.d.ts.map +1 -0
  437. package/jsx/social/Chat/RepeatingView.mocks.js +11 -0
  438. package/jsx/social/Chat/RepeatingView.mocks.js.map +1 -0
  439. package/jsx/social/Chat/RepeatingView.stories.d.ts +6 -17
  440. package/jsx/social/Chat/RepeatingView.stories.d.ts.map +1 -1
  441. package/jsx/social/Chat/RepeatingView.stories.jsx +16 -46
  442. package/jsx/social/Chat/RepeatingView.stories.jsx.map +1 -1
  443. package/jsx/social/Chat/RepeatingView.styles.d.ts +2 -0
  444. package/jsx/social/Chat/RepeatingView.styles.d.ts.map +1 -0
  445. package/jsx/social/Chat/RepeatingView.styles.js +22 -0
  446. package/jsx/social/Chat/RepeatingView.styles.js.map +1 -0
  447. package/jsx/social/Email/Email.mocks.d.ts +173 -4
  448. package/jsx/social/Email/Email.mocks.d.ts.map +1 -1
  449. package/jsx/social/Email/Email.mocks.jsx +420 -3
  450. package/jsx/social/Email/Email.mocks.jsx.map +1 -1
  451. package/jsx/social/Email/Email.stories.d.ts +19 -25
  452. package/jsx/social/Email/Email.stories.d.ts.map +1 -1
  453. package/jsx/social/Email/Email.stories.jsx +163 -426
  454. package/jsx/social/Email/Email.stories.jsx.map +1 -1
  455. package/jsx/social/Email/Email.styles.d.ts +4 -0
  456. package/jsx/social/Email/Email.styles.d.ts.map +1 -0
  457. package/jsx/social/Email/Email.styles.js +14 -0
  458. package/jsx/social/Email/Email.styles.js.map +1 -0
  459. package/jsx/social/Feed/Feed.mocks.d.ts.map +1 -1
  460. package/jsx/social/Feed/Feed.mocks.jsx.map +1 -1
  461. package/jsx/social/Feed/Feed.stories.d.ts +6 -11
  462. package/jsx/social/Feed/Feed.stories.d.ts.map +1 -1
  463. package/jsx/social/Feed/Feed.stories.jsx +24 -19
  464. package/jsx/social/Feed/Feed.stories.jsx.map +1 -1
  465. package/jsx/social/Feed/FeedNewPost.stories.d.ts +7 -14
  466. package/jsx/social/Feed/FeedNewPost.stories.d.ts.map +1 -1
  467. package/jsx/social/Feed/FeedNewPost.stories.jsx.map +1 -1
  468. package/jsx/social/Feed/FeedPost.stories.d.ts +4 -5
  469. package/jsx/social/Feed/FeedPost.stories.d.ts.map +1 -1
  470. package/jsx/social/Feed/FeedPost.stories.jsx +30 -20
  471. package/jsx/social/Feed/FeedPost.stories.jsx.map +1 -1
  472. package/jsx/social/Feed/FeedReply.stories.d.ts +10 -10
  473. package/jsx/social/Feed/FeedReply.stories.d.ts.map +1 -1
  474. package/jsx/social/Feed/FeedReply.stories.jsx +21 -16
  475. package/jsx/social/Feed/FeedReply.stories.jsx.map +1 -1
  476. package/jsx/social/Feed/FeedReplyInput.stories.d.ts +7 -12
  477. package/jsx/social/Feed/FeedReplyInput.stories.d.ts.map +1 -1
  478. package/jsx/social/Feed/FeedReplyInput.stories.jsx.map +1 -1
  479. package/jsx/work/CaseView/CaseView.mocks.d.ts.map +1 -1
  480. package/jsx/work/CaseView/CaseView.mocks.jsx +1 -1
  481. package/jsx/work/CaseView/CaseView.mocks.jsx.map +1 -1
  482. package/jsx/work/CaseView/CaseView.stories.d.ts +4 -11
  483. package/jsx/work/CaseView/CaseView.stories.d.ts.map +1 -1
  484. package/jsx/work/CaseView/CaseView.stories.jsx +7 -7
  485. package/jsx/work/CaseView/CaseView.stories.jsx.map +1 -1
  486. package/jsx/work/CaseView/Details.mocks.d.ts.map +1 -1
  487. package/jsx/work/CaseView/Details.mocks.jsx +1 -1
  488. package/jsx/work/CaseView/Details.mocks.jsx.map +1 -1
  489. package/jsx/work/CaseView/MobileCaseView.stories.d.ts +3 -9
  490. package/jsx/work/CaseView/MobileCaseView.stories.d.ts.map +1 -1
  491. package/jsx/work/CaseView/MobileCaseView.stories.jsx.map +1 -1
  492. package/jsx/work/CaseView/Pulse.mocks.d.ts.map +1 -1
  493. package/jsx/work/CaseView/Pulse.mocks.jsx +1 -1
  494. package/jsx/work/CaseView/Pulse.mocks.jsx.map +1 -1
  495. package/jsx/work/ConfigurableLayout/ConfigurableLayout.mocks.d.ts +45 -0
  496. package/jsx/work/ConfigurableLayout/ConfigurableLayout.mocks.d.ts.map +1 -0
  497. package/jsx/work/ConfigurableLayout/ConfigurableLayout.mocks.jsx +166 -0
  498. package/jsx/work/ConfigurableLayout/ConfigurableLayout.mocks.jsx.map +1 -0
  499. package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts +3 -8
  500. package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts.map +1 -1
  501. package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.jsx +3 -175
  502. package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.jsx.map +1 -1
  503. package/jsx/work/ConfigurableLayout/ConfigurableLayout.styles.d.ts +4 -0
  504. package/jsx/work/ConfigurableLayout/ConfigurableLayout.styles.d.ts.map +1 -0
  505. package/jsx/work/ConfigurableLayout/ConfigurableLayout.styles.js +11 -0
  506. package/jsx/work/ConfigurableLayout/ConfigurableLayout.styles.js.map +1 -0
  507. package/jsx/work/Confirmation/Confirmation.stories.d.ts.map +1 -1
  508. package/jsx/work/Confirmation/Confirmation.stories.jsx +3 -3
  509. package/jsx/work/Confirmation/Confirmation.stories.jsx.map +1 -1
  510. package/jsx/work/Details/Details.stories.d.ts.map +1 -1
  511. package/jsx/work/Details/Details.stories.jsx +21 -16
  512. package/jsx/work/Details/Details.stories.jsx.map +1 -1
  513. package/jsx/work/Glimpse/Glimpse.stories.d.ts.map +1 -1
  514. package/jsx/work/Glimpse/Glimpse.stories.jsx.map +1 -1
  515. package/jsx/work/SearchResults/SearchResults.stories.d.ts.map +1 -1
  516. package/jsx/work/SearchResults/SearchResults.stories.jsx +1 -1
  517. package/jsx/work/SearchResults/SearchResults.stories.jsx.map +1 -1
  518. package/jsx/work/Stakeholders/Stakeholders.mocks.d.ts.map +1 -1
  519. package/jsx/work/Stakeholders/Stakeholders.mocks.jsx +2 -2
  520. package/jsx/work/Stakeholders/Stakeholders.mocks.jsx.map +1 -1
  521. package/jsx/work/Stakeholders/Stakeholders.stories.d.ts +2 -3
  522. package/jsx/work/Stakeholders/Stakeholders.stories.d.ts.map +1 -1
  523. package/jsx/work/Stakeholders/Stakeholders.stories.jsx +1 -0
  524. package/jsx/work/Stakeholders/Stakeholders.stories.jsx.map +1 -1
  525. package/jsx/work/Tasks/Tasks.stories.jsx +1 -1
  526. package/jsx/work/Tasks/Tasks.stories.jsx.map +1 -1
  527. package/jsx/work/Timeline/Timeline.stories.d.ts +1 -0
  528. package/jsx/work/Timeline/Timeline.stories.d.ts.map +1 -1
  529. package/jsx/work/Timeline/Timeline.stories.jsx +29 -1
  530. package/jsx/work/Timeline/Timeline.stories.jsx.map +1 -1
  531. package/lib/build/AppHeader/AppHeader.stories.d.ts +2 -1
  532. package/lib/build/AppHeader/AppHeader.stories.d.ts.map +1 -1
  533. package/lib/build/AppHeader/AppHeader.stories.js +53 -15
  534. package/lib/build/AppHeader/AppHeader.stories.js.map +1 -1
  535. package/lib/build/AppShell/AppShell.mocks.d.ts +19 -0
  536. package/lib/build/AppShell/AppShell.mocks.d.ts.map +1 -1
  537. package/lib/build/AppShell/AppShell.mocks.js +32 -0
  538. package/lib/build/AppShell/AppShell.mocks.js.map +1 -1
  539. package/lib/build/AppShell/AppShell.stories.d.ts +4 -3
  540. package/lib/build/AppShell/AppShell.stories.d.ts.map +1 -1
  541. package/lib/build/AppShell/AppShell.stories.js +67 -57
  542. package/lib/build/AppShell/AppShell.stories.js.map +1 -1
  543. package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts +8 -0
  544. package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts.map +1 -0
  545. package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.js +85 -0
  546. package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.js.map +1 -0
  547. package/lib/build/DynamicContentEditor/FieldSelector.d.ts +14 -0
  548. package/lib/build/DynamicContentEditor/FieldSelector.d.ts.map +1 -0
  549. package/lib/build/DynamicContentEditor/FieldSelector.js +81 -0
  550. package/lib/build/DynamicContentEditor/FieldSelector.js.map +1 -0
  551. package/lib/build/FlowModeller/FlowModeller.mocks.d.ts +19 -2
  552. package/lib/build/FlowModeller/FlowModeller.mocks.d.ts.map +1 -1
  553. package/lib/build/FlowModeller/FlowModeller.mocks.js +81 -27
  554. package/lib/build/FlowModeller/FlowModeller.mocks.js.map +1 -1
  555. package/lib/build/FlowModeller/FlowModeller.stories.d.ts +8 -10
  556. package/lib/build/FlowModeller/FlowModeller.stories.d.ts.map +1 -1
  557. package/lib/build/FlowModeller/FlowModeller.stories.js +147 -138
  558. package/lib/build/FlowModeller/FlowModeller.stories.js.map +1 -1
  559. package/lib/build/FlowModeller/FlowModeller.styles.d.ts +2 -0
  560. package/lib/build/FlowModeller/FlowModeller.styles.d.ts.map +1 -0
  561. package/lib/build/FlowModeller/FlowModeller.styles.js +8 -0
  562. package/lib/build/FlowModeller/FlowModeller.styles.js.map +1 -0
  563. package/lib/build/ItemLibrary/LibraryPicker.mocks.d.ts +3 -0
  564. package/lib/build/ItemLibrary/LibraryPicker.mocks.d.ts.map +1 -0
  565. package/lib/build/ItemLibrary/LibraryPicker.mocks.js +45 -0
  566. package/lib/build/ItemLibrary/LibraryPicker.mocks.js.map +1 -0
  567. package/lib/build/ItemLibrary/LibraryPicker.stories.d.ts +5 -0
  568. package/lib/build/ItemLibrary/LibraryPicker.stories.d.ts.map +1 -0
  569. package/lib/build/ItemLibrary/LibraryPicker.stories.js +40 -0
  570. package/lib/build/ItemLibrary/LibraryPicker.stories.js.map +1 -0
  571. package/lib/build/LifeCycle/LifeCycle.mocks.d.ts +3 -0
  572. package/lib/build/LifeCycle/LifeCycle.mocks.d.ts.map +1 -1
  573. package/lib/build/LifeCycle/LifeCycle.mocks.js +107 -19
  574. package/lib/build/LifeCycle/LifeCycle.mocks.js.map +1 -1
  575. package/lib/build/LifeCycle/LifeCycle.stories.d.ts +6 -9
  576. package/lib/build/LifeCycle/LifeCycle.stories.d.ts.map +1 -1
  577. package/lib/build/LifeCycle/LifeCycle.stories.js +167 -79
  578. package/lib/build/LifeCycle/LifeCycle.stories.js.map +1 -1
  579. package/lib/build/LifeCycle/utils.d.ts.map +1 -1
  580. package/lib/build/LifeCycle/utils.js +5 -4
  581. package/lib/build/LifeCycle/utils.js.map +1 -1
  582. package/lib/build/ObjectSelect/ObjectSelect.mocks.d.ts +46 -0
  583. package/lib/build/ObjectSelect/ObjectSelect.mocks.d.ts.map +1 -0
  584. package/lib/build/ObjectSelect/ObjectSelect.mocks.js +308 -0
  585. package/lib/build/ObjectSelect/ObjectSelect.mocks.js.map +1 -0
  586. package/lib/build/ObjectSelect/ObjectSelect.stories.d.ts +8 -0
  587. package/lib/build/ObjectSelect/ObjectSelect.stories.d.ts.map +1 -0
  588. package/lib/build/ObjectSelect/ObjectSelect.stories.js +151 -0
  589. package/lib/build/ObjectSelect/ObjectSelect.stories.js.map +1 -0
  590. package/lib/build/ObjectSelect/ObjectSelect.styles.d.ts +4 -0
  591. package/lib/build/ObjectSelect/ObjectSelect.styles.d.ts.map +1 -0
  592. package/lib/build/ObjectSelect/ObjectSelect.styles.js +27 -0
  593. package/lib/build/ObjectSelect/ObjectSelect.styles.js.map +1 -0
  594. package/lib/build/PageTemplates/GalleryPage.mocks.d.ts +46 -0
  595. package/lib/build/PageTemplates/GalleryPage.mocks.d.ts.map +1 -0
  596. package/lib/build/PageTemplates/GalleryPage.mocks.js +77 -0
  597. package/lib/build/PageTemplates/GalleryPage.mocks.js.map +1 -0
  598. package/lib/build/PageTemplates/GalleryPage.stories.d.ts.map +1 -1
  599. package/lib/build/PageTemplates/GalleryPage.stories.js +14 -92
  600. package/lib/build/PageTemplates/GalleryPage.stories.js.map +1 -1
  601. package/lib/build/PageTemplates/PageTemplates.mocks.d.ts +18 -0
  602. package/lib/build/PageTemplates/PageTemplates.mocks.d.ts.map +1 -0
  603. package/lib/build/PageTemplates/PageTemplates.mocks.js +248 -0
  604. package/lib/build/PageTemplates/PageTemplates.mocks.js.map +1 -0
  605. package/lib/build/PageTemplates/PageTemplates.stories.d.ts +4 -9
  606. package/lib/build/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
  607. package/lib/build/PageTemplates/PageTemplates.stories.js +115 -253
  608. package/lib/build/PageTemplates/PageTemplates.stories.js.map +1 -1
  609. package/lib/build/Workbench/Workbench.stories.d.ts.map +1 -1
  610. package/lib/build/Workbench/Workbench.stories.js +26 -39
  611. package/lib/build/Workbench/Workbench.stories.js.map +1 -1
  612. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.mocks.d.ts +3 -0
  613. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.mocks.d.ts.map +1 -0
  614. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.mocks.js +13 -0
  615. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.mocks.js.map +1 -0
  616. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts +16 -8
  617. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts.map +1 -1
  618. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.js +59 -57
  619. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.js.map +1 -1
  620. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.styles.d.ts +5 -0
  621. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.styles.d.ts.map +1 -0
  622. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.styles.js +15 -0
  623. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.styles.js.map +1 -0
  624. package/lib/condition-builder/ConditionBuilder/props.mock.d.ts.map +1 -1
  625. package/lib/condition-builder/ConditionBuilder/props.mock.js +17 -2
  626. package/lib/condition-builder/ConditionBuilder/props.mock.js.map +1 -1
  627. package/lib/core/AppShell/AppShell.mocks.js +5 -5
  628. package/lib/core/AppShell/AppShell.mocks.js.map +1 -1
  629. package/lib/core/AppShell/AppShell.stories.d.ts +6 -0
  630. package/lib/core/AppShell/AppShell.stories.d.ts.map +1 -1
  631. package/lib/core/AppShell/AppShell.stories.js +33 -9
  632. package/lib/core/AppShell/AppShell.stories.js.map +1 -1
  633. package/lib/core/Avatar/Avatar.stories.d.ts +5 -0
  634. package/lib/core/Avatar/Avatar.stories.d.ts.map +1 -1
  635. package/lib/core/Avatar/Avatar.stories.js +34 -9
  636. package/lib/core/Avatar/Avatar.stories.js.map +1 -1
  637. package/lib/core/Backdrop/Backdrop.stories.js +2 -2
  638. package/lib/core/Backdrop/Backdrop.stories.js.map +1 -1
  639. package/lib/core/Badges/Alert.stories.js +1 -1
  640. package/lib/core/Badges/Alert.stories.js.map +1 -1
  641. package/lib/core/Badges/Count.stories.js +1 -1
  642. package/lib/core/Badges/Count.stories.js.map +1 -1
  643. package/lib/core/Badges/Keyboard.stories.d.ts +6 -0
  644. package/lib/core/Badges/Keyboard.stories.d.ts.map +1 -0
  645. package/lib/core/Badges/Keyboard.stories.js +16 -0
  646. package/lib/core/Badges/Keyboard.stories.js.map +1 -0
  647. package/lib/core/Badges/Selection.stories.d.ts +2 -3
  648. package/lib/core/Badges/Selection.stories.d.ts.map +1 -1
  649. package/lib/core/Badges/Selection.stories.js +1 -1
  650. package/lib/core/Badges/Selection.stories.js.map +1 -1
  651. package/lib/core/Badges/Status.stories.d.ts +5 -0
  652. package/lib/core/Badges/Status.stories.d.ts.map +1 -1
  653. package/lib/core/Badges/Status.stories.js +24 -2
  654. package/lib/core/Badges/Status.stories.js.map +1 -1
  655. package/lib/core/Badges/Tag.stories.d.ts +2 -3
  656. package/lib/core/Badges/Tag.stories.d.ts.map +1 -1
  657. package/lib/core/Badges/Tag.stories.js +1 -1
  658. package/lib/core/Badges/Tag.stories.js.map +1 -1
  659. package/lib/core/Banner/Banner.mocks.js +1 -1
  660. package/lib/core/Banner/Banner.mocks.js.map +1 -1
  661. package/lib/core/Banner/Banner.stories.d.ts +12 -19
  662. package/lib/core/Banner/Banner.stories.d.ts.map +1 -1
  663. package/lib/core/Banner/Banner.stories.js +30 -13
  664. package/lib/core/Banner/Banner.stories.js.map +1 -1
  665. package/lib/core/Boolean/BooleanDisplay.stories.js +1 -1
  666. package/lib/core/Boolean/BooleanDisplay.stories.js.map +1 -1
  667. package/lib/core/Breadcrumbs/Breadcrumbs.stories.d.ts +3 -4
  668. package/lib/core/Breadcrumbs/Breadcrumbs.stories.d.ts.map +1 -1
  669. package/lib/core/Breadcrumbs/Breadcrumbs.stories.js +2 -2
  670. package/lib/core/Breadcrumbs/Breadcrumbs.stories.js.map +1 -1
  671. package/lib/core/Button/Button.stories.d.ts +10 -3
  672. package/lib/core/Button/Button.stories.d.ts.map +1 -1
  673. package/lib/core/Button/Button.stories.js +35 -8
  674. package/lib/core/Button/Button.stories.js.map +1 -1
  675. package/lib/core/Card/Card.stories.d.ts +6 -2
  676. package/lib/core/Card/Card.stories.d.ts.map +1 -1
  677. package/lib/core/Card/Card.stories.js +22 -4
  678. package/lib/core/Card/Card.stories.js.map +1 -1
  679. package/lib/core/Checkbox/Checkbox.stories.d.ts +12 -0
  680. package/lib/core/Checkbox/Checkbox.stories.d.ts.map +1 -1
  681. package/lib/core/Checkbox/Checkbox.stories.js +54 -3
  682. package/lib/core/Checkbox/Checkbox.stories.js.map +1 -1
  683. package/lib/core/CheckboxGroup/CheckboxGroup.stories.d.ts +3 -3
  684. package/lib/core/CheckboxGroup/CheckboxGroup.stories.d.ts.map +1 -1
  685. package/lib/core/CheckboxGroup/CheckboxGroup.stories.js +3 -3
  686. package/lib/core/CheckboxGroup/CheckboxGroup.stories.js.map +1 -1
  687. package/lib/core/ColorPicker/ColorPicker.stories.d.ts +1 -2
  688. package/lib/core/ColorPicker/ColorPicker.stories.d.ts.map +1 -1
  689. package/lib/core/ColorPicker/ColorPicker.stories.js +7 -15
  690. package/lib/core/ColorPicker/ColorPicker.stories.js.map +1 -1
  691. package/lib/core/ColorPicker/ColorPicker.styles.d.ts +4 -0
  692. package/lib/core/ColorPicker/ColorPicker.styles.d.ts.map +1 -0
  693. package/lib/core/ColorPicker/ColorPicker.styles.js +11 -0
  694. package/lib/core/ColorPicker/ColorPicker.styles.js.map +1 -0
  695. package/lib/core/ComboBox/ComboBox.stories.js +6 -6
  696. package/lib/core/ComboBox/ComboBox.stories.js.map +1 -1
  697. package/lib/core/Configuration/Configuration.mocks.d.ts +7 -0
  698. package/lib/core/Configuration/Configuration.mocks.d.ts.map +1 -0
  699. package/lib/core/Configuration/Configuration.mocks.js +6 -0
  700. package/lib/core/Configuration/Configuration.mocks.js.map +1 -0
  701. package/lib/core/Configuration/Configuration.stories.d.ts +19 -3
  702. package/lib/core/Configuration/Configuration.stories.d.ts.map +1 -1
  703. package/lib/core/Configuration/Configuration.stories.js +71 -24
  704. package/lib/core/Configuration/Configuration.stories.js.map +1 -1
  705. package/lib/core/Configuration/Configuration.styles.d.ts +6 -0
  706. package/lib/core/Configuration/Configuration.styles.d.ts.map +1 -0
  707. package/lib/core/Configuration/Configuration.styles.js +12 -0
  708. package/lib/core/Configuration/Configuration.styles.js.map +1 -0
  709. package/lib/core/CreditCard/CreditCard.stories.d.ts +11 -0
  710. package/lib/core/CreditCard/CreditCard.stories.d.ts.map +1 -0
  711. package/lib/core/CreditCard/CreditCard.stories.js +46 -0
  712. package/lib/core/CreditCard/CreditCard.stories.js.map +1 -0
  713. package/lib/core/Currency/Currency.stories.d.ts +7 -4
  714. package/lib/core/Currency/Currency.stories.d.ts.map +1 -1
  715. package/lib/core/Currency/Currency.stories.js +32 -14
  716. package/lib/core/Currency/Currency.stories.js.map +1 -1
  717. package/lib/core/DateTime/DateTime.stories.d.ts.map +1 -1
  718. package/lib/core/DateTime/DateTime.stories.js +12 -10
  719. package/lib/core/DateTime/DateTime.stories.js.map +1 -1
  720. package/lib/core/DateTime/DateTimeDisplay.stories.js +2 -2
  721. package/lib/core/DateTime/DateTimeDisplay.stories.js.map +1 -1
  722. package/lib/core/DateTime/DateTimePicker.stories.js +2 -2
  723. package/lib/core/DateTime/DateTimePicker.stories.js.map +1 -1
  724. package/lib/core/Drawer/Drawer.stories.js +4 -4
  725. package/lib/core/Drawer/Drawer.stories.js.map +1 -1
  726. package/lib/core/Email/EmailDisplay.stories.js +1 -1
  727. package/lib/core/Email/EmailDisplay.stories.js.map +1 -1
  728. package/lib/core/EmojiPicker/EmojiPicker.stories.js +3 -3
  729. package/lib/core/EmojiPicker/EmojiPicker.stories.js.map +1 -1
  730. package/lib/core/EmptyState/EmptyState.stories.js +1 -1
  731. package/lib/core/EmptyState/EmptyState.stories.js.map +1 -1
  732. package/lib/core/ErrorState/ErrorState.stories.js +1 -1
  733. package/lib/core/ErrorState/ErrorState.stories.js.map +1 -1
  734. package/lib/core/ExpandCollapse/ExpandCollapse.stories.js +2 -2
  735. package/lib/core/ExpandCollapse/ExpandCollapse.stories.js.map +1 -1
  736. package/lib/core/FieldGroup/FieldGroup.stories.d.ts +6 -4
  737. package/lib/core/FieldGroup/FieldGroup.stories.d.ts.map +1 -1
  738. package/lib/core/FieldGroup/FieldGroup.stories.js +7 -3
  739. package/lib/core/FieldGroup/FieldGroup.stories.js.map +1 -1
  740. package/lib/core/FieldGroup/FieldGroupList.mocks.d.ts +4 -0
  741. package/lib/core/FieldGroup/FieldGroupList.mocks.d.ts.map +1 -1
  742. package/lib/core/FieldGroup/FieldGroupList.mocks.js +47 -3
  743. package/lib/core/FieldGroup/FieldGroupList.mocks.js.map +1 -1
  744. package/lib/core/FieldGroup/FieldGroupList.stories.d.ts +9 -8
  745. package/lib/core/FieldGroup/FieldGroupList.stories.d.ts.map +1 -1
  746. package/lib/core/FieldGroup/FieldGroupList.stories.js +54 -67
  747. package/lib/core/FieldGroup/FieldGroupList.stories.js.map +1 -1
  748. package/lib/core/FieldValueList/FieldValueList.stories.d.ts +2 -2
  749. package/lib/core/FieldValueList/FieldValueList.stories.d.ts.map +1 -1
  750. package/lib/core/FieldValueList/FieldValueList.stories.js +4 -4
  751. package/lib/core/FieldValueList/FieldValueList.stories.js.map +1 -1
  752. package/lib/core/File/FileDisplay.stories.d.ts.map +1 -1
  753. package/lib/core/File/FileDisplay.stories.js +25 -37
  754. package/lib/core/File/FileDisplay.stories.js.map +1 -1
  755. package/lib/core/File/FileInput.stories.d.ts.map +1 -1
  756. package/lib/core/File/FileInput.stories.js +3 -3
  757. package/lib/core/File/FileInput.stories.js.map +1 -1
  758. package/lib/core/Flex/FlexContainer.stories.d.ts +1 -2
  759. package/lib/core/Flex/FlexContainer.stories.d.ts.map +1 -1
  760. package/lib/core/Flex/FlexContainer.stories.js +7 -7
  761. package/lib/core/Flex/FlexContainer.stories.js.map +1 -1
  762. package/lib/core/Flex/FlexItem.stories.js +3 -3
  763. package/lib/core/Flex/FlexItem.stories.js.map +1 -1
  764. package/lib/core/Form/Form.mocks.d.ts.map +1 -1
  765. package/lib/core/Form/Form.mocks.js +5 -5
  766. package/lib/core/Form/Form.mocks.js.map +1 -1
  767. package/lib/core/Form/Form.stories.d.ts +10 -0
  768. package/lib/core/Form/Form.stories.d.ts.map +1 -1
  769. package/lib/core/Form/Form.stories.js +47 -9
  770. package/lib/core/Form/Form.stories.js.map +1 -1
  771. package/lib/core/Grid/GridContainer.stories.d.ts +4 -5
  772. package/lib/core/Grid/GridContainer.stories.d.ts.map +1 -1
  773. package/lib/core/Grid/GridContainer.stories.js +9 -9
  774. package/lib/core/Grid/GridContainer.stories.js.map +1 -1
  775. package/lib/core/Grid/GridItem.stories.d.ts +1 -2
  776. package/lib/core/Grid/GridItem.stories.d.ts.map +1 -1
  777. package/lib/core/Grid/GridItem.stories.js +3 -3
  778. package/lib/core/Grid/GridItem.stories.js.map +1 -1
  779. package/lib/core/HTML/HTML.stories.d.ts +6 -0
  780. package/lib/core/HTML/HTML.stories.d.ts.map +1 -0
  781. package/lib/core/HTML/HTML.stories.js +14 -0
  782. package/lib/core/HTML/HTML.stories.js.map +1 -0
  783. package/lib/core/Icon/Icon.mocks.js +1 -1
  784. package/lib/core/Icon/Icon.mocks.js.map +1 -1
  785. package/lib/core/Icon/Icon.stories.d.ts +5 -6
  786. package/lib/core/Icon/Icon.stories.d.ts.map +1 -1
  787. package/lib/core/Icon/Icon.stories.js +12 -35
  788. package/lib/core/Icon/Icon.stories.js.map +1 -1
  789. package/lib/core/Icon/Icon.styles.d.ts +4 -0
  790. package/lib/core/Icon/Icon.styles.d.ts.map +1 -0
  791. package/lib/core/Icon/Icon.styles.js +25 -0
  792. package/lib/core/Icon/Icon.styles.js.map +1 -0
  793. package/lib/core/IconPicker/IconPicker.stories.js +2 -2
  794. package/lib/core/IconPicker/IconPicker.stories.js.map +1 -1
  795. package/lib/core/Image/Image.stories.d.ts +2 -3
  796. package/lib/core/Image/Image.stories.d.ts.map +1 -1
  797. package/lib/core/Image/Image.stories.js +1 -1
  798. package/lib/core/Image/Image.stories.js.map +1 -1
  799. package/lib/core/Input/Input.stories.d.ts +9 -0
  800. package/lib/core/Input/Input.stories.d.ts.map +1 -1
  801. package/lib/core/Input/Input.stories.js +39 -2
  802. package/lib/core/Input/Input.stories.js.map +1 -1
  803. package/lib/core/Label/Label.stories.d.ts +4 -0
  804. package/lib/core/Label/Label.stories.d.ts.map +1 -1
  805. package/lib/core/Label/Label.stories.js +17 -2
  806. package/lib/core/Label/Label.stories.js.map +1 -1
  807. package/lib/core/Lightbox/Lightbox.stories.js +3 -3
  808. package/lib/core/Lightbox/Lightbox.stories.js.map +1 -1
  809. package/lib/core/Link/Link.stories.d.ts +1 -11
  810. package/lib/core/Link/Link.stories.d.ts.map +1 -1
  811. package/lib/core/Link/Link.stories.js +3 -3
  812. package/lib/core/Link/Link.stories.js.map +1 -1
  813. package/lib/core/List/CommaSeparatedList.stories.d.ts +2 -2
  814. package/lib/core/List/CommaSeparatedList.stories.d.ts.map +1 -1
  815. package/lib/core/List/CommaSeparatedList.stories.js +1 -1
  816. package/lib/core/List/CommaSeparatedList.stories.js.map +1 -1
  817. package/lib/core/List/OrderedList.stories.js +1 -1
  818. package/lib/core/List/OrderedList.stories.js.map +1 -1
  819. package/lib/core/List/UnorderedList.stories.js +1 -1
  820. package/lib/core/List/UnorderedList.stories.js.map +1 -1
  821. package/lib/core/ListToolbar/ListToolbar.mocks.d.ts +9 -0
  822. package/lib/core/ListToolbar/ListToolbar.mocks.d.ts.map +1 -0
  823. package/lib/core/ListToolbar/ListToolbar.mocks.js +50 -0
  824. package/lib/core/ListToolbar/ListToolbar.mocks.js.map +1 -0
  825. package/lib/core/ListToolbar/ListToolbar.stories.d.ts +6 -0
  826. package/lib/core/ListToolbar/ListToolbar.stories.d.ts.map +1 -0
  827. package/lib/core/ListToolbar/ListToolbar.stories.js +79 -0
  828. package/lib/core/ListToolbar/ListToolbar.stories.js.map +1 -0
  829. package/lib/core/Location/Location.stories.js +4 -4
  830. package/lib/core/Location/Location.stories.js.map +1 -1
  831. package/lib/core/Menu/Menu.stories.js +5 -5
  832. package/lib/core/Menu/Menu.stories.js.map +1 -1
  833. package/lib/core/MenuButton/MenuButton.stories.d.ts +6 -6
  834. package/lib/core/MenuButton/MenuButton.stories.d.ts.map +1 -1
  835. package/lib/core/MenuButton/MenuButton.stories.js +9 -9
  836. package/lib/core/MenuButton/MenuButton.stories.js.map +1 -1
  837. package/lib/core/MetaList/MetaList.stories.js +3 -3
  838. package/lib/core/MetaList/MetaList.stories.js.map +1 -1
  839. package/lib/core/Modal/Modal.mocks.d.ts.map +1 -1
  840. package/lib/core/Modal/Modal.mocks.js +11 -11
  841. package/lib/core/Modal/Modal.mocks.js.map +1 -1
  842. package/lib/core/Modal/Modal.stories.d.ts +10 -5
  843. package/lib/core/Modal/Modal.stories.d.ts.map +1 -1
  844. package/lib/core/Modal/Modal.stories.js +40 -35
  845. package/lib/core/Modal/Modal.stories.js.map +1 -1
  846. package/lib/core/MultiStep/MultiStep.stories.d.ts +2 -3
  847. package/lib/core/MultiStep/MultiStep.stories.d.ts.map +1 -1
  848. package/lib/core/MultiStep/MultiStep.stories.js +3 -3
  849. package/lib/core/MultiStep/MultiStep.stories.js.map +1 -1
  850. package/lib/core/Number/Number.stories.d.ts +10 -6
  851. package/lib/core/Number/Number.stories.d.ts.map +1 -1
  852. package/lib/core/Number/Number.stories.js +41 -22
  853. package/lib/core/Number/Number.stories.js.map +1 -1
  854. package/lib/core/PageTemplates/PageTemplates.stories.d.ts +5 -3
  855. package/lib/core/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
  856. package/lib/core/PageTemplates/PageTemplates.stories.js +88 -42
  857. package/lib/core/PageTemplates/PageTemplates.stories.js.map +1 -1
  858. package/lib/core/PageTemplates/PageTemplates.styles.d.ts +1 -0
  859. package/lib/core/PageTemplates/PageTemplates.styles.d.ts.map +1 -1
  860. package/lib/core/PageTemplates/PageTemplates.styles.js +9 -0
  861. package/lib/core/PageTemplates/PageTemplates.styles.js.map +1 -1
  862. package/lib/core/Pagination/Pagination.stories.js +1 -1
  863. package/lib/core/Pagination/Pagination.stories.js.map +1 -1
  864. package/lib/core/Paragraph/ParagraphDisplay.stories.js +1 -1
  865. package/lib/core/Paragraph/ParagraphDisplay.stories.js.map +1 -1
  866. package/lib/core/Phone/Phone.stories.d.ts.map +1 -1
  867. package/lib/core/Phone/Phone.stories.js +4 -2
  868. package/lib/core/Phone/Phone.stories.js.map +1 -1
  869. package/lib/core/Popover/Popover.stories.d.ts +1 -1
  870. package/lib/core/Popover/Popover.stories.d.ts.map +1 -1
  871. package/lib/core/Popover/Popover.stories.js +2 -2
  872. package/lib/core/Popover/Popover.stories.js.map +1 -1
  873. package/lib/core/Progress/Progress.stories.d.ts +4 -0
  874. package/lib/core/Progress/Progress.stories.d.ts.map +1 -1
  875. package/lib/core/Progress/Progress.stories.js +20 -3
  876. package/lib/core/Progress/Progress.stories.js.map +1 -1
  877. package/lib/core/RadioButton/RadioButton.stories.d.ts +12 -0
  878. package/lib/core/RadioButton/RadioButton.stories.d.ts.map +1 -1
  879. package/lib/core/RadioButton/RadioButton.stories.js +53 -3
  880. package/lib/core/RadioButton/RadioButton.stories.js.map +1 -1
  881. package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts +3 -3
  882. package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts.map +1 -1
  883. package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.js +3 -3
  884. package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.js.map +1 -1
  885. package/lib/core/Rating/Rating.stories.d.ts +4 -0
  886. package/lib/core/Rating/Rating.stories.d.ts.map +1 -1
  887. package/lib/core/Rating/Rating.stories.js +17 -2
  888. package/lib/core/Rating/Rating.stories.js.map +1 -1
  889. package/lib/core/SearchInput/SearchInput.mocks.d.ts +12 -0
  890. package/lib/core/SearchInput/SearchInput.mocks.d.ts.map +1 -0
  891. package/lib/core/SearchInput/SearchInput.mocks.js +25 -0
  892. package/lib/core/SearchInput/SearchInput.mocks.js.map +1 -0
  893. package/lib/core/SearchInput/SearchInput.stories.d.ts +1 -0
  894. package/lib/core/SearchInput/SearchInput.stories.d.ts.map +1 -1
  895. package/lib/core/SearchInput/SearchInput.stories.js +30 -1
  896. package/lib/core/SearchInput/SearchInput.stories.js.map +1 -1
  897. package/lib/core/Select/Select.stories.d.ts +8 -0
  898. package/lib/core/Select/Select.stories.d.ts.map +1 -1
  899. package/lib/core/Select/Select.stories.js +29 -2
  900. package/lib/core/Select/Select.stories.js.map +1 -1
  901. package/lib/core/Sentiment/Sentiment.stories.d.ts +6 -0
  902. package/lib/core/Sentiment/Sentiment.stories.d.ts.map +1 -1
  903. package/lib/core/Sentiment/Sentiment.stories.js +30 -3
  904. package/lib/core/Sentiment/Sentiment.stories.js.map +1 -1
  905. package/lib/core/Slider/Slider.stories.d.ts +4 -3
  906. package/lib/core/Slider/Slider.stories.d.ts.map +1 -1
  907. package/lib/core/Slider/Slider.stories.js +2 -2
  908. package/lib/core/Slider/Slider.stories.js.map +1 -1
  909. package/lib/core/SummaryItem/SummaryItem.stories.d.ts +5 -5
  910. package/lib/core/SummaryItem/SummaryItem.stories.d.ts.map +1 -1
  911. package/lib/core/SummaryItem/SummaryItem.stories.js +4 -4
  912. package/lib/core/SummaryItem/SummaryItem.stories.js.map +1 -1
  913. package/lib/core/SummaryList/SummaryList.mocks.js +2 -2
  914. package/lib/core/SummaryList/SummaryList.mocks.js.map +1 -1
  915. package/lib/core/SummaryList/SummaryList.stories.d.ts +2 -2
  916. package/lib/core/SummaryList/SummaryList.stories.d.ts.map +1 -1
  917. package/lib/core/SummaryList/SummaryList.stories.js +5 -5
  918. package/lib/core/SummaryList/SummaryList.stories.js.map +1 -1
  919. package/lib/core/Switch/Switch.stories.d.ts +7 -0
  920. package/lib/core/Switch/Switch.stories.d.ts.map +1 -1
  921. package/lib/core/Switch/Switch.stories.js +34 -3
  922. package/lib/core/Switch/Switch.stories.js.map +1 -1
  923. package/lib/core/Table/Table.mocks.d.ts +6 -0
  924. package/lib/core/Table/Table.mocks.d.ts.map +1 -1
  925. package/lib/core/Table/Table.mocks.js +135 -1
  926. package/lib/core/Table/Table.mocks.js.map +1 -1
  927. package/lib/core/Table/Table.stories.d.ts +25 -0
  928. package/lib/core/Table/Table.stories.d.ts.map +1 -1
  929. package/lib/core/Table/Table.stories.js +118 -6
  930. package/lib/core/Table/Table.stories.js.map +1 -1
  931. package/lib/core/Tabs/Tabs.stories.d.ts +10 -2
  932. package/lib/core/Tabs/Tabs.stories.d.ts.map +1 -1
  933. package/lib/core/Tabs/Tabs.stories.js +32 -3
  934. package/lib/core/Tabs/Tabs.stories.js.map +1 -1
  935. package/lib/core/Text/Text.stories.d.ts +19 -0
  936. package/lib/core/Text/Text.stories.d.ts.map +1 -1
  937. package/lib/core/Text/Text.stories.js +103 -3
  938. package/lib/core/Text/Text.stories.js.map +1 -1
  939. package/lib/core/TextArea/TextArea.stories.d.ts +5 -0
  940. package/lib/core/TextArea/TextArea.stories.d.ts.map +1 -1
  941. package/lib/core/TextArea/TextArea.stories.js +21 -2
  942. package/lib/core/TextArea/TextArea.stories.js.map +1 -1
  943. package/lib/core/Toaster/Toaster.stories.d.ts +2 -3
  944. package/lib/core/Toaster/Toaster.stories.d.ts.map +1 -1
  945. package/lib/core/Toaster/Toaster.stories.js +15 -19
  946. package/lib/core/Toaster/Toaster.stories.js.map +1 -1
  947. package/lib/core/Tooltip/Tooltip.stories.d.ts +8 -6
  948. package/lib/core/Tooltip/Tooltip.stories.d.ts.map +1 -1
  949. package/lib/core/Tooltip/Tooltip.stories.js +21 -2
  950. package/lib/core/Tooltip/Tooltip.stories.js.map +1 -1
  951. package/lib/core/Tree/Tree.stories.d.ts +1 -2
  952. package/lib/core/Tree/Tree.stories.d.ts.map +1 -1
  953. package/lib/core/Tree/Tree.stories.js +5 -5
  954. package/lib/core/Tree/Tree.stories.js.map +1 -1
  955. package/lib/core/URL/URL.stories.js +1 -1
  956. package/lib/core/URL/URL.stories.js.map +1 -1
  957. package/lib/cs/Article/Article.stories.d.ts +4 -13
  958. package/lib/cs/Article/Article.stories.d.ts.map +1 -1
  959. package/lib/cs/Article/Article.stories.js +9 -9
  960. package/lib/cs/Article/Article.stories.js.map +1 -1
  961. package/lib/cs/ArticleList/ArticleList.stories.d.ts +4 -14
  962. package/lib/cs/ArticleList/ArticleList.stories.d.ts.map +1 -1
  963. package/lib/cs/ArticleList/ArticleList.stories.js +12 -11
  964. package/lib/cs/ArticleList/ArticleList.stories.js.map +1 -1
  965. package/lib/cs/CSCaseView/CSAppShell.stories.d.ts +3 -37
  966. package/lib/cs/CSCaseView/CSAppShell.stories.d.ts.map +1 -1
  967. package/lib/cs/CSCaseView/CSAppShell.stories.js +24 -37
  968. package/lib/cs/CSCaseView/CSAppShell.stories.js.map +1 -1
  969. package/lib/cs/CSCaseView/CSCaseView.mocks.d.ts +9 -0
  970. package/lib/cs/CSCaseView/CSCaseView.mocks.d.ts.map +1 -1
  971. package/lib/cs/CSCaseView/CSCaseView.mocks.js +16 -0
  972. package/lib/cs/CSCaseView/CSCaseView.mocks.js.map +1 -1
  973. package/lib/cs/CallControlPanel/CallControlPanel.stories.d.ts +3 -2
  974. package/lib/cs/CallControlPanel/CallControlPanel.stories.d.ts.map +1 -1
  975. package/lib/cs/CallControlPanel/CallControlPanel.stories.js +22 -7
  976. package/lib/cs/CallControlPanel/CallControlPanel.stories.js.map +1 -1
  977. package/lib/cs/DialPad/DialPad.stories.js +1 -1
  978. package/lib/cs/DialPad/DialPad.stories.js.map +1 -1
  979. package/lib/cs/IntelligentGuidance/IntelligentGuidance.stories.d.ts +4 -11
  980. package/lib/cs/IntelligentGuidance/IntelligentGuidance.stories.d.ts.map +1 -1
  981. package/lib/cs/IntelligentGuidance/IntelligentGuidance.stories.js +38 -36
  982. package/lib/cs/IntelligentGuidance/IntelligentGuidance.stories.js.map +1 -1
  983. package/lib/cs/InteractionNotification/InteractionNotification.stories.d.ts +7 -6
  984. package/lib/cs/InteractionNotification/InteractionNotification.stories.d.ts.map +1 -1
  985. package/lib/cs/InteractionNotification/InteractionNotification.stories.js +13 -5
  986. package/lib/cs/InteractionNotification/InteractionNotification.stories.js.map +1 -1
  987. package/lib/cs/InteractionTimer/InteractionTimer.mocks.d.ts +11 -0
  988. package/lib/cs/InteractionTimer/InteractionTimer.mocks.d.ts.map +1 -0
  989. package/lib/cs/InteractionTimer/InteractionTimer.mocks.js +29 -0
  990. package/lib/cs/InteractionTimer/InteractionTimer.mocks.js.map +1 -0
  991. package/lib/cs/InteractionTimer/InteractionTimer.stories.d.ts +3 -7
  992. package/lib/cs/InteractionTimer/InteractionTimer.stories.d.ts.map +1 -1
  993. package/lib/cs/InteractionTimer/InteractionTimer.stories.js +38 -43
  994. package/lib/cs/InteractionTimer/InteractionTimer.stories.js.map +1 -1
  995. package/lib/cs/TaskManager/TaskManager.mocks.d.ts +7 -2
  996. package/lib/cs/TaskManager/TaskManager.mocks.d.ts.map +1 -1
  997. package/lib/cs/TaskManager/TaskManager.mocks.js +12 -10
  998. package/lib/cs/TaskManager/TaskManager.mocks.js.map +1 -1
  999. package/lib/cs/TaskManager/TaskManager.stories.d.ts +12 -6
  1000. package/lib/cs/TaskManager/TaskManager.stories.d.ts.map +1 -1
  1001. package/lib/cs/TaskManager/TaskManager.stories.js +143 -124
  1002. package/lib/cs/TaskManager/TaskManager.stories.js.map +1 -1
  1003. package/lib/cs/TaskManager/TaskManager.styles.d.ts +3 -0
  1004. package/lib/cs/TaskManager/TaskManager.styles.d.ts.map +1 -0
  1005. package/lib/cs/TaskManager/TaskManager.styles.js +8 -0
  1006. package/lib/cs/TaskManager/TaskManager.styles.js.map +1 -0
  1007. package/lib/dnd/DragDropList/DragDropList.mocks.d.ts +15 -0
  1008. package/lib/dnd/DragDropList/DragDropList.mocks.d.ts.map +1 -0
  1009. package/lib/dnd/DragDropList/DragDropList.mocks.js +32 -0
  1010. package/lib/dnd/DragDropList/DragDropList.mocks.js.map +1 -0
  1011. package/lib/dnd/DragDropList/DragDropList.stories.d.ts +8 -9
  1012. package/lib/dnd/DragDropList/DragDropList.stories.d.ts.map +1 -1
  1013. package/lib/dnd/DragDropList/DragDropList.stories.js +16 -87
  1014. package/lib/dnd/DragDropList/DragDropList.stories.js.map +1 -1
  1015. package/lib/dnd/DragDropList/DragDropList.styles.d.ts +6 -0
  1016. package/lib/dnd/DragDropList/DragDropList.styles.d.ts.map +1 -0
  1017. package/lib/dnd/DragDropList/DragDropList.styles.js +32 -0
  1018. package/lib/dnd/DragDropList/DragDropList.styles.js.map +1 -0
  1019. package/lib/rte/Editor/Editor.mocks.d.ts +309 -0
  1020. package/lib/rte/Editor/Editor.mocks.d.ts.map +1 -0
  1021. package/lib/rte/Editor/Editor.mocks.js +26 -0
  1022. package/lib/rte/Editor/Editor.mocks.js.map +1 -0
  1023. package/lib/rte/Editor/Editor.stories.d.ts +7 -8
  1024. package/lib/rte/Editor/Editor.stories.d.ts.map +1 -1
  1025. package/lib/rte/Editor/Editor.stories.js +8 -28
  1026. package/lib/rte/Editor/Editor.stories.js.map +1 -1
  1027. package/lib/rte/RichTextEditor/RichTextEditor.mocks.js +5 -5
  1028. package/lib/rte/RichTextEditor/RichTextEditor.mocks.js.map +1 -1
  1029. package/lib/rte/RichTextEditor/RichTextEditor.stories.d.ts +2 -3
  1030. package/lib/rte/RichTextEditor/RichTextEditor.stories.d.ts.map +1 -1
  1031. package/lib/rte/RichTextEditor/RichTextEditor.stories.js +5 -5
  1032. package/lib/rte/RichTextEditor/RichTextEditor.stories.js.map +1 -1
  1033. package/lib/rte/RichTextEditor/RichTextViewer.stories.d.ts +5 -5
  1034. package/lib/rte/RichTextEditor/RichTextViewer.stories.d.ts.map +1 -1
  1035. package/lib/rte/RichTextEditor/RichTextViewer.stories.js +19 -6
  1036. package/lib/rte/RichTextEditor/RichTextViewer.stories.js.map +1 -1
  1037. package/lib/social/Chat/Chat.stories.d.ts +6 -7
  1038. package/lib/social/Chat/Chat.stories.d.ts.map +1 -1
  1039. package/lib/social/Chat/Chat.stories.js +31 -31
  1040. package/lib/social/Chat/Chat.stories.js.map +1 -1
  1041. package/lib/social/Chat/RepeatingView.mocks.d.ts +14 -0
  1042. package/lib/social/Chat/RepeatingView.mocks.d.ts.map +1 -0
  1043. package/lib/social/Chat/RepeatingView.mocks.js +11 -0
  1044. package/lib/social/Chat/RepeatingView.mocks.js.map +1 -0
  1045. package/lib/social/Chat/RepeatingView.stories.d.ts +6 -17
  1046. package/lib/social/Chat/RepeatingView.stories.d.ts.map +1 -1
  1047. package/lib/social/Chat/RepeatingView.stories.js +18 -48
  1048. package/lib/social/Chat/RepeatingView.stories.js.map +1 -1
  1049. package/lib/social/Chat/RepeatingView.styles.d.ts +2 -0
  1050. package/lib/social/Chat/RepeatingView.styles.d.ts.map +1 -0
  1051. package/lib/social/Chat/RepeatingView.styles.js +22 -0
  1052. package/lib/social/Chat/RepeatingView.styles.js.map +1 -0
  1053. package/lib/social/Email/Email.mocks.d.ts +173 -4
  1054. package/lib/social/Email/Email.mocks.d.ts.map +1 -1
  1055. package/lib/social/Email/Email.mocks.js +420 -3
  1056. package/lib/social/Email/Email.mocks.js.map +1 -1
  1057. package/lib/social/Email/Email.stories.d.ts +19 -25
  1058. package/lib/social/Email/Email.stories.d.ts.map +1 -1
  1059. package/lib/social/Email/Email.stories.js +155 -448
  1060. package/lib/social/Email/Email.stories.js.map +1 -1
  1061. package/lib/social/Email/Email.styles.d.ts +4 -0
  1062. package/lib/social/Email/Email.styles.d.ts.map +1 -0
  1063. package/lib/social/Email/Email.styles.js +14 -0
  1064. package/lib/social/Email/Email.styles.js.map +1 -0
  1065. package/lib/social/Feed/Feed.mocks.d.ts.map +1 -1
  1066. package/lib/social/Feed/Feed.mocks.js +40 -40
  1067. package/lib/social/Feed/Feed.mocks.js.map +1 -1
  1068. package/lib/social/Feed/Feed.stories.d.ts +6 -11
  1069. package/lib/social/Feed/Feed.stories.d.ts.map +1 -1
  1070. package/lib/social/Feed/Feed.stories.js +30 -25
  1071. package/lib/social/Feed/Feed.stories.js.map +1 -1
  1072. package/lib/social/Feed/FeedNewPost.stories.d.ts +7 -14
  1073. package/lib/social/Feed/FeedNewPost.stories.d.ts.map +1 -1
  1074. package/lib/social/Feed/FeedNewPost.stories.js +2 -2
  1075. package/lib/social/Feed/FeedNewPost.stories.js.map +1 -1
  1076. package/lib/social/Feed/FeedPost.stories.d.ts +4 -5
  1077. package/lib/social/Feed/FeedPost.stories.d.ts.map +1 -1
  1078. package/lib/social/Feed/FeedPost.stories.js +37 -27
  1079. package/lib/social/Feed/FeedPost.stories.js.map +1 -1
  1080. package/lib/social/Feed/FeedReply.stories.d.ts +10 -10
  1081. package/lib/social/Feed/FeedReply.stories.d.ts.map +1 -1
  1082. package/lib/social/Feed/FeedReply.stories.js +25 -20
  1083. package/lib/social/Feed/FeedReply.stories.js.map +1 -1
  1084. package/lib/social/Feed/FeedReplyInput.stories.d.ts +7 -12
  1085. package/lib/social/Feed/FeedReplyInput.stories.d.ts.map +1 -1
  1086. package/lib/social/Feed/FeedReplyInput.stories.js +2 -2
  1087. package/lib/social/Feed/FeedReplyInput.stories.js.map +1 -1
  1088. package/lib/work/AppAnnouncement/AppAnnouncement.stories.js +1 -1
  1089. package/lib/work/AppAnnouncement/AppAnnouncement.stories.js.map +1 -1
  1090. package/lib/work/CaseView/Attachments.mocks.js +15 -15
  1091. package/lib/work/CaseView/Attachments.mocks.js.map +1 -1
  1092. package/lib/work/CaseView/CaseView.mocks.d.ts.map +1 -1
  1093. package/lib/work/CaseView/CaseView.mocks.js +8 -8
  1094. package/lib/work/CaseView/CaseView.mocks.js.map +1 -1
  1095. package/lib/work/CaseView/CaseView.stories.d.ts +4 -11
  1096. package/lib/work/CaseView/CaseView.stories.d.ts.map +1 -1
  1097. package/lib/work/CaseView/CaseView.stories.js +28 -28
  1098. package/lib/work/CaseView/CaseView.stories.js.map +1 -1
  1099. package/lib/work/CaseView/Details.mocks.d.ts.map +1 -1
  1100. package/lib/work/CaseView/Details.mocks.js +2 -2
  1101. package/lib/work/CaseView/Details.mocks.js.map +1 -1
  1102. package/lib/work/CaseView/FileService.mock.js +1 -1
  1103. package/lib/work/CaseView/FileService.mock.js.map +1 -1
  1104. package/lib/work/CaseView/MobileCaseView.stories.d.ts +3 -9
  1105. package/lib/work/CaseView/MobileCaseView.stories.d.ts.map +1 -1
  1106. package/lib/work/CaseView/MobileCaseView.stories.js +1 -1
  1107. package/lib/work/CaseView/MobileCaseView.stories.js.map +1 -1
  1108. package/lib/work/CaseView/Pulse.mocks.d.ts.map +1 -1
  1109. package/lib/work/CaseView/Pulse.mocks.js +3 -3
  1110. package/lib/work/CaseView/Pulse.mocks.js.map +1 -1
  1111. package/lib/work/ConfigurableLayout/ConfigurableLayout.mocks.d.ts +45 -0
  1112. package/lib/work/ConfigurableLayout/ConfigurableLayout.mocks.d.ts.map +1 -0
  1113. package/lib/work/ConfigurableLayout/ConfigurableLayout.mocks.js +165 -0
  1114. package/lib/work/ConfigurableLayout/ConfigurableLayout.mocks.js.map +1 -0
  1115. package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts +3 -8
  1116. package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts.map +1 -1
  1117. package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.js +5 -175
  1118. package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.js.map +1 -1
  1119. package/lib/work/ConfigurableLayout/ConfigurableLayout.styles.d.ts +4 -0
  1120. package/lib/work/ConfigurableLayout/ConfigurableLayout.styles.d.ts.map +1 -0
  1121. package/lib/work/ConfigurableLayout/ConfigurableLayout.styles.js +11 -0
  1122. package/lib/work/ConfigurableLayout/ConfigurableLayout.styles.js.map +1 -0
  1123. package/lib/work/Confirmation/Confirmation.stories.d.ts.map +1 -1
  1124. package/lib/work/Confirmation/Confirmation.stories.js +4 -4
  1125. package/lib/work/Confirmation/Confirmation.stories.js.map +1 -1
  1126. package/lib/work/Details/Details.stories.d.ts.map +1 -1
  1127. package/lib/work/Details/Details.stories.js +56 -53
  1128. package/lib/work/Details/Details.stories.js.map +1 -1
  1129. package/lib/work/Glimpse/Glimpse.stories.d.ts.map +1 -1
  1130. package/lib/work/Glimpse/Glimpse.stories.js +3 -3
  1131. package/lib/work/Glimpse/Glimpse.stories.js.map +1 -1
  1132. package/lib/work/SearchResults/SearchResults.mocks.js +4 -4
  1133. package/lib/work/SearchResults/SearchResults.mocks.js.map +1 -1
  1134. package/lib/work/SearchResults/SearchResults.stories.d.ts.map +1 -1
  1135. package/lib/work/SearchResults/SearchResults.stories.js +12 -12
  1136. package/lib/work/SearchResults/SearchResults.stories.js.map +1 -1
  1137. package/lib/work/Stages/Stages.stories.js +2 -2
  1138. package/lib/work/Stages/Stages.stories.js.map +1 -1
  1139. package/lib/work/Stakeholders/Stakeholders.mocks.d.ts.map +1 -1
  1140. package/lib/work/Stakeholders/Stakeholders.mocks.js +4 -4
  1141. package/lib/work/Stakeholders/Stakeholders.mocks.js.map +1 -1
  1142. package/lib/work/Stakeholders/Stakeholders.stories.d.ts +2 -3
  1143. package/lib/work/Stakeholders/Stakeholders.stories.d.ts.map +1 -1
  1144. package/lib/work/Stakeholders/Stakeholders.stories.js +2 -1
  1145. package/lib/work/Stakeholders/Stakeholders.stories.js.map +1 -1
  1146. package/lib/work/Tags/Tags.stories.js +1 -1
  1147. package/lib/work/Tags/Tags.stories.js.map +1 -1
  1148. package/lib/work/Tasks/TaskList.stories.js +3 -3
  1149. package/lib/work/Tasks/TaskList.stories.js.map +1 -1
  1150. package/lib/work/Tasks/Tasks.stories.js +11 -11
  1151. package/lib/work/Tasks/Tasks.stories.js.map +1 -1
  1152. package/lib/work/Timeline/Timeline.mocks.js +8 -8
  1153. package/lib/work/Timeline/Timeline.mocks.js.map +1 -1
  1154. package/lib/work/Timeline/Timeline.stories.d.ts +1 -0
  1155. package/lib/work/Timeline/Timeline.stories.d.ts.map +1 -1
  1156. package/lib/work/Timeline/Timeline.stories.js +24 -3
  1157. package/lib/work/Timeline/Timeline.stories.js.map +1 -1
  1158. package/package.json +22 -18
  1159. package/jsx/build/AppShell/AppShell.mocks.js.map +0 -1
  1160. package/jsx/build/FlowModeller/FlowModeller.mocks.js.map +0 -1
  1161. package/jsx/cs/CSCaseView/CSCaseView.mocks.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/build/LifeCycle/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAmBpD,MAAM,QAAQ,GAAG,CAAC,IAA0B,EAAE,EAAE;IAC9C,OAAO,IAAI,CAAC,KAAK,EAAE,IAAI,KAAK,WAAW,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,QAAQ,CAAC;AACzE,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,IAA0B,EAAE,aAAiC,EAAE,EAAE;IAC/F,MAAM,SAAS,GAAW,SAAS,EAAE,CAAC;IACtC,MAAM,aAAa,GAAkB;QACnC,EAAE,EAAE,SAAS;QACb,KAAK,EAAE,EAAE;QACT,MAAM,EAAE;YACN,MAAM,EAAE,EAAE;YACV,IAAI,EAAE,aAAa;YACnB,KAAK,EAAE,cAAc;YACrB,KAAK,EAAE,MAAM;SACd;QACD,KAAK,EAAE,EAAE;QACT,MAAM,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE;KAChC,CAAC;IACF,MAAM,SAAS,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;IACjC,MAAM,SAAS,GAAG,EAAE,GAAG,aAAa,EAAE,CAAC;IACvC,SAAS,CAAC,eAAe,GAAG,SAAS,CAAC;IACtC,SAAS,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,OAAO,CAAC,CAAC,UAA0B,EAAE,EAAE;QAC/D,IAAI,UAAU,CAAC,EAAE,KAAK,IAAI,CAAC,KAAK,EAAE,EAAE,EAAE;YACpC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AAC;IAEhD,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC","sourcesContent":["import { createUID } from '@pega/cosmos-react-core';\nimport {\n StageItemProps,\n StepItemProps,\n TaskItemProps,\n LifeCycleActionParam,\n CategoriesItemProps\n} from '@pega/cosmos-react-build';\n\nexport interface LifeCycleMockState {\n activeElementId: string;\n data: {\n id: string;\n categories: CategoriesItemProps[];\n stages: StageItemProps[];\n alternateStages: StageItemProps[];\n };\n}\n\nconst getStage = (data: LifeCycleActionParam) => {\n return data.stage?.type === 'alternate' ? 'alternateStages' : 'stages';\n};\n\nexport const addStepCallback = (data: LifeCycleActionParam, lifecycleData: LifeCycleMockState) => {\n const elementID: string = createUID();\n const stepEmptydata: StepItemProps = {\n id: elementID,\n label: '',\n visual: {\n imgurl: '',\n icon: 'information',\n color: 'congressBlue',\n label: 'Info'\n },\n error: '',\n status: { label: '', type: '' }\n };\n const stagetype = getStage(data);\n const dataClone = { ...lifecycleData };\n dataClone.activeElementId = elementID;\n dataClone.data[stagetype].forEach((stageItems: StageItemProps) => {\n if (stageItems.id === data.stage?.id) {\n stageItems.categories.forEach(categoryItem => {\n if (categoryItem.categoryId === data.category?.categoryId) {\n categoryItem.tasks.forEach(taskItem => {\n if (Array.isArray(taskItem)) {\n taskItem.forEach(item => {\n if (item.id === data?.task?.id) {\n item.steps.push(stepEmptydata);\n }\n });\n } else if (taskItem.id === data?.task?.id) {\n taskItem.steps.push(stepEmptydata);\n }\n });\n }\n });\n }\n });\n return dataClone;\n};\n\nexport const deleteStepCallback = (\n data: LifeCycleActionParam,\n lifecycleData: LifeCycleMockState\n) => {\n const stagetype = getStage(data);\n const dataClone = { ...lifecycleData };\n dataClone.data[stagetype].forEach((stageItems: StageItemProps) => {\n if (stageItems.id === data.stage?.id) {\n stageItems.categories.forEach(categoryItem => {\n if (categoryItem.categoryId === data.category?.categoryId) {\n let stepIndex = 0;\n categoryItem.tasks.forEach(taskItem => {\n if (Array.isArray(taskItem)) {\n taskItem.forEach((item: TaskItemProps) => {\n if (item.id === data.task?.id) {\n item.steps.forEach((stepItem: StepItemProps, index: number) => {\n if (stepItem.id === data.step?.id) {\n stepIndex = index;\n }\n });\n item.steps.splice(stepIndex, 1);\n }\n });\n } else if (taskItem.id === data.task?.id) {\n taskItem.steps.forEach((stepItem: StepItemProps, index: number) => {\n if (stepItem.id === data.step?.id) {\n stepIndex = index;\n }\n });\n taskItem.steps.splice(stepIndex, 1);\n }\n });\n }\n });\n }\n });\n dataClone.activeElementId = '';\n return dataClone;\n};\n\nexport const addTaskCallback = (\n data: LifeCycleActionParam,\n lifecycleData: LifeCycleMockState,\n parallel: boolean = false\n) => {\n const elementID: string = createUID();\n let imgurl = '';\n if (data.stage && data.stage.categories.length > 1) {\n imgurl = 'https://pbs.twimg.com/profile_images/824369446798106628/_biA5GRt_400x400.jpg';\n }\n const taskEmptydata: TaskItemProps = {\n id: elementID,\n label: '',\n visual: {\n imgurl\n },\n error: '',\n steps: []\n };\n\n const stagetype = getStage(data);\n const dataClone = { ...lifecycleData };\n const stageItems = dataClone.data[stagetype];\n dataClone.activeElementId = elementID;\n stageItems.forEach((stageItem: StageItemProps) => {\n if (stageItem.id === data.stage?.id) {\n if (stageItem.categories.length > 1) {\n stageItem.categories.forEach(categoryItem => {\n const tasks = categoryItem.tasks as TaskItemProps[];\n if (categoryItem.categoryId === data.category?.categoryId) {\n tasks.push(taskEmptydata);\n }\n });\n } else if (parallel || stageItem.categories[0].tasks.length === 0) {\n (stageItem.categories[0].tasks as TaskItemProps[][]).push([taskEmptydata]);\n } else {\n (stageItem.categories[0].tasks[0] as TaskItemProps[]).push(taskEmptydata);\n }\n }\n });\n return dataClone;\n};\n\nexport const deleteTaskCallback = (\n data: LifeCycleActionParam,\n lifecycleData: LifeCycleMockState\n) => {\n const stagetype = getStage(data);\n const dataClone = { ...lifecycleData };\n dataClone.data[stagetype].forEach((stageItems: StageItemProps) => {\n if (stageItems.id === data.stage?.id) {\n stageItems.categories.forEach(categoryItem => {\n if (categoryItem.categoryId === data.category?.categoryId) {\n let taskIndex: number;\n categoryItem.tasks.forEach((taskItem, taskItemIndex: number) => {\n if (Array.isArray(taskItem)) {\n taskItem.forEach((item, index: number) => {\n if (item.id === data?.task?.id) {\n taskIndex = index;\n }\n });\n if (\n Array.isArray(categoryItem.tasks[0]) &&\n categoryItem.tasks[0].length > 1 &&\n taskIndex\n ) {\n categoryItem.tasks[0].splice(taskIndex, 1);\n } else if (taskItem[0].id === data?.task?.id) {\n categoryItem.tasks.splice(taskItemIndex, 1);\n }\n } else if (taskItem.id === data?.task?.id) {\n categoryItem.tasks.splice(taskItemIndex, 1);\n }\n });\n }\n });\n }\n });\n dataClone.activeElementId = '';\n return dataClone;\n};\n\nexport const addStageCallback = (\n lifecycleData: LifeCycleMockState,\n stageType: 'stages' | 'alternateStages'\n) => {\n let type = '';\n if (stageType === 'stages') {\n type = 'default';\n } else {\n type = 'alternate';\n }\n let categoryArray = [];\n const elementID = createUID();\n const personaCategoryID = createUID();\n if (lifecycleData.data.categories.length === 0) {\n categoryArray = [\n {\n id: personaCategoryID,\n categoryId: 'Category1',\n tasks: []\n }\n ];\n } else {\n const dataCategoryID = createUID();\n categoryArray = [\n {\n id: personaCategoryID,\n categoryId: 'Category1',\n tasks: []\n },\n {\n id: dataCategoryID,\n categoryId: 'Category2',\n tasks: []\n }\n ];\n }\n const stagedata = {\n id: elementID,\n label: '',\n type,\n error: '',\n categories: categoryArray\n } as StageItemProps;\n const dataClone = { ...lifecycleData };\n dataClone.activeElementId = elementID;\n dataClone.data[stageType].push(stagedata);\n return dataClone;\n};\n\nexport const deleteStageCallback = (\n data: LifeCycleActionParam,\n lifecycleData: LifeCycleMockState\n) => {\n const stagetype = getStage(data);\n const dataClone = { ...lifecycleData };\n let stageIndex = 0;\n dataClone.data[stagetype].forEach((stageItem: StageItemProps, index: number) => {\n if (stageItem.id === data?.stage?.id) {\n stageIndex = index;\n }\n });\n if (stageIndex === 0 && stagetype !== 'alternateStages') {\n return 'firstStage';\n }\n dataClone.activeElementId = '';\n dataClone.data[stagetype].splice(stageIndex, 1);\n\n return dataClone;\n};\n"]}
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/build/LifeCycle/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAmBpD,MAAM,QAAQ,GAAG,CAAC,IAA0B,EAAE,EAAE;IAC9C,OAAO,IAAI,CAAC,KAAK,EAAE,IAAI,KAAK,WAAW,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,QAAQ,CAAC;AACzE,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,IAA0B,EAAE,aAAiC,EAAE,EAAE;IAC/F,MAAM,UAAU,GAAG,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC;IAC3C,MAAM,SAAS,GAAW,SAAS,EAAE,CAAC;IACtC,MAAM,aAAa,GAAkB;QACnC,EAAE,EAAE,SAAS;QACb,KAAK,EAAE,EAAE;QACT,MAAM,EAAE;YACN,MAAM,EAAE,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,UAAW,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,IAAI,EAAE;YAC7D,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,UAAW,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,IAAI,aAAa;YACpE,KAAK,EAAE,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,UAAW,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,IAAI,cAAc;YACvE,KAAK,EAAE,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,UAAW,GAAG,CAAC,CAAC,CAAC,KAAK,IAAI,MAAM;SACzD;QACD,KAAK,EAAE,EAAE;QACT,MAAM,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE;KAChC,CAAC;IA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IAAI,EAAE,KAAK,EAAE,EAAE,EAAE;YACpC,UAAU,GAAG,KAAK,CAAC;SACpB;IACH,CAAC,CAAC,CAAC;IACH,IAAI,UAAU,KAAK,CAAC,IAAI,SAAS,KAAK,iBAAiB,EAAE;QACvD,OAAO,YAAY,CAAC;KACrB;IACD,SAAS,CAAC,eAAe,GAAG,EAAE,CAAC;IAC/B,SAAS,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC;IAEhD,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC","sourcesContent":["import { createUID } from '@pega/cosmos-react-core';\nimport {\n StageItemProps,\n StepItemProps,\n TaskItemProps,\n LifeCycleActionParam,\n CategoriesItemProps\n} from '@pega/cosmos-react-build';\n\nexport interface LifeCycleMockState {\n activeElementId: string;\n data: {\n id: string;\n categories: CategoriesItemProps[];\n stages: StageItemProps[];\n alternateStages: StageItemProps[];\n };\n}\n\nconst getStage = (data: LifeCycleActionParam) => {\n return data.stage?.type === 'alternate' ? 'alternateStages' : 'stages';\n};\n\nexport const addStepCallback = (data: LifeCycleActionParam, lifecycleData: LifeCycleMockState) => {\n const stepLength = data.task?.steps.length;\n const elementID: string = createUID();\n const stepEmptydata: StepItemProps = {\n id: elementID,\n label: '',\n visual: {\n imgurl: data.task?.steps[stepLength! - 1].visual.imgurl || '',\n icon: data.task?.steps[stepLength! - 1].visual.icon || 'information',\n color: data.task?.steps[stepLength! - 1].visual.color || 'congressBlue',\n label: data.task?.steps[stepLength! - 1].label || 'Info'\n },\n error: '',\n status: { label: '', type: '' }\n };\n\n const stagetype = getStage(data);\n const dataClone = { ...lifecycleData };\n dataClone.activeElementId = elementID;\n dataClone.data[stagetype].forEach((stageItems: StageItemProps) => {\n if (stageItems.id === data.stage?.id) {\n stageItems.categories.forEach(categoryItem => {\n if (categoryItem.categoryId === data.category?.categoryId) {\n categoryItem.tasks.forEach(taskItem => {\n if (Array.isArray(taskItem)) {\n taskItem.forEach(item => {\n if (item.id === data?.task?.id) {\n item.steps.push(stepEmptydata);\n }\n });\n } else if (taskItem.id === data?.task?.id) {\n taskItem.steps.push(stepEmptydata);\n }\n });\n }\n });\n }\n });\n\n return dataClone;\n};\n\nexport const deleteStepCallback = (\n data: LifeCycleActionParam,\n lifecycleData: LifeCycleMockState\n) => {\n const stagetype = getStage(data);\n const dataClone = { ...lifecycleData };\n dataClone.data[stagetype].forEach((stageItems: StageItemProps) => {\n if (stageItems.id === data.stage?.id) {\n stageItems.categories.forEach(categoryItem => {\n if (categoryItem.categoryId === data.category?.categoryId) {\n let stepIndex = 0;\n categoryItem.tasks.forEach(taskItem => {\n if (Array.isArray(taskItem)) {\n taskItem.forEach((item: TaskItemProps) => {\n if (item.id === data.task?.id) {\n item.steps.forEach((stepItem: StepItemProps, index: number) => {\n if (stepItem.id === data.step?.id) {\n stepIndex = index;\n }\n });\n item.steps.splice(stepIndex, 1);\n }\n });\n } else if (taskItem.id === data.task?.id) {\n taskItem.steps.forEach((stepItem: StepItemProps, index: number) => {\n if (stepItem.id === data.step?.id) {\n stepIndex = index;\n }\n });\n taskItem.steps.splice(stepIndex, 1);\n }\n });\n }\n });\n }\n });\n dataClone.activeElementId = '';\n return dataClone;\n};\n\nexport const addTaskCallback = (\n data: LifeCycleActionParam,\n lifecycleData: LifeCycleMockState,\n parallel: boolean = false\n) => {\n const elementID: string = createUID();\n let imgurl = '';\n if (data.stage && data.stage.categories.length > 1) {\n imgurl = 'https://pbs.twimg.com/profile_images/824369446798106628/_biA5GRt_400x400.jpg';\n }\n const taskEmptydata: TaskItemProps = {\n id: elementID,\n label: '',\n visual: {\n imgurl\n },\n error: '',\n steps: []\n };\n\n const stagetype = getStage(data);\n const dataClone = { ...lifecycleData };\n const stageItems = dataClone.data[stagetype];\n dataClone.activeElementId = elementID;\n stageItems.forEach((stageItem: StageItemProps) => {\n if (stageItem.id === data.stage?.id) {\n if (stageItem.categories.length > 1) {\n stageItem.categories.forEach(categoryItem => {\n const tasks = categoryItem.tasks as TaskItemProps[];\n if (categoryItem.categoryId === data.category?.categoryId) {\n tasks.push(taskEmptydata);\n }\n });\n } else if (parallel || stageItem.categories[0].tasks.length === 0) {\n (stageItem.categories[0].tasks as TaskItemProps[][]).push([taskEmptydata]);\n } else {\n (stageItem.categories[0].tasks[0] as TaskItemProps[]).push(taskEmptydata);\n }\n }\n });\n return dataClone;\n};\n\nexport const deleteTaskCallback = (\n data: LifeCycleActionParam,\n lifecycleData: LifeCycleMockState\n) => {\n const stagetype = getStage(data);\n const dataClone = { ...lifecycleData };\n dataClone.data[stagetype].forEach((stageItems: StageItemProps) => {\n if (stageItems.id === data.stage?.id) {\n stageItems.categories.forEach(categoryItem => {\n if (categoryItem.categoryId === data.category?.categoryId) {\n let taskIndex: number;\n categoryItem.tasks.forEach((taskItem, taskItemIndex: number) => {\n if (Array.isArray(taskItem)) {\n taskItem.forEach((item, index: number) => {\n if (item.id === data?.task?.id) {\n taskIndex = index;\n }\n });\n if (\n Array.isArray(categoryItem.tasks[0]) &&\n categoryItem.tasks[0].length > 1 &&\n taskIndex\n ) {\n categoryItem.tasks[0].splice(taskIndex, 1);\n } else if (taskItem[0].id === data?.task?.id) {\n categoryItem.tasks.splice(taskItemIndex, 1);\n }\n } else if (taskItem.id === data?.task?.id) {\n categoryItem.tasks.splice(taskItemIndex, 1);\n }\n });\n }\n });\n }\n });\n dataClone.activeElementId = '';\n return dataClone;\n};\n\nexport const addStageCallback = (\n lifecycleData: LifeCycleMockState,\n stageType: 'stages' | 'alternateStages'\n) => {\n let type = '';\n if (stageType === 'stages') {\n type = 'default';\n } else {\n type = 'alternate';\n }\n let categoryArray = [];\n const elementID = createUID();\n const personaCategoryID = createUID();\n if (lifecycleData.data.categories.length === 0) {\n categoryArray = [\n {\n id: personaCategoryID,\n categoryId: 'Category1',\n tasks: []\n }\n ];\n } else {\n const dataCategoryID = createUID();\n categoryArray = [\n {\n id: personaCategoryID,\n categoryId: 'Category1',\n tasks: []\n },\n {\n id: dataCategoryID,\n categoryId: 'Category2',\n tasks: []\n }\n ];\n }\n const stagedata = {\n id: elementID,\n label: '',\n type,\n error: '',\n categories: categoryArray\n } as StageItemProps;\n const dataClone = { ...lifecycleData };\n dataClone.activeElementId = elementID;\n dataClone.data[stageType].push(stagedata);\n return dataClone;\n};\n\nexport const deleteStageCallback = (\n data: LifeCycleActionParam,\n lifecycleData: LifeCycleMockState\n) => {\n const stagetype = getStage(data);\n const dataClone = { ...lifecycleData };\n let stageIndex = 0;\n dataClone.data[stagetype].forEach((stageItem: StageItemProps, index: number) => {\n if (stageItem.id === data?.stage?.id) {\n stageIndex = index;\n }\n });\n if (stageIndex === 0 && stagetype !== 'alternateStages') {\n return 'firstStage';\n }\n dataClone.activeElementId = '';\n dataClone.data[stagetype].splice(stageIndex, 1);\n\n return dataClone;\n};\n"]}
@@ -0,0 +1,46 @@
1
+ import { ChangeEvent, FC, FocusEvent, MouseEvent } from 'react';
2
+ import { DateFunctionsByType, Field } from '@pega/cosmos-react-condition-builder';
3
+ import { MenuItemProps, FormControlProps } from '@pega/cosmos-react-core';
4
+ import { ObjectSelectProps } from '@pega/cosmos-react-build';
5
+ interface FormField extends FormControlProps {
6
+ help?: string;
7
+ error?: string;
8
+ validator: (this: FormField) => boolean;
9
+ }
10
+ interface DrawerProps {
11
+ drawerData?: MenuItemProps & {
12
+ metaData: any;
13
+ };
14
+ drawerOpen: boolean;
15
+ setDrawerOpen: (value: boolean) => void;
16
+ }
17
+ export interface ObjectSelectStoryProps extends ObjectSelectProps {
18
+ onSubmit?: (id: string, e: MouseEvent<HTMLElement>) => void;
19
+ onCancel?: (id: string, e: MouseEvent<HTMLElement>) => void;
20
+ popoverContent?: string;
21
+ }
22
+ export declare const skeletonData: {
23
+ id: string;
24
+ primary: string;
25
+ secondary: string[];
26
+ href: string;
27
+ }[];
28
+ export declare const dataPages: {
29
+ id: string;
30
+ primary: string;
31
+ metaData: {
32
+ name: string;
33
+ value: string;
34
+ }[];
35
+ secondary: string[];
36
+ href: string;
37
+ }[];
38
+ export declare const demoFields: Field[];
39
+ export declare const demoDateFunctions: DateFunctionsByType;
40
+ export declare const initFields: () => FormField[];
41
+ export declare const fieldReducer: (fields: FormField[], { target, type }: ChangeEvent<HTMLInputElement | HTMLTextAreaElement> | FocusEvent<HTMLInputElement | HTMLTextAreaElement>) => FormField[];
42
+ export declare const ViewportDrawer: ({ drawerData, drawerOpen, setDrawerOpen }: DrawerProps) => JSX.Element;
43
+ export declare const ConfigurationContent: (args: any) => JSX.Element;
44
+ export declare const ObjectSelectComp: FC<ObjectSelectStoryProps>;
45
+ export {};
46
+ //# sourceMappingURL=ObjectSelect.mocks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ObjectSelect.mocks.d.ts","sourceRoot":"","sources":["../../../src/build/ObjectSelect/ObjectSelect.mocks.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,EAAE,EAAE,UAAU,EAAE,UAAU,EAAuB,MAAM,OAAO,CAAC;AAErF,OAAO,EAML,mBAAmB,EACnB,KAAK,EACN,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAOL,aAAa,EAGb,gBAAgB,EACjB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAgB,iBAAiB,EAAiB,MAAM,0BAA0B,CAAC;AAI1F,UAAU,SAAU,SAAQ,gBAAgB;IAC1C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,OAAO,CAAC;CACzC;AAED,UAAU,WAAW;IACnB,UAAU,CAAC,EAAE,aAAa,GAAG;QAAE,QAAQ,EAAE,GAAG,CAAA;KAAE,CAAC;IAC/C,UAAU,EAAE,OAAO,CAAC;IACpB,aAAa,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;CACzC;AAED,MAAM,WAAW,sBAAuB,SAAQ,iBAAiB;IAC/D,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE,UAAU,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;IAC5D,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE,UAAU,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;IAC5D,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,eAAO,MAAM,YAAY;;;;;GAmCxB,CAAC;AAEF,eAAO,MAAM,SAAS;;;;;;;;;GAiDrB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAAK,EAkD7B,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,mBAqB/B,CAAC;AAEF,eAAO,MAAM,UAAU,QAAO,SAAS,EAyBtC,CAAC;AAEF,eAAO,MAAM,YAAY,WACf,SAAS,EAAE,oBAKf,YAAY,gBAAgB,GAAG,mBAAmB,CAAC,GACnD,WAAW,gBAAgB,GAAG,mBAAmB,CAAC,gBAiBvD,CAAC;AAEF,eAAO,MAAM,cAAc,8CAA+C,WAAW,gBA4CpF,CAAC;AAEF,eAAO,MAAM,oBAAoB,SAAU,GAAG,gBA2D7C,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC,sBAAsB,CA4GvD,CAAC"}
@@ -0,0 +1,335 @@
1
+ import { useState, useEffect } from 'react';
2
+ import { AtomicCondition, getInitConditionForLhs, formatCondition } from '@pega/cosmos-react-condition-builder';
3
+ import { Flex, Input, Card, CardContent, Text, menuHelpers, useI18n, StyledRegion } from '@pega/cosmos-react-core';
4
+ import { ObjectSelect, ObjectPreview } from '@pega/cosmos-react-build';
5
+ import { StyledCodeBlock, StyledConfigurationContent } from './ObjectSelect.styles';
6
+ export const skeletonData = [
7
+ {
8
+ id: '01-1',
9
+ primary: 'primary-link-1',
10
+ secondary: ['secondary-1'],
11
+ href: 'http://www.pega.com'
12
+ },
13
+ {
14
+ id: '01-2',
15
+ primary: 'primary-link-2',
16
+ secondary: [
17
+ 'secondary-1',
18
+ 'secondary-2',
19
+ 'secondary-3',
20
+ 'secondary-4',
21
+ 'secondary-5',
22
+ 'secondary-6',
23
+ 'secondary-7',
24
+ 'secondary-8',
25
+ 'secondary-9'
26
+ ],
27
+ href: 'http://www.pega.com'
28
+ },
29
+ {
30
+ id: '01-3',
31
+ primary: 'primary-link-3',
32
+ secondary: ['secondary-1', 'secondary-2'],
33
+ href: 'http://www.pega.com'
34
+ },
35
+ {
36
+ id: '01-4',
37
+ primary: 'primary-link-4',
38
+ secondary: ['secondary-1', 'secondary-2'],
39
+ href: 'http://www.pega.com'
40
+ }
41
+ ];
42
+ export const dataPages = [
43
+ {
44
+ id: '01-1',
45
+ primary: 'MortgageRequestList-DataSource',
46
+ metaData: [
47
+ {
48
+ name: 'Scope',
49
+ value: 'O1XPTI-CCompass-Work-MortgageRequest'
50
+ }
51
+ ],
52
+ secondary: ['O1XPTI-CCompass-Work-MortgageRequest'],
53
+ href: 'http://www.pega.com'
54
+ },
55
+ {
56
+ id: '01-2',
57
+ primary: 'Credit Scores List Data Source',
58
+ metaData: [
59
+ {
60
+ name: 'Scope',
61
+ value: 'CreditScore'
62
+ }
63
+ ],
64
+ secondary: ['Scope', 'CreditScore'],
65
+ href: 'http://www.pega.com'
66
+ },
67
+ {
68
+ id: '01-3',
69
+ primary: 'GetAutoLoanByIDDataSource',
70
+ metaData: [
71
+ {
72
+ name: 'Scope',
73
+ value: 'O1XPTI-CCompass-Work-AutoLoan'
74
+ }
75
+ ],
76
+ secondary: ['Scope', 'O1XPTI-CCompass-Work-AutoLoan'],
77
+ href: 'http://www.pega.com'
78
+ },
79
+ {
80
+ id: '01-4',
81
+ primary: 'DS_pyMyWorkList',
82
+ metaData: [
83
+ {
84
+ name: 'Scope',
85
+ value: 'O1XPTI-CCompass-Work-AutoLoan'
86
+ }
87
+ ],
88
+ secondary: ['Scope', 'Assign-Worklist'],
89
+ href: 'http://www.pega.com'
90
+ }
91
+ ];
92
+ export const demoFields = [
93
+ { name: 'employeeId', label: 'Employee ID', type: 'TEXT' },
94
+ { name: 'firstName', label: 'First Name', type: 'TEXT' },
95
+ { name: 'lastName', label: 'Last Name', type: 'TEXT' },
96
+ { name: 'gender', label: 'Gender', type: 'TEXT' },
97
+ {
98
+ name: 'department',
99
+ label: 'Department',
100
+ type: 'TEXT',
101
+ possibleValues: [
102
+ 'Customer Service',
103
+ 'Engineering',
104
+ 'Facilities',
105
+ 'Finance',
106
+ 'HR',
107
+ 'IT',
108
+ 'Sales'
109
+ ]
110
+ },
111
+ { name: 'age', label: 'Age', type: 'NUMBER' },
112
+ { name: 'experience', label: 'Experience (yrs)', type: 'NUMBER' },
113
+ { name: 'salary', label: 'Salary', type: 'NUMBER' },
114
+ { name: 'hireDate', label: 'Hire Date', type: 'DATE_ONLY' },
115
+ { name: 'dateOfBirth', label: 'Date of Birth', type: 'DATE_ONLY' },
116
+ {
117
+ name: 'shiftStartTime',
118
+ label: 'Shift start time',
119
+ type: 'TIME_ONLY',
120
+ groupLabel: 'Technical details'
121
+ },
122
+ {
123
+ name: 'shiftEndTime',
124
+ label: 'Shift end time',
125
+ type: 'TIME_ONLY',
126
+ groupLabel: 'Technical details'
127
+ },
128
+ {
129
+ name: 'lastActivityAt',
130
+ label: 'Last activity at',
131
+ type: 'DATE_TIME',
132
+ groupLabel: 'Technical details'
133
+ },
134
+ {
135
+ name: 'nextPasswordReset',
136
+ label: 'Next password reset',
137
+ type: 'DATE_TIME',
138
+ groupLabel: 'Technical details'
139
+ },
140
+ { name: 'isSeniorCitizen', label: 'Is Senior Citizen', type: 'BOOLEAN' },
141
+ { name: 'isRemoteEmployee', label: 'Is Remote Employee', type: 'BOOLEAN' }
142
+ ];
143
+ export const demoDateFunctions = {
144
+ DATE_TIME: [
145
+ 'YEARS',
146
+ 'QUARTERS',
147
+ 'MONTHS',
148
+ 'WEEKS',
149
+ 'DAYS',
150
+ 'HOURS',
151
+ 'MONTHS_OF_YEAR',
152
+ 'DAYS_OF_MONTH',
153
+ 'DAYS_OF_WEEK'
154
+ ],
155
+ DATE_ONLY: [
156
+ 'YEARS',
157
+ 'QUARTERS',
158
+ 'MONTHS',
159
+ 'WEEKS',
160
+ 'MONTHS_OF_YEAR',
161
+ 'DAYS_OF_MONTH',
162
+ 'DAYS_OF_WEEK'
163
+ ]
164
+ };
165
+ export const initFields = () => {
166
+ const common = { value: undefined, status: undefined };
167
+ return [
168
+ {
169
+ ...common,
170
+ name: 'name',
171
+ required: true,
172
+ error: 'Please enter a valid name for table',
173
+ validator() {
174
+ if (!this.value)
175
+ return false;
176
+ return /^[a-z]{1}[a-z0-9]+$/i.test(this.value);
177
+ }
178
+ },
179
+ {
180
+ ...common,
181
+ name: 'description',
182
+ required: true,
183
+ help: 'Give an appropriate description for the table',
184
+ error: 'Field cannot be empty',
185
+ validator() {
186
+ if (!this.value)
187
+ return false;
188
+ return true;
189
+ }
190
+ }
191
+ ];
192
+ };
193
+ export const fieldReducer = (fields, { target, type }) => {
194
+ return fields.map(field => {
195
+ if (field.name === target.name) {
196
+ field.value = target.value;
197
+ if (type === 'blur' || field.status === 'error') {
198
+ if ((field.required || field.value) && !field.validator()) {
199
+ field.status = 'error';
200
+ field.info = field.error;
201
+ }
202
+ else {
203
+ field.status = undefined;
204
+ field.info = field.help;
205
+ }
206
+ }
207
+ }
208
+ return field;
209
+ });
210
+ };
211
+ export const ViewportDrawer = ({ drawerData, drawerOpen, setDrawerOpen }) => {
212
+ return (<ObjectPreview open={drawerOpen} onDismiss={() => setDrawerOpen(false)} header={{
213
+ title: drawerData?.primary || '',
214
+ metadata: drawerData?.metaData || [],
215
+ additionalInfo: {
216
+ title: drawerData?.primary || '',
217
+ description: 'Interest rate for the savings account',
218
+ fields: drawerData?.metaData || [],
219
+ onEdit: () => { }
220
+ }
221
+ }} content={<StyledConfigurationContent>
222
+ <StyledRegion style={{ minHeight: '100vh' }}/>
223
+ </StyledConfigurationContent>} primaryAction={{
224
+ id: 'PA',
225
+ text: 'Save',
226
+ onClick: () => { }
227
+ }} secondaryAction={{
228
+ id: 'SA',
229
+ text: 'Open rule',
230
+ onClick: () => { }
231
+ }} actions={{
232
+ items: [
233
+ {
234
+ id: '1',
235
+ text: 'Page action 1'
236
+ },
237
+ {
238
+ id: '2',
239
+ text: 'Page action 2'
240
+ }
241
+ ]
242
+ }}/>);
243
+ };
244
+ export const ConfigurationContent = (args) => {
245
+ const [showErrorIndicators] = useState(false);
246
+ const ConditionBuilder = (<AtomicCondition condition={args.condition} fields={demoFields} indicateErrors={showErrorIndicators} dateFunctions={demoDateFunctions} onChange={c => args.setCondition(c)} itemDirection='row' showLhsAsLabel={false} validRhsTypes={args.validRHSTypes}/>);
247
+ const Inputs = (<Flex container={{ direction: 'column', gap: 2 }}>
248
+ <Text variant='h4'>Inputs</Text>
249
+ <Flex container={{ direction: 'column', gap: 1 }}>
250
+ <Flex container={{ alignItems: 'end', gap: 1 }}>
251
+ <Input label='Name' type='text' defaultValue='Sample key 1' disabled readOnly={args.readOnly}/>
252
+ <Input label='Value' type='text' defaultValue='Sample value 1' readOnly={args.readOnly} disabled={args.disabled}/>
253
+ </Flex>
254
+ <Flex container={{ alignItems: 'end', gap: 1 }}>
255
+ <Input label='Name 2' labelHidden type='text' defaultValue='Sample key 2' disabled readOnly={args.readOnly}/>
256
+ <Input label='Value 2' labelHidden type='text' defaultValue='Sample value 2' readOnly={args.readOnly} disabled={args.disabled}/>
257
+ </Flex>
258
+ </Flex>
259
+ </Flex>);
260
+ return args.popoverContent === 'advanced' ? ConditionBuilder : Inputs;
261
+ };
262
+ export const ObjectSelectComp = ({ popoverContent, ...args }) => {
263
+ const t = useI18n();
264
+ const [value, setValue] = useState(args.value);
265
+ const convertRhsTypes = (useLiteralRHSType, useFieldRHSType, useRelativeDatesType, dateFunctions) => {
266
+ const setRhsTypes = new Set();
267
+ if (useLiteralRHSType)
268
+ setRhsTypes.add('LITERAL');
269
+ if (useFieldRHSType)
270
+ setRhsTypes.add('FIELD');
271
+ if (dateFunctions)
272
+ setRhsTypes.add('DATE_FUNCTION');
273
+ if (useRelativeDatesType)
274
+ setRhsTypes.add('RELATIVE_DATE');
275
+ return setRhsTypes;
276
+ };
277
+ const [dataPagesDelayed, setDataPagesDelayed] = useState([]);
278
+ const validRHSTypes = convertRhsTypes(true, true, true, demoDateFunctions);
279
+ const [submitCondition, setSubmitCondition] = useState(undefined);
280
+ const [condition, setCondition] = useState(() => submitCondition ||
281
+ getInitConditionForLhs({ field: 'age' }, demoFields, validRHSTypes, undefined, demoDateFunctions));
282
+ const handleSubmission = () => {
283
+ setSubmitCondition(condition);
284
+ };
285
+ useEffect(() => {
286
+ setTimeout(() => setDataPagesDelayed(dataPages), 2000);
287
+ }, []);
288
+ return (<Flex container={{ direction: 'column', gap: 1 }}>
289
+ <ObjectSelect {...args} loading={dataPagesDelayed.length === 0} onChange={id => {
290
+ const data = menuHelpers.getItem(dataPages, id);
291
+ if (data) {
292
+ setValue({
293
+ id: data.id,
294
+ primary: data.primary,
295
+ href: data.href ?? '#',
296
+ meta: data.id !== '01-4' ? data.secondary?.join(' ') : ''
297
+ });
298
+ }
299
+ else
300
+ setValue(undefined);
301
+ }} items={dataPagesDelayed} configuration={{
302
+ label: args.disabled || args.readOnly ? 'View Configuration' : 'Edit Configuration',
303
+ heading: 'Map Parameters',
304
+ primaryAction: {
305
+ id: 'submit',
306
+ text: 'Submit',
307
+ onClick: popoverContent === 'advanced' ? handleSubmission : args.onSubmit
308
+ },
309
+ secondaryAction: {
310
+ id: 'cancel',
311
+ text: 'Cancel',
312
+ onClick: args.onCancel
313
+ },
314
+ content: (<ConfigurationContent {...args} popoverContent={popoverContent} condition={condition} setCondition={setCondition} validRHSTypes={validRHSTypes}/>)
315
+ }} value={value} onPreview={(id, e) => {
316
+ args.onPreview?.(id, e);
317
+ }}/>
318
+ {popoverContent === 'advanced' && (<Card>
319
+ <CardContent>
320
+ <Text variant='h4'>Output:</Text>
321
+ <StyledCodeBlock>
322
+ {submitCondition ? JSON.stringify(submitCondition, null, 2) : '(No condition)'}
323
+ </StyledCodeBlock>
324
+
325
+ <Text variant='h4'>Formatted Output:</Text>
326
+ <StyledCodeBlock>
327
+ {submitCondition
328
+ ? formatCondition({ condition: submitCondition }, demoFields, t)
329
+ : '(No condition)'}
330
+ </StyledCodeBlock>
331
+ </CardContent>
332
+ </Card>)}
333
+ </Flex>);
334
+ };
335
+ //# sourceMappingURL=ObjectSelect.mocks.jsx.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ObjectSelect.mocks.jsx","sourceRoot":"","sources":["../../../src/build/ObjectSelect/ObjectSelect.mocks.tsx"],"names":[],"mappings":"AACA,OAAO,EAA2C,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAErF,OAAO,EACL,eAAe,EAEf,sBAAsB,EAEtB,eAAe,EAGhB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACL,IAAI,EACJ,KAAK,EACL,IAAI,EACJ,WAAW,EACX,IAAI,EACJ,WAAW,EAEX,OAAO,EACP,YAAY,EAEb,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,YAAY,EAAqB,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAE1F,OAAO,EAAE,eAAe,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AAoBpF,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B;QACE,EAAE,EAAE,MAAM;QACV,OAAO,EAAE,gBAAgB;QACzB,SAAS,EAAE,CAAC,aAAa,CAAC;QAC1B,IAAI,EAAE,qBAAqB;KAC5B;IACD;QACE,EAAE,EAAE,MAAM;QACV,OAAO,EAAE,gBAAgB;QACzB,SAAS,EAAE;YACT,aAAa;YACb,aAAa;YACb,aAAa;YACb,aAAa;YACb,aAAa;YACb,aAAa;YACb,aAAa;YACb,aAAa;YACb,aAAa;SACd;QACD,IAAI,EAAE,qBAAqB;KAC5B;IACD;QACE,EAAE,EAAE,MAAM;QACV,OAAO,EAAE,gBAAgB;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C,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,iBAAiB,EAAE,IAAI,CAC1C;YAAA,CAAC,eAAe,CACd;cAAA,CAAC,eAAe;gBACd,CAAC,CAAC,eAAe,CAAC,EAAE,SAAS,EAAE,eAAe,EAAE,EAAE,UAAU,EAAE,CAAC,CAAC;gBAChE,CAAC,CAAC,gBAAgB,CACtB;YAAA,EAAE,eAAe,CACnB;UAAA,EAAE,WAAW,CACf;QAAA,EAAE,IAAI,CAAC,CACR,CACH;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC","sourcesContent":["// cSpell:words XPTI\nimport { ChangeEvent, FC, FocusEvent, MouseEvent, useState, useEffect } from 'react';\n\nimport {\n AtomicCondition,\n LeafCondition,\n getInitConditionForLhs,\n RHSType,\n formatCondition,\n DateFunctionsByType,\n Field\n} from '@pega/cosmos-react-condition-builder';\nimport {\n Flex,\n Input,\n Card,\n CardContent,\n Text,\n menuHelpers,\n MenuItemProps,\n useI18n,\n StyledRegion,\n FormControlProps\n} from '@pega/cosmos-react-core';\nimport { ObjectSelect, ObjectSelectProps, ObjectPreview } from '@pega/cosmos-react-build';\n\nimport { StyledCodeBlock, StyledConfigurationContent } from './ObjectSelect.styles';\n\ninterface FormField extends FormControlProps {\n help?: string;\n error?: string;\n validator: (this: FormField) => boolean;\n}\n\ninterface DrawerProps {\n drawerData?: MenuItemProps & { metaData: any };\n drawerOpen: boolean;\n setDrawerOpen: (value: boolean) => void;\n}\n\nexport interface ObjectSelectStoryProps extends ObjectSelectProps {\n onSubmit?: (id: string, e: MouseEvent<HTMLElement>) => void;\n onCancel?: (id: string, e: MouseEvent<HTMLElement>) => void;\n popoverContent?: string;\n}\n\nexport const skeletonData = [\n {\n id: '01-1',\n primary: 'primary-link-1',\n secondary: ['secondary-1'],\n href: 'http://www.pega.com'\n },\n {\n id: '01-2',\n primary: 'primary-link-2',\n secondary: [\n 'secondary-1',\n 'secondary-2',\n 'secondary-3',\n 'secondary-4',\n 'secondary-5',\n 'secondary-6',\n 'secondary-7',\n 'secondary-8',\n 'secondary-9'\n ],\n href: 'http://www.pega.com'\n },\n {\n id: '01-3',\n primary: 'primary-link-3',\n secondary: ['secondary-1', 'secondary-2'],\n href: 'http://www.pega.com'\n },\n {\n id: '01-4',\n primary: 'primary-link-4',\n secondary: ['secondary-1', 'secondary-2'],\n href: 'http://www.pega.com'\n }\n];\n\nexport const dataPages = [\n {\n id: '01-1',\n primary: 'MortgageRequestList-DataSource',\n metaData: [\n {\n name: 'Scope',\n value: 'O1XPTI-CCompass-Work-MortgageRequest'\n }\n ],\n secondary: ['O1XPTI-CCompass-Work-MortgageRequest'],\n href: 'http://www.pega.com'\n },\n {\n id: '01-2',\n primary: 'Credit Scores List Data Source',\n metaData: [\n {\n name: 'Scope',\n value: 'CreditScore'\n }\n ],\n secondary: ['Scope', 'CreditScore'],\n href: 'http://www.pega.com'\n },\n {\n id: '01-3',\n primary: 'GetAutoLoanByIDDataSource',\n metaData: [\n {\n name: 'Scope',\n value: 'O1XPTI-CCompass-Work-AutoLoan'\n }\n ],\n secondary: ['Scope', 'O1XPTI-CCompass-Work-AutoLoan'],\n href: 'http://www.pega.com'\n },\n {\n id: '01-4',\n primary: 'DS_pyMyWorkList',\n metaData: [\n {\n name: 'Scope',\n value: 'O1XPTI-CCompass-Work-AutoLoan'\n }\n ],\n secondary: ['Scope', 'Assign-Worklist'],\n href: 'http://www.pega.com'\n }\n];\n\nexport const demoFields: Field[] = [\n { name: 'employeeId', label: 'Employee ID', type: 'TEXT' },\n { name: 'firstName', label: 'First Name', type: 'TEXT' },\n { name: 'lastName', label: 'Last Name', type: 'TEXT' },\n { name: 'gender', label: 'Gender', type: 'TEXT' },\n {\n name: 'department',\n label: 'Department',\n type: 'TEXT',\n possibleValues: [\n 'Customer Service',\n 'Engineering',\n 'Facilities',\n 'Finance',\n 'HR',\n 'IT',\n 'Sales'\n ]\n },\n { name: 'age', label: 'Age', type: 'NUMBER' },\n { name: 'experience', label: 'Experience (yrs)', type: 'NUMBER' },\n { name: 'salary', label: 'Salary', type: 'NUMBER' },\n { name: 'hireDate', label: 'Hire Date', type: 'DATE_ONLY' },\n { name: 'dateOfBirth', label: 'Date of Birth', type: 'DATE_ONLY' },\n {\n name: 'shiftStartTime',\n label: 'Shift start time',\n type: 'TIME_ONLY',\n groupLabel: 'Technical details'\n },\n {\n name: 'shiftEndTime',\n label: 'Shift end time',\n type: 'TIME_ONLY',\n groupLabel: 'Technical details'\n },\n {\n name: 'lastActivityAt',\n label: 'Last activity at',\n type: 'DATE_TIME',\n groupLabel: 'Technical details'\n },\n {\n name: 'nextPasswordReset',\n label: 'Next password reset',\n type: 'DATE_TIME',\n groupLabel: 'Technical details'\n },\n { name: 'isSeniorCitizen', label: 'Is Senior Citizen', type: 'BOOLEAN' },\n { name: 'isRemoteEmployee', label: 'Is Remote Employee', type: 'BOOLEAN' }\n];\n\nexport const demoDateFunctions: DateFunctionsByType = {\n DATE_TIME: [\n 'YEARS',\n 'QUARTERS',\n 'MONTHS',\n 'WEEKS',\n 'DAYS',\n 'HOURS',\n 'MONTHS_OF_YEAR',\n 'DAYS_OF_MONTH',\n 'DAYS_OF_WEEK'\n ],\n DATE_ONLY: [\n 'YEARS',\n 'QUARTERS',\n 'MONTHS',\n 'WEEKS',\n 'MONTHS_OF_YEAR',\n 'DAYS_OF_MONTH',\n 'DAYS_OF_WEEK'\n ]\n};\n\nexport const initFields = (): FormField[] => {\n const common = { value: undefined, status: undefined };\n return [\n {\n ...common,\n name: 'name',\n required: true,\n error: 'Please enter a valid name for table',\n validator() {\n if (!this.value) return false;\n return /^[a-z]{1}[a-z0-9]+$/i.test(this.value);\n }\n },\n {\n ...common,\n name: 'description',\n required: true,\n help: 'Give an appropriate description for the table',\n error: 'Field cannot be empty',\n validator() {\n if (!this.value) return false;\n return true;\n }\n }\n ];\n};\n\nexport const fieldReducer = (\n fields: FormField[],\n {\n target,\n type\n }:\n | ChangeEvent<HTMLInputElement | HTMLTextAreaElement>\n | FocusEvent<HTMLInputElement | HTMLTextAreaElement>\n) => {\n return fields.map(field => {\n if (field.name === target.name) {\n field.value = target.value;\n if (type === 'blur' || field.status === 'error') {\n if ((field.required || field.value) && !field.validator()) {\n field.status = 'error';\n field.info = field.error;\n } else {\n field.status = undefined;\n field.info = field.help;\n }\n }\n }\n return field;\n });\n};\n\nexport const ViewportDrawer = ({ drawerData, drawerOpen, setDrawerOpen }: DrawerProps) => {\n return (\n <ObjectPreview\n open={drawerOpen}\n onDismiss={() => setDrawerOpen(false)}\n header={{\n title: drawerData?.primary || '',\n metadata: drawerData?.metaData || [],\n additionalInfo: {\n title: drawerData?.primary || '',\n description: 'Interest rate for the savings account',\n fields: drawerData?.metaData || [],\n onEdit: () => {}\n }\n }}\n content={\n <StyledConfigurationContent>\n <StyledRegion style={{ minHeight: '100vh' }} />\n </StyledConfigurationContent>\n }\n primaryAction={{\n id: 'PA',\n text: 'Save',\n onClick: () => {}\n }}\n secondaryAction={{\n id: 'SA',\n text: 'Open rule',\n onClick: () => {}\n }}\n actions={{\n items: [\n {\n id: '1',\n text: 'Page action 1'\n },\n {\n id: '2',\n text: 'Page action 2'\n }\n ]\n }}\n />\n );\n};\n\nexport const ConfigurationContent = (args: any) => {\n const [showErrorIndicators] = useState(false);\n\n const ConditionBuilder = (\n <AtomicCondition\n condition={args.condition}\n fields={demoFields}\n indicateErrors={showErrorIndicators}\n dateFunctions={demoDateFunctions}\n onChange={c => args.setCondition(c)}\n itemDirection='row'\n showLhsAsLabel={false}\n validRhsTypes={args.validRHSTypes}\n />\n );\n\n const Inputs = (\n <Flex container={{ direction: 'column', gap: 2 }}>\n <Text variant='h4'>Inputs</Text>\n <Flex container={{ direction: 'column', gap: 1 }}>\n <Flex container={{ alignItems: 'end', gap: 1 }}>\n <Input\n label='Name'\n type='text'\n defaultValue='Sample key 1'\n disabled\n readOnly={args.readOnly}\n />\n <Input\n label='Value'\n type='text'\n defaultValue='Sample value 1'\n readOnly={args.readOnly}\n disabled={args.disabled}\n />\n </Flex>\n <Flex container={{ alignItems: 'end', gap: 1 }}>\n <Input\n label='Name 2'\n labelHidden\n type='text'\n defaultValue='Sample key 2'\n disabled\n readOnly={args.readOnly}\n />\n <Input\n label='Value 2'\n labelHidden\n type='text'\n defaultValue='Sample value 2'\n readOnly={args.readOnly}\n disabled={args.disabled}\n />\n </Flex>\n </Flex>\n </Flex>\n );\n\n return args.popoverContent === 'advanced' ? ConditionBuilder : Inputs;\n};\n\nexport const ObjectSelectComp: FC<ObjectSelectStoryProps> = ({\n popoverContent,\n ...args\n}: ObjectSelectStoryProps) => {\n const t = useI18n();\n const [value, setValue] = useState<ObjectSelectProps['value']>(args.value);\n\n const convertRhsTypes = (\n useLiteralRHSType: boolean,\n useFieldRHSType: boolean,\n useRelativeDatesType: boolean,\n dateFunctions?: DateFunctionsByType\n ) => {\n const setRhsTypes: Set<RHSType> = new Set<RHSType>();\n if (useLiteralRHSType) setRhsTypes.add('LITERAL');\n if (useFieldRHSType) setRhsTypes.add('FIELD');\n if (dateFunctions) setRhsTypes.add('DATE_FUNCTION');\n if (useRelativeDatesType) setRhsTypes.add('RELATIVE_DATE');\n return setRhsTypes;\n };\n\n const [dataPagesDelayed, setDataPagesDelayed] = useState<ObjectSelectProps['items']>([]);\n const validRHSTypes: Set<RHSType> = convertRhsTypes(true, true, true, demoDateFunctions);\n const [submitCondition, setSubmitCondition] = useState<LeafCondition | undefined>(undefined);\n const [condition, setCondition] = useState(\n () =>\n submitCondition ||\n getInitConditionForLhs(\n { field: 'age' },\n demoFields,\n validRHSTypes,\n undefined,\n demoDateFunctions\n )\n );\n\n const handleSubmission = () => {\n setSubmitCondition(condition);\n };\n\n useEffect(() => {\n setTimeout(() => setDataPagesDelayed(dataPages), 2000);\n }, []);\n\n return (\n <Flex container={{ direction: 'column', gap: 1 }}>\n <ObjectSelect\n {...args}\n loading={dataPagesDelayed.length === 0}\n onChange={id => {\n const data = menuHelpers.getItem(dataPages, id);\n if (data) {\n setValue({\n id: data.id,\n primary: data.primary,\n href: data.href ?? '#',\n meta: data.id !== '01-4' ? data.secondary?.join(' ') : ''\n });\n } else setValue(undefined);\n }}\n items={dataPagesDelayed}\n configuration={{\n label: args.disabled || args.readOnly ? 'View Configuration' : 'Edit Configuration',\n heading: 'Map Parameters',\n primaryAction: {\n id: 'submit',\n text: 'Submit',\n onClick: popoverContent === 'advanced' ? handleSubmission : args.onSubmit\n },\n secondaryAction: {\n id: 'cancel',\n text: 'Cancel',\n onClick: args.onCancel\n },\n content: (\n <ConfigurationContent\n {...args}\n popoverContent={popoverContent}\n condition={condition}\n setCondition={setCondition}\n validRHSTypes={validRHSTypes}\n />\n )\n }}\n value={value}\n onPreview={(id, e: { href: string }) => {\n args.onPreview?.(id, e);\n }}\n />\n {popoverContent === 'advanced' && (\n <Card>\n <CardContent>\n <Text variant='h4'>Output:</Text>\n <StyledCodeBlock>\n {submitCondition ? JSON.stringify(submitCondition, null, 2) : '(No condition)'}\n </StyledCodeBlock>\n\n <Text variant='h4'>Formatted Output:</Text>\n <StyledCodeBlock>\n {submitCondition\n ? formatCondition({ condition: submitCondition }, demoFields, t)\n : '(No condition)'}\n </StyledCodeBlock>\n </CardContent>\n </Card>\n )}\n </Flex>\n );\n};\n"]}
@@ -0,0 +1,8 @@
1
+ import { Meta, Story } from '@storybook/react';
2
+ import { ObjectSelectStoryProps } from './ObjectSelect.mocks';
3
+ declare const _default: Meta<import("@storybook/react").Args>;
4
+ export default _default;
5
+ export declare const ObjectSelectSkeleton: Story<ObjectSelectStoryProps>;
6
+ export declare const ObjectSelectDemo: Story<ObjectSelectStoryProps>;
7
+ export declare const ObjectSelectDemoInForm: Story;
8
+ //# sourceMappingURL=ObjectSelect.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ObjectSelect.stories.d.ts","sourceRoot":"","sources":["../../../src/build/ObjectSelect/ObjectSelect.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAuB/C,OAAO,EAIL,sBAAsB,EAIvB,MAAM,sBAAsB,CAAC;;AAI9B,wBAGU;AAEV,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,sBAAsB,CA+C9D,CAAC;AAiCF,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,sBAAsB,CAyB1D,CAAC;AAmCF,eAAO,MAAM,sBAAsB,EAAE,KAqGpC,CAAC"}