@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":"Workbench.stories.jsx","sourceRoot":"","sources":["../../../src/build/Workbench/Workbench.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EAEL,WAAW,EACX,YAAY,EACZ,IAAI,EACJ,WAAW,EACX,QAAQ,EACR,gBAAgB,EAChB,KAAK,EACL,aAAa,EACb,UAAU,EACX,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAMnE,OAAO,EACL,aAAa,EAGd,MAAM,2EAA2E,CAAC;AACnF,OAAO,kBAAkB,MAAM,6DAA6D,CAAC;AAE7F,OAAO,EACL,WAAW,EACX,WAAW,EACX,mBAAmB,IAAI,SAAS,EAChC,wBAAwB,IAAI,cAAc,EAC3C,MAAM,oEAAoE,CAAC;AAE5E,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE7C,eAAe;IACb,KAAK,EAAE,iBAAiB;IACxB,UAAU,EAAE;QACV,MAAM,EAAE,YAAY;KACrB;CACM,CAAC;AAQV,MAAM,YAAY,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE;IAC5C,OAAO,GAAG,CAAA;yBACa,KAAK,CAAC,IAAI,CAAC,OAAO,cAAc,KAAK,CAAC,IAAI,CAAC,OAAO;iBAC1D,KAAK,CAAC,IAAI,CAAC,OAAO;GAChC,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,YAAY,CAAC,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,CAAC;IAEF,OAAO,CACL,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,UAAU,CAAC,CAC/B;MAAA,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,eAAe,CAAC,CACxB;QAAA,CAAC,SAAS,CACR,aAAa,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,aAAa,CAAC,CAC9D,uBAAuB,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAC7C,OAAO,CAAC,CAAC;YACP,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,cAAc;SACf,CAAC,CACF,kBAAkB,CAAC,CAAC;YAClB,IAAI;YACJ,OAAO,EAAE,CAAC,aAAa,CAAC,AAAD,EAAG;YAC1B,MAAM,EAAE,OAAO;YACf,SAAS,EAAE,GAAG,EAAE;gBACd,OAAO,CAAC,KAAK,CAAC,CAAC;YACjB,CAAC;SACF,CAAC,CAEF;UAAA,CAAC,aAAa,CAAC,AAAD,EAChB;QAAA,EAAE,SAAS,CACb;MAAA,EAAE,IAAI,CACR;IAAA,EAAE,aAAa,CAAC,CACjB,CAAC;AACJ,CAAC,CAAC;AAEF,aAAa,CAAC,IAAI,GAAG;IACnB,WAAW,EAAE,IAAI;IACjB,aAAa,EAAE,KAAK;IACpB,IAAI,EAAE,IAAI;CACX,CAAC;AAEF,aAAa,CAAC,QAAQ,GAAG;IACvB,WAAW,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IAC7C,aAAa,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IAC/C,IAAI,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;CACvC,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\nimport { useState } from 'react';\nimport styled, { css } from 'styled-components';\n\nimport {\n StandardTreeProps,\n treeHelpers,\n StandardTree,\n Flex,\n SearchInput,\n TextArea,\n defaultThemeProp,\n Input,\n Configuration,\n BuildTheme\n} from '@pega/cosmos-react-core';\nimport { FlowModeller, Workbench } from '@pega/cosmos-react-build';\nimport { IconNames } from '@pega/cosmos-react-core/lib/components/Icon/iconNames';\nimport {\n NodeProps,\n NodeType\n} from '@pega/cosmos-react-build/lib/components/FlowModeller/Node/Node.types';\nimport {\n DirectedGraph,\n GraphData,\n ConnectorProps\n} from '@pega/cosmos-react-build/lib/components/FlowModeller/Renderer/Utils/Graph';\nimport FlowModellerHelper from '@pega/cosmos-react-build/lib/components/FlowModeller/helper';\nimport { AddNodeHandlerParams } from '@pega/cosmos-react-build/lib/components/FlowModeller/Renderer/Renderer.types';\nimport {\n nodeLibrary,\n nodeActions,\n exampleCRMNodesData as nodesData,\n exampleCRMConnectorsData as connectorsData\n} from '@pega/cosmos-react-demos/lib/build/FlowModeller/FlowModeller.mocks';\n\nimport { sideList } from './Workbench.mocks';\n\nexport default {\n title: 'Build/Workbench',\n parameters: {\n layout: 'fullscreen'\n }\n} as Meta;\n\nexport interface WorkbenchStoryProps {\n showActions?: boolean;\n hideSidePanel?: boolean;\n zoom?: boolean;\n}\n\nconst StyledSearch = styled.div(({ theme }) => {\n return css`\n margin: 0 calc(2 * ${theme.base.spacing}) calc(2 * ${theme.base.spacing})\n calc(2 * ${theme.base.spacing});\n `;\n});\n\nStyledSearch.defaultProps = defaultThemeProp;\nconst StyledContainer = styled.div(() => {\n return css`\n height: 100vh;\n `;\n});\n\nexport const WorkbenchDemo: Story<WorkbenchStoryProps> = (args: WorkbenchStoryProps) => {\n const [open, setOpen] = useState(false);\n const [heading, setHeading] = useState('');\n const [description, setDescription] = useState('');\n const Content = () => {\n const [currentNodeId, setCurrentNodeId] = useState<string | undefined>();\n const [allNodes, setAllNodes] = useState<StandardTreeProps['nodes']>(sideList);\n\n return (\n <>\n <SearchInput />\n <StandardTree\n currentNodeId={currentNodeId}\n nodes={allNodes}\n onNodeClick={id => {\n const clickedNode = treeHelpers.getNode(allNodes, id);\n setCurrentNodeId(id);\n // If a leaf node, just set to current\n if (!clickedNode?.nodes) return;\n\n setAllNodes(tree =>\n treeHelpers.mapNode(tree, id, node => {\n return {\n ...node,\n expanded: !node.expanded\n };\n })\n );\n }}\n />\n </>\n );\n };\n\n const ConfigContent = () => {\n return (\n <Flex container={{ direction: 'column', gap: 2 }}>\n <Input defaultValue={heading} />\n <TextArea\n name='Description'\n required\n label='Description'\n displayCharCount\n maxLength={300}\n value={description}\n />\n </Flex>\n );\n };\n\n const FlowChartView = () => {\n const [graphData, setGraphData] = useState<GraphData<NodeProps, ConnectorProps>>({\n nodes: nodesData,\n connectors: connectorsData\n });\n\n const launchPropertyModal = (node: NodeProps) => {\n setHeading(node.label);\n setDescription(node.description || '');\n setOpen(true);\n };\n\n const addNode = (nodeType: NodeType, metaData: AddNodeHandlerParams) => {\n const UpdatedData = FlowModellerHelper.addNode({\n nodeType,\n graphData,\n metaData\n });\n if (UpdatedData) {\n const newGraphData: GraphData<NodeProps, ConnectorProps> = UpdatedData;\n setGraphData(newGraphData);\n }\n };\n\n const selectNode = (nodeId: NodeProps['id']) => {\n const graph = new DirectedGraph(graphData);\n const node = graph.getNode(nodeId);\n launchPropertyModal(node);\n };\n\n return (\n <FlowModeller\n graphData={graphData}\n nodeLibrary={nodeLibrary}\n onNodeAdd={addNode}\n onNodeClick={selectNode}\n actions={nodeActions}\n />\n );\n };\n\n const ExplorerContent = () => {\n return <SearchInput />;\n };\n\n const utilityPanels = [\n { title: 'Steps', id: '1', icon: 'plus' as IconNames, content: <Content /> },\n { title: 'Explorer', id: '2', icon: 'app' as IconNames, content: <ExplorerContent /> },\n { title: 'Views', id: '3', icon: 'headline' as IconNames, content: <Content /> }\n ];\n\n const toolbarActions = {\n undo: { id: 'undo', disabled: false, onClick: () => {} },\n redo: { id: 'redo', disabled: true, onClick: () => {} }\n };\n\n return (\n <Configuration theme={BuildTheme}>\n <Flex as={StyledContainer}>\n <Workbench\n utilityPanels={args.hideSidePanel ? undefined : utilityPanels}\n initiallyVisiblePanelId={utilityPanels[0].id}\n toolbar={{\n zoom: args.zoom,\n toolbarActions\n }}\n configurationPanel={{\n open,\n content: <ConfigContent />,\n header: heading,\n onDismiss: () => {\n setOpen(false);\n }\n }}\n >\n <FlowChartView />\n </Workbench>\n </Flex>\n </Configuration>\n );\n};\n\nWorkbenchDemo.args = {\n showActions: true,\n hideSidePanel: false,\n zoom: true\n};\n\nWorkbenchDemo.argTypes = {\n showActions: { control: { type: 'boolean' } },\n hideSidePanel: { control: { type: 'boolean' } },\n zoom: { control: { type: 'boolean' } }\n};\n"]}
1
+ {"version":3,"file":"Workbench.stories.jsx","sourceRoot":"","sources":["../../../src/build/Workbench/Workbench.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjC,OAAO,EAEL,WAAW,EACX,YAAY,EACZ,IAAI,EACJ,WAAW,EACX,QAAQ,EACR,KAAK,EACL,aAAa,EACb,UAAU,EACX,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAMnE,OAAO,EACL,aAAa,EAGd,MAAM,2EAA2E,CAAC;AACnF,OAAO,kBAAkB,MAAM,6DAA6D,CAAC;AAG7F,OAAO,EACL,WAAW,EACX,WAAW,EACX,mBAAmB,IAAI,SAAS,EAChC,wBAAwB,IAAI,cAAc,EAC3C,MAAM,oCAAoC,CAAC;AAE5C,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE7C,eAAe;IACb,KAAK,EAAE,iBAAiB;IACxB,UAAU,EAAE;QACV,MAAM,EAAE,YAAY;KACrB;IACD,UAAU,EAAE;QACV,SAAS,CAAC,EAAE,CAAC,CACX,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,CAC9B;QAAA,CAAC,SAAS,CAAC,AAAD,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CACR,aAAa,CAAC,CAAC,aAAa,CAAC,CAC7B,uBAAuB,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAC7C,OAAO,CAAC,CAAC;YACP,cAAc,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS;SAC9D,CAAC,CACF,kBAAkB,CAAC,CAAC;YAClB,IAAI;YACJ,OAAO,EAAE,CAAC,aAAa,CAAC,AAAD,EAAG;YAC1B,MAAM,EAAE,OAAO;YACf,SAAS,EAAE,GAAG,EAAE;gBACd,OAAO,CAAC,KAAK,CAAC,CAAC;YACjB,CAAC;SACF,CAAC,CAEF;QAAA,CAAC,aAAa,CAAC,AAAD,EAChB;MAAA,EAAE,SAAS,CACb;IAAA,EAAE,aAAa,CAAC,CACjB,CAAC;AACJ,CAAC,CAAC;AAEF,aAAa,CAAC,IAAI,GAAG;IACnB,WAAW,EAAE,IAAI;IACjB,aAAa,EAAE,KAAK;CACrB,CAAC;AAEF,aAAa,CAAC,QAAQ,GAAG;IACvB,WAAW,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IAC7C,aAAa,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;CAChD,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\nimport { useState } from 'react';\n\nimport {\n StandardTreeProps,\n treeHelpers,\n StandardTree,\n Flex,\n SearchInput,\n TextArea,\n Input,\n Configuration,\n BuildTheme\n} from '@pega/cosmos-react-core';\nimport { FlowModeller, Workbench } from '@pega/cosmos-react-build';\nimport { IconNames } from '@pega/cosmos-react-core/lib/components/Icon/iconNames';\nimport {\n NodeProps,\n NodeType\n} from '@pega/cosmos-react-build/lib/components/FlowModeller/Node/Node.types';\nimport {\n DirectedGraph,\n GraphData,\n ConnectorProps\n} from '@pega/cosmos-react-build/lib/components/FlowModeller/Renderer/Utils/Graph';\nimport FlowModellerHelper from '@pega/cosmos-react-build/lib/components/FlowModeller/helper';\nimport { AddNodeHandlerParams } from '@pega/cosmos-react-build/lib/components/FlowModeller/Renderer/Renderer.types';\n\nimport {\n nodeLibrary,\n nodeActions,\n exampleCRMNodesData as nodesData,\n exampleCRMConnectorsData as connectorsData\n} from '../FlowModeller/FlowModeller.mocks';\n\nimport { sideList } from './Workbench.mocks';\n\nexport default {\n title: 'Build/Workbench',\n parameters: {\n layout: 'fullscreen'\n },\n decorators: [\n StoryComp => (\n <div style={{ height: '100vh' }}>\n <StoryComp />\n </div>\n )\n ]\n} as Meta;\n\nexport interface WorkbenchStoryProps {\n showActions?: boolean;\n hideSidePanel?: boolean;\n zoom?: boolean;\n}\n\nexport const WorkbenchDemo: Story<WorkbenchStoryProps> = (args: WorkbenchStoryProps) => {\n const [open, setOpen] = useState(false);\n const [heading, setHeading] = useState('');\n const [description, setDescription] = useState('');\n const Content = () => {\n const [currentNodeId, setCurrentNodeId] = useState<string | undefined>();\n const [allNodes, setAllNodes] = useState<StandardTreeProps['nodes']>(sideList);\n\n return (\n <>\n <SearchInput />\n <StandardTree\n currentNodeId={currentNodeId}\n nodes={allNodes}\n onNodeClick={id => {\n const clickedNode = treeHelpers.getNode(allNodes, id);\n setCurrentNodeId(id);\n // If a leaf node, just set to current\n if (!clickedNode?.nodes) return;\n\n setAllNodes(tree =>\n treeHelpers.mapNode(tree, id, node => {\n return {\n ...node,\n expanded: !node.expanded\n };\n })\n );\n }}\n />\n </>\n );\n };\n\n const ConfigContent = () => {\n return (\n <Flex container={{ direction: 'column', gap: 2 }}>\n <Input defaultValue={heading} />\n <TextArea\n name='Description'\n required\n label='Description'\n displayCharCount\n maxLength={300}\n value={description}\n />\n </Flex>\n );\n };\n\n const FlowChartView = () => {\n const [graphData, setGraphData] = useState<GraphData<NodeProps, ConnectorProps>>({\n nodes: nodesData,\n connectors: connectorsData\n });\n\n const launchPropertyModal = (node: NodeProps) => {\n setHeading(node.label);\n setDescription(node.description || '');\n setOpen(true);\n };\n\n const addNode = (nodeType: NodeType, metaData: AddNodeHandlerParams) => {\n const UpdatedData = FlowModellerHelper.addNode({\n nodeType,\n graphData,\n metaData\n });\n if (UpdatedData) {\n const newGraphData: GraphData<NodeProps, ConnectorProps> = UpdatedData;\n setGraphData(newGraphData);\n }\n };\n\n const selectNode = (nodeId: NodeProps['id']) => {\n const graph = new DirectedGraph(graphData);\n const node = graph.getNode(nodeId);\n launchPropertyModal(node);\n };\n\n return (\n <FlowModeller\n graphData={graphData}\n nodeLibrary={nodeLibrary}\n onNodeAdd={addNode}\n onNodeClick={selectNode}\n actions={nodeActions}\n />\n );\n };\n\n const ExplorerContent = () => {\n return <SearchInput />;\n };\n\n const utilityPanels = [\n { title: 'Steps', id: '1', icon: 'plus' as IconNames, content: <Content /> },\n { title: 'Explorer', id: '2', icon: 'app' as IconNames, content: <ExplorerContent /> },\n { title: 'Views', id: '3', icon: 'headline' as IconNames, content: <Content /> }\n ];\n\n const toolbarActions = {\n undo: { id: 'undo', disabled: false, onClick: () => {} },\n redo: { id: 'redo', disabled: true, onClick: () => {} }\n };\n\n return (\n <Configuration theme={BuildTheme}>\n <Workbench\n utilityPanels={utilityPanels}\n initiallyVisiblePanelId={utilityPanels[0].id}\n toolbar={{\n toolbarActions: args.showActions ? toolbarActions : undefined\n }}\n configurationPanel={{\n open,\n content: <ConfigContent />,\n header: heading,\n onDismiss: () => {\n setOpen(false);\n }\n }}\n >\n <FlowChartView />\n </Workbench>\n </Configuration>\n );\n};\n\nWorkbenchDemo.args = {\n showActions: true,\n hideSidePanel: false\n};\n\nWorkbenchDemo.argTypes = {\n showActions: { control: { type: 'boolean' } },\n hideSidePanel: { control: { type: 'boolean' } }\n};\n"]}
@@ -0,0 +1,3 @@
1
+ import { DateFunctionsByType, RHSType } from '@pega/cosmos-react-condition-builder';
2
+ export declare const convertRhsTypes: (useLiteralRHSType: boolean, useFieldRHSType: boolean, useRelativeDatesType: boolean, dateFunctions?: DateFunctionsByType | undefined) => Set<RHSType>;
3
+ //# sourceMappingURL=ConditionBuilder.mocks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConditionBuilder.mocks.d.ts","sourceRoot":"","sources":["../../../src/condition-builder/ConditionBuilder/ConditionBuilder.mocks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,OAAO,EAAE,MAAM,sCAAsC,CAAC;AAEpF,eAAO,MAAM,eAAe,sBACP,OAAO,mBACT,OAAO,wBACF,OAAO,kEAS9B,CAAC"}
@@ -0,0 +1,13 @@
1
+ export const convertRhsTypes = (useLiteralRHSType, useFieldRHSType, useRelativeDatesType, dateFunctions) => {
2
+ const setRhsTypes = new Set();
3
+ if (useLiteralRHSType)
4
+ setRhsTypes.add('LITERAL');
5
+ if (useFieldRHSType)
6
+ setRhsTypes.add('FIELD');
7
+ if (dateFunctions)
8
+ setRhsTypes.add('DATE_FUNCTION');
9
+ if (useRelativeDatesType)
10
+ setRhsTypes.add('RELATIVE_DATE');
11
+ return setRhsTypes;
12
+ };
13
+ //# sourceMappingURL=ConditionBuilder.mocks.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConditionBuilder.mocks.js","sourceRoot":"","sources":["../../../src/condition-builder/ConditionBuilder/ConditionBuilder.mocks.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,eAAe,GAAG,CAC7B,iBAA0B,EAC1B,eAAwB,EACxB,oBAA6B,EAC7B,aAAmC,EACnC,EAAE;IACF,MAAM,WAAW,GAAiB,IAAI,GAAG,EAAW,CAAC;IACrD,IAAI,iBAAiB;QAAE,WAAW,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAClD,IAAI,eAAe;QAAE,WAAW,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IAC9C,IAAI,aAAa;QAAE,WAAW,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;IACpD,IAAI,oBAAoB;QAAE,WAAW,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;IAC3D,OAAO,WAAW,CAAC;AACrB,CAAC,CAAC","sourcesContent":["import { DateFunctionsByType, RHSType } from '@pega/cosmos-react-condition-builder';\n\nexport 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"]}
@@ -1,10 +1,18 @@
1
- /// <reference types="react" />
2
- declare const _default: {
3
- title: string;
4
- component: import("react").FunctionComponent<import("@pega/cosmos-react-condition-builder").ConditionBuilderProps & import("@pega/cosmos-react-core").ForwardProps>;
5
- };
1
+ import { Meta, Story } from '@storybook/react';
2
+ declare const _default: Meta<import("@storybook/react").Args>;
6
3
  export default _default;
7
- export declare const DefaultBuilder: () => JSX.Element;
8
- export declare const FieldConditionDemo: () => JSX.Element;
9
- export declare const AtomicConditionDemo: () => JSX.Element;
4
+ interface ConditionBuilderStoryProps {
5
+ validComparators?: boolean;
6
+ disallowNOT?: boolean;
7
+ renderInPopover?: boolean;
8
+ dateFunctions?: boolean;
9
+ itemDirection?: 'column' | 'row';
10
+ useLiteralRHSType?: boolean;
11
+ useFieldRHSType?: boolean;
12
+ useRelativeDatesRHSType?: boolean;
13
+ showLhsAsLabel?: boolean;
14
+ }
15
+ export declare const DefaultBuilder: Story<ConditionBuilderStoryProps>;
16
+ export declare const FieldConditionDemo: Story<ConditionBuilderStoryProps>;
17
+ export declare const AtomicConditionDemo: Story<ConditionBuilderStoryProps>;
10
18
  //# sourceMappingURL=ConditionBuilder.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ConditionBuilder.stories.d.ts","sourceRoot":"","sources":["../../../src/condition-builder/ConditionBuilder/ConditionBuilder.stories.tsx"],"names":[],"mappings":";;;;;AAgDA,wBAGE;AAEF,eAAO,MAAM,cAAc,mBAiG1B,CAAC;AAEF,eAAO,MAAM,kBAAkB,mBAoF9B,CAAC;AAgBF,eAAO,MAAM,mBAAmB,mBA+J/B,CAAC"}
1
+ {"version":3,"file":"ConditionBuilder.stories.d.ts","sourceRoot":"","sources":["../../../src/condition-builder/ConditionBuilder/ConditionBuilder.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;;AA6B/C,wBAGU;AAEV,UAAU,0BAA0B;IAClC,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,aAAa,CAAC,EAAE,QAAQ,GAAG,KAAK,CAAC;IACjC,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,0BAA0B,CA+F5D,CAAC;AAgBF,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,0BAA0B,CAkFhE,CAAC;AAcF,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,0BAA0B,CAyJjE,CAAC"}
@@ -1,26 +1,14 @@
1
1
  import { useRef, useState } from 'react';
2
- import styled from 'styled-components';
3
- import { boolean, select } from '@storybook/addon-knobs';
4
- import { Card, CardContent, Text, Grid, Button, defaultThemeProp, Popover, useElement, useOuterEvent, Flex, useI18n } from '@pega/cosmos-react-core';
2
+ import { Card, CardContent, Text, Button, Popover, useElement, useOuterEvent, Flex, useI18n } from '@pega/cosmos-react-core';
5
3
  import { ConditionBuilder, FieldCondition, AtomicCondition, getInitConditionForLhs, isValidCondition, formatCondition } from '@pega/cosmos-react-condition-builder';
6
4
  import { demoFields, demoCondition, demoComparators, demoDateFunctions } from './props.mock';
7
- const StyledGrid = styled(Grid) `
8
- max-width: 60rem;
9
- `;
10
- const StyledCodeBlock = styled.pre `
11
- padding: ${props => props.theme.base.spacing};
12
- margin-bottom: ${props => props.theme.base.spacing};
13
- `;
14
- StyledCodeBlock.defaultProps = defaultThemeProp;
15
- const StyledList = styled.ul `
16
- padding-left: calc(4 * ${props => props.theme.base.spacing});
17
- `;
18
- StyledList.defaultProps = defaultThemeProp;
5
+ import { StyledCodeBlock, StyledGrid, StyledList } from './ConditionBuilder.styles';
6
+ import { convertRhsTypes } from './ConditionBuilder.mocks';
19
7
  export default {
20
8
  title: 'Condition Builder/ConditionBuilder',
21
9
  component: ConditionBuilder
22
10
  };
23
- export const DefaultBuilder = () => {
11
+ export const DefaultBuilder = (args) => {
24
12
  const translate = useI18n();
25
13
  const [condition, setCondition] = useState(() => {
26
14
  const prevCondition = sessionStorage.getItem('CBDemoCondition');
@@ -32,10 +20,6 @@ export const DefaultBuilder = () => {
32
20
  }
33
21
  return demoCondition;
34
22
  });
35
- const validComparators = boolean('Limit Comparators', false) ? demoComparators : undefined;
36
- const disallowNOT = boolean('Disallow NOT operator', false);
37
- const renderInPopover = boolean('Render inside Popover', false);
38
- const dateFunctions = boolean('Enable Date functions', true) ? demoDateFunctions : undefined;
39
23
  const buttonRef = useRef(null);
40
24
  const [isOpen, setIsOpen] = useState(false);
41
25
  const [popoverEl, setPopoverEl] = useElement(null);
@@ -49,7 +33,7 @@ export const DefaultBuilder = () => {
49
33
  if (e.key === 'Escape')
50
34
  hidePopover();
51
35
  };
52
- const builderJsx = (<ConditionBuilder fields={demoFields} condition={condition} validComparators={validComparators} validRhsTypes={new Set(['LITERAL', 'FIELD', 'DATE_FUNCTION', 'RELATIVE_DATE'])} dateFunctions={dateFunctions} disallowNOT={disallowNOT} onConditionSubmit={(c) => {
36
+ const builderJsx = (<ConditionBuilder fields={demoFields} condition={condition} validComparators={args.validComparators ? demoComparators : undefined} validRhsTypes={new Set(['LITERAL', 'FIELD', 'DATE_FUNCTION', 'RELATIVE_DATE'])} dateFunctions={args.dateFunctions ? demoDateFunctions : undefined} disallowNOT={args.disallowNOT} onConditionSubmit={(c) => {
53
37
  setCondition(c);
54
38
  hidePopover();
55
39
  sessionStorage.setItem('CBDemoCondition', JSON.stringify(c));
@@ -58,9 +42,9 @@ export const DefaultBuilder = () => {
58
42
  cols: '1fr',
59
43
  rowGap: 3
60
44
  }}>
61
- {!renderInPopover && builderJsx}
45
+ {!args.renderInPopover && builderJsx}
62
46
 
63
- {renderInPopover && (<>
47
+ {args.renderInPopover && (<>
64
48
  <Button ref={buttonRef} aria-haspopup aria-expanded={isOpen} onClick={() => setIsOpen(!isOpen)} onKeyDown={hideOnEscape}>
65
49
  Open Condition builder
66
50
  </Button>
@@ -85,12 +69,21 @@ export const DefaultBuilder = () => {
85
69
  </div>
86
70
  </StyledGrid>);
87
71
  };
88
- export const FieldConditionDemo = () => {
72
+ DefaultBuilder.args = {
73
+ validComparators: false,
74
+ disallowNOT: false,
75
+ renderInPopover: false,
76
+ dateFunctions: true
77
+ };
78
+ DefaultBuilder.argTypes = {
79
+ validComparators: { control: { type: 'boolean' } },
80
+ disallowNOT: { control: { type: 'boolean' } },
81
+ renderInPopover: { control: { type: 'boolean' } },
82
+ dateFunctions: { control: { type: 'boolean' } }
83
+ };
84
+ export const FieldConditionDemo = (args) => {
89
85
  const translate = useI18n();
90
86
  const [condition, setCondition] = useState(undefined);
91
- const validComparators = boolean('Limit Comparators', false) ? demoComparators : undefined;
92
- const renderInPopover = boolean('Render inside Popover', false);
93
- const dateFunctions = boolean('Enable Date functions', true) ? demoDateFunctions : undefined;
94
87
  const buttonRef = useRef(null);
95
88
  const [isOpen, setIsOpen] = useState(false);
96
89
  const [popoverEl, setPopoverEl] = useElement(null);
@@ -104,7 +97,7 @@ export const FieldConditionDemo = () => {
104
97
  if (e.key === 'Escape')
105
98
  hidePopover();
106
99
  };
107
- const builderJsx = (<FieldCondition targetField='lastActivityAt' fields={demoFields} condition={condition} validComparators={validComparators} validRhsTypes={new Set(['LITERAL', 'FIELD', 'DATE_FUNCTION', 'RELATIVE_DATE'])} dateFunctions={dateFunctions} onSubmit={c => {
100
+ const builderJsx = (<FieldCondition targetField='lastActivityAt' fields={demoFields} condition={condition} validComparators={args.validComparators ? demoComparators : undefined} validRhsTypes={new Set(['LITERAL', 'FIELD', 'DATE_FUNCTION', 'RELATIVE_DATE'])} dateFunctions={args.dateFunctions ? demoDateFunctions : undefined} onSubmit={c => {
108
101
  hidePopover();
109
102
  setCondition(c);
110
103
  }}/>);
@@ -114,9 +107,9 @@ export const FieldConditionDemo = () => {
114
107
  alignItems: 'start',
115
108
  colGap: 4
116
109
  }}>
117
- {!renderInPopover && builderJsx}
110
+ {!args.renderInPopover && builderJsx}
118
111
 
119
- {renderInPopover && (<>
112
+ {args.renderInPopover && (<>
120
113
  <Button ref={buttonRef} aria-haspopup aria-expanded={isOpen} onClick={() => setIsOpen(!isOpen)} onKeyDown={hideOnEscape}>
121
114
  Open Condition builder
122
115
  </Button>
@@ -139,29 +132,19 @@ export const FieldConditionDemo = () => {
139
132
  </div>
140
133
  </StyledGrid>);
141
134
  };
142
- const convertRhsTypes = (useLiteralRHSType, useFieldRHSType, useRelativeDatesType, dateFunctions) => {
143
- const setRhsTypes = new Set();
144
- if (useLiteralRHSType)
145
- setRhsTypes.add('LITERAL');
146
- if (useFieldRHSType)
147
- setRhsTypes.add('FIELD');
148
- if (dateFunctions)
149
- setRhsTypes.add('DATE_FUNCTION');
150
- if (useRelativeDatesType)
151
- setRhsTypes.add('RELATIVE_DATE');
152
- return setRhsTypes;
135
+ FieldConditionDemo.args = {
136
+ validComparators: false,
137
+ renderInPopover: false,
138
+ dateFunctions: true
139
+ };
140
+ FieldConditionDemo.argTypes = {
141
+ validComparators: { control: { type: 'boolean' } },
142
+ renderInPopover: { control: { type: 'boolean' } },
143
+ dateFunctions: { control: { type: 'boolean' } }
153
144
  };
154
- export const AtomicConditionDemo = () => {
145
+ export const AtomicConditionDemo = (args) => {
155
146
  const translate = useI18n();
156
- const renderInPopover = boolean('Render inside Popover', false);
157
- const itemDirection = select('Item Direction', { Column: 'column', Row: 'row' }, 'column');
158
- const validComparators = boolean('Limit Comparators', false) ? demoComparators : undefined;
159
- const useLiteralRHSType = boolean('Enable Literal RHS Type', true);
160
- const useFieldRHSType = boolean('Enable Field RHS Type', true);
161
- const useRelativeDatesRHSType = boolean('Enable Relative Dates RHS Type', true);
162
- const dateFunctions = boolean('Enable Date functions', true) ? demoDateFunctions : undefined;
163
- const validRHSTypes = convertRhsTypes(useLiteralRHSType, useFieldRHSType, useRelativeDatesRHSType, dateFunctions);
164
- const showLhsAsLabel = boolean('Show LHS as Label', false);
147
+ const validRHSTypes = convertRhsTypes(!!args.useLiteralRHSType, !!args.useFieldRHSType, !!args.useRelativeDatesRHSType, args.dateFunctions ? demoDateFunctions : undefined);
165
148
  const [submitCondition, setSubmitCondition] = useState(undefined);
166
149
  const buttonRef = useRef(null);
167
150
  const [isOpen, setIsOpen] = useState(false);
@@ -178,11 +161,11 @@ export const AtomicConditionDemo = () => {
178
161
  };
179
162
  const [showErrorIndicators, setShowErrorIndicators] = useState(false);
180
163
  const [condition, setCondition] = useState(() => submitCondition ||
181
- getInitConditionForLhs({ field: 'age' }, demoFields, validRHSTypes, validComparators, dateFunctions));
164
+ getInitConditionForLhs({ field: 'age' }, demoFields, validRHSTypes, args.validComparators ? demoComparators : undefined, args.dateFunctions ? demoDateFunctions : undefined));
182
165
  const handleSubmission = () => {
183
166
  setShowErrorIndicators(false);
184
167
  if (isValidCondition(condition, demoFields, true)) {
185
- if (renderInPopover)
168
+ if (args.renderInPopover)
186
169
  setIsOpen(false);
187
170
  setSubmitCondition(condition);
188
171
  }
@@ -191,7 +174,7 @@ export const AtomicConditionDemo = () => {
191
174
  }
192
175
  };
193
176
  const atomicConditionJSX = (<Flex container={{ direction: 'column', gap: 2 }}>
194
- <AtomicCondition condition={condition} fields={demoFields} indicateErrors={showErrorIndicators} validComparators={validComparators} dateFunctions={dateFunctions} onChange={c => setCondition(c)} itemDirection={itemDirection} showLhsAsLabel={showLhsAsLabel} validRhsTypes={validRHSTypes}/>
177
+ <AtomicCondition condition={condition} fields={demoFields} indicateErrors={showErrorIndicators} validComparators={args.validComparators ? demoComparators : undefined} dateFunctions={args.dateFunctions ? demoDateFunctions : undefined} onChange={c => setCondition(c)} itemDirection={args.itemDirection} showLhsAsLabel={args.showLhsAsLabel} validRhsTypes={validRHSTypes}/>
195
178
  <Button variant='primary' onClick={handleSubmission}>
196
179
  Submit Condition
197
180
  </Button>
@@ -202,9 +185,9 @@ export const AtomicConditionDemo = () => {
202
185
  alignItems: 'start',
203
186
  colGap: 4
204
187
  }}>
205
- {!renderInPopover && atomicConditionJSX}
188
+ {!args.renderInPopover && atomicConditionJSX}
206
189
 
207
- {renderInPopover && (<>
190
+ {args.renderInPopover && (<>
208
191
  <Button ref={buttonRef} aria-haspopup aria-expanded={isOpen} onClick={() => setIsOpen(!isOpen)} onKeyDown={hideOnEscape}>
209
192
  {`${isOpen ? 'Close' : 'Open'} Atomic Condition`}
210
193
  </Button>
@@ -260,4 +243,24 @@ export const AtomicConditionDemo = () => {
260
243
  </Card>
261
244
  </StyledGrid>);
262
245
  };
246
+ AtomicConditionDemo.args = {
247
+ validComparators: false,
248
+ renderInPopover: false,
249
+ dateFunctions: true,
250
+ itemDirection: 'column',
251
+ useLiteralRHSType: true,
252
+ useFieldRHSType: true,
253
+ useRelativeDatesRHSType: true,
254
+ showLhsAsLabel: false
255
+ };
256
+ AtomicConditionDemo.argTypes = {
257
+ validComparators: { control: { type: 'boolean' } },
258
+ renderInPopover: { control: { type: 'boolean' } },
259
+ dateFunctions: { control: { type: 'boolean' } },
260
+ itemDirection: { options: ['column', 'row'], control: { type: 'select' } },
261
+ useLiteralRHSType: { control: { type: 'boolean' } },
262
+ useFieldRHSType: { control: { type: 'boolean' } },
263
+ useRelativeDatesRHSType: { control: { type: 'boolean' } },
264
+ showLhsAsLabel: { control: { type: 'boolean' } }
265
+ };
263
266
  //# sourceMappingURL=ConditionBuilder.stories.jsx.map
@@ -1 +1 @@
1
- {"version":3,"file":"ConditionBuilder.stories.jsx","sourceRoot":"","sources":["../../../src/condition-builder/ConditionBuilder/ConditionBuilder.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAEzD,OAAO,EACL,IAAI,EACJ,WAAW,EACX,IAAI,EACJ,IAAI,EACJ,MAAM,EACN,gBAAgB,EAChB,OAAO,EACP,UAAU,EACV,aAAa,EACb,IAAI,EACJ,OAAO,EACR,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,gBAAgB,EAChB,cAAc,EACd,eAAe,EACf,sBAAsB,EACtB,gBAAgB,EAIhB,eAAe,EAEhB,MAAM,sCAAsC,CAAC;AAE9C,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAE7F,MAAM,UAAU,GAAG,MAAM,CAAC,IAAI,CAAC,CAAA;;CAE9B,CAAC;AAEF,MAAM,eAAe,GAAG,MAAM,CAAC,GAAG,CAAA;aACrB,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO;mBAC3B,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO;CACnD,CAAC;AACF,eAAe,CAAC,YAAY,GAAG,gBAAgB,CAAC;AAEhD,MAAM,UAAU,GAAG,MAAM,CAAC,EAAE,CAAA;2BACD,KAAK,CAA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ACd,CAAC;AACJ,CAAC,CAAC","sourcesContent":["/* eslint-disable react/no-unescaped-entities */\nimport { useRef, useState } from 'react';\nimport styled from 'styled-components';\nimport { boolean, select } from '@storybook/addon-knobs';\n\nimport {\n Card,\n CardContent,\n Text,\n Grid,\n Button,\n defaultThemeProp,\n Popover,\n useElement,\n useOuterEvent,\n Flex,\n useI18n\n} from '@pega/cosmos-react-core';\nimport {\n ConditionBuilder,\n FieldCondition,\n AtomicCondition,\n getInitConditionForLhs,\n isValidCondition,\n Condition,\n DateFunctionsByType,\n LeafCondition,\n formatCondition,\n RHSType\n} from '@pega/cosmos-react-condition-builder';\n\nimport { demoFields, demoCondition, demoComparators, demoDateFunctions } from './props.mock';\n\nconst StyledGrid = styled(Grid)`\n max-width: 60rem;\n`;\n\nconst StyledCodeBlock = styled.pre`\n padding: ${props => props.theme.base.spacing};\n margin-bottom: ${props => props.theme.base.spacing};\n`;\nStyledCodeBlock.defaultProps = defaultThemeProp;\n\nconst StyledList = styled.ul`\n padding-left: calc(4 * ${props => props.theme.base.spacing});\n`;\nStyledList.defaultProps = defaultThemeProp;\n\nexport default {\n title: 'Condition Builder/ConditionBuilder',\n component: ConditionBuilder\n};\n\nexport const DefaultBuilder = () => {\n const translate = useI18n();\n const [condition, setCondition] = useState<Condition | undefined>(() => {\n // If a previous condition exists on the session, use it\n const prevCondition = sessionStorage.getItem('CBDemoCondition');\n if (prevCondition !== null) {\n // If an empty condition was submitted previously, start with an empty one\n if (prevCondition === 'undefined') {\n return undefined;\n }\n return JSON.parse(prevCondition);\n }\n return demoCondition;\n });\n\n const validComparators = boolean('Limit Comparators', false) ? demoComparators : undefined;\n const disallowNOT = boolean('Disallow NOT operator', false);\n const renderInPopover = boolean('Render inside Popover', false);\n const dateFunctions = boolean('Enable Date functions', true) ? demoDateFunctions : undefined;\n\n // Set up content for rendering inside a Popover\n const buttonRef = useRef(null); // Ref for the opener button\n const [isOpen, setIsOpen] = useState(false);\n const [popoverEl, setPopoverEl] = useElement<HTMLElement>(null);\n const hidePopover = () => {\n if (isOpen) {\n setIsOpen(false);\n }\n };\n useOuterEvent('mousedown', [popoverEl, buttonRef.current], hidePopover); // Call the method on clicking outside these elements\n const hideOnEscape = (e: KeyboardEvent) => {\n if (e.key === 'Escape') hidePopover(); // Call the method when Escape key is pressed\n };\n\n const builderJsx = (\n <ConditionBuilder\n fields={demoFields}\n condition={condition}\n validComparators={validComparators}\n validRhsTypes={new Set(['LITERAL', 'FIELD', 'DATE_FUNCTION', 'RELATIVE_DATE'])}\n dateFunctions={dateFunctions}\n disallowNOT={disallowNOT}\n onConditionSubmit={(c: Condition | undefined) => {\n setCondition(c);\n hidePopover();\n sessionStorage.setItem('CBDemoCondition', JSON.stringify(c)); // Persist on sessionStorage for the next time\n }}\n />\n );\n\n return (\n <StyledGrid\n container={{\n cols: '1fr',\n rowGap: 3\n }}\n >\n {!renderInPopover && builderJsx}\n\n {renderInPopover && (\n <>\n <Button\n ref={buttonRef}\n aria-haspopup\n aria-expanded={isOpen}\n onClick={() => setIsOpen(!isOpen)}\n onKeyDown={hideOnEscape}\n >\n Open Condition builder\n </Button>\n\n <Popover\n show={isOpen}\n ref={setPopoverEl}\n target={buttonRef.current}\n placement='bottom-start'\n >\n <Flex container={{ pad: 1 }}>{builderJsx}</Flex>\n </Popover>\n </>\n )}\n\n <div>\n <Text variant='h4'>Output:</Text>\n <StyledCodeBlock>\n {condition ? JSON.stringify(condition, null, 2) : '(No condition)'}\n </StyledCodeBlock>\n </div>\n\n <div>\n <Text variant='h4'>Formatted Output:</Text>\n <StyledCodeBlock>\n {condition ? formatCondition(condition, demoFields, translate) : '(No condition)'}\n </StyledCodeBlock>\n </div>\n </StyledGrid>\n );\n};\n\nexport const FieldConditionDemo = () => {\n const translate = useI18n();\n const [condition, setCondition] = useState<LeafCondition | undefined>(undefined);\n\n const validComparators = boolean('Limit Comparators', false) ? demoComparators : undefined;\n const renderInPopover = boolean('Render inside Popover', false);\n const dateFunctions = boolean('Enable Date functions', true) ? demoDateFunctions : undefined;\n\n // Set up content for rendering inside a Popover\n const buttonRef = useRef(null); // Ref for the opener button\n const [isOpen, setIsOpen] = useState(false);\n const [popoverEl, setPopoverEl] = useElement<HTMLElement>(null);\n const hidePopover = () => {\n if (isOpen) {\n setIsOpen(false);\n }\n };\n useOuterEvent('mousedown', [popoverEl, buttonRef.current], hidePopover); // Call the method on clicking outside these elements\n const hideOnEscape = (e: KeyboardEvent) => {\n if (e.key === 'Escape') hidePopover(); // Call the method when Escape key is pressed\n };\n\n const builderJsx = (\n <FieldCondition\n targetField='lastActivityAt'\n fields={demoFields}\n condition={condition}\n validComparators={validComparators}\n validRhsTypes={new Set(['LITERAL', 'FIELD', 'DATE_FUNCTION', 'RELATIVE_DATE'])}\n dateFunctions={dateFunctions}\n onSubmit={c => {\n hidePopover();\n setCondition(c);\n }}\n />\n );\n\n return (\n <StyledGrid\n container={{\n cols: 'repeat(2, minmax(0, 1fr))',\n justifyItems: 'stretch',\n alignItems: 'start',\n colGap: 4\n }}\n >\n {!renderInPopover && builderJsx}\n\n {renderInPopover && (\n <>\n <Button\n ref={buttonRef}\n aria-haspopup\n aria-expanded={isOpen}\n onClick={() => setIsOpen(!isOpen)}\n onKeyDown={hideOnEscape}\n >\n Open Condition builder\n </Button>\n\n <Popover\n show={isOpen}\n ref={setPopoverEl}\n target={buttonRef.current}\n placement='bottom-start'\n >\n <Flex container={{ pad: 1 }}>{builderJsx}</Flex>\n </Popover>\n </>\n )}\n\n <div>\n <Text variant='h4'>Output:</Text>\n <StyledCodeBlock>\n {condition ? JSON.stringify(condition, null, 2) : '(No condition)'}\n </StyledCodeBlock>\n\n <Text variant='h4'>Formatted Output:</Text>\n <StyledCodeBlock>\n {condition ? formatCondition({ condition }, demoFields, translate) : '(No condition)'}\n </StyledCodeBlock>\n </div>\n </StyledGrid>\n );\n};\n\nconst 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\nexport const AtomicConditionDemo = () => {\n const translate = useI18n();\n // Storybook knobs for configuration\n const renderInPopover = boolean('Render inside Popover', false);\n const itemDirection = select('Item Direction', { Column: 'column', Row: 'row' }, 'column');\n const validComparators = boolean('Limit Comparators', false) ? demoComparators : undefined;\n const useLiteralRHSType = boolean('Enable Literal RHS Type', true);\n const useFieldRHSType = boolean('Enable Field RHS Type', true);\n const useRelativeDatesRHSType = boolean('Enable Relative Dates RHS Type', true);\n const dateFunctions = boolean('Enable Date functions', true) ? demoDateFunctions : undefined;\n const validRHSTypes: Set<RHSType> = convertRhsTypes(\n useLiteralRHSType,\n useFieldRHSType,\n useRelativeDatesRHSType,\n dateFunctions\n );\n const showLhsAsLabel = boolean('Show LHS as Label', false);\n\n // Story State object to simulate \"submitting\"\n const [submitCondition, setSubmitCondition] = useState<LeafCondition | undefined>(undefined);\n // State needed to use Popover in Story\n const buttonRef = useRef(null); // Ref for the opener button\n const [isOpen, setIsOpen] = useState(false);\n const [popoverEl, setPopoverEl] = useElement<HTMLElement>(null);\n const hidePopover = () => {\n if (isOpen) {\n setIsOpen(false);\n }\n };\n useOuterEvent('mousedown', [popoverEl, buttonRef.current], hidePopover); // Call the method on clicking outside these elements\n const hideOnEscape = (e: KeyboardEvent) => {\n if (e.key === 'Escape') hidePopover(); // Call the method when Escape key is pressed\n };\n\n // State handling needed to manage/use the AtomicCondition component\n const [showErrorIndicators, setShowErrorIndicators] = useState(false);\n const [condition, setCondition] = useState(\n // If editing use the seedCondition, otherwise, determine an initial condition based on the targetField\n () =>\n submitCondition ||\n getInitConditionForLhs(\n { field: 'age' },\n demoFields,\n validRHSTypes,\n validComparators,\n dateFunctions\n )\n );\n\n const handleSubmission = () => {\n setShowErrorIndicators(false);\n if (isValidCondition(condition, demoFields, true)) {\n // Insert all \"submit\" logic to use the valid condition that you've created.\n if (renderInPopover) setIsOpen(false);\n setSubmitCondition(condition);\n } else {\n setShowErrorIndicators(true);\n }\n };\n\n const atomicConditionJSX = (\n <Flex container={{ direction: 'column', gap: 2 }}>\n <AtomicCondition\n condition={condition}\n fields={demoFields}\n indicateErrors={showErrorIndicators}\n validComparators={validComparators}\n dateFunctions={dateFunctions}\n onChange={c => setCondition(c)}\n itemDirection={itemDirection}\n showLhsAsLabel={showLhsAsLabel}\n validRhsTypes={validRHSTypes}\n />\n <Button variant='primary' onClick={handleSubmission}>\n Submit Condition\n </Button>\n </Flex>\n );\n\n return (\n <StyledGrid\n container={{\n cols: 'repeat(2, minmax(0, 1fr))',\n justifyItems: 'stretch',\n alignItems: 'start',\n colGap: 4\n }}\n >\n {!renderInPopover && atomicConditionJSX}\n\n {renderInPopover && (\n <>\n <Button\n ref={buttonRef}\n aria-haspopup\n aria-expanded={isOpen}\n onClick={() => setIsOpen(!isOpen)}\n onKeyDown={hideOnEscape}\n >\n {`${isOpen ? 'Close' : 'Open'} Atomic Condition`}\n </Button>\n\n <Popover\n show={isOpen}\n ref={setPopoverEl}\n target={buttonRef.current}\n placement='bottom-start'\n >\n <Flex container={{ pad: 1 }}>{atomicConditionJSX}</Flex>\n </Popover>\n </>\n )}\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, translate)\n : '(No condition)'}\n </StyledCodeBlock>\n <Flex container={{ gap: 1, direction: 'column' }}>\n <Flex container={{ gap: 1, direction: 'column' }}>\n <Text variant='h2' status='error'>\n validRhsTypes Prop Warning\n </Text>\n <Text>\n There are LHS(Left Hand Side Field)/Comparator pairings that <u>require</u> specific\n RHS(Right Hand Side Value) types. Please be mindful of these incompatibilities when\n limiting RHS value types using this prop. We <b>do not</b> support limiting RHS\n field types to incompatible types and it will result in a validation error if you do\n so. The pairings referred to here are as follows:\n </Text>\n </Flex>\n <StyledList>\n <li>\n BOOLEAN LHS Fields coupled with \"EQ\" or \"NEQ\" comparators, will <u>always yield</u>{' '}\n a Field RHS\n </li>\n <li>\n Any LHS Fields coupled with \"IN\" or \"NOT_IN\" comparators, will <u>always yield</u> a\n Literal RHS (Comma separated list)\n </li>\n </StyledList>\n <Flex container={{ direction: 'column' }}>\n <Text>\n If you would like to limit RHS value types and avoid these incompatibilities, you\n will need to exclude these comparators using the <b>validComparators</b> prop.\n </Text>\n </Flex>\n </Flex>\n </CardContent>\n </Card>\n </StyledGrid>\n );\n};\n"]}
1
+ {"version":3,"file":"ConditionBuilder.stories.jsx","sourceRoot":"","sources":["../../../src/condition-builder/ConditionBuilder/ConditionBuilder.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAGzC,OAAO,EACL,IAAI,EACJ,WAAW,EACX,IAAI,EACJ,MAAM,EACN,OAAO,EACP,UAAU,EACV,aAAa,EACb,IAAI,EACJ,OAAO,EACR,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,gBAAgB,EAChB,cAAc,EACd,eAAe,EACf,sBAAsB,EACtB,gBAAgB,EAGhB,eAAe,EAEhB,MAAM,sCAAsC,CAAC;AAE9C,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAC7F,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACpF,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAE3D,eAAe;IACb,KAAK,EAAE,oCAAo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SAAS,EAAE,EAAE;IAClD,eAAe,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IACjD,aAAa,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IAC/C,aAAa,EAAE,EAAE,OAAO,EAAE,CAAC,QAAQ,EAAE,KAAK,CAAC,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;IAC1E,iBAAiB,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IACnD,eAAe,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IACjD,uBAAuB,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IACzD,cAAc,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;CACjD,CAAC","sourcesContent":["/* eslint-disable react/no-unescaped-entities */\nimport { useRef, useState } from 'react';\nimport { Meta, Story } from '@storybook/react';\n\nimport {\n Card,\n CardContent,\n Text,\n Button,\n Popover,\n useElement,\n useOuterEvent,\n Flex,\n useI18n\n} from '@pega/cosmos-react-core';\nimport {\n ConditionBuilder,\n FieldCondition,\n AtomicCondition,\n getInitConditionForLhs,\n isValidCondition,\n Condition,\n LeafCondition,\n formatCondition,\n RHSType\n} from '@pega/cosmos-react-condition-builder';\n\nimport { demoFields, demoCondition, demoComparators, demoDateFunctions } from './props.mock';\nimport { StyledCodeBlock, StyledGrid, StyledList } from './ConditionBuilder.styles';\nimport { convertRhsTypes } from './ConditionBuilder.mocks';\n\nexport default {\n title: 'Condition Builder/ConditionBuilder',\n component: ConditionBuilder\n} as Meta;\n\ninterface ConditionBuilderStoryProps {\n validComparators?: boolean;\n disallowNOT?: boolean;\n renderInPopover?: boolean;\n dateFunctions?: boolean;\n itemDirection?: 'column' | 'row';\n useLiteralRHSType?: boolean;\n useFieldRHSType?: boolean;\n useRelativeDatesRHSType?: boolean;\n showLhsAsLabel?: boolean;\n}\n\nexport const DefaultBuilder: Story<ConditionBuilderStoryProps> = (\n args: ConditionBuilderStoryProps\n) => {\n const translate = useI18n();\n const [condition, setCondition] = useState<Condition | undefined>(() => {\n // If a previous condition exists on the session, use it\n const prevCondition = sessionStorage.getItem('CBDemoCondition');\n if (prevCondition !== null) {\n // If an empty condition was submitted previously, start with an empty one\n if (prevCondition === 'undefined') {\n return undefined;\n }\n return JSON.parse(prevCondition);\n }\n return demoCondition;\n });\n\n // Set up content for rendering inside a Popover\n const buttonRef = useRef(null); // Ref for the opener button\n const [isOpen, setIsOpen] = useState(false);\n const [popoverEl, setPopoverEl] = useElement<HTMLElement>(null);\n const hidePopover = () => {\n if (isOpen) {\n setIsOpen(false);\n }\n };\n\n useOuterEvent('mousedown', [popoverEl, buttonRef.current], hidePopover); // Call the method on clicking outside these elements\n const hideOnEscape = (e: KeyboardEvent) => {\n if (e.key === 'Escape') hidePopover(); // Call the method when Escape key is pressed\n };\n\n const builderJsx = (\n <ConditionBuilder\n fields={demoFields}\n condition={condition}\n validComparators={args.validComparators ? demoComparators : undefined}\n validRhsTypes={new Set(['LITERAL', 'FIELD', 'DATE_FUNCTION', 'RELATIVE_DATE'])}\n dateFunctions={args.dateFunctions ? demoDateFunctions : undefined}\n disallowNOT={args.disallowNOT}\n onConditionSubmit={(c: Condition | undefined) => {\n setCondition(c);\n hidePopover();\n sessionStorage.setItem('CBDemoCondition', JSON.stringify(c)); // Persist on sessionStorage for the next time\n }}\n />\n );\n\n return (\n <StyledGrid\n container={{\n cols: '1fr',\n rowGap: 3\n }}\n >\n {!args.renderInPopover && builderJsx}\n\n {args.renderInPopover && (\n <>\n <Button\n ref={buttonRef}\n aria-haspopup\n aria-expanded={isOpen}\n onClick={() => setIsOpen(!isOpen)}\n onKeyDown={hideOnEscape}\n >\n Open Condition builder\n </Button>\n\n <Popover\n show={isOpen}\n ref={setPopoverEl}\n target={buttonRef.current}\n placement='bottom-start'\n >\n <Flex container={{ pad: 1 }}>{builderJsx}</Flex>\n </Popover>\n </>\n )}\n\n <div>\n <Text variant='h4'>Output:</Text>\n <StyledCodeBlock>\n {condition ? JSON.stringify(condition, null, 2) : '(No condition)'}\n </StyledCodeBlock>\n </div>\n\n <div>\n <Text variant='h4'>Formatted Output:</Text>\n <StyledCodeBlock>\n {condition ? formatCondition(condition, demoFields, translate) : '(No condition)'}\n </StyledCodeBlock>\n </div>\n </StyledGrid>\n );\n};\n\nDefaultBuilder.args = {\n validComparators: false,\n disallowNOT: false,\n renderInPopover: false,\n dateFunctions: true\n};\n\nDefaultBuilder.argTypes = {\n validComparators: { control: { type: 'boolean' } },\n disallowNOT: { control: { type: 'boolean' } },\n renderInPopover: { control: { type: 'boolean' } },\n dateFunctions: { control: { type: 'boolean' } }\n};\n\nexport const FieldConditionDemo: Story<ConditionBuilderStoryProps> = (\n args: ConditionBuilderStoryProps\n) => {\n const translate = useI18n();\n const [condition, setCondition] = useState<LeafCondition | undefined>(undefined);\n\n // Set up content for rendering inside a Popover\n const buttonRef = useRef(null); // Ref for the opener button\n const [isOpen, setIsOpen] = useState(false);\n const [popoverEl, setPopoverEl] = useElement<HTMLElement>(null);\n const hidePopover = () => {\n if (isOpen) {\n setIsOpen(false);\n }\n };\n useOuterEvent('mousedown', [popoverEl, buttonRef.current], hidePopover); // Call the method on clicking outside these elements\n const hideOnEscape = (e: KeyboardEvent) => {\n if (e.key === 'Escape') hidePopover(); // Call the method when Escape key is pressed\n };\n\n const builderJsx = (\n <FieldCondition\n targetField='lastActivityAt'\n fields={demoFields}\n condition={condition}\n validComparators={args.validComparators ? demoComparators : undefined}\n validRhsTypes={new Set(['LITERAL', 'FIELD', 'DATE_FUNCTION', 'RELATIVE_DATE'])}\n dateFunctions={args.dateFunctions ? demoDateFunctions : undefined}\n onSubmit={c => {\n hidePopover();\n setCondition(c);\n }}\n />\n );\n\n return (\n <StyledGrid\n container={{\n cols: 'repeat(2, minmax(0, 1fr))',\n justifyItems: 'stretch',\n alignItems: 'start',\n colGap: 4\n }}\n >\n {!args.renderInPopover && builderJsx}\n\n {args.renderInPopover && (\n <>\n <Button\n ref={buttonRef}\n aria-haspopup\n aria-expanded={isOpen}\n onClick={() => setIsOpen(!isOpen)}\n onKeyDown={hideOnEscape}\n >\n Open Condition builder\n </Button>\n\n <Popover\n show={isOpen}\n ref={setPopoverEl}\n target={buttonRef.current}\n placement='bottom-start'\n >\n <Flex container={{ pad: 1 }}>{builderJsx}</Flex>\n </Popover>\n </>\n )}\n\n <div>\n <Text variant='h4'>Output:</Text>\n <StyledCodeBlock>\n {condition ? JSON.stringify(condition, null, 2) : '(No condition)'}\n </StyledCodeBlock>\n\n <Text variant='h4'>Formatted Output:</Text>\n <StyledCodeBlock>\n {condition ? formatCondition({ condition }, demoFields, translate) : '(No condition)'}\n </StyledCodeBlock>\n </div>\n </StyledGrid>\n );\n};\n\nFieldConditionDemo.args = {\n validComparators: false,\n renderInPopover: false,\n dateFunctions: true\n};\n\nFieldConditionDemo.argTypes = {\n validComparators: { control: { type: 'boolean' } },\n renderInPopover: { control: { type: 'boolean' } },\n dateFunctions: { control: { type: 'boolean' } }\n};\n\nexport const AtomicConditionDemo: Story<ConditionBuilderStoryProps> = (\n args: ConditionBuilderStoryProps\n) => {\n const translate = useI18n();\n\n const validRHSTypes: Set<RHSType> = convertRhsTypes(\n !!args.useLiteralRHSType,\n !!args.useFieldRHSType,\n !!args.useRelativeDatesRHSType,\n args.dateFunctions ? demoDateFunctions : undefined\n );\n\n // Story State object to simulate \"submitting\"\n const [submitCondition, setSubmitCondition] = useState<LeafCondition | undefined>(undefined);\n // State needed to use Popover in Story\n const buttonRef = useRef(null); // Ref for the opener button\n const [isOpen, setIsOpen] = useState(false);\n const [popoverEl, setPopoverEl] = useElement<HTMLElement>(null);\n const hidePopover = () => {\n if (isOpen) {\n setIsOpen(false);\n }\n };\n useOuterEvent('mousedown', [popoverEl, buttonRef.current], hidePopover); // Call the method on clicking outside these elements\n const hideOnEscape = (e: KeyboardEvent) => {\n if (e.key === 'Escape') hidePopover(); // Call the method when Escape key is pressed\n };\n\n // State handling needed to manage/use the AtomicCondition component\n const [showErrorIndicators, setShowErrorIndicators] = useState(false);\n const [condition, setCondition] = useState(\n // If editing use the seedCondition, otherwise, determine an initial condition based on the targetField\n () =>\n submitCondition ||\n getInitConditionForLhs(\n { field: 'age' },\n demoFields,\n validRHSTypes,\n args.validComparators ? demoComparators : undefined,\n args.dateFunctions ? demoDateFunctions : undefined\n )\n );\n\n const handleSubmission = () => {\n setShowErrorIndicators(false);\n if (isValidCondition(condition, demoFields, true)) {\n // Insert all \"submit\" logic to use the valid condition that you've created.\n if (args.renderInPopover) setIsOpen(false);\n setSubmitCondition(condition);\n } else {\n setShowErrorIndicators(true);\n }\n };\n\n const atomicConditionJSX = (\n <Flex container={{ direction: 'column', gap: 2 }}>\n <AtomicCondition\n condition={condition}\n fields={demoFields}\n indicateErrors={showErrorIndicators}\n validComparators={args.validComparators ? demoComparators : undefined}\n dateFunctions={args.dateFunctions ? demoDateFunctions : undefined}\n onChange={c => setCondition(c)}\n itemDirection={args.itemDirection}\n showLhsAsLabel={args.showLhsAsLabel}\n validRhsTypes={validRHSTypes}\n />\n <Button variant='primary' onClick={handleSubmission}>\n Submit Condition\n </Button>\n </Flex>\n );\n\n return (\n <StyledGrid\n container={{\n cols: 'repeat(2, minmax(0, 1fr))',\n justifyItems: 'stretch',\n alignItems: 'start',\n colGap: 4\n }}\n >\n {!args.renderInPopover && atomicConditionJSX}\n\n {args.renderInPopover && (\n <>\n <Button\n ref={buttonRef}\n aria-haspopup\n aria-expanded={isOpen}\n onClick={() => setIsOpen(!isOpen)}\n onKeyDown={hideOnEscape}\n >\n {`${isOpen ? 'Close' : 'Open'} Atomic Condition`}\n </Button>\n\n <Popover\n show={isOpen}\n ref={setPopoverEl}\n target={buttonRef.current}\n placement='bottom-start'\n >\n <Flex container={{ pad: 1 }}>{atomicConditionJSX}</Flex>\n </Popover>\n </>\n )}\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, translate)\n : '(No condition)'}\n </StyledCodeBlock>\n <Flex container={{ gap: 1, direction: 'column' }}>\n <Flex container={{ gap: 1, direction: 'column' }}>\n <Text variant='h2' status='error'>\n validRhsTypes Prop Warning\n </Text>\n <Text>\n There are LHS(Left Hand Side Field)/Comparator pairings that <u>require</u> specific\n RHS(Right Hand Side Value) types. Please be mindful of these incompatibilities when\n limiting RHS value types using this prop. We <b>do not</b> support limiting RHS\n field types to incompatible types and it will result in a validation error if you do\n so. The pairings referred to here are as follows:\n </Text>\n </Flex>\n <StyledList>\n <li>\n BOOLEAN LHS Fields coupled with \"EQ\" or \"NEQ\" comparators, will <u>always yield</u>{' '}\n a Field RHS\n </li>\n <li>\n Any LHS Fields coupled with \"IN\" or \"NOT_IN\" comparators, will <u>always yield</u> a\n Literal RHS (Comma separated list)\n </li>\n </StyledList>\n <Flex container={{ direction: 'column' }}>\n <Text>\n If you would like to limit RHS value types and avoid these incompatibilities, you\n will need to exclude these comparators using the <b>validComparators</b> prop.\n </Text>\n </Flex>\n </Flex>\n </CardContent>\n </Card>\n </StyledGrid>\n );\n};\n\nAtomicConditionDemo.args = {\n validComparators: false,\n renderInPopover: false,\n dateFunctions: true,\n itemDirection: 'column',\n useLiteralRHSType: true,\n useFieldRHSType: true,\n useRelativeDatesRHSType: true,\n showLhsAsLabel: false\n};\n\nAtomicConditionDemo.argTypes = {\n validComparators: { control: { type: 'boolean' } },\n renderInPopover: { control: { type: 'boolean' } },\n dateFunctions: { control: { type: 'boolean' } },\n itemDirection: { options: ['column', 'row'], control: { type: 'select' } },\n useLiteralRHSType: { control: { type: 'boolean' } },\n useFieldRHSType: { control: { type: 'boolean' } },\n useRelativeDatesRHSType: { control: { type: 'boolean' } },\n showLhsAsLabel: { control: { type: 'boolean' } }\n};\n"]}
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ export declare const StyledGrid: import("styled-components").StyledComponent<import("react").FunctionComponent<import("@pega/cosmos-react-core").GridProps & import("@pega/cosmos-react-core").ForwardProps>, import("styled-components").DefaultTheme, {}, never>;
3
+ export declare const StyledCodeBlock: import("styled-components").StyledComponent<"pre", import("styled-components").DefaultTheme, {}, never>;
4
+ export declare const StyledList: import("styled-components").StyledComponent<"ul", import("styled-components").DefaultTheme, {}, never>;
5
+ //# sourceMappingURL=ConditionBuilder.styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConditionBuilder.styles.d.ts","sourceRoot":"","sources":["../../../src/condition-builder/ConditionBuilder/ConditionBuilder.styles.ts"],"names":[],"mappings":";AAIA,eAAO,MAAM,UAAU,mOAEtB,CAAC;AAEF,eAAO,MAAM,eAAe,yGAG3B,CAAC;AAGF,eAAO,MAAM,UAAU,wGAEtB,CAAC"}
@@ -0,0 +1,15 @@
1
+ import styled from 'styled-components';
2
+ import { Grid, defaultThemeProp } from '@pega/cosmos-react-core';
3
+ export const StyledGrid = styled(Grid) `
4
+ max-width: 60rem;
5
+ `;
6
+ export const StyledCodeBlock = styled.pre `
7
+ padding: ${props => props.theme.base.spacing};
8
+ margin-bottom: ${props => props.theme.base.spacing};
9
+ `;
10
+ StyledCodeBlock.defaultProps = defaultThemeProp;
11
+ export const StyledList = styled.ul `
12
+ padding-left: calc(4 * ${props => props.theme.base.spacing});
13
+ `;
14
+ StyledList.defaultProps = defaultThemeProp;
15
+ //# sourceMappingURL=ConditionBuilder.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConditionBuilder.styles.js","sourceRoot":"","sources":["../../../src/condition-builder/ConditionBuilder/ConditionBuilder.styles.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAEvC,OAAO,EAAE,IAAI,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAEjE,MAAM,CAAC,MAAM,UAAU,GAAG,MAAM,CAAC,IAAI,CAAC,CAAA;;CAErC,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAG,MAAM,CAAC,GAAG,CAAA;aAC5B,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO;mBAC3B,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO;CACnD,CAAC;AACF,eAAe,CAAC,YAAY,GAAG,gBAAgB,CAAC;AAEhD,MAAM,CAAC,MAAM,UAAU,GAAG,MAAM,CAAC,EAAE,CAAA;2BACR,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO;CAC3D,CAAC;AACF,UAAU,CAAC,YAAY,GAAG,gBAAgB,CAAC","sourcesContent":["import styled from 'styled-components';\n\nimport { Grid, defaultThemeProp } from '@pega/cosmos-react-core';\n\nexport const StyledGrid = styled(Grid)`\n max-width: 60rem;\n`;\n\nexport const StyledCodeBlock = styled.pre`\n padding: ${props => props.theme.base.spacing};\n margin-bottom: ${props => props.theme.base.spacing};\n`;\nStyledCodeBlock.defaultProps = defaultThemeProp;\n\nexport const StyledList = styled.ul`\n padding-left: calc(4 * ${props => props.theme.base.spacing});\n`;\nStyledList.defaultProps = defaultThemeProp;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"props.mock.d.ts","sourceRoot":"","sources":["../../../src/condition-builder/ConditionBuilder/props.mock.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,SAAS,EACT,mBAAmB,EACnB,KAAK,EACN,MAAM,sCAAsC,CAAC;AAE9C,eAAO,MAAM,UAAU,EAAE,KAAK,EAkD7B,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,SAiC3B,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,iBAAiB,EAI9C,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,mBAqB/B,CAAC"}
1
+ {"version":3,"file":"props.mock.d.ts","sourceRoot":"","sources":["../../../src/condition-builder/ConditionBuilder/props.mock.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,SAAS,EACT,mBAAmB,EACnB,KAAK,EACN,MAAM,sCAAsC,CAAC;AAE9C,eAAO,MAAM,UAAU,EAAE,KAAK,EAiE7B,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,SAiC3B,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,iBAAiB,EAI9C,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,mBAqB/B,CAAC"}
@@ -1,7 +1,22 @@
1
1
  export const demoFields = [
2
2
  { name: 'employeeId', label: 'Employee ID', type: 'TEXT' },
3
- { name: 'firstName', label: 'First Name', type: 'TEXT' },
4
- { name: 'lastName', label: 'Last Name', type: 'TEXT' },
3
+ {
4
+ name: 'firstName',
5
+ label: 'First Name',
6
+ type: 'TEXT'
7
+ },
8
+ {
9
+ name: 'lastName',
10
+ label: 'Last Name',
11
+ type: 'TEXT',
12
+ possibleValues: () => {
13
+ return new Promise(resolve => {
14
+ setTimeout(() => {
15
+ resolve(['Value 1', 'Value 2', 'Value 3', 'Value 4', 'Value 5', 'Value 6', 'Value 7']);
16
+ }, 5000);
17
+ });
18
+ }
19
+ },
5
20
  { name: 'gender', label: 'Gender', type: 'TEXT' },
6
21
  {
7
22
  name: 'department',
@@ -1 +1 @@
1
- {"version":3,"file":"props.mock.js","sourceRoot":"","sources":["../../../src/condition-builder/ConditionBuilder/props.mock.ts"],"names":[],"mappings":"AAOA,MAAM,CAAC,MAAM,UAAU,GAAY;IACjC,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,EAAE;IAC1D,EAAE,IAAI,EAAE,WAAW,EAAE,K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R,OAAO;QACP,MAAM;QACN,OAAO;QACP,gBAAgB;QAChB,eAAe;QACf,cAAc;KACf;IACD,SAAS,EAAE;QACT,OAAO;QACP,UAAU;QACV,QAAQ;QACR,OAAO;QACP,gBAAgB;QAChB,eAAe;QACf,cAAc;KACf;CACF,CAAC","sourcesContent":["import {\n ComparatorsByType,\n Condition,\n DateFunctionsByType,\n Field\n} from '@pega/cosmos-react-condition-builder';\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 demoCondition: Condition = {\n AND: [\n {\n condition: {\n lhs: {\n field: 'lastActivityAt'\n },\n comparator: 'EQ',\n rhs: {\n value: '2021-08-13T14:30'\n }\n }\n },\n {\n NOT: {\n OR: [\n {\n condition: {\n lhs: { field: 'experience' },\n comparator: 'GTE',\n rhs: { value: 10 }\n }\n },\n {\n condition: {\n lhs: { field: 'isRemoteEmployee' },\n comparator: 'IS_TRUE'\n }\n }\n ]\n }\n }\n ]\n};\n\nexport const demoComparators: ComparatorsByType[] = [\n { type: 'TEXT', comparators: ['EQ', 'NEQ'] },\n { type: 'NUMBER', comparators: ['GT', 'GTE', 'LT', 'LTE'] },\n { type: 'BOOLEAN', comparators: ['IS_TRUE', 'IS_FALSE'] }\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"]}
1
+ {"version":3,"file":"props.mock.js","sourceRoot":"","sources":["../../../src/condition-builder/ConditionBuilder/props.mock.ts"],"names":[],"mappings":"AAOA,MAAM,CAAC,MAAM,UAAU,GAAY;IACjC,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,EAAE;IAC1D;QACE,IAAI,EAAE,WAAW;QACjB,KAAK,EAAE,YAAY;QACnB,IAAI,EAAE,MAAM;KACb;IACD;QACE,IAAI,EAAE,UAAU;QAChB,KAAK,EAAE,WAAW;QAClB,IAAI,EAAE,MAAM;QACZ,cAAc,EAAE,GAAG,EAAE;YACnB,OAAO,IAAI,OAAO,CAAC,OAAO,CAAC,EAAE;gBAC3B,UAAU,CAAC,GAAG,EAAE;oBACd,OAAO,CAAC,CAAC,SAAS,EAAE,SAAS,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,UAAU;QACV,QAAQ;QACR,OAAO;QACP,MAAM;QACN,OAAO;QACP,gBAAgB;QAChB,eAAe;QACf,cAAc;KACf;IACD,SAAS,EAAE;QACT,OAAO;QACP,UAAU;QACV,QAAQ;QACR,OAAO;QACP,gBAAgB;QAChB,eAAe;QACf,cAAc;KACf;CACF,CAAC","sourcesContent":["import {\n ComparatorsByType,\n Condition,\n DateFunctionsByType,\n Field\n} from '@pega/cosmos-react-condition-builder';\n\nexport const demoFields: Field[] = [\n { name: 'employeeId', label: 'Employee ID', type: 'TEXT' },\n {\n name: 'firstName',\n label: 'First Name',\n type: 'TEXT'\n },\n {\n name: 'lastName',\n label: 'Last Name',\n type: 'TEXT',\n possibleValues: () => {\n return new Promise(resolve => {\n setTimeout(() => {\n resolve(['Value 1', 'Value 2', 'Value 3', 'Value 4', 'Value 5', 'Value 6', 'Value 7']);\n }, 5000);\n });\n }\n },\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 demoCondition: Condition = {\n AND: [\n {\n condition: {\n lhs: {\n field: 'lastActivityAt'\n },\n comparator: 'EQ',\n rhs: {\n value: '2021-08-13T14:30'\n }\n }\n },\n {\n NOT: {\n OR: [\n {\n condition: {\n lhs: { field: 'experience' },\n comparator: 'GTE',\n rhs: { value: 10 }\n }\n },\n {\n condition: {\n lhs: { field: 'isRemoteEmployee' },\n comparator: 'IS_TRUE'\n }\n }\n ]\n }\n }\n ]\n};\n\nexport const demoComparators: ComparatorsByType[] = [\n { type: 'TEXT', comparators: ['EQ', 'NEQ'] },\n { type: 'NUMBER', comparators: ['GT', 'GTE', 'LT', 'LTE'] },\n { type: 'BOOLEAN', comparators: ['IS_TRUE', 'IS_FALSE'] }\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"]}
@@ -23,9 +23,15 @@ interface AppShellStoryProps {
23
23
  environmentColor?: string;
24
24
  notificationsEmpty?: boolean;
25
25
  notificationsLoading?: boolean;
26
+ casesTypesEmpty?: boolean;
26
27
  recentsEmpty?: boolean;
27
28
  recentsLoading?: boolean;
28
29
  pinsLoading?: boolean;
29
30
  }
30
31
  export declare const AppShellDemo: Story<AppShellStoryProps>;
32
+ interface ConfigurableAppShellProps {
33
+ navColor?: string;
34
+ headerColor?: string;
35
+ }
36
+ export declare const ConfigurableAppShell: Story<ConfigurableAppShellProps>;
31
37
  //# source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