@pega/cosmos-react-demos 3.0.0-dev.1.0 → 3.0.0-dev.4.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 (419) hide show
  1. package/jsx/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts +9 -0
  2. package/jsx/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts.map +1 -0
  3. package/jsx/build/DynamicContentEditor/DynamicContentEditor.stories.jsx +79 -0
  4. package/jsx/build/DynamicContentEditor/DynamicContentEditor.stories.jsx.map +1 -0
  5. package/jsx/build/DynamicContentEditor/FieldSelector.d.ts +11 -0
  6. package/jsx/build/DynamicContentEditor/FieldSelector.d.ts.map +1 -0
  7. package/jsx/build/DynamicContentEditor/FieldSelector.jsx +80 -0
  8. package/jsx/build/DynamicContentEditor/FieldSelector.jsx.map +1 -0
  9. package/jsx/build/ObjectSelect/ObjectSelect.mocks.d.ts +16 -0
  10. package/jsx/build/ObjectSelect/ObjectSelect.mocks.d.ts.map +1 -0
  11. package/jsx/build/ObjectSelect/ObjectSelect.mocks.js +136 -0
  12. package/jsx/build/ObjectSelect/ObjectSelect.mocks.js.map +1 -0
  13. package/jsx/build/ObjectSelect/ObjectSelect.stories.d.ts +14 -0
  14. package/jsx/build/ObjectSelect/ObjectSelect.stories.d.ts.map +1 -0
  15. package/jsx/build/ObjectSelect/ObjectSelect.stories.jsx +312 -0
  16. package/jsx/build/ObjectSelect/ObjectSelect.stories.jsx.map +1 -0
  17. package/jsx/build/ObjectSelect/ObjectSelect.styles.d.ts +4 -0
  18. package/jsx/build/ObjectSelect/ObjectSelect.styles.d.ts.map +1 -0
  19. package/jsx/build/ObjectSelect/ObjectSelect.styles.js +27 -0
  20. package/jsx/build/ObjectSelect/ObjectSelect.styles.js.map +1 -0
  21. package/jsx/build/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
  22. package/jsx/build/PageTemplates/PageTemplates.stories.jsx +6 -10
  23. package/jsx/build/PageTemplates/PageTemplates.stories.jsx.map +1 -1
  24. package/jsx/build/Workbench/Workbench.stories.d.ts.map +1 -1
  25. package/jsx/build/Workbench/Workbench.stories.jsx +13 -18
  26. package/jsx/build/Workbench/Workbench.stories.jsx.map +1 -1
  27. package/jsx/core/AppShell/AppShell.stories.d.ts +6 -0
  28. package/jsx/core/AppShell/AppShell.stories.d.ts.map +1 -1
  29. package/jsx/core/AppShell/AppShell.stories.jsx +28 -2
  30. package/jsx/core/AppShell/AppShell.stories.jsx.map +1 -1
  31. package/jsx/core/Avatar/Avatar.stories.d.ts +5 -0
  32. package/jsx/core/Avatar/Avatar.stories.d.ts.map +1 -1
  33. package/jsx/core/Avatar/Avatar.stories.jsx +27 -2
  34. package/jsx/core/Avatar/Avatar.stories.jsx.map +1 -1
  35. package/jsx/core/Badges/Status.stories.d.ts +5 -0
  36. package/jsx/core/Badges/Status.stories.d.ts.map +1 -1
  37. package/jsx/core/Badges/Status.stories.jsx +25 -1
  38. package/jsx/core/Badges/Status.stories.jsx.map +1 -1
  39. package/jsx/core/Banner/Banner.stories.d.ts +5 -1
  40. package/jsx/core/Banner/Banner.stories.d.ts.map +1 -1
  41. package/jsx/core/Banner/Banner.stories.jsx +24 -3
  42. package/jsx/core/Banner/Banner.stories.jsx.map +1 -1
  43. package/jsx/core/Button/Button.stories.d.ts +8 -0
  44. package/jsx/core/Button/Button.stories.d.ts.map +1 -1
  45. package/jsx/core/Button/Button.stories.jsx +30 -1
  46. package/jsx/core/Button/Button.stories.jsx.map +1 -1
  47. package/jsx/core/Card/Card.stories.d.ts +5 -0
  48. package/jsx/core/Card/Card.stories.d.ts.map +1 -1
  49. package/jsx/core/Card/Card.stories.jsx +30 -1
  50. package/jsx/core/Card/Card.stories.jsx.map +1 -1
  51. package/jsx/core/Checkbox/Checkbox.stories.d.ts +12 -0
  52. package/jsx/core/Checkbox/Checkbox.stories.d.ts.map +1 -1
  53. package/jsx/core/Checkbox/Checkbox.stories.jsx +54 -1
  54. package/jsx/core/Checkbox/Checkbox.stories.jsx.map +1 -1
  55. package/jsx/core/Configuration/Configuration.stories.d.ts +17 -0
  56. package/jsx/core/Configuration/Configuration.stories.d.ts.map +1 -1
  57. package/jsx/core/Configuration/Configuration.stories.jsx +94 -3
  58. package/jsx/core/Configuration/Configuration.stories.jsx.map +1 -1
  59. package/jsx/core/Currency/Currency.stories.d.ts +5 -2
  60. package/jsx/core/Currency/Currency.stories.d.ts.map +1 -1
  61. package/jsx/core/Currency/Currency.stories.jsx +30 -12
  62. package/jsx/core/Currency/Currency.stories.jsx.map +1 -1
  63. package/jsx/core/FieldGroup/FieldGroup.stories.d.ts +2 -0
  64. package/jsx/core/FieldGroup/FieldGroup.stories.d.ts.map +1 -1
  65. package/jsx/core/FieldGroup/FieldGroup.stories.jsx +8 -4
  66. package/jsx/core/FieldGroup/FieldGroup.stories.jsx.map +1 -1
  67. package/jsx/core/File/FileDisplay.stories.d.ts.map +1 -1
  68. package/jsx/core/File/FileDisplay.stories.jsx +16 -38
  69. package/jsx/core/File/FileDisplay.stories.jsx.map +1 -1
  70. package/jsx/core/File/FileInput.stories.d.ts.map +1 -1
  71. package/jsx/core/File/FileInput.stories.jsx +1 -1
  72. package/jsx/core/File/FileInput.stories.jsx.map +1 -1
  73. package/jsx/core/Form/Form.mocks.d.ts.map +1 -1
  74. package/jsx/core/Form/Form.mocks.jsx +2 -2
  75. package/jsx/core/Form/Form.mocks.jsx.map +1 -1
  76. package/jsx/core/Form/Form.stories.d.ts +10 -0
  77. package/jsx/core/Form/Form.stories.d.ts.map +1 -1
  78. package/jsx/core/Form/Form.stories.jsx +42 -2
  79. package/jsx/core/Form/Form.stories.jsx.map +1 -1
  80. package/jsx/core/HTML/HTML.stories.d.ts +6 -0
  81. package/jsx/core/HTML/HTML.stories.d.ts.map +1 -0
  82. package/jsx/core/HTML/HTML.stories.jsx +13 -0
  83. package/jsx/core/HTML/HTML.stories.jsx.map +1 -0
  84. package/jsx/core/Input/Input.stories.d.ts +9 -0
  85. package/jsx/core/Input/Input.stories.d.ts.map +1 -1
  86. package/jsx/core/Input/Input.stories.jsx +40 -1
  87. package/jsx/core/Input/Input.stories.jsx.map +1 -1
  88. package/jsx/core/Label/Label.stories.d.ts +4 -0
  89. package/jsx/core/Label/Label.stories.d.ts.map +1 -1
  90. package/jsx/core/Label/Label.stories.jsx +18 -1
  91. package/jsx/core/Label/Label.stories.jsx.map +1 -1
  92. package/jsx/core/Modal/Modal.mocks.d.ts.map +1 -1
  93. package/jsx/core/Modal/Modal.mocks.jsx +3 -3
  94. package/jsx/core/Modal/Modal.mocks.jsx.map +1 -1
  95. package/jsx/core/Modal/Modal.stories.d.ts.map +1 -1
  96. package/jsx/core/Modal/Modal.stories.jsx +29 -43
  97. package/jsx/core/Modal/Modal.stories.jsx.map +1 -1
  98. package/jsx/core/Number/Number.stories.d.ts +3 -3
  99. package/jsx/core/Number/Number.stories.d.ts.map +1 -1
  100. package/jsx/core/Number/Number.stories.jsx +14 -13
  101. package/jsx/core/Number/Number.stories.jsx.map +1 -1
  102. package/jsx/core/PageTemplates/PageTemplates.stories.d.ts +5 -3
  103. package/jsx/core/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
  104. package/jsx/core/PageTemplates/PageTemplates.stories.jsx +106 -30
  105. package/jsx/core/PageTemplates/PageTemplates.stories.jsx.map +1 -1
  106. package/jsx/core/Progress/Progress.stories.d.ts +4 -0
  107. package/jsx/core/Progress/Progress.stories.d.ts.map +1 -1
  108. package/jsx/core/Progress/Progress.stories.jsx +22 -1
  109. package/jsx/core/Progress/Progress.stories.jsx.map +1 -1
  110. package/jsx/core/RadioButton/RadioButton.stories.d.ts +12 -0
  111. package/jsx/core/RadioButton/RadioButton.stories.d.ts.map +1 -1
  112. package/jsx/core/RadioButton/RadioButton.stories.jsx +53 -1
  113. package/jsx/core/RadioButton/RadioButton.stories.jsx.map +1 -1
  114. package/jsx/core/Rating/Rating.stories.d.ts +4 -0
  115. package/jsx/core/Rating/Rating.stories.d.ts.map +1 -1
  116. package/jsx/core/Rating/Rating.stories.jsx +18 -1
  117. package/jsx/core/Rating/Rating.stories.jsx.map +1 -1
  118. package/jsx/core/SearchInput/SearchInput.stories.d.ts +4 -0
  119. package/jsx/core/SearchInput/SearchInput.stories.d.ts.map +1 -1
  120. package/jsx/core/SearchInput/SearchInput.stories.jsx +18 -1
  121. package/jsx/core/SearchInput/SearchInput.stories.jsx.map +1 -1
  122. package/jsx/core/Select/Select.stories.d.ts +8 -0
  123. package/jsx/core/Select/Select.stories.d.ts.map +1 -1
  124. package/jsx/core/Select/Select.stories.jsx +35 -1
  125. package/jsx/core/Select/Select.stories.jsx.map +1 -1
  126. package/jsx/core/Sentiment/Sentiment.stories.d.ts +6 -0
  127. package/jsx/core/Sentiment/Sentiment.stories.d.ts.map +1 -1
  128. package/jsx/core/Sentiment/Sentiment.stories.jsx +32 -1
  129. package/jsx/core/Sentiment/Sentiment.stories.jsx.map +1 -1
  130. package/jsx/core/Switch/Switch.stories.d.ts +7 -0
  131. package/jsx/core/Switch/Switch.stories.d.ts.map +1 -1
  132. package/jsx/core/Switch/Switch.stories.jsx +34 -1
  133. package/jsx/core/Switch/Switch.stories.jsx.map +1 -1
  134. package/jsx/core/Table/Table.mocks.d.ts +6 -0
  135. package/jsx/core/Table/Table.mocks.d.ts.map +1 -1
  136. package/jsx/core/Table/Table.mocks.jsx +134 -0
  137. package/jsx/core/Table/Table.mocks.jsx.map +1 -1
  138. package/jsx/core/Table/Table.stories.d.ts +25 -0
  139. package/jsx/core/Table/Table.stories.d.ts.map +1 -1
  140. package/jsx/core/Table/Table.stories.jsx +120 -1
  141. package/jsx/core/Table/Table.stories.jsx.map +1 -1
  142. package/jsx/core/Tabs/Tabs.stories.d.ts +5 -0
  143. package/jsx/core/Tabs/Tabs.stories.d.ts.map +1 -1
  144. package/jsx/core/Tabs/Tabs.stories.jsx +39 -1
  145. package/jsx/core/Tabs/Tabs.stories.jsx.map +1 -1
  146. package/jsx/core/Text/Text.stories.d.ts +19 -0
  147. package/jsx/core/Text/Text.stories.d.ts.map +1 -1
  148. package/jsx/core/Text/Text.stories.jsx +112 -1
  149. package/jsx/core/Text/Text.stories.jsx.map +1 -1
  150. package/jsx/core/TextArea/TextArea.stories.d.ts +5 -0
  151. package/jsx/core/TextArea/TextArea.stories.d.ts.map +1 -1
  152. package/jsx/core/TextArea/TextArea.stories.jsx +22 -1
  153. package/jsx/core/TextArea/TextArea.stories.jsx.map +1 -1
  154. package/jsx/core/Toaster/Toaster.stories.jsx +17 -12
  155. package/jsx/core/Toaster/Toaster.stories.jsx.map +1 -1
  156. package/jsx/core/Tooltip/Tooltip.stories.d.ts +6 -0
  157. package/jsx/core/Tooltip/Tooltip.stories.d.ts.map +1 -1
  158. package/jsx/core/Tooltip/Tooltip.stories.jsx +28 -1
  159. package/jsx/core/Tooltip/Tooltip.stories.jsx.map +1 -1
  160. package/jsx/cs/CSCaseView/CSAppShell.stories.d.ts +1 -1
  161. package/jsx/cs/CSCaseView/CSAppShell.stories.d.ts.map +1 -1
  162. package/jsx/cs/CSCaseView/CSAppShell.stories.jsx +10 -10
  163. package/jsx/cs/CSCaseView/CSAppShell.stories.jsx.map +1 -1
  164. package/jsx/cs/IntelligentGuidance/IntelligentGuidance.stories.d.ts.map +1 -1
  165. package/jsx/cs/IntelligentGuidance/IntelligentGuidance.stories.jsx +8 -8
  166. package/jsx/cs/IntelligentGuidance/IntelligentGuidance.stories.jsx.map +1 -1
  167. package/jsx/cs/TaskManager/TaskManager.stories.d.ts.map +1 -1
  168. package/jsx/cs/TaskManager/TaskManager.stories.jsx +1 -1
  169. package/jsx/cs/TaskManager/TaskManager.stories.jsx.map +1 -1
  170. package/jsx/rte/Editor/Editor.stories.jsx +2 -2
  171. package/jsx/rte/Editor/Editor.stories.jsx.map +1 -1
  172. package/jsx/social/Email/Email.mocks.d.ts +19 -2
  173. package/jsx/social/Email/Email.mocks.d.ts.map +1 -1
  174. package/jsx/social/Email/Email.mocks.js +48 -1
  175. package/jsx/social/Email/Email.mocks.js.map +1 -1
  176. package/jsx/social/Email/Email.stories.d.ts +1 -1
  177. package/jsx/social/Email/Email.stories.d.ts.map +1 -1
  178. package/jsx/social/Email/Email.stories.jsx +80 -15
  179. package/jsx/social/Email/Email.stories.jsx.map +1 -1
  180. package/jsx/social/Feed/Feed.stories.d.ts.map +1 -1
  181. package/jsx/social/Feed/Feed.stories.jsx +1 -1
  182. package/jsx/social/Feed/Feed.stories.jsx.map +1 -1
  183. package/jsx/work/CaseView/CaseView.mocks.d.ts.map +1 -1
  184. package/jsx/work/CaseView/CaseView.mocks.jsx +1 -1
  185. package/jsx/work/CaseView/CaseView.mocks.jsx.map +1 -1
  186. package/jsx/work/CaseView/CaseView.stories.d.ts.map +1 -1
  187. package/jsx/work/CaseView/CaseView.stories.jsx +7 -7
  188. package/jsx/work/CaseView/CaseView.stories.jsx.map +1 -1
  189. package/jsx/work/CaseView/Details.mocks.d.ts.map +1 -1
  190. package/jsx/work/CaseView/Details.mocks.jsx +1 -1
  191. package/jsx/work/CaseView/Details.mocks.jsx.map +1 -1
  192. package/jsx/work/CaseView/Pulse.mocks.d.ts.map +1 -1
  193. package/jsx/work/CaseView/Pulse.mocks.jsx +1 -1
  194. package/jsx/work/CaseView/Pulse.mocks.jsx.map +1 -1
  195. package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts.map +1 -1
  196. package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.jsx +1 -1
  197. package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.jsx.map +1 -1
  198. package/jsx/work/Confirmation/Confirmation.stories.d.ts.map +1 -1
  199. package/jsx/work/Confirmation/Confirmation.stories.jsx +2 -2
  200. package/jsx/work/Confirmation/Confirmation.stories.jsx.map +1 -1
  201. package/jsx/work/Details/Details.stories.d.ts.map +1 -1
  202. package/jsx/work/Details/Details.stories.jsx +21 -16
  203. package/jsx/work/Details/Details.stories.jsx.map +1 -1
  204. package/jsx/work/SearchResults/SearchResults.stories.d.ts.map +1 -1
  205. package/jsx/work/SearchResults/SearchResults.stories.jsx +1 -1
  206. package/jsx/work/SearchResults/SearchResults.stories.jsx.map +1 -1
  207. package/jsx/work/Stakeholders/Stakeholders.mocks.d.ts.map +1 -1
  208. package/jsx/work/Stakeholders/Stakeholders.mocks.jsx +2 -2
  209. package/jsx/work/Stakeholders/Stakeholders.mocks.jsx.map +1 -1
  210. package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts +9 -0
  211. package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts.map +1 -0
  212. package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.js +63 -0
  213. package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.js.map +1 -0
  214. package/lib/build/DynamicContentEditor/FieldSelector.d.ts +14 -0
  215. package/lib/build/DynamicContentEditor/FieldSelector.d.ts.map +1 -0
  216. package/lib/build/DynamicContentEditor/FieldSelector.js +81 -0
  217. package/lib/build/DynamicContentEditor/FieldSelector.js.map +1 -0
  218. package/lib/build/ObjectSelect/ObjectSelect.mocks.d.ts +16 -0
  219. package/lib/build/ObjectSelect/ObjectSelect.mocks.d.ts.map +1 -0
  220. package/lib/build/ObjectSelect/ObjectSelect.mocks.js +136 -0
  221. package/lib/build/ObjectSelect/ObjectSelect.mocks.js.map +1 -0
  222. package/lib/build/ObjectSelect/ObjectSelect.stories.d.ts +14 -0
  223. package/lib/build/ObjectSelect/ObjectSelect.stories.d.ts.map +1 -0
  224. package/lib/build/ObjectSelect/ObjectSelect.stories.js +247 -0
  225. package/lib/build/ObjectSelect/ObjectSelect.stories.js.map +1 -0
  226. package/lib/build/ObjectSelect/ObjectSelect.styles.d.ts +4 -0
  227. package/lib/build/ObjectSelect/ObjectSelect.styles.d.ts.map +1 -0
  228. package/lib/build/ObjectSelect/ObjectSelect.styles.js +27 -0
  229. package/lib/build/ObjectSelect/ObjectSelect.styles.js.map +1 -0
  230. package/lib/build/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
  231. package/lib/build/PageTemplates/PageTemplates.stories.js +6 -6
  232. package/lib/build/PageTemplates/PageTemplates.stories.js.map +1 -1
  233. package/lib/build/Workbench/Workbench.stories.d.ts.map +1 -1
  234. package/lib/build/Workbench/Workbench.stories.js +17 -22
  235. package/lib/build/Workbench/Workbench.stories.js.map +1 -1
  236. package/lib/core/AppShell/AppShell.stories.d.ts +6 -0
  237. package/lib/core/AppShell/AppShell.stories.d.ts.map +1 -1
  238. package/lib/core/AppShell/AppShell.stories.js +26 -2
  239. package/lib/core/AppShell/AppShell.stories.js.map +1 -1
  240. package/lib/core/Avatar/Avatar.stories.d.ts +5 -0
  241. package/lib/core/Avatar/Avatar.stories.d.ts.map +1 -1
  242. package/lib/core/Avatar/Avatar.stories.js +25 -2
  243. package/lib/core/Avatar/Avatar.stories.js.map +1 -1
  244. package/lib/core/Badges/Status.stories.d.ts +5 -0
  245. package/lib/core/Badges/Status.stories.d.ts.map +1 -1
  246. package/lib/core/Badges/Status.stories.js +23 -1
  247. package/lib/core/Badges/Status.stories.js.map +1 -1
  248. package/lib/core/Banner/Banner.stories.d.ts +5 -1
  249. package/lib/core/Banner/Banner.stories.d.ts.map +1 -1
  250. package/lib/core/Banner/Banner.stories.js +20 -3
  251. package/lib/core/Banner/Banner.stories.js.map +1 -1
  252. package/lib/core/Button/Button.stories.d.ts +8 -0
  253. package/lib/core/Button/Button.stories.d.ts.map +1 -1
  254. package/lib/core/Button/Button.stories.js +28 -1
  255. package/lib/core/Button/Button.stories.js.map +1 -1
  256. package/lib/core/Card/Card.stories.d.ts +5 -0
  257. package/lib/core/Card/Card.stories.d.ts.map +1 -1
  258. package/lib/core/Card/Card.stories.js +19 -1
  259. package/lib/core/Card/Card.stories.js.map +1 -1
  260. package/lib/core/Checkbox/Checkbox.stories.d.ts +12 -0
  261. package/lib/core/Checkbox/Checkbox.stories.d.ts.map +1 -1
  262. package/lib/core/Checkbox/Checkbox.stories.js +52 -1
  263. package/lib/core/Checkbox/Checkbox.stories.js.map +1 -1
  264. package/lib/core/Configuration/Configuration.stories.d.ts +17 -0
  265. package/lib/core/Configuration/Configuration.stories.d.ts.map +1 -1
  266. package/lib/core/Configuration/Configuration.stories.js +62 -3
  267. package/lib/core/Configuration/Configuration.stories.js.map +1 -1
  268. package/lib/core/Currency/Currency.stories.d.ts +5 -2
  269. package/lib/core/Currency/Currency.stories.d.ts.map +1 -1
  270. package/lib/core/Currency/Currency.stories.js +30 -12
  271. package/lib/core/Currency/Currency.stories.js.map +1 -1
  272. package/lib/core/FieldGroup/FieldGroup.stories.d.ts +2 -0
  273. package/lib/core/FieldGroup/FieldGroup.stories.d.ts.map +1 -1
  274. package/lib/core/FieldGroup/FieldGroup.stories.js +7 -3
  275. package/lib/core/FieldGroup/FieldGroup.stories.js.map +1 -1
  276. package/lib/core/File/FileDisplay.stories.d.ts.map +1 -1
  277. package/lib/core/File/FileDisplay.stories.js +17 -29
  278. package/lib/core/File/FileDisplay.stories.js.map +1 -1
  279. package/lib/core/File/FileInput.stories.d.ts.map +1 -1
  280. package/lib/core/File/FileInput.stories.js +1 -1
  281. package/lib/core/File/FileInput.stories.js.map +1 -1
  282. package/lib/core/Form/Form.mocks.d.ts.map +1 -1
  283. package/lib/core/Form/Form.mocks.js +2 -2
  284. package/lib/core/Form/Form.mocks.js.map +1 -1
  285. package/lib/core/Form/Form.stories.d.ts +10 -0
  286. package/lib/core/Form/Form.stories.d.ts.map +1 -1
  287. package/lib/core/Form/Form.stories.js +40 -2
  288. package/lib/core/Form/Form.stories.js.map +1 -1
  289. package/lib/core/HTML/HTML.stories.d.ts +6 -0
  290. package/lib/core/HTML/HTML.stories.d.ts.map +1 -0
  291. package/lib/core/HTML/HTML.stories.js +14 -0
  292. package/lib/core/HTML/HTML.stories.js.map +1 -0
  293. package/lib/core/Input/Input.stories.d.ts +9 -0
  294. package/lib/core/Input/Input.stories.d.ts.map +1 -1
  295. package/lib/core/Input/Input.stories.js +38 -1
  296. package/lib/core/Input/Input.stories.js.map +1 -1
  297. package/lib/core/Label/Label.stories.d.ts +4 -0
  298. package/lib/core/Label/Label.stories.d.ts.map +1 -1
  299. package/lib/core/Label/Label.stories.js +16 -1
  300. package/lib/core/Label/Label.stories.js.map +1 -1
  301. package/lib/core/Modal/Modal.mocks.d.ts.map +1 -1
  302. package/lib/core/Modal/Modal.mocks.js +3 -3
  303. package/lib/core/Modal/Modal.mocks.js.map +1 -1
  304. package/lib/core/Modal/Modal.stories.d.ts.map +1 -1
  305. package/lib/core/Modal/Modal.stories.js +14 -14
  306. package/lib/core/Modal/Modal.stories.js.map +1 -1
  307. package/lib/core/Number/Number.stories.d.ts +3 -3
  308. package/lib/core/Number/Number.stories.d.ts.map +1 -1
  309. package/lib/core/Number/Number.stories.js +14 -13
  310. package/lib/core/Number/Number.stories.js.map +1 -1
  311. package/lib/core/PageTemplates/PageTemplates.stories.d.ts +5 -3
  312. package/lib/core/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
  313. package/lib/core/PageTemplates/PageTemplates.stories.js +95 -27
  314. package/lib/core/PageTemplates/PageTemplates.stories.js.map +1 -1
  315. package/lib/core/Progress/Progress.stories.d.ts +4 -0
  316. package/lib/core/Progress/Progress.stories.d.ts.map +1 -1
  317. package/lib/core/Progress/Progress.stories.js +18 -1
  318. package/lib/core/Progress/Progress.stories.js.map +1 -1
  319. package/lib/core/RadioButton/RadioButton.stories.d.ts +12 -0
  320. package/lib/core/RadioButton/RadioButton.stories.d.ts.map +1 -1
  321. package/lib/core/RadioButton/RadioButton.stories.js +51 -1
  322. package/lib/core/RadioButton/RadioButton.stories.js.map +1 -1
  323. package/lib/core/Rating/Rating.stories.d.ts +4 -0
  324. package/lib/core/Rating/Rating.stories.d.ts.map +1 -1
  325. package/lib/core/Rating/Rating.stories.js +16 -1
  326. package/lib/core/Rating/Rating.stories.js.map +1 -1
  327. package/lib/core/SearchInput/SearchInput.stories.d.ts +4 -0
  328. package/lib/core/SearchInput/SearchInput.stories.d.ts.map +1 -1
  329. package/lib/core/SearchInput/SearchInput.stories.js +16 -1
  330. package/lib/core/SearchInput/SearchInput.stories.js.map +1 -1
  331. package/lib/core/Select/Select.stories.d.ts +8 -0
  332. package/lib/core/Select/Select.stories.d.ts.map +1 -1
  333. package/lib/core/Select/Select.stories.js +28 -1
  334. package/lib/core/Select/Select.stories.js.map +1 -1
  335. package/lib/core/Sentiment/Sentiment.stories.d.ts +6 -0
  336. package/lib/core/Sentiment/Sentiment.stories.d.ts.map +1 -1
  337. package/lib/core/Sentiment/Sentiment.stories.js +29 -2
  338. package/lib/core/Sentiment/Sentiment.stories.js.map +1 -1
  339. package/lib/core/Switch/Switch.stories.d.ts +7 -0
  340. package/lib/core/Switch/Switch.stories.d.ts.map +1 -1
  341. package/lib/core/Switch/Switch.stories.js +32 -1
  342. package/lib/core/Switch/Switch.stories.js.map +1 -1
  343. package/lib/core/Table/Table.mocks.d.ts +6 -0
  344. package/lib/core/Table/Table.mocks.d.ts.map +1 -1
  345. package/lib/core/Table/Table.mocks.js +134 -0
  346. package/lib/core/Table/Table.mocks.js.map +1 -1
  347. package/lib/core/Table/Table.stories.d.ts +25 -0
  348. package/lib/core/Table/Table.stories.d.ts.map +1 -1
  349. package/lib/core/Table/Table.stories.js +113 -1
  350. package/lib/core/Table/Table.stories.js.map +1 -1
  351. package/lib/core/Tabs/Tabs.stories.d.ts +5 -0
  352. package/lib/core/Tabs/Tabs.stories.d.ts.map +1 -1
  353. package/lib/core/Tabs/Tabs.stories.js +30 -1
  354. package/lib/core/Tabs/Tabs.stories.js.map +1 -1
  355. package/lib/core/Text/Text.stories.d.ts +19 -0
  356. package/lib/core/Text/Text.stories.d.ts.map +1 -1
  357. package/lib/core/Text/Text.stories.js +102 -2
  358. package/lib/core/Text/Text.stories.js.map +1 -1
  359. package/lib/core/TextArea/TextArea.stories.d.ts +5 -0
  360. package/lib/core/TextArea/TextArea.stories.d.ts.map +1 -1
  361. package/lib/core/TextArea/TextArea.stories.js +20 -1
  362. package/lib/core/TextArea/TextArea.stories.js.map +1 -1
  363. package/lib/core/Toaster/Toaster.stories.js +15 -19
  364. package/lib/core/Toaster/Toaster.stories.js.map +1 -1
  365. package/lib/core/Tooltip/Tooltip.stories.d.ts +6 -0
  366. package/lib/core/Tooltip/Tooltip.stories.d.ts.map +1 -1
  367. package/lib/core/Tooltip/Tooltip.stories.js +20 -1
  368. package/lib/core/Tooltip/Tooltip.stories.js.map +1 -1
  369. package/lib/cs/CSCaseView/CSAppShell.stories.d.ts +1 -1
  370. package/lib/cs/CSCaseView/CSAppShell.stories.d.ts.map +1 -1
  371. package/lib/cs/CSCaseView/CSAppShell.stories.js +10 -10
  372. package/lib/cs/CSCaseView/CSAppShell.stories.js.map +1 -1
  373. package/lib/cs/IntelligentGuidance/IntelligentGuidance.stories.d.ts.map +1 -1
  374. package/lib/cs/IntelligentGuidance/IntelligentGuidance.stories.js +8 -8
  375. package/lib/cs/IntelligentGuidance/IntelligentGuidance.stories.js.map +1 -1
  376. package/lib/cs/TaskManager/TaskManager.stories.d.ts.map +1 -1
  377. package/lib/cs/TaskManager/TaskManager.stories.js +1 -1
  378. package/lib/cs/TaskManager/TaskManager.stories.js.map +1 -1
  379. package/lib/rte/Editor/Editor.stories.js +2 -2
  380. package/lib/rte/Editor/Editor.stories.js.map +1 -1
  381. package/lib/social/Email/Email.mocks.d.ts +19 -2
  382. package/lib/social/Email/Email.mocks.d.ts.map +1 -1
  383. package/lib/social/Email/Email.mocks.js +48 -1
  384. package/lib/social/Email/Email.mocks.js.map +1 -1
  385. package/lib/social/Email/Email.stories.d.ts +1 -1
  386. package/lib/social/Email/Email.stories.d.ts.map +1 -1
  387. package/lib/social/Email/Email.stories.js +63 -15
  388. package/lib/social/Email/Email.stories.js.map +1 -1
  389. package/lib/social/Feed/Feed.stories.d.ts.map +1 -1
  390. package/lib/social/Feed/Feed.stories.js +1 -1
  391. package/lib/social/Feed/Feed.stories.js.map +1 -1
  392. package/lib/work/CaseView/CaseView.mocks.d.ts.map +1 -1
  393. package/lib/work/CaseView/CaseView.mocks.js +1 -1
  394. package/lib/work/CaseView/CaseView.mocks.js.map +1 -1
  395. package/lib/work/CaseView/CaseView.stories.d.ts.map +1 -1
  396. package/lib/work/CaseView/CaseView.stories.js +7 -7
  397. package/lib/work/CaseView/CaseView.stories.js.map +1 -1
  398. package/lib/work/CaseView/Details.mocks.d.ts.map +1 -1
  399. package/lib/work/CaseView/Details.mocks.js +1 -1
  400. package/lib/work/CaseView/Details.mocks.js.map +1 -1
  401. package/lib/work/CaseView/Pulse.mocks.d.ts.map +1 -1
  402. package/lib/work/CaseView/Pulse.mocks.js +1 -1
  403. package/lib/work/CaseView/Pulse.mocks.js.map +1 -1
  404. package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts.map +1 -1
  405. package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.js +1 -1
  406. package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.js.map +1 -1
  407. package/lib/work/Confirmation/Confirmation.stories.d.ts.map +1 -1
  408. package/lib/work/Confirmation/Confirmation.stories.js +2 -2
  409. package/lib/work/Confirmation/Confirmation.stories.js.map +1 -1
  410. package/lib/work/Details/Details.stories.d.ts.map +1 -1
  411. package/lib/work/Details/Details.stories.js +56 -53
  412. package/lib/work/Details/Details.stories.js.map +1 -1
  413. package/lib/work/SearchResults/SearchResults.stories.d.ts.map +1 -1
  414. package/lib/work/SearchResults/SearchResults.stories.js +1 -1
  415. package/lib/work/SearchResults/SearchResults.stories.js.map +1 -1
  416. package/lib/work/Stakeholders/Stakeholders.mocks.d.ts.map +1 -1
  417. package/lib/work/Stakeholders/Stakeholders.mocks.js +2 -2
  418. package/lib/work/Stakeholders/Stakeholders.mocks.js.map +1 -1
  419. package/package.json +16 -16
@@ -0,0 +1,312 @@
1
+ import { useReducer, useContext, useState } from 'react';
2
+ import { action } from '@storybook/addon-actions';
3
+ import { Form, Button, Flex, Input, ToasterContext, TextArea, Card, CardContent, Drawer, Text, FieldValueList, Icon, registerIcon, menuHelpers, useI18n, StyledRegion } from '@pega/cosmos-react-core';
4
+ import { ObjectSelect } from '@pega/cosmos-react-build';
5
+ import { AtomicCondition, getInitConditionForLhs, formatCondition } from '@pega/cosmos-react-condition-builder';
6
+ import * as times from '@pega/cosmos-react-core/lib/components/Icon/icons/times.icon';
7
+ import { StyledDrawerContent, StyledCodeBlock, StyledConfigurationContent } from './ObjectSelect.styles';
8
+ import { skeletonData, dataPages, demoFields, demoDateFunctions } from './ObjectSelect.mocks';
9
+ registerIcon(times);
10
+ export default {
11
+ title: 'Build/ObjectSelect',
12
+ component: ObjectSelect
13
+ };
14
+ export const ObjectSelectSkeleton = (args) => {
15
+ const [value, setValue] = useState(args.value);
16
+ return (<ObjectSelect {...args} items={skeletonData} value={value} onChange={id => {
17
+ const data = menuHelpers.getItem(skeletonData, id);
18
+ if (data) {
19
+ setValue({
20
+ id: data.id,
21
+ primary: data.primary,
22
+ href: data.href ?? '#',
23
+ meta: data.id !== '01-4' ? data.secondary?.join(' ') : ''
24
+ });
25
+ }
26
+ else
27
+ setValue(undefined);
28
+ }} configuration={{
29
+ label: 'Gear button label',
30
+ heading: 'Popover heading',
31
+ primaryAction: {
32
+ id: 'primaryAction',
33
+ text: 'Primary action text',
34
+ onClick: args.onSubmit
35
+ },
36
+ secondaryAction: {
37
+ id: 'secondaryAction',
38
+ text: 'Secondary action text',
39
+ onClick: args.onCancel
40
+ },
41
+ content: (<StyledConfigurationContent>
42
+ <StyledRegion style={{ minHeight: '20vh' }}/>
43
+ </StyledConfigurationContent>)
44
+ }} onPreview={args.onPreview}/>);
45
+ };
46
+ ObjectSelectSkeleton.args = {
47
+ label: 'Object select label',
48
+ labelHidden: false,
49
+ info: 'Object select info text',
50
+ placeholder: '',
51
+ status: undefined,
52
+ required: false,
53
+ disabled: false,
54
+ readOnly: false,
55
+ onPreview: action('Clicked preview link'),
56
+ onSubmit: action('Clicked submit button'),
57
+ onCancel: action('Clicked cancel button')
58
+ };
59
+ ObjectSelectSkeleton.argTypes = {
60
+ label: { control: { type: 'text' } },
61
+ labelHidden: { control: { type: 'boolean' } },
62
+ info: { control: { type: 'text' } },
63
+ placeholder: { control: { type: 'text' } },
64
+ status: { options: [undefined, 'success', 'warning', 'error'], control: { type: 'select' } },
65
+ required: { control: { type: 'boolean' } },
66
+ disabled: { control: { type: 'boolean' } },
67
+ readOnly: { control: { type: 'boolean' } },
68
+ onPreview: { table: { disable: true } },
69
+ onSubmit: { table: { disable: true } },
70
+ onCancel: { table: { disable: true } }
71
+ };
72
+ const ViewportDrawer = ({ drawerData, drawerOpen, setDrawerOpen }) => {
73
+ const fields = drawerData?.secondary?.map((data, index) => {
74
+ return {
75
+ id: (index + 1).toString(),
76
+ name: data?.toString() ?? '',
77
+ value: data
78
+ };
79
+ });
80
+ return (<Drawer open={drawerOpen} onOuterClick={() => {
81
+ setDrawerOpen(false);
82
+ }} position='fixed' size='30rem' nullWhenClosed shadow>
83
+ <Flex as={StyledDrawerContent} container={{
84
+ direction: 'column',
85
+ alignItems: 'start',
86
+ gap: 2,
87
+ pad: 4
88
+ }}>
89
+ <Flex container={{ direction: 'column', gap: 1 }}>
90
+ <Flex container={{ gap: 2, alignItems: 'center' }}>
91
+ <Button variant='simple' label='Close drawer' icon onClick={() => setDrawerOpen(false)}>
92
+ <Icon name='times'/>
93
+ </Button>
94
+ <Text variant='h3'>{drawerData?.primary}</Text>
95
+ </Flex>
96
+ <Flex container={{ direction: 'column', gap: 2, pad: 1 }}>
97
+ <Text as='p'>
98
+ This is a mock representation for the parameters of the {drawerData?.primary} rule
99
+ </Text>
100
+ <FieldValueList variant='inline' fields={fields}/>
101
+ </Flex>
102
+ </Flex>
103
+ </Flex>
104
+ </Drawer>);
105
+ };
106
+ const ConfigurationContent = (args) => {
107
+ const [showErrorIndicators] = useState(false);
108
+ const ConditionBuilder = (<AtomicCondition condition={args.condition} fields={demoFields} indicateErrors={showErrorIndicators} dateFunctions={demoDateFunctions} onChange={c => args.setCondition(c)} itemDirection='row' showLhsAsLabel={false} validRhsTypes={args.validRHSTypes}/>);
109
+ const Inputs = (<Flex container={{ direction: 'column', gap: 2 }}>
110
+ <Text variant='h4'>Inputs</Text>
111
+ <Flex container={{ direction: 'column', gap: 1 }}>
112
+ <Flex container={{ alignItems: 'end', gap: 1 }}>
113
+ <Input label='Name' type='text' defaultValue='Sample key 1' disabled readOnly={args.readOnly}/>
114
+ <Input label='Value' type='text' defaultValue='Sample value 1' readOnly={args.readOnly} disabled={args.disabled}/>
115
+ </Flex>
116
+ <Flex container={{ alignItems: 'end', gap: 1 }}>
117
+ <Input label='Name 2' labelHidden type='text' defaultValue='Sample key 2' disabled readOnly={args.readOnly}/>
118
+ <Input label='Value 2' labelHidden type='text' defaultValue='Sample value 2' readOnly={args.readOnly} disabled={args.disabled}/>
119
+ </Flex>
120
+ </Flex>
121
+ </Flex>);
122
+ return args.popoverContent === 'advanced' ? ConditionBuilder : Inputs;
123
+ };
124
+ const ObjectSelectComp = ({ popoverContent, ...args }) => {
125
+ const t = useI18n();
126
+ const [drawerOpen, setDrawerOpen] = useState(false);
127
+ const [drawerData, setDrawerData] = useState(dataPages[0]);
128
+ const [value, setValue] = useState(args.value);
129
+ const convertRhsTypes = (useLiteralRHSType, useFieldRHSType, useRelativeDatesType, dateFunctions) => {
130
+ const setRhsTypes = new Set();
131
+ if (useLiteralRHSType)
132
+ setRhsTypes.add('LITERAL');
133
+ if (useFieldRHSType)
134
+ setRhsTypes.add('FIELD');
135
+ if (dateFunctions)
136
+ setRhsTypes.add('DATE_FUNCTION');
137
+ if (useRelativeDatesType)
138
+ setRhsTypes.add('RELATIVE_DATE');
139
+ return setRhsTypes;
140
+ };
141
+ const validRHSTypes = convertRhsTypes(true, true, true, demoDateFunctions);
142
+ const [submitCondition, setSubmitCondition] = useState(undefined);
143
+ const [condition, setCondition] = useState(() => submitCondition ||
144
+ getInitConditionForLhs({ field: 'age' }, demoFields, validRHSTypes, undefined, demoDateFunctions));
145
+ const handleSubmission = () => {
146
+ setSubmitCondition(condition);
147
+ };
148
+ return (<Flex container={{ direction: 'column', gap: 1 }}>
149
+ <ObjectSelect {...args} onChange={id => {
150
+ const data = menuHelpers.getItem(dataPages, id);
151
+ if (data) {
152
+ setValue({
153
+ id: data.id,
154
+ primary: data.primary,
155
+ href: data.href ?? '#',
156
+ meta: data.id !== '01-4' ? data.secondary?.join(' ') : ''
157
+ });
158
+ }
159
+ else
160
+ setValue(undefined);
161
+ }} items={dataPages} configuration={{
162
+ label: args.disabled || args.readOnly ? 'View Configuration' : 'Edit Configuration',
163
+ heading: 'Map Parameters',
164
+ primaryAction: {
165
+ id: 'submit',
166
+ text: 'Submit',
167
+ onClick: popoverContent === 'advanced' ? handleSubmission : args.onSubmit
168
+ },
169
+ secondaryAction: {
170
+ id: 'cancel',
171
+ text: 'Cancel',
172
+ onClick: args.onCancel
173
+ },
174
+ content: (<ConfigurationContent {...args} popoverContent={popoverContent} condition={condition} setCondition={setCondition} validRHSTypes={validRHSTypes}/>)
175
+ }} value={value} onPreview={(id, e) => {
176
+ const data = menuHelpers.getItem(dataPages, id);
177
+ if (data)
178
+ setDrawerData(data);
179
+ setDrawerOpen(true);
180
+ args.onPreview?.(id, e);
181
+ }}/>
182
+ <ViewportDrawer drawerData={drawerData} drawerOpen={drawerOpen} setDrawerOpen={setDrawerOpen}/>
183
+ {popoverContent === 'advanced' && (<Card>
184
+ <CardContent>
185
+ <Text variant='h4'>Output:</Text>
186
+ <StyledCodeBlock>
187
+ {submitCondition ? JSON.stringify(submitCondition, null, 2) : '(No condition)'}
188
+ </StyledCodeBlock>
189
+
190
+ <Text variant='h4'>Formatted Output:</Text>
191
+ <StyledCodeBlock>
192
+ {submitCondition
193
+ ? formatCondition({ condition: submitCondition }, demoFields, t)
194
+ : '(No condition)'}
195
+ </StyledCodeBlock>
196
+ </CardContent>
197
+ </Card>)}
198
+ </Flex>);
199
+ };
200
+ export const ObjectSelectDemo = ({ popoverContent, ...args }) => {
201
+ return <ObjectSelectComp {...args} popoverContent={popoverContent}/>;
202
+ };
203
+ ObjectSelectDemo.args = {
204
+ label: 'Data source',
205
+ labelHidden: false,
206
+ info: 'Select an appropriate data source',
207
+ placeholder: '',
208
+ status: undefined,
209
+ required: false,
210
+ disabled: false,
211
+ readOnly: false,
212
+ popoverContent: 'simple',
213
+ onPreview: () => { },
214
+ onSubmit: action('Clicked submit button'),
215
+ onCancel: action('Clicked cancel button')
216
+ };
217
+ ObjectSelectDemo.argTypes = {
218
+ label: { control: { type: 'text' } },
219
+ labelHidden: { control: { type: 'boolean' } },
220
+ info: { control: { type: 'text' } },
221
+ placeholder: { control: { type: 'text' } },
222
+ status: { options: [undefined, 'success', 'warning', 'error'], control: { type: 'select' } },
223
+ required: { control: { type: 'boolean' } },
224
+ disabled: { control: { type: 'boolean' } },
225
+ readOnly: { control: { type: 'boolean' } },
226
+ popoverContent: { options: ['simple', 'advanced'], control: { type: 'radio' } },
227
+ onPreview: { table: { disable: true } },
228
+ onSubmit: { table: { disable: true } },
229
+ onCancel: { table: { disable: true } }
230
+ };
231
+ const initFields = () => {
232
+ const common = { value: undefined, status: undefined };
233
+ return [
234
+ {
235
+ ...common,
236
+ name: 'name',
237
+ required: true,
238
+ error: 'Please enter a valid name for table',
239
+ validator() {
240
+ if (!this.value)
241
+ return false;
242
+ return /^[a-z]{1}[a-z0-9]+$/i.test(this.value);
243
+ }
244
+ },
245
+ {
246
+ ...common,
247
+ name: 'description',
248
+ required: true,
249
+ help: 'Give an appropriate description for the table',
250
+ error: 'Field cannot be empty',
251
+ validator() {
252
+ if (!this.value)
253
+ return false;
254
+ return true;
255
+ }
256
+ }
257
+ ];
258
+ };
259
+ const fieldReducer = (fields, { target, type }) => {
260
+ return fields.map(field => {
261
+ if (field.name === target.name) {
262
+ field.value = target.value;
263
+ if (type === 'blur' || field.status === 'error') {
264
+ if ((field.required || field.value) && !field.validator()) {
265
+ field.status = 'error';
266
+ field.info = field.error;
267
+ }
268
+ else {
269
+ field.status = undefined;
270
+ field.info = field.help;
271
+ }
272
+ }
273
+ }
274
+ return field;
275
+ });
276
+ };
277
+ export const ObjectSelectDemoInForm = () => {
278
+ const [fields, setField] = useReducer(fieldReducer, undefined, initFields);
279
+ const { push } = useContext(ToasterContext);
280
+ const name = fields.find(field => field.name === 'name');
281
+ const description = fields.find(field => field.name === 'description');
282
+ if (!name || !description)
283
+ return null;
284
+ const canSubmit = fields.every(field => field.value && field.validator());
285
+ const actions = (<>
286
+ <Button name='Cancel' variant='secondary' onClick={() => {
287
+ push({ content: 'Form cancelled!' });
288
+ }}>
289
+ Cancel
290
+ </Button>
291
+ <Button name='Submit' type='submit' variant='primary' disabled={!canSubmit}>
292
+ Submit
293
+ </Button>
294
+ </>);
295
+ return (<Card style={{ margin: 'auto', maxWidth: '37.5rem' }}>
296
+ <CardContent>
297
+ <Form actions={actions} onSubmit={(e) => {
298
+ e.preventDefault();
299
+ push({ content: 'Form submitted!' });
300
+ }} heading='Configure Table'>
301
+ <Flex container={{ direction: 'column', gap: 2 }} item={{ grow: 1 }}>
302
+ <Input name='name' label='Table name' value={name.value} required={name.required} status={name.status} info='Enter a valid table name' onChange={(e) => setField({ ...e })} onBlur={(e) => setField({ ...e })} autoComplete='off'/>
303
+
304
+ <TextArea name='description' required={description.required} label='Table description' status={description.status} info={description.info || description.help} onChange={(e) => setField({ ...e })} onBlur={(e) => setField({ ...e })}/>
305
+ <ObjectSelectComp label='Data page' info='Select an appropriate data page' items={[]} onChange={() => { }}/>
306
+ <ObjectSelectComp label='Visibility condition' info='Choose a when condition from list' items={[]} onChange={() => { }}/>
307
+ </Flex>
308
+ </Form>
309
+ </CardContent>
310
+ </Card>);
311
+ };
312
+ //# sourceMappingURL=ObjectSelect.stories.jsx.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ObjectSelect.stories.jsx","sourceRoot":"","sources":["../../../src/build/ObjectSelect/ObjectSelect.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAEL,UAAU,EACV,UAAU,EAGV,QAAQ,EAGT,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C,CACR,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\nimport {\n FormEvent,\n useReducer,\n useContext,\n ChangeEvent,\n FocusEvent,\n useState,\n MouseEvent,\n FC\n} from 'react';\nimport { action } from '@storybook/addon-actions';\n\nimport {\n Form,\n Button,\n Flex,\n Input,\n FormControlProps,\n ToasterContext,\n TextArea,\n Card,\n CardContent,\n Drawer,\n Text,\n FieldValueList,\n Icon,\n registerIcon,\n menuHelpers,\n MenuItemProps,\n useI18n,\n StyledRegion\n} from '@pega/cosmos-react-core';\nimport { ObjectSelect, ObjectSelectProps } from '@pega/cosmos-react-build';\nimport {\n AtomicCondition,\n LeafCondition,\n getInitConditionForLhs,\n RHSType,\n DateFunctionsByType,\n formatCondition\n} from '@pega/cosmos-react-condition-builder';\nimport * as times from '@pega/cosmos-react-core/lib/components/Icon/icons/times.icon';\n\nimport {\n StyledDrawerContent,\n StyledCodeBlock,\n StyledConfigurationContent\n} from './ObjectSelect.styles';\nimport { skeletonData, dataPages, demoFields, demoDateFunctions } from './ObjectSelect.mocks';\n\nregisterIcon(times);\n\nexport default {\n title: 'Build/ObjectSelect',\n component: ObjectSelect\n} as Meta;\n\ninterface Field extends FormControlProps {\n help?: string;\n error?: string;\n validator: (this: Field) => boolean;\n}\n\ninterface DrawerProps {\n drawerData?: MenuItemProps;\n drawerOpen: boolean;\n setDrawerOpen: (value: boolean) => void;\n}\n\nexport interface ObjectSelectStoryProps extends ObjectSelectProps {\n onSubmit?: (id: string, e: MouseEvent<HTMLElement>) => void;\n onCancel?: (id: string, e: MouseEvent<HTMLElement>) => void;\n popoverContent?: string;\n}\n\nexport const ObjectSelectSkeleton: Story<ObjectSelectStoryProps> = (\n args: ObjectSelectStoryProps\n) => {\n const [value, setValue] = useState<ObjectSelectProps['value']>(args.value);\n\n return (\n <ObjectSelect\n {...args}\n items={skeletonData}\n value={value}\n onChange={id => {\n const data = menuHelpers.getItem(skeletonData, id);\n if (data) {\n setValue({\n id: data.id,\n primary: data.primary,\n href: data.href ?? '#',\n meta: data.id !== '01-4' ? data.secondary?.join(' ') : ''\n });\n } else setValue(undefined);\n }}\n configuration={{\n label: 'Gear button label',\n heading: 'Popover heading',\n primaryAction: {\n id: 'primaryAction',\n text: 'Primary action text',\n onClick: args.onSubmit\n },\n secondaryAction: {\n id: 'secondaryAction',\n text: 'Secondary action text',\n onClick: args.onCancel\n },\n content: (\n <StyledConfigurationContent>\n <StyledRegion style={{ minHeight: '20vh' }} />\n </StyledConfigurationContent>\n )\n }}\n onPreview={args.onPreview}\n />\n );\n};\n\nObjectSelectSkeleton.args = {\n label: 'Object select label',\n labelHidden: false,\n info: 'Object select info text',\n placeholder: '',\n status: undefined,\n required: false,\n disabled: false,\n readOnly: false,\n onPreview: action('Clicked preview link'),\n onSubmit: action('Clicked submit button'),\n onCancel: action('Clicked cancel button')\n};\n\nObjectSelectSkeleton.argTypes = {\n label: { control: { type: 'text' } },\n labelHidden: { control: { type: 'boolean' } },\n info: { control: { type: 'text' } },\n placeholder: { control: { type: 'text' } },\n status: { options: [undefined, 'success', 'warning', 'error'], control: { type: 'select' } },\n required: { control: { type: 'boolean' } },\n disabled: { control: { type: 'boolean' } },\n readOnly: { control: { type: 'boolean' } },\n onPreview: { table: { disable: true } },\n onSubmit: { table: { disable: true } },\n onCancel: { table: { disable: true } }\n};\n\nconst ViewportDrawer = ({ drawerData, drawerOpen, setDrawerOpen }: DrawerProps) => {\n const fields = drawerData?.secondary?.map((data, index) => {\n return {\n id: (index + 1).toString(),\n name: data?.toString() ?? '',\n value: data\n };\n });\n\n return (\n <Drawer\n open={drawerOpen}\n onOuterClick={() => {\n setDrawerOpen(false);\n }}\n position='fixed'\n size='30rem'\n nullWhenClosed\n shadow\n >\n <Flex\n as={StyledDrawerContent}\n container={{\n direction: 'column',\n alignItems: 'start',\n gap: 2,\n pad: 4\n }}\n >\n <Flex container={{ direction: 'column', gap: 1 }}>\n <Flex container={{ gap: 2, alignItems: 'center' }}>\n <Button variant='simple' label='Close drawer' icon onClick={() => setDrawerOpen(false)}>\n <Icon name='times' />\n </Button>\n <Text variant='h3'>{drawerData?.primary}</Text>\n </Flex>\n <Flex container={{ direction: 'column', gap: 2, pad: 1 }}>\n <Text as='p'>\n This is a mock representation for the parameters of the {drawerData?.primary} rule\n </Text>\n <FieldValueList variant='inline' fields={fields!} />\n </Flex>\n </Flex>\n </Flex>\n </Drawer>\n );\n};\n\nconst ConfigurationContent = (args: any) => {\n const [showErrorIndicators] = useState(false);\n\n const ConditionBuilder = (\n <AtomicCondition\n condition={args.condition}\n fields={demoFields}\n indicateErrors={showErrorIndicators}\n dateFunctions={demoDateFunctions}\n onChange={c => args.setCondition(c)}\n itemDirection='row'\n showLhsAsLabel={false}\n validRhsTypes={args.validRHSTypes}\n />\n );\n\n const Inputs = (\n <Flex container={{ direction: 'column', gap: 2 }}>\n <Text variant='h4'>Inputs</Text>\n <Flex container={{ direction: 'column', gap: 1 }}>\n <Flex container={{ alignItems: 'end', gap: 1 }}>\n <Input\n label='Name'\n type='text'\n defaultValue='Sample key 1'\n disabled\n readOnly={args.readOnly}\n />\n <Input\n label='Value'\n type='text'\n defaultValue='Sample value 1'\n readOnly={args.readOnly}\n disabled={args.disabled}\n />\n </Flex>\n <Flex container={{ alignItems: 'end', gap: 1 }}>\n <Input\n label='Name 2'\n labelHidden\n type='text'\n defaultValue='Sample key 2'\n disabled\n readOnly={args.readOnly}\n />\n <Input\n label='Value 2'\n labelHidden\n type='text'\n defaultValue='Sample value 2'\n readOnly={args.readOnly}\n disabled={args.disabled}\n />\n </Flex>\n </Flex>\n </Flex>\n );\n\n return args.popoverContent === 'advanced' ? ConditionBuilder : Inputs;\n};\n\nconst ObjectSelectComp: FC<ObjectSelectStoryProps> = ({\n popoverContent,\n ...args\n}: ObjectSelectStoryProps) => {\n const t = useI18n();\n const [drawerOpen, setDrawerOpen] = useState(false);\n const [drawerData, setDrawerData] = useState<MenuItemProps>(dataPages[0]);\n const [value, setValue] = useState<ObjectSelectProps['value']>(args.value);\n\n const convertRhsTypes = (\n useLiteralRHSType: boolean,\n useFieldRHSType: boolean,\n useRelativeDatesType: boolean,\n dateFunctions?: DateFunctionsByType\n ) => {\n const setRhsTypes: Set<RHSType> = new Set<RHSType>();\n if (useLiteralRHSType) setRhsTypes.add('LITERAL');\n if (useFieldRHSType) setRhsTypes.add('FIELD');\n if (dateFunctions) setRhsTypes.add('DATE_FUNCTION');\n if (useRelativeDatesType) setRhsTypes.add('RELATIVE_DATE');\n return setRhsTypes;\n };\n\n const validRHSTypes: Set<RHSType> = convertRhsTypes(true, true, true, demoDateFunctions);\n const [submitCondition, setSubmitCondition] = useState<LeafCondition | undefined>(undefined);\n const [condition, setCondition] = useState(\n () =>\n submitCondition ||\n getInitConditionForLhs(\n { field: 'age' },\n demoFields,\n validRHSTypes,\n undefined,\n demoDateFunctions\n )\n );\n\n const handleSubmission = () => {\n setSubmitCondition(condition);\n };\n\n return (\n <Flex container={{ direction: 'column', gap: 1 }}>\n <ObjectSelect\n {...args}\n onChange={id => {\n const data = menuHelpers.getItem(dataPages, id);\n if (data) {\n setValue({\n id: data.id,\n primary: data.primary,\n href: data.href ?? '#',\n meta: data.id !== '01-4' ? data.secondary?.join(' ') : ''\n });\n } else setValue(undefined);\n }}\n items={dataPages}\n configuration={{\n label: args.disabled || args.readOnly ? 'View Configuration' : 'Edit Configuration',\n heading: 'Map Parameters',\n primaryAction: {\n id: 'submit',\n text: 'Submit',\n onClick: popoverContent === 'advanced' ? handleSubmission : args.onSubmit\n },\n secondaryAction: {\n id: 'cancel',\n text: 'Cancel',\n onClick: args.onCancel\n },\n content: (\n <ConfigurationContent\n {...args}\n popoverContent={popoverContent}\n condition={condition}\n setCondition={setCondition}\n validRHSTypes={validRHSTypes}\n />\n )\n }}\n value={value}\n onPreview={(id, e: { href: string }) => {\n const data = menuHelpers.getItem(dataPages, id);\n if (data) setDrawerData(data);\n setDrawerOpen(true);\n args.onPreview?.(id, e);\n }}\n />\n <ViewportDrawer\n drawerData={drawerData}\n drawerOpen={drawerOpen}\n setDrawerOpen={setDrawerOpen}\n />\n {popoverContent === 'advanced' && (\n <Card>\n <CardContent>\n <Text variant='h4'>Output:</Text>\n <StyledCodeBlock>\n {submitCondition ? JSON.stringify(submitCondition, null, 2) : '(No condition)'}\n </StyledCodeBlock>\n\n <Text variant='h4'>Formatted Output:</Text>\n <StyledCodeBlock>\n {submitCondition\n ? formatCondition({ condition: submitCondition }, demoFields, t)\n : '(No condition)'}\n </StyledCodeBlock>\n </CardContent>\n </Card>\n )}\n </Flex>\n );\n};\n\nexport const ObjectSelectDemo: Story<ObjectSelectStoryProps> = ({\n popoverContent,\n ...args\n}: ObjectSelectStoryProps) => {\n return <ObjectSelectComp {...args} popoverContent={popoverContent} />;\n};\n\nObjectSelectDemo.args = {\n label: 'Data source',\n labelHidden: false,\n info: 'Select an appropriate data source',\n placeholder: '',\n status: undefined,\n required: false,\n disabled: false,\n readOnly: false,\n popoverContent: 'simple',\n onPreview: () => {},\n onSubmit: action('Clicked submit button'),\n onCancel: action('Clicked cancel button')\n};\n\nObjectSelectDemo.argTypes = {\n label: { control: { type: 'text' } },\n labelHidden: { control: { type: 'boolean' } },\n info: { control: { type: 'text' } },\n placeholder: { control: { type: 'text' } },\n status: { options: [undefined, 'success', 'warning', 'error'], control: { type: 'select' } },\n required: { control: { type: 'boolean' } },\n disabled: { control: { type: 'boolean' } },\n readOnly: { control: { type: 'boolean' } },\n popoverContent: { options: ['simple', 'advanced'], control: { type: 'radio' } },\n onPreview: { table: { disable: true } },\n onSubmit: { table: { disable: true } },\n onCancel: { table: { disable: true } }\n};\n\nconst initFields = (): Field[] => {\n const common = { value: undefined, status: undefined };\n return [\n {\n ...common,\n name: 'name',\n required: true,\n error: 'Please enter a valid name for table',\n validator() {\n if (!this.value) return false;\n return /^[a-z]{1}[a-z0-9]+$/i.test(this.value);\n }\n },\n {\n ...common,\n name: 'description',\n required: true,\n help: 'Give an appropriate description for the table',\n error: 'Field cannot be empty',\n validator() {\n if (!this.value) return false;\n return true;\n }\n }\n ];\n};\n\nconst fieldReducer = (\n fields: Field[],\n {\n target,\n type\n }:\n | ChangeEvent<HTMLInputElement | HTMLTextAreaElement>\n | FocusEvent<HTMLInputElement | HTMLTextAreaElement>\n) => {\n return fields.map(field => {\n if (field.name === target.name) {\n field.value = target.value;\n if (type === 'blur' || field.status === 'error') {\n if ((field.required || field.value) && !field.validator()) {\n field.status = 'error';\n field.info = field.error;\n } else {\n field.status = undefined;\n field.info = field.help;\n }\n }\n }\n return field;\n });\n};\n\nexport const ObjectSelectDemoInForm = () => {\n const [fields, setField] = useReducer(fieldReducer, undefined, initFields);\n const { push } = useContext(ToasterContext);\n\n const name = fields.find(field => field.name === 'name');\n const description = fields.find(field => field.name === 'description');\n\n if (!name || !description) return null;\n\n const canSubmit = fields.every(field => field.value && field.validator());\n\n const actions = (\n <>\n <Button\n name='Cancel'\n variant='secondary'\n onClick={() => {\n push({ content: 'Form cancelled!' });\n }}\n >\n Cancel\n </Button>\n <Button name='Submit' type='submit' variant='primary' disabled={!canSubmit}>\n Submit\n </Button>\n </>\n );\n\n return (\n <Card style={{ margin: 'auto', maxWidth: '37.5rem' }}>\n <CardContent>\n <Form\n actions={actions}\n onSubmit={(e: FormEvent) => {\n e.preventDefault();\n push({ content: 'Form submitted!' });\n }}\n heading='Configure Table'\n >\n <Flex container={{ direction: 'column', gap: 2 }} item={{ grow: 1 }}>\n <Input\n name='name'\n label='Table name'\n value={name.value}\n required={name.required}\n status={name.status}\n info='Enter a valid table name'\n onChange={(e: ChangeEvent<HTMLInputElement>) => setField({ ...e })}\n onBlur={(e: FocusEvent<HTMLInputElement>) => setField({ ...e })}\n autoComplete='off'\n />\n\n <TextArea\n name='description'\n required={description.required}\n label='Table description'\n status={description.status}\n info={description.info || description.help}\n onChange={(e: ChangeEvent<HTMLTextAreaElement>) => setField({ ...e })}\n onBlur={(e: FocusEvent<HTMLInputElement>) => setField({ ...e })}\n />\n <ObjectSelectComp\n label='Data page'\n info='Select an appropriate data page'\n items={[]}\n onChange={() => {}}\n />\n <ObjectSelectComp\n label='Visibility condition'\n info='Choose a when condition from list'\n items={[]}\n onChange={() => {}}\n />\n </Flex>\n </Form>\n </CardContent>\n </Card>\n );\n};\n"]}
@@ -0,0 +1,4 @@
1
+ export declare const StyledDrawerContent: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
2
+ export declare const StyledCodeBlock: import("styled-components").StyledComponent<"pre", import("styled-components").DefaultTheme, {}, never>;
3
+ export declare const StyledConfigurationContent: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
4
+ //# sourceMappingURL=ObjectSelect.styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ObjectSelect.styles.d.ts","sourceRoot":"","sources":["../../../src/build/ObjectSelect/ObjectSelect.styles.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,mBAAmB,yGAS9B,CAAC;AAIH,eAAO,MAAM,eAAe,yGAK1B,CAAC;AAIH,eAAO,MAAM,0BAA0B,yGAOrC,CAAC"}
@@ -0,0 +1,27 @@
1
+ import styled, { css } from 'styled-components';
2
+ import { defaultThemeProp, StyledRegion } from '@pega/cosmos-react-core';
3
+ export const StyledDrawerContent = styled.div(props => {
4
+ const { theme: { base } } = props;
5
+ return css `
6
+ height: 100%;
7
+ background-color: ${base.palette['primary-background']};
8
+ `;
9
+ });
10
+ StyledDrawerContent.defaultProps = defaultThemeProp;
11
+ export const StyledCodeBlock = styled.pre(({ theme }) => {
12
+ return css `
13
+ padding: ${theme.base.spacing};
14
+ margin-bottom: ${theme.base.spacing};
15
+ `;
16
+ });
17
+ StyledCodeBlock.defaultProps = defaultThemeProp;
18
+ export const StyledConfigurationContent = styled.div(({ theme }) => {
19
+ return css `
20
+ ${StyledRegion} {
21
+ border: 0.0625rem dashed ${theme.base.palette['border-line']};
22
+ background-color: ${theme.base.palette['secondary-background']};
23
+ }
24
+ `;
25
+ });
26
+ StyledConfigurationContent.defaultProps = defaultThemeProp;
27
+ //# sourceMappingURL=ObjectSelect.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ObjectSelect.styles.js","sourceRoot":"","sources":["../../../src/build/ObjectSelect/ObjectSelect.styles.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAEzE,MAAM,CAAC,MAAM,mBAAmB,GAAG,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE;IACpD,MAAM,EACJ,KAAK,EAAE,EAAE,IAAI,EAAE,EAChB,GAAG,KAAK,CAAC;IAEV,OAAO,GAAG,CAAA;;wBAEY,IAAI,CAAC,OAAO,CAAC,oBAAoB,CAAC;GACvD,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,mBAAmB,CAAC,YAAY,GAAG,gBAAgB,CAAC;AAEpD,MAAM,CAAC,MAAM,eAAe,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE;IACtD,OAAO,GAAG,CAAA;eACG,KAAK,CAAC,IAAI,CAAC,OAAO;qBACZ,KAAK,CAAC,IAAI,CAAC,OAAO;GACpC,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,eAAe,CAAC,YAAY,GAAG,gBAAgB,CAAC;AAEhD,MAAM,CAAC,MAAM,0BAA0B,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE;IACjE,OAAO,GAAG,CAAA;MACN,YAAY;iCACe,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC;0BACxC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,sBAAsB,CAAC;;GAEjE,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,0BAA0B,CAAC,YAAY,GAAG,gBAAgB,CAAC","sourcesContent":["import styled, { css } from 'styled-components';\n\nimport { defaultThemeProp, StyledRegion } from '@pega/cosmos-react-core';\n\nexport const StyledDrawerContent = styled.div(props => {\n const {\n theme: { base }\n } = props;\n\n return css`\n height: 100%;\n background-color: ${base.palette['primary-background']};\n `;\n});\n\nStyledDrawerContent.defaultProps = defaultThemeProp;\n\nexport const StyledCodeBlock = styled.pre(({ theme }) => {\n return css`\n padding: ${theme.base.spacing};\n margin-bottom: ${theme.base.spacing};\n `;\n});\n\nStyledCodeBlock.defaultProps = defaultThemeProp;\n\nexport const StyledConfigurationContent = styled.div(({ theme }) => {\n return css`\n ${StyledRegion} {\n border: 0.0625rem dashed ${theme.base.palette['border-line']};\n background-color: ${theme.base.palette['secondary-background']};\n }\n `;\n});\n\nStyledConfigurationContent.defaultProps = defaultThemeProp;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"PageTemplates.stories.d.ts","sourceRoot":"","sources":["../../../src/build/PageTemplates/PageTemplates.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EASL,UAAU,EACX,MAAM,OAAO,CAAC;AAGf,OAAO,EAwBL,WAAW,EACX,iBAAiB,EAClB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAAY,aAAa,EAA6B,MAAM,0BAA0B,CAAC;;AAW9F,wBAKU;AAEV,MAAM,WAAW,uBAAwB,SAAQ,iBAAiB;IAChE,QAAQ,EACJ,YAAY,GACZ,YAAY,GACZ,cAAc,GACd,aAAa,GACb,aAAa,GACb,aAAa,GACb,kBAAkB,GAClB,kBAAkB,GAClB,oBAAoB,GACpB,QAAQ,CAAC;IACb,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;IACvC,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,MAAM,CAAC,EAAE,CAAC,CAAC,EAAE,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;CACrD;AAQD,UAAU,aAAa;IACrB,IAAI,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IAC5B,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAkVD,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,uBAAuB,GAAG,aAAa,CA2L5E,CAAC"}
1
+ {"version":3,"file":"PageTemplates.stories.d.ts","sourceRoot":"","sources":["../../../src/build/PageTemplates/PageTemplates.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EASL,UAAU,EACX,MAAM,OAAO,CAAC;AAGf,OAAO,EAwBL,WAAW,EACX,iBAAiB,EAClB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAAY,aAAa,EAA6B,MAAM,0BAA0B,CAAC;;AAY9F,wBAKU;AAEV,MAAM,WAAW,uBAAwB,SAAQ,iBAAiB;IAChE,QAAQ,EACJ,YAAY,GACZ,YAAY,GACZ,cAAc,GACd,aAAa,GACb,aAAa,GACb,aAAa,GACb,kBAAkB,GAClB,kBAAkB,GAClB,oBAAoB,GACpB,QAAQ,CAAC;IACb,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;IACvC,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,MAAM,CAAC,EAAE,CAAC,CAAC,EAAE,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;CACrD;AAQD,UAAU,aAAa;IACrB,IAAI,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IAC5B,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAkVD,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,uBAAuB,GAAG,aAAa,CAkL5E,CAAC"}
@@ -3,10 +3,10 @@ import { action } from '@storybook/addon-actions';
3
3
  import { Button, Banner, treeHelpers, StandardTree, Configuration, Modal, ModalManagerContext, BuildTheme, Flex, Form, Input, CheckboxGroup, RadioButtonGroup, RadioButton, Checkbox, Select, Option, TextArea, ToasterContext, Text, Actions } from '@pega/cosmos-react-core';
4
4
  import { RichTextEditor } from '@pega/cosmos-react-rte';
5
5
  import { AppShell, TabbedPage, OneColumnPage } from '@pega/cosmos-react-build';
6
- import { FileInputDemo } from '@pega/cosmos-react-demos/lib/core/File/FileInput.stories';
7
- import { TableDemo } from '@pega/cosmos-react-demos/lib/core/Table/Table.stories';
8
- import { WorkbenchDemo } from '@pega/cosmos-react-demos/lib/build/Workbench/Workbench.stories';
9
- import { appExplorerMenuList, branchesMenuList, recordMenuList, treeList } from '@pega/cosmos-react-demos/lib/build/AppShell/AppShell.mocks';
6
+ import { FileInputDemo } from '../../core/File/FileInput.stories';
7
+ import { TableDemo } from '../../core/Table/Table.stories';
8
+ import { WorkbenchDemo } from '../Workbench/Workbench.stories';
9
+ import { appExplorerMenuList, branchesMenuList, recordMenuList, treeList } from '../AppShell/AppShell.mocks';
10
10
  export default {
11
11
  title: 'Build/PageTemplates',
12
12
  parameters: {
@@ -284,9 +284,7 @@ export const PageTemplatesDemo = (args) => {
284
284
  ]}/>
285
285
  </Flex>) : undefined;
286
286
  const banners = args.showBanners ? (<Banner id='warning-banner' variant='warning' messages={['This is a warning banner. You have been warned!']}/>) : undefined;
287
- const mainContent = (<Flex container>
288
- <OneColumnForm />
289
- </Flex>);
287
+ const mainContent = <OneColumnForm />;
290
288
  const modal = () => (<Configuration theme={BuildTheme}>
291
289
  <Modal heading='This is the Modal heading' autoWidth={false} center stretch={false}>
292
290
  <Text>This is the content of the Modal.</Text>
@@ -375,9 +373,7 @@ export const PageTemplatesDemo = (args) => {
375
373
  setCurrentTabId(id);
376
374
  switch (id) {
377
375
  case 'form':
378
- setContent(<Flex container>
379
- <OneColumnForm />
380
- </Flex>);
376
+ setContent(<OneColumnForm />);
381
377
  break;
382
378
  case 'accounts':
383
379
  setContent(<TableDemo />);