@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":"ExpandCollapse.stories.js","sourceRoot":"","sources":["../../../src/core/ExpandCollapse/ExpandCollapse.stories.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjC,OAAO,EAAE,MAAM,EAAE,cAAc,EAAuB,IAAI,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAElG,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAEvD,eAAe;IACb,KAAK,EAAE,qBAAqB;IAC5B,SAAS,EAAE,cAAc;IACzB,IAAI,EAAE;QACJ,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,eAAe,EAAE,OAAO;KACzB;IACD,QAAQ,EAAE;QACR,GAAG,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;QAClC,GAAG,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;QAClC,eAAe,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;KAC/C;CACM,CAAC;AAEV,MAAM,CAAC,MAAM,sBAAsB,GAA+B,CAAC,IAAyB,EAAE,EAAE;IAC9F,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;IAEjD,OAAO,CACL,MAAC,IAAI,IAAC,SAAS,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,aACtC,KAAC,YAAY,cACX,KAAC,MAAM,IAAC,OAAO,EAAE,GAAG,EAAE,CAAC,YAAY,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC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AW,kBACtB,QAAQ,IAAI,CACX,KAAC,IAAI,2dAOE,CACR,WACY,WACA,EAEjB,KAAC,YAAY,cACX,KAAC,IAAI,0GAAuF,WAC/E,YACV,CACR,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\nimport { useState } from 'react';\n\nimport { Button, ExpandCollapse, ExpandCollapseProps, Flex, Text } from '@pega/cosmos-react-core';\n\nimport { StyledRegion } from './ExpandCollapse.styles';\n\nexport default {\n title: 'Core/ExpandCollapse',\n component: ExpandCollapse,\n args: {\n min: '',\n max: '',\n transitionSpeed: '0.25s'\n },\n argTypes: {\n min: { control: { type: 'text' } },\n max: { control: { type: 'text' } },\n transitionSpeed: { control: { type: 'text' } }\n }\n} as Meta;\n\nexport const VerticalExpandCollapse: Story<ExpandCollapseProps> = (args: ExpandCollapseProps) => {\n const [collapsed, setCollapsed] = useState(true);\n\n return (\n <Flex container={{ direction: 'column' }}>\n <StyledRegion>\n <Button onClick={() => setCollapsed(curState => !curState)}>\n {collapsed ? 'Expand' : 'Collapse '}\n </Button>\n </StyledRegion>\n\n <ExpandCollapse\n dimension='height'\n collapsed={collapsed}\n min={args.min}\n max={args.max}\n transitionSpeed={args.transitionSpeed}\n nullWhenCollapsed\n >\n <StyledRegion innerRegion>\n <Text>\n Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor\n incididunt ut ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud\n exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure\n dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.\n Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt\n mollit anim id est laborum.\n </Text>\n </StyledRegion>\n </ExpandCollapse>\n\n <StyledRegion>\n <Text>This content is outside of the ExpandCollapse and so it will always be visible.</Text>\n </StyledRegion>\n </Flex>\n );\n};\n\nexport const HorizontalExpandCollapse: Story<ExpandCollapseProps> = (args: ExpandCollapseProps) => {\n const [collapsed, setCollapsed] = useState(true);\n const [showText, setShowText] = useState(false);\n\n return (\n <Flex container>\n <StyledRegion>\n <Button onClick={() => setCollapsed(curState => !curState)}>\n {collapsed ? 'Expand' : 'Collapse '}\n </Button>\n </StyledRegion>\n\n <ExpandCollapse\n dimension='width'\n collapsed={collapsed}\n min={args.min}\n max={args.max}\n transitionSpeed={args.transitionSpeed}\n nullWhenCollapsed\n onAfterExpand={() => setShowText(true)}\n onBeforeCollapse={() => setShowText(false)}\n >\n <StyledRegion innerRegion>\n {showText && (\n <Text>\n Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor\n incididunt ut ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud\n exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure\n dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.\n Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt\n mollit anim id est laborum.\n </Text>\n )}\n </StyledRegion>\n </ExpandCollapse>\n\n <StyledRegion>\n <Text>This content is outside of the ExpandCollapse and so it will always be visible.</Text>\n </StyledRegion>\n </Flex>\n );\n};\n"]}
1
+ {"version":3,"file":"ExpandCollapse.stories.js","sourceRoot":"","sources":["../../../src/core/ExpandCollapse/ExpandCollapse.stories.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjC,OAAO,EAAE,MAAM,EAAE,cAAc,EAAuB,IAAI,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAElG,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAEvD,eAAe;IACb,KAAK,EAAE,qBAAqB;IAC5B,SAAS,EAAE,cAAc;IACzB,IAAI,EAAE;QACJ,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,eAAe,EAAE,OAAO;KACzB;IACD,QAAQ,EAAE;QACR,GAAG,EAAE,EAAE,OAAO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,SAAS,mBACb,KAAC,YAAY,cACX,KAAC,MAAM,IAAC,OAAO,EAAE,GAAG,EAAE,CAAC,YAAY,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,YACvD,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,WAAW,GAC5B,GACI,EAEf,KAAC,cAAc,IACb,SAAS,EAAC,OAAO,EACjB,SAAS,EAAE,SAAS,EACpB,GAAG,EAAE,IAAI,CAAC,GAAG,EACb,GAAG,EAAE,IAAI,CAAC,GAAG,EACb,eAAe,EAAE,IAAI,CAAC,eAAe,EACrC,iBAAiB,QACjB,aAAa,EAAE,GAAG,EAAE,CAAC,WAAW,CAAC,IAAI,CAAC,EACtC,gBAAgB,EAAE,GAAG,EAAE,CAAC,WAAW,CAAC,KAAK,CAAC,YAE1C,KAAC,YAAY,IAAC,WAAW,kBACtB,QAAQ,IAAI,CACX,KAAC,IAAI,mdAOE,CACR,GACY,GACA,EAEjB,KAAC,YAAY,cACX,KAAC,IAAI,kGAAuF,GAC/E,IACV,CACR,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\nimport { useState } from 'react';\n\nimport { Button, ExpandCollapse, ExpandCollapseProps, Flex, Text } from '@pega/cosmos-react-core';\n\nimport { StyledRegion } from './ExpandCollapse.styles';\n\nexport default {\n title: 'Core/ExpandCollapse',\n component: ExpandCollapse,\n args: {\n min: '',\n max: '',\n transitionSpeed: '0.25s'\n },\n argTypes: {\n min: { control: { type: 'text' } },\n max: { control: { type: 'text' } },\n transitionSpeed: { control: { type: 'text' } }\n }\n} as Meta;\n\nexport const VerticalExpandCollapse: Story<ExpandCollapseProps> = (args: ExpandCollapseProps) => {\n const [collapsed, setCollapsed] = useState(true);\n\n return (\n <Flex container={{ direction: 'column' }}>\n <StyledRegion>\n <Button onClick={() => setCollapsed(curState => !curState)}>\n {collapsed ? 'Expand' : 'Collapse '}\n </Button>\n </StyledRegion>\n\n <ExpandCollapse\n dimension='height'\n collapsed={collapsed}\n min={args.min}\n max={args.max}\n transitionSpeed={args.transitionSpeed}\n nullWhenCollapsed\n >\n <StyledRegion innerRegion>\n <Text>\n Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor\n incididunt ut ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud\n exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure\n dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.\n Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt\n mollit anim id est laborum.\n </Text>\n </StyledRegion>\n </ExpandCollapse>\n\n <StyledRegion>\n <Text>This content is outside of the ExpandCollapse and so it will always be visible.</Text>\n </StyledRegion>\n </Flex>\n );\n};\n\nexport const HorizontalExpandCollapse: Story<ExpandCollapseProps> = (args: ExpandCollapseProps) => {\n const [collapsed, setCollapsed] = useState(true);\n const [showText, setShowText] = useState(false);\n\n return (\n <Flex container>\n <StyledRegion>\n <Button onClick={() => setCollapsed(curState => !curState)}>\n {collapsed ? 'Expand' : 'Collapse '}\n </Button>\n </StyledRegion>\n\n <ExpandCollapse\n dimension='width'\n collapsed={collapsed}\n min={args.min}\n max={args.max}\n transitionSpeed={args.transitionSpeed}\n nullWhenCollapsed\n onAfterExpand={() => setShowText(true)}\n onBeforeCollapse={() => setShowText(false)}\n >\n <StyledRegion innerRegion>\n {showText && (\n <Text>\n Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor\n incididunt ut ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud\n exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure\n dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.\n Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt\n mollit anim id est laborum.\n </Text>\n )}\n </StyledRegion>\n </ExpandCollapse>\n\n <StyledRegion>\n <Text>This content is outside of the ExpandCollapse and so it will always be visible.</Text>\n </StyledRegion>\n </Flex>\n );\n};\n"]}
@@ -2,10 +2,12 @@ import { Meta, Story } from '@storybook/react';
2
2
  declare const _default: Meta<import("@storybook/react").Args>;
3
3
  export default _default;
4
4
  interface FieldGroupStoryProps {
5
- firstGroupName: string;
6
- firstGroupCollapsible: boolean;
7
- secondGroupName: string;
8
- secondGroupCollapsible: boolean;
5
+ firstGroupName?: string;
6
+ firstGroupCollapsible?: boolean;
7
+ firstGroupDescription?: string;
8
+ secondGroupName?: string;
9
+ secondGroupCollapsible?: boolean;
10
+ secondGroupDescription?: string;
9
11
  }
10
12
  export declare const FieldGroupDemo: Story<FieldGroupStoryProps>;
11
13
  //# sourceMappingURL=FieldGroup.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FieldGroup.stories.d.ts","sourceRoot":"","sources":["../../../src/core/FieldGroup/FieldGroup.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;;AAY/C,wBAGU;AAEV,UAAU,oBAAoB;IAC5B,cAAc,EAAE,MAAM,CAAC;IACvB,qBAAqB,EAAE,OAAO,CAAC;IAC/B,eAAe,EAAE,MAAM,CAAC;IACxB,sBAAsB,EAAE,OAAO,CAAC;CACjC;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,oBAAoB,CAmCtD,CAAC"}
1
+ {"version":3,"file":"FieldGroup.stories.d.ts","sourceRoot":"","sources":["../../../src/core/FieldGroup/FieldGroup.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;;AAY/C,wBAGU;AAEV,UAAU,oBAAoB;IAC5B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,sBAAsB,CAAC,EAAE,MAAM,CAAC;CACjC;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,oBAAoB,CA2CtD,CAAC"}
@@ -5,18 +5,22 @@ export default {
5
5
  component: FieldGroup
6
6
  };
7
7
  export const FieldGroupDemo = (args) => {
8
- return (_jsxs(Grid, { container: { rowGap: 1 }, children: [_jsx(FieldGroup, { name: args.firstGroupName, collapsible: args.firstGroupCollapsible, children: _jsxs(Grid, { container: { gap: 1, cols: 'repeat(auto-fit, minmax(min(40ch, 100%), 1fr))' }, children: [_jsx(Input, { type: 'text', label: 'Text 1' }, void 0), _jsxs(Select, { label: 'Select 1', children: [_jsx(Option, { value: 'A', children: "Option 1A" }, void 0), _jsx(Option, { value: 'B', children: "Option 1B" }, void 0)] }, void 0), _jsx(DateInput, { label: 'Date 1' }, void 0), _jsx(Grid, { item: { colStart: '1', colEnd: '-1' }, children: _jsx(TextArea, { label: 'TextArea 1' }, void 0) }, void 0), _jsx(Input, { required: true, type: 'text', label: 'Required 1' }, void 0), _jsx(Input, { disabled: true, type: 'text', label: 'Disabled 1' }, void 0)] }, void 0) }, void 0), _jsx(FieldGroup, { name: args.secondGroupName, collapsible: args.secondGroupCollapsible, children: _jsxs(Grid, { container: { gap: 1, cols: 'repeat(auto-fill, minmax(min(40ch, 100%), 1fr))' }, children: [_jsx(Input, { type: 'text', label: 'Text 2' }, void 0), _jsxs(Select, { label: 'Select 2', children: [_jsx(Option, { value: 'A', children: "Option 2A" }, void 0), _jsx(Option, { value: 'B', children: "Option 2B" }, void 0)] }, void 0), _jsx(DateInput, { label: 'Date 2' }, void 0), _jsx(Grid, { item: { colStart: '1', colEnd: '-1' }, children: _jsx(TextArea, { label: 'TextArea 2' }, void 0) }, void 0), _jsx(Input, { required: true, type: 'text', label: 'Required 2' }, void 0), _jsx(Input, { disabled: true, type: 'text', label: 'Disabled 2' }, void 0)] }, void 0) }, void 0)] }, void 0));
8
+ return (_jsxs(Grid, { container: { rowGap: 1 }, children: [_jsx(FieldGroup, { name: args.firstGroupName, description: args.firstGroupDescription, collapsible: args.firstGroupCollapsible, children: _jsxs(Grid, { container: { gap: 1, cols: 'repeat(auto-fit, minmax(min(40ch, 100%), 1fr))' }, children: [_jsx(Input, { type: 'text', label: 'Text 1' }), _jsxs(Select, { label: 'Select 1', children: [_jsx(Option, { value: 'A', children: "Option 1A" }), _jsx(Option, { value: 'B', children: "Option 1B" })] }), _jsx(DateInput, { label: 'Date 1' }), _jsx(Grid, { item: { colStart: '1', colEnd: '-1' }, children: _jsx(TextArea, { label: 'TextArea 1' }) }), _jsx(Input, { required: true, type: 'text', label: 'Required 1' }), _jsx(Input, { disabled: true, type: 'text', label: 'Disabled 1' })] }) }), _jsx(FieldGroup, { name: args.secondGroupName, description: args.secondGroupDescription, collapsible: args.secondGroupCollapsible, children: _jsxs(Grid, { container: { gap: 1, cols: 'repeat(auto-fill, minmax(min(40ch, 100%), 1fr))' }, children: [_jsx(Input, { type: 'text', label: 'Text 2' }), _jsxs(Select, { label: 'Select 2', children: [_jsx(Option, { value: 'A', children: "Option 2A" }), _jsx(Option, { value: 'B', children: "Option 2B" })] }), _jsx(DateInput, { label: 'Date 2' }), _jsx(Grid, { item: { colStart: '1', colEnd: '-1' }, children: _jsx(TextArea, { label: 'TextArea 2' }) }), _jsx(Input, { required: true, type: 'text', label: 'Required 2' }), _jsx(Input, { disabled: true, type: 'text', label: 'Disabled 2' })] }) })] }));
9
9
  };
10
10
  FieldGroupDemo.args = {
11
11
  firstGroupName: 'Field group 1',
12
12
  firstGroupCollapsible: true,
13
+ firstGroupDescription: '',
13
14
  secondGroupName: 'Field group 2',
14
- secondGroupCollapsible: true
15
+ secondGroupCollapsible: true,
16
+ secondGroupDescription: ''
15
17
  };
16
18
  FieldGroupDemo.argTypes = {
17
19
  firstGroupName: { control: { type: 'text' } },
18
20
  firstGroupCollapsible: { control: { type: 'boolean' } },
21
+ firstGroupDescription: { control: { type: 'text' } },
19
22
  secondGroupName: { control: { type: 'text' } },
20
- secondGroupCollapsible: { control: { type: 'boolean' } }
23
+ secondGroupCollapsible: { control: { type: 'boolean' } },
24
+ secondGroupDescription: { control: { type: 'text' } }
21
25
  };
22
26
  //# sourceMappingURL=FieldGroup.stories.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"FieldGroup.stories.js","sourceRoot":"","sources":["../../../src/core/FieldGroup/FieldGroup.stories.tsx"],"names":[],"mappings":";AAEA,OAAO,EACL,SAAS,EACT,UAAU,EACV,IAAI,EACJ,KAAK,EACL,MAAM,EACN,MAAM,EACN,QAAQ,EACT,MAAM,yBAAyB,CAAC;AAEjC,eAAe;IACb,KAAK,EAAE,iBAAiB;IACxB,SAAS,EAAE,UAAU;CACd,CAAC;AASV,MAAM,CAAC,MAAM,cAAc,GAAgC,CAAC,IAA0B,EAAE,EAAE;IACxF,OAAO,CACL,MAAC,IAAI,IAAC,SAAS,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE,aAC5B,KAAC,UAAU,IAAC,IAAI,EAAE,IAAI,CAAC,cAAc,EAAE,WAAW,EAAE,IAAI,CAAC,qBAAqB,YAC5E,MAAC,IAAI,IAAC,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,gDAAgD,EAAE,aACjF,KAAC,KAAK,IAAC,IAAI,EAAC,MAAM,EAAC,KAAK,EAAC,QAAQ,WAAG,EACpC,MAAC,MAAM,IAAC,KAAK,EAAC,UAAU,aACtB,KAAC,MAAM,IAAC,KAAK,EAAC,GAAG,kCAAmB,EACpC,KAAC,MAAM,IAAC,KAAK,EAAC,GAAG,kCAAmB,YAC7B,EACT,KAAC,SAAS,IAAC,KAAK,EAAC,QAAQ,WAAG,EAC5B,KAAC,IAAI,IAAC,IAAI,EAAE,EAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YACzC,KAAC,QAAQ,IAAC,KAAK,EAAC,YAAY,WAAG,WAC1B,E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E,MAAM,EAAE,EAAE;IAC7C,qBAAqB,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IACvD,eAAe,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;IAC9C,sBAAsB,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;CACzD,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\n\nimport {\n DateInput,\n FieldGroup,\n Grid,\n Input,\n Select,\n Option,\n TextArea\n} from '@pega/cosmos-react-core';\n\nexport default {\n title: 'Core/FieldGroup',\n component: FieldGroup\n} as Meta;\n\ninterface FieldGroupStoryProps {\n firstGroupName: string;\n firstGroupCollapsible: boolean;\n secondGroupName: string;\n secondGroupCollapsible: boolean;\n}\n\nexport const FieldGroupDemo: Story<FieldGroupStoryProps> = (args: FieldGroupStoryProps) => {\n return (\n <Grid container={{ rowGap: 1 }}>\n <FieldGroup name={args.firstGroupName} collapsible={args.firstGroupCollapsible}>\n <Grid container={{ gap: 1, cols: 'repeat(auto-fit, minmax(min(40ch, 100%), 1fr))' }}>\n <Input type='text' label='Text 1' />\n <Select label='Select 1'>\n <Option value='A'>Option 1A</Option>\n <Option value='B'>Option 1B</Option>\n </Select>\n <DateInput label='Date 1' />\n <Grid item={{ colStart: '1', colEnd: '-1' }}>\n <TextArea label='TextArea 1' />\n </Grid>\n <Input required type='text' label='Required 1' />\n <Input disabled type='text' label='Disabled 1' />\n </Grid>\n </FieldGroup>\n <FieldGroup name={args.secondGroupName} collapsible={args.secondGroupCollapsible}>\n <Grid container={{ gap: 1, cols: 'repeat(auto-fill, minmax(min(40ch, 100%), 1fr))' }}>\n <Input type='text' label='Text 2' />\n <Select label='Select 2'>\n <Option value='A'>Option 2A</Option>\n <Option value='B'>Option 2B</Option>\n </Select>\n <DateInput label='Date 2' />\n <Grid item={{ colStart: '1', colEnd: '-1' }}>\n <TextArea label='TextArea 2' />\n </Grid>\n <Input required type='text' label='Required 2' />\n <Input disabled type='text' label='Disabled 2' />\n </Grid>\n </FieldGroup>\n </Grid>\n );\n};\n\nFieldGroupDemo.args = {\n firstGroupName: 'Field group 1',\n firstGroupCollapsible: true,\n secondGroupName: 'Field group 2',\n secondGroupCollapsible: true\n};\n\nFieldGroupDemo.argTypes = {\n firstGroupName: { control: { type: 'text' } },\n firstGroupCollapsible: { control: { type: 'boolean' } },\n secondGroupName: { control: { type: 'text' } },\n secondGroupCollapsible: { control: { type: 'boolean' } }\n};\n"]}
1
+ {"version":3,"file":"FieldGroup.stories.js","sourceRoot":"","sources":["../../../src/core/FieldGroup/FieldGroup.stories.tsx"],"names":[],"mappings":";AAEA,OAAO,EACL,SAAS,EACT,UAAU,EACV,IAAI,EACJ,KAAK,EACL,MAAM,EACN,MAAM,EACN,QAAQ,EACT,MAAM,yBAAyB,CAAC;AAEjC,eAAe;IACb,KAAK,EAAE,iBAAiB;IACxB,SAAS,EAAE,UAAU;CACd,CAAC;AAWV,MAAM,CAAC,MAAM,cAAc,GAAgC,CAAC,IAA0B,EAAE,EAAE;IACxF,OAAO,CACL,MAAC,IAAI,IAAC,SAAS,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE,aAC5B,KAAC,UAAU,IACT,IAAI,EAAE,IAAI,CAAC,cAAc,EACzB,WAAW,EAAE,IAAI,CAAC,qBAAqB,EACvC,WAAW,EAAE,IAAI,CAAC,qBAAqB,YAEvC,MAAC,IAAI,IAAC,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,gDAAgD,EAAE,aACjF,KAAC,KAAK,IAAC,IAAI,EAAC,MAAM,EAAC,KAAK,EAAC,QAAQ,GAAG,EACpC,MAAC,MAAM,IAAC,KAAK,EAAC,UAAU,aACtB,KAAC,MAAM,IAAC,KAAK,EAAC,GAAG,0BAAmB,EACpC,KAAC,MAAM,IAAC,KAAK,EAAC,GAAG,0BAAmB,IAC7B,EACT,KAAC,SAAS,IA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AAC,IAAI,GAAG;IACpB,cAAc,EAAE,eAAe;IAC/B,qBAAqB,EAAE,IAAI;IAC3B,qBAAqB,EAAE,EAAE;IACzB,eAAe,EAAE,eAAe;IAChC,sBAAsB,EAAE,IAAI;IAC5B,sBAAsB,EAAE,EAAE;CAC3B,CAAC;AAEF,cAAc,CAAC,QAAQ,GAAG;IACxB,cAAc,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;IAC7C,qBAAqB,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IACvD,qBAAqB,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;IACpD,eAAe,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;IAC9C,sBAAsB,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IACxD,sBAAsB,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;CACtD,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\n\nimport {\n DateInput,\n FieldGroup,\n Grid,\n Input,\n Select,\n Option,\n TextArea\n} from '@pega/cosmos-react-core';\n\nexport default {\n title: 'Core/FieldGroup',\n component: FieldGroup\n} as Meta;\n\ninterface FieldGroupStoryProps {\n firstGroupName?: string;\n firstGroupCollapsible?: boolean;\n firstGroupDescription?: string;\n secondGroupName?: string;\n secondGroupCollapsible?: boolean;\n secondGroupDescription?: string;\n}\n\nexport const FieldGroupDemo: Story<FieldGroupStoryProps> = (args: FieldGroupStoryProps) => {\n return (\n <Grid container={{ rowGap: 1 }}>\n <FieldGroup\n name={args.firstGroupName}\n description={args.firstGroupDescription}\n collapsible={args.firstGroupCollapsible}\n >\n <Grid container={{ gap: 1, cols: 'repeat(auto-fit, minmax(min(40ch, 100%), 1fr))' }}>\n <Input type='text' label='Text 1' />\n <Select label='Select 1'>\n <Option value='A'>Option 1A</Option>\n <Option value='B'>Option 1B</Option>\n </Select>\n <DateInput label='Date 1' />\n <Grid item={{ colStart: '1', colEnd: '-1' }}>\n <TextArea label='TextArea 1' />\n </Grid>\n <Input required type='text' label='Required 1' />\n <Input disabled type='text' label='Disabled 1' />\n </Grid>\n </FieldGroup>\n <FieldGroup\n name={args.secondGroupName}\n description={args.secondGroupDescription}\n collapsible={args.secondGroupCollapsible}\n >\n <Grid container={{ gap: 1, cols: 'repeat(auto-fill, minmax(min(40ch, 100%), 1fr))' }}>\n <Input type='text' label='Text 2' />\n <Select label='Select 2'>\n <Option value='A'>Option 2A</Option>\n <Option value='B'>Option 2B</Option>\n </Select>\n <DateInput label='Date 2' />\n <Grid item={{ colStart: '1', colEnd: '-1' }}>\n <TextArea label='TextArea 2' />\n </Grid>\n <Input required type='text' label='Required 2' />\n <Input disabled type='text' label='Disabled 2' />\n </Grid>\n </FieldGroup>\n </Grid>\n );\n};\n\nFieldGroupDemo.args = {\n firstGroupName: 'Field group 1',\n firstGroupCollapsible: true,\n firstGroupDescription: '',\n secondGroupName: 'Field group 2',\n secondGroupCollapsible: true,\n secondGroupDescription: ''\n};\n\nFieldGroupDemo.argTypes = {\n firstGroupName: { control: { type: 'text' } },\n firstGroupCollapsible: { control: { type: 'boolean' } },\n firstGroupDescription: { control: { type: 'text' } },\n secondGroupName: { control: { type: 'text' } },\n secondGroupCollapsible: { control: { type: 'boolean' } },\n secondGroupDescription: { control: { type: 'text' } }\n};\n"]}
@@ -17,5 +17,9 @@ export interface GroupMeta {
17
17
  export declare const fieldGroupReducer: (groupMeta: GroupMeta, FieldRenderer: (props: FieldMeta) => JSX.Element | null) => (items: FieldGroupListItemProps[], payload: FieldGroupReducerPayload) => FieldGroupListItemProps[];
18
18
  export declare const DemoFieldRenderer: ({ label, type }: FieldMeta) => JSX.Element | null;
19
19
  export declare const demoGroupMeta: GroupMeta;
20
+ export declare const ExpensesFieldRenderer: ({ label, type }: FieldMeta) => JSX.Element | null;
21
+ export declare const expensesGroupMeta: GroupMeta;
22
+ export declare const InsuranceFieldRenderer: ({ label, type }: FieldMeta) => JSX.Element | null;
23
+ export declare const insuranceGroupMeta: GroupMeta;
20
24
  export {};
21
25
  //# sourceMappingURL=FieldGroupList.mocks.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FieldGroupList.mocks.d.ts","sourceRoot":"","sources":["../../../src/core/FieldGroup/FieldGroupList.mocks.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAa,uBAAuB,EAAS,MAAM,yBAAyB,CAAC;AAEpF,aAAK,wBAAwB,GACzB;IACE,MAAM,EAAE,KAAK,CAAC;CACf,GACD;IACE,MAAM,EAAE,QAAQ,CAAC;IACjB,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEN,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,QAAQ,GAAG,UAAU,CAAC;CACxD;AAED,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,SAAS,EAAE,CAAC;CACrB;AAED,eAAO,MAAM,iBAAiB,cAChB,SAAS,yBAAyB,SAAS,KAAK,WAAW,GAAG,IAAI,aAErE,uBAAuB,EAAE,WACvB,wBAAwB,KAChC,uBAAuB,EAoBzB,CAAC;AAEJ,eAAO,MAAM,iBAAiB,oBAAqB,SAAS,uBAM3D,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,SAQ3B,CAAC"}
1
+ {"version":3,"file":"FieldGroupList.mocks.d.ts","sourceRoot":"","sources":["../../../src/core/FieldGroup/FieldGroupList.mocks.tsx"],"names":[],"mappings":";AAAA,OAAO,EAGL,uBAAuB,EAMxB,MAAM,yBAAyB,CAAC;AAEjC,aAAK,wBAAwB,GACzB;IACE,MAAM,EAAE,KAAK,CAAC;CACf,GACD;IACE,MAAM,EAAE,QAAQ,CAAC;IACjB,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEN,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,QAAQ,GAAG,UAAU,CAAC;CACxD;AAED,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,SAAS,EAAE,CAAC;CACrB;AAED,eAAO,MAAM,iBAAiB,cAChB,SAAS,yBAAyB,SAAS,KAAK,WAAW,GAAG,IAAI,aAErE,uBAAuB,EAAE,WACvB,wBAAwB,KAChC,uBAAuB,EAoBzB,CAAC;AAEJ,eAAO,MAAM,iBAAiB,oBAAqB,SAAS,uBAM3D,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,SAQ3B,CAAC;AAEF,eAAO,MAAM,qBAAqB,oBAAqB,SAAS,uBAmC/D,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,SAQ/B,CAAC;AAEF,eAAO,MAAM,sBAAsB,oBAAqB,SAAS,uBAoBhE,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,SAOhC,CAAC"}
@@ -1,6 +1,6 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { createElement as _createElement } from "react";
3
- import { createUID, Input } from '@pega/cosmos-react-core';
3
+ import { createUID, DateInput, FileInput, Input, Option, Select, TextArea } from '@pega/cosmos-react-core';
4
4
  export const fieldGroupReducer = (groupMeta, FieldRenderer) => (items, payload) => {
5
5
  switch (payload.action) {
6
6
  case 'add':
@@ -22,7 +22,7 @@ export const fieldGroupReducer = (groupMeta, FieldRenderer) => (items, payload)
22
22
  };
23
23
  export const DemoFieldRenderer = ({ label, type }) => {
24
24
  if (type === 'text') {
25
- return _jsx(Input, { label: label }, void 0);
25
+ return _jsx(Input, { label: label }, label);
26
26
  }
27
27
  return null;
28
28
  };
@@ -35,4 +35,48 @@ export const demoGroupMeta = {
35
35
  }
36
36
  ]
37
37
  };
38
+ export const ExpensesFieldRenderer = ({ label, type }) => {
39
+ if (type === 'text') {
40
+ return _jsx(Input, { label: label });
41
+ }
42
+ if (type === 'select') {
43
+ return (_jsxs(Select, { label: label, children: [_jsx(Option, { children: "Select" }), _jsx(Option, { children: "Advertising" }), _jsx(Option, { children: "Car and truck expenses" }), _jsx(Option, { children: "Commissions and fees" }), _jsx(Option, { children: "Contract labor" }), _jsx(Option, { children: "Legal and professional services" }), _jsx(Option, { children: "Office expense" }), _jsx(Option, { children: "Rent or lease" }), _jsx(Option, { children: "Vehicles, machinery, and equipment" }), _jsx(Option, { children: "Repairs and maintenance" }), _jsx(Option, { children: "Travel and meals" }), _jsx(Option, { children: "Deductible meals" }), _jsx(Option, { children: "Utilities" }), _jsx(Option, { children: "Other" })] }));
44
+ }
45
+ if (type === 'file') {
46
+ return _jsx(FileInput, { label: label, multiple: true });
47
+ }
48
+ if (type === 'textarea') {
49
+ return _jsx(TextArea, { label: label });
50
+ }
51
+ if (type === 'date') {
52
+ return _jsx(DateInput, { label: label });
53
+ }
54
+ return null;
55
+ };
56
+ export const expensesGroupMeta = {
57
+ label: 'Expense',
58
+ fields: [
59
+ { type: 'select', label: 'Type of expense' },
60
+ { type: 'date', label: 'Date of expense' },
61
+ { type: 'file', label: 'Receipts' },
62
+ { type: 'textarea', label: 'Notes' }
63
+ ]
64
+ };
65
+ export const InsuranceFieldRenderer = ({ label, type }) => {
66
+ if (type === 'text') {
67
+ return _jsx(Input, { label: label });
68
+ }
69
+ if (type === 'select') {
70
+ return (_jsxs(Select, { label: label, children: [_jsx(Option, { children: "Select" }), _jsx(Option, { children: "Mother" }), _jsx(Option, { children: "Father" }), _jsx(Option, { children: "Guardian" }), _jsx(Option, { children: "Child" }), _jsx(Option, { children: "Spouse" }), _jsx(Option, { children: "Sibling" }), _jsx(Option, { children: "Other" })] }));
71
+ }
72
+ return null;
73
+ };
74
+ export const insuranceGroupMeta = {
75
+ label: 'Entry',
76
+ fields: [
77
+ { type: 'text', label: 'First name' },
78
+ { type: 'text', label: 'Last name' },
79
+ { type: 'select', label: 'Relationship' }
80
+ ]
81
+ };
38
82
  //# sourceMappingURL=FieldGroupList.mocks.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"FieldGroupList.mocks.js","sourceRoot":"","sources":["../../../src/core/FieldGroup/FieldGroupList.mocks.tsx"],"names":[],"mappings":";;AAAA,OAAO,EAAE,SAAS,EAA2B,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAqBpF,MAAM,CAAC,MAAM,iBAAiB,GAC5B,CAAC,SAAoB,EAAE,aAAuD,EAAE,EAAE,CAClF,CACE,KAAgC,EAChC,OAAiC,EACN,EAAE;IAC7B,QAAQ,OAAO,CAAC,MAAM,EAAE;QACtB,KAAK,KAAK;YACR,OAAO;gBACL,GAAG,KAAK;gBACR;oBACE,IAAI,EAAE,GAAG,SAAS,CAAC,KAAK,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE;oBAC9C,EAAE,EAAE,SAAS,EAAE;oBACf,QAAQ,EAAE,SAAS,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,eAAC,aAAa,OAAK,KAAK,EAAE,GAAG,EAAE,KAAK,CAAC,KAAK,GAAI,CAAC;iBACxF;aACF,CAAC;QAEJ,KAAK,QAAQ;YACX,OAAO,KAAK;iBACT,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,KAAK,OAAO,CAAC,EAAE,CAAC;iBACxC,GAAG,CAAC,CAAC,KAAK,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,KAAK,EAAE,IAAI,EAAE,GAAG,SAAS,CAAC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;QAE5E;YACE,OAAO,KAAK,CAAC;KAChB;AACH,CAAC,CAAC;AAEJ,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,EAAE,KAAK,EAAE,IAAI,EAAa,EAAE,EAAE;IAC9D,IAAI,IAAI,KAAK,MAAM,EAAE;QACnB,OAAO,KAAC,KAAK,IAAC,KAAK,EAAE,KAAK,WAAI,CAAC;KAChC;IAED,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAc;IACtC,KAAK,EAAE,WAAW;IAClB,MAAM,EAAE;QACN;YACE,IAAI,EAAE,MAAM;YACZ,KAAK,EAAE,gBAAgB;SACxB;KACF;CACF,CAAC","sourcesContent":["import { createUID, FieldGroupListItemProps, Input } from '@pega/cosmos-react-core';\n\ntype FieldGroupReducerPayload =\n | {\n action: 'add';\n }\n | {\n action: 'delete';\n id: string;\n };\n\nexport interface FieldMeta {\n label: string;\n type: 'text' | 'date' | 'file' | 'select' | 'textarea';\n}\n\nexport interface GroupMeta {\n label: string;\n fields: FieldMeta[];\n}\n\nexport const fieldGroupReducer =\n (groupMeta: GroupMeta, FieldRenderer: (props: FieldMeta) => JSX.Element | null) =>\n (\n items: FieldGroupListItemProps[],\n payload: FieldGroupReducerPayload\n ): FieldGroupListItemProps[] => {\n switch (payload.action) {\n case 'add':\n return [\n ...items,\n {\n name: `${groupMeta.label} ${items.length + 1}`,\n id: createUID(),\n children: groupMeta.fields.map(props => <FieldRenderer {...props} key={props.label} />)\n }\n ];\n\n case 'delete':\n return items\n .filter(group => group.id !== payload.id)\n .map((group, i) => ({ ...group, name: `${groupMeta.label} ${i + 1}` }));\n\n default:\n return items;\n }\n };\n\nexport const DemoFieldRenderer = ({ label, type }: FieldMeta) => {\n if (type === 'text') {\n return <Input label={label} />;\n }\n\n return null;\n};\n\nexport const demoGroupMeta: GroupMeta = {\n label: 'Applicant',\n fields: [\n {\n type: 'text',\n label: 'Applicant name'\n }\n ]\n};\n"]}
1
+ {"version":3,"file":"FieldGroupList.mocks.js","sourceRoot":"","sources":["../../../src/core/FieldGroup/FieldGroupList.mocks.tsx"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C1C,KAAK,EAAE,SAAS;IAChB,MAAM,EAAE;QACN,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,iBAAiB,EAAE;QAC5C,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,iBAAiB,EAAE;QAC1C,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE;QACnC,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,OAAO,EAAE;KACrC;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,EAAE,KAAK,EAAE,IAAI,EAAa,EAAE,EAAE;IACnE,IAAI,IAAI,KAAK,MAAM,EAAE;QACnB,OAAO,KAAC,KAAK,IAAC,KAAK,EAAE,KAAK,GAAI,CAAC;KAChC;IACD,IAAI,IAAI,KAAK,QAAQ,EAAE;QACrB,OAAO,CACL,MAAC,MAAM,IAAC,KAAK,EAAE,KAAK,aAClB,KAAC,MAAM,yBAAgB,EACvB,KAAC,MAAM,yBAAgB,EACvB,KAAC,MAAM,yBAAgB,EACvB,KAAC,MAAM,2BAAkB,EACzB,KAAC,MAAM,wBAAe,EACtB,KAAC,MAAM,yBAAgB,EACvB,KAAC,MAAM,0BAAiB,EACxB,KAAC,MAAM,wBAAe,IACf,CACV,CAAC;KACH;IAED,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAc;IAC3C,KAAK,EAAE,OAAO;IACd,MAAM,EAAE;QACN,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,YAAY,EAAE;QACrC,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,WAAW,EAAE;QACpC,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,cAAc,EAAE;KAC1C;CACF,CAAC","sourcesContent":["import {\n createUID,\n DateInput,\n FieldGroupListItemProps,\n FileInput,\n Input,\n Option,\n Select,\n TextArea\n} from '@pega/cosmos-react-core';\n\ntype FieldGroupReducerPayload =\n | {\n action: 'add';\n }\n | {\n action: 'delete';\n id: string;\n };\n\nexport interface FieldMeta {\n label: string;\n type: 'text' | 'date' | 'file' | 'select' | 'textarea';\n}\n\nexport interface GroupMeta {\n label: string;\n fields: FieldMeta[];\n}\n\nexport const fieldGroupReducer =\n (groupMeta: GroupMeta, FieldRenderer: (props: FieldMeta) => JSX.Element | null) =>\n (\n items: FieldGroupListItemProps[],\n payload: FieldGroupReducerPayload\n ): FieldGroupListItemProps[] => {\n switch (payload.action) {\n case 'add':\n return [\n ...items,\n {\n name: `${groupMeta.label} ${items.length + 1}`,\n id: createUID(),\n children: groupMeta.fields.map(props => <FieldRenderer {...props} key={props.label} />)\n }\n ];\n\n case 'delete':\n return items\n .filter(group => group.id !== payload.id)\n .map((group, i) => ({ ...group, name: `${groupMeta.label} ${i + 1}` }));\n\n default:\n return items;\n }\n };\n\nexport const DemoFieldRenderer = ({ label, type }: FieldMeta) => {\n if (type === 'text') {\n return <Input label={label} key={label} />;\n }\n\n return null;\n};\n\nexport const demoGroupMeta: GroupMeta = {\n label: 'Applicant',\n fields: [\n {\n type: 'text',\n label: 'Applicant name'\n }\n ]\n};\n\nexport const ExpensesFieldRenderer = ({ label, type }: FieldMeta) => {\n if (type === 'text') {\n return <Input label={label} />;\n }\n if (type === 'select') {\n return (\n <Select label={label}>\n <Option>Select</Option>\n <Option>Advertising</Option>\n <Option>Car and truck expenses</Option>\n <Option>Commissions and fees</Option>\n <Option>Contract labor</Option>\n <Option>Legal and professional services</Option>\n <Option>Office expense</Option>\n <Option>Rent or lease</Option>\n <Option>Vehicles, machinery, and equipment</Option>\n <Option>Repairs and maintenance</Option>\n <Option>Travel and meals</Option>\n <Option>Deductible meals</Option>\n <Option>Utilities</Option>\n <Option>Other</Option>\n </Select>\n );\n }\n if (type === 'file') {\n return <FileInput label={label} multiple />;\n }\n if (type === 'textarea') {\n return <TextArea label={label} />;\n }\n if (type === 'date') {\n return <DateInput label={label} />;\n }\n\n return null;\n};\n\nexport const expensesGroupMeta: GroupMeta = {\n label: 'Expense',\n fields: [\n { type: 'select', label: 'Type of expense' },\n { type: 'date', label: 'Date of expense' },\n { type: 'file', label: 'Receipts' },\n { type: 'textarea', label: 'Notes' }\n ]\n};\n\nexport const InsuranceFieldRenderer = ({ label, type }: FieldMeta) => {\n if (type === 'text') {\n return <Input label={label} />;\n }\n if (type === 'select') {\n return (\n <Select label={label}>\n <Option>Select</Option>\n <Option>Mother</Option>\n <Option>Father</Option>\n <Option>Guardian</Option>\n <Option>Child</Option>\n <Option>Spouse</Option>\n <Option>Sibling</Option>\n <Option>Other</Option>\n </Select>\n );\n }\n\n return null;\n};\n\nexport const insuranceGroupMeta: GroupMeta = {\n label: 'Entry',\n fields: [\n { type: 'text', label: 'First name' },\n { type: 'text', label: 'Last name' },\n { type: 'select', label: 'Relationship' }\n ]\n};\n"]}
@@ -1,10 +1,11 @@
1
- /// <reference types="react" />
2
- declare const _default: {
3
- title: string;
4
- component: import("react").FunctionComponent<import("@pega/cosmos-react-core").FieldGroupListProps & 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 ExpensesDemo: () => JSX.Element;
8
- export declare const InsuranceDemo: () => JSX.Element;
9
- export declare const FieldGroupListDemo: () => JSX.Element;
4
+ interface FieldGroupListDemoProps {
5
+ allowAdd?: boolean;
6
+ allowDelete?: boolean;
7
+ }
8
+ export declare const ExpensesDemo: Story<FieldGroupListDemoProps>;
9
+ export declare const InsuranceDemo: Story<FieldGroupListDemoProps>;
10
+ export declare const FieldGroupListDemo: Story<FieldGroupListDemoProps>;
10
11
  //# sourceMappingURL=FieldGroupList.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FieldGroupList.stories.d.ts","sourceRoot":"","sources":["../../../src/core/FieldGroup/FieldGroupList.stories.tsx"],"names":[],"mappings":";;;;;AAyBA,wBAGE;AAiDF,eAAO,MAAM,YAAY,mBAiDxB,CAAC;AAiCF,eAAO,MAAM,aAAa,mBAkDzB,CAAC;AAEF,eAAO,MAAM,kBAAkB,mBAwB9B,CAAC"}
1
+ {"version":3,"file":"FieldGroupList.stories.d.ts","sourceRoot":"","sources":["../../../src/core/FieldGroup/FieldGroupList.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;;AAc/C,wBAOU;AAEV,UAAU,uBAAuB;IAC/B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,uBAAuB,CA8DvD,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,uBAAuB,CA+DxD,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,uBAAuB,CAuC7D,CAAC"}
@@ -1,40 +1,17 @@
1
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
1
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { useReducer } from 'react';
3
3
  import { action } from '@storybook/addon-actions';
4
- import { Button, createUID, DateInput, FieldGroupList, FileInput, Form, Input, Select, Option, Text, TextArea } from '@pega/cosmos-react-core';
5
- import { DemoFieldRenderer, demoGroupMeta, fieldGroupReducer } from './FieldGroupList.mocks';
4
+ import { Button, createUID, FieldGroupList, Form, Text, Flex } from '@pega/cosmos-react-core';
5
+ import { DemoFieldRenderer, demoGroupMeta, ExpensesFieldRenderer, expensesGroupMeta, fieldGroupReducer, InsuranceFieldRenderer, insuranceGroupMeta } from './FieldGroupList.mocks';
6
6
  export default {
7
7
  title: 'Core/FieldGroupList',
8
- component: FieldGroupList
9
- };
10
- const ExpensesFieldRenderer = ({ label, type }) => {
11
- if (type === 'text') {
12
- return _jsx(Input, { label: label }, void 0);
13
- }
14
- if (type === 'select') {
15
- return (_jsxs(Select, { label: label, children: [_jsx(Option, { children: "Select" }, void 0), _jsx(Option, { children: "Advertising" }, void 0), _jsx(Option, { children: "Car and truck expenses" }, void 0), _jsx(Option, { children: "Commissions and fees" }, void 0), _jsx(Option, { children: "Contract labor" }, void 0), _jsx(Option, { children: "Legal and professional services" }, void 0), _jsx(Option, { children: "Office expense" }, void 0), _jsx(Option, { children: "Rent or lease" }, void 0), _jsx(Option, { children: "Vehicles, machinery, and equipment" }, void 0), _jsx(Option, { children: "Repairs and maintenance" }, void 0), _jsx(Option, { children: "Travel and meals" }, void 0), _jsx(Option, { children: "Deductible meals" }, void 0), _jsx(Option, { children: "Utilities" }, void 0), _jsx(Option, { children: "Other" }, void 0)] }, void 0));
16
- }
17
- if (type === 'file') {
18
- return _jsx(FileInput, { label: label, multiple: true }, void 0);
19
- }
20
- if (type === 'textarea') {
21
- return _jsx(TextArea, { label: label }, void 0);
22
- }
23
- if (type === 'date') {
24
- return _jsx(DateInput, { label: label }, void 0);
8
+ component: FieldGroupList,
9
+ args: {
10
+ allowAdd: true,
11
+ allowDelete: true
25
12
  }
26
- return null;
27
13
  };
28
- const expensesGroupMeta = {
29
- label: 'Expense',
30
- fields: [
31
- { type: 'select', label: 'Type of expense' },
32
- { type: 'date', label: 'Date of expense' },
33
- { type: 'file', label: 'Receipts' },
34
- { type: 'textarea', label: 'Notes' }
35
- ]
36
- };
37
- export const ExpensesDemo = () => {
14
+ export const ExpensesDemo = (args) => {
38
15
  const [state, dispatch] = useReducer(fieldGroupReducer(expensesGroupMeta, ExpensesFieldRenderer), undefined, () => [
39
16
  {
40
17
  name: `${expensesGroupMeta.label} 1`,
@@ -44,33 +21,25 @@ export const ExpensesDemo = () => {
44
21
  ]);
45
22
  return (_jsxs(Form, { actions: _jsxs(_Fragment, { children: [_jsx(Button, { name: 'Cancel', variant: 'secondary', onClick: (e) => {
46
23
  action('Click')(`${e.currentTarget.name}:${e.type}`);
47
- }, children: "Cancel" }, void 0), _jsx(Button, { name: 'Submit', type: 'submit', variant: 'primary', children: "Submit" }, void 0)] }, void 0), onSubmit: (e) => {
24
+ }, children: "Cancel" }), _jsx(Button, { name: 'Submit', type: 'submit', variant: 'primary', children: "Submit" })] }), onSubmit: (e) => {
48
25
  e.preventDefault();
49
26
  action('Submit')(`Form:${e.type}`);
50
- }, style: { margin: 'auto', maxWidth: '37.5rem' }, children: [_jsx(Text, { variant: 'h2', children: "Expense report" }, void 0), _jsx(FieldGroupList, { items: state, onAdd: () => {
51
- dispatch({ action: 'add' });
52
- }, onDelete: id => {
53
- dispatch({ action: 'delete', id });
54
- } }, void 0)] }, void 0));
55
- };
56
- const InsuranceFieldRenderer = ({ label, type }) => {
57
- if (type === 'text') {
58
- return _jsx(Input, { label: label }, void 0);
59
- }
60
- if (type === 'select') {
61
- return (_jsxs(Select, { label: label, children: [_jsx(Option, { children: "Select" }, void 0), _jsx(Option, { children: "Mother" }, void 0), _jsx(Option, { children: "Father" }, void 0), _jsx(Option, { children: "Guardian" }, void 0), _jsx(Option, { children: "Child" }, void 0), _jsx(Option, { children: "Spouse" }, void 0), _jsx(Option, { children: "Sibling" }, void 0), _jsx(Option, { children: "Other" }, void 0)] }, void 0));
62
- }
63
- return null;
64
- };
65
- const insuranceGroupMeta = {
66
- label: 'Entry',
67
- fields: [
68
- { type: 'text', label: 'First name' },
69
- { type: 'text', label: 'Last name' },
70
- { type: 'select', label: 'Relationship' }
71
- ]
27
+ }, style: { margin: 'auto', maxWidth: '37.5rem' }, children: [_jsx(Text, { variant: 'h2', children: "Expense report" }), _jsx(FieldGroupList, { items: state.map(fields => {
28
+ return {
29
+ ...fields,
30
+ children: _jsx(Flex, { container: { direction: 'column', gap: 2 }, children: fields.children })
31
+ };
32
+ }), onAdd: args.allowAdd
33
+ ? () => {
34
+ dispatch({ action: 'add' });
35
+ }
36
+ : undefined, onDelete: args.allowDelete
37
+ ? id => {
38
+ dispatch({ action: 'delete', id });
39
+ }
40
+ : undefined })] }));
72
41
  };
73
- export const InsuranceDemo = () => {
42
+ export const InsuranceDemo = (args) => {
74
43
  const [state, dispatch] = useReducer(fieldGroupReducer(insuranceGroupMeta, InsuranceFieldRenderer), undefined, () => [
75
44
  {
76
45
  name: `${insuranceGroupMeta.label} 1`,
@@ -80,16 +49,25 @@ export const InsuranceDemo = () => {
80
49
  ]);
81
50
  return (_jsxs(Form, { actions: _jsxs(_Fragment, { children: [_jsx(Button, { name: 'Cancel', variant: 'secondary', onClick: (e) => {
82
51
  action('Click')(`${e.currentTarget.name}:${e.type}`);
83
- }, children: "Cancel" }, void 0), _jsx(Button, { name: 'Submit', type: 'submit', variant: 'primary', children: "Submit" }, void 0)] }, void 0), onSubmit: (e) => {
52
+ }, children: "Cancel" }), _jsx(Button, { name: 'Submit', type: 'submit', variant: 'primary', children: "Submit" })] }), onSubmit: (e) => {
84
53
  e.preventDefault();
85
54
  action('Submit')(`Form:${e.type}`);
86
- }, style: { margin: 'auto', maxWidth: '37.5rem' }, children: [_jsx(Text, { variant: 'h1', children: "Insurance step 1" }, void 0), _jsx(Text, { variant: 'h2', children: "Dependants" }, void 0), _jsx(FieldGroupList, { items: state, onAdd: () => {
87
- dispatch({ action: 'add' });
88
- }, onDelete: id => {
89
- dispatch({ action: 'delete', id });
90
- } }, void 0)] }, void 0));
55
+ }, style: { margin: 'auto', maxWidth: '37.5rem' }, children: [_jsx(Text, { variant: 'h1', children: "Insurance step 1" }), _jsx(Text, { variant: 'h2', children: "Dependants" }), _jsx(FieldGroupList, { items: state.map(fields => {
56
+ return {
57
+ ...fields,
58
+ children: _jsx(Flex, { container: { direction: 'column', gap: 2 }, children: fields.children })
59
+ };
60
+ }), onAdd: args.allowAdd
61
+ ? () => {
62
+ dispatch({ action: 'add' });
63
+ }
64
+ : undefined, onDelete: args.allowDelete
65
+ ? id => {
66
+ dispatch({ action: 'delete', id });
67
+ }
68
+ : undefined })] }));
91
69
  };
92
- export const FieldGroupListDemo = () => {
70
+ export const FieldGroupListDemo = (args) => {
93
71
  const [state, dispatch] = useReducer(fieldGroupReducer(demoGroupMeta, DemoFieldRenderer), undefined, () => [
94
72
  {
95
73
  name: `${demoGroupMeta.label} 1`,
@@ -97,10 +75,19 @@ export const FieldGroupListDemo = () => {
97
75
  children: demoGroupMeta.fields.map(DemoFieldRenderer)
98
76
  }
99
77
  ]);
100
- return (_jsx(FieldGroupList, { items: state, onAdd: () => {
101
- dispatch({ action: 'add' });
102
- }, onDelete: id => {
103
- dispatch({ action: 'delete', id });
104
- } }, void 0));
78
+ return (_jsx(FieldGroupList, { items: state.map(fields => {
79
+ return {
80
+ ...fields,
81
+ children: _jsx(Flex, { container: { direction: 'column', gap: 2 }, children: fields.children })
82
+ };
83
+ }), onAdd: args.allowAdd
84
+ ? () => {
85
+ dispatch({ action: 'add' });
86
+ }
87
+ : undefined, onDelete: args.allowDelete
88
+ ? id => {
89
+ dispatch({ action: 'delete', id });
90
+ }
91
+ : undefined }));
105
92
  };
106
93
  //# sourceMappingURL=FieldGroupList.stories.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"FieldGroupList.stories.js","sourceRoot":"","sources":["../../../src/core/FieldGroup/FieldGroupList.stories.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAyB,MAAM,OAAO,CAAC;AAC1D,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAElD,OAAO,EACL,MAAM,EACN,SAAS,EACT,SAAS,EACT,cAAc,EACd,SAAS,EACT,IAAI,EACJ,KAAK,EACL,MAAM,EACN,MAAM,EACN,IAAI,EACJ,QAAQ,EACT,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EACL,iBAAiB,EACjB,aAAa,EACb,iBAAiB,EAGlB,MAAM,wBAAwB,CAAC;AAEhC,eAAe;IACb,KAAK,EAAE,qBAAqB;IAC5B,SAAS,EAAE,cAAc;CAC1B,CAAC;AAEF,MAAM,qBAAqB,GAAG,CAAC,EAAE,KAA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kBAAkB,GAAG,GAAG,EAAE;IACrC,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,UAAU,CAClC,iBAAiB,CAAC,aAAa,EAAE,iBAAiB,CAAC,EACnD,SAAS,EACT,GAAG,EAAE,CAAC;QACJ;YACE,IAAI,EAAE,GAAG,aAAa,CAAC,KAAK,IAAI;YAChC,EAAE,EAAE,SAAS,EAAE;YACf,QAAQ,EAAE,aAAa,CAAC,MAAM,CAAC,GAAG,CAAC,iBAAiB,CAAC;SACtD;KACF,CACF,CAAC;IAEF,OAAO,CACL,KAAC,cAAc,IACb,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,GAAG,EAAE;YACV,QAAQ,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC;QAC9B,CAAC,EACD,QAAQ,EAAE,EAAE,CAAC,EAAE;YACb,QAAQ,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,CAAC;QACrC,CAAC,WACD,CACH,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { useReducer, MouseEvent, FormEvent } from 'react';\nimport { action } from '@storybook/addon-actions';\n\nimport {\n Button,\n createUID,\n DateInput,\n FieldGroupList,\n FileInput,\n Form,\n Input,\n Select,\n Option,\n Text,\n TextArea\n} from '@pega/cosmos-react-core';\n\nimport {\n DemoFieldRenderer,\n demoGroupMeta,\n fieldGroupReducer,\n FieldMeta,\n GroupMeta\n} from './FieldGroupList.mocks';\n\nexport default {\n title: 'Core/FieldGroupList',\n component: FieldGroupList\n};\n\nconst ExpensesFieldRenderer = ({ label, type }: FieldMeta) => {\n if (type === 'text') {\n return <Input label={label} />;\n }\n if (type === 'select') {\n return (\n <Select label={label}>\n <Option>Select</Option>\n <Option>Advertising</Option>\n <Option>Car and truck expenses</Option>\n <Option>Commissions and fees</Option>\n <Option>Contract labor</Option>\n <Option>Legal and professional services</Option>\n <Option>Office expense</Option>\n <Option>Rent or lease</Option>\n <Option>Vehicles, machinery, and equipment</Option>\n <Option>Repairs and maintenance</Option>\n <Option>Travel and meals</Option>\n <Option>Deductible meals</Option>\n <Option>Utilities</Option>\n <Option>Other</Option>\n </Select>\n );\n }\n if (type === 'file') {\n return <FileInput label={label} multiple />;\n }\n if (type === 'textarea') {\n return <TextArea label={label} />;\n }\n if (type === 'date') {\n return <DateInput label={label} />;\n }\n\n return null;\n};\n\nconst expensesGroupMeta: GroupMeta = {\n label: 'Expense',\n fields: [\n { type: 'select', label: 'Type of expense' },\n { type: 'date', label: 'Date of expense' },\n { type: 'file', label: 'Receipts' },\n { type: 'textarea', label: 'Notes' }\n ]\n};\n\nexport const ExpensesDemo = () => {\n const [state, dispatch] = useReducer(\n fieldGroupReducer(expensesGroupMeta, ExpensesFieldRenderer),\n undefined,\n () => [\n {\n name: `${expensesGroupMeta.label} 1`,\n id: createUID(),\n children: expensesGroupMeta.fields.map(ExpensesFieldRenderer)\n }\n ]\n );\n\n return (\n <Form\n actions={\n <>\n <Button\n name='Cancel'\n variant='secondary'\n onClick={(e: MouseEvent<HTMLButtonElement>) => {\n action('Click')(`${e.currentTarget.name}:${e.type}`);\n }}\n >\n Cancel\n </Button>\n <Button name='Submit' type='submit' variant='primary'>\n Submit\n </Button>\n </>\n }\n onSubmit={(e: FormEvent) => {\n e.preventDefault();\n action('Submit')(`Form:${e.type}`);\n }}\n style={{ margin: 'auto', maxWidth: '37.5rem' }}\n >\n <Text variant='h2'>Expense report</Text>\n <FieldGroupList\n items={state}\n onAdd={() => {\n dispatch({ action: 'add' });\n }}\n onDelete={id => {\n dispatch({ action: 'delete', id });\n }}\n />\n </Form>\n );\n};\n\nconst InsuranceFieldRenderer = ({ label, type }: FieldMeta) => {\n if (type === 'text') {\n return <Input label={label} />;\n }\n if (type === 'select') {\n return (\n <Select label={label}>\n <Option>Select</Option>\n <Option>Mother</Option>\n <Option>Father</Option>\n <Option>Guardian</Option>\n <Option>Child</Option>\n <Option>Spouse</Option>\n <Option>Sibling</Option>\n <Option>Other</Option>\n </Select>\n );\n }\n\n return null;\n};\n\nconst insuranceGroupMeta: GroupMeta = {\n label: 'Entry',\n fields: [\n { type: 'text', label: 'First name' },\n { type: 'text', label: 'Last name' },\n { type: 'select', label: 'Relationship' }\n ]\n};\n\nexport const InsuranceDemo = () => {\n const [state, dispatch] = useReducer(\n fieldGroupReducer(insuranceGroupMeta, InsuranceFieldRenderer),\n undefined,\n () => [\n {\n name: `${insuranceGroupMeta.label} 1`,\n id: createUID(),\n children: insuranceGroupMeta.fields.map(InsuranceFieldRenderer)\n }\n ]\n );\n\n return (\n <Form\n actions={\n <>\n <Button\n name='Cancel'\n variant='secondary'\n onClick={(e: MouseEvent<HTMLButtonElement>) => {\n action('Click')(`${e.currentTarget.name}:${e.type}`);\n }}\n >\n Cancel\n </Button>\n <Button name='Submit' type='submit' variant='primary'>\n Submit\n </Button>\n </>\n }\n onSubmit={(e: FormEvent) => {\n e.preventDefault();\n action('Submit')(`Form:${e.type}`);\n }}\n style={{ margin: 'auto', maxWidth: '37.5rem' }}\n >\n <Text variant='h1'>Insurance step 1</Text>\n <Text variant='h2'>Dependants</Text>\n <FieldGroupList\n items={state}\n onAdd={() => {\n dispatch({ action: 'add' });\n }}\n onDelete={id => {\n dispatch({ action: 'delete', id });\n }}\n />\n </Form>\n );\n};\n\nexport const FieldGroupListDemo = () => {\n const [state, dispatch] = useReducer(\n fieldGroupReducer(demoGroupMeta, DemoFieldRenderer),\n undefined,\n () => [\n {\n name: `${demoGroupMeta.label} 1`,\n id: createUID(),\n children: demoGroupMeta.fields.map(DemoFieldRenderer)\n }\n ]\n );\n\n return (\n <FieldGroupList\n items={state}\n onAdd={() => {\n dispatch({ action: 'add' });\n }}\n onDelete={id => {\n dispatch({ action: 'delete', id });\n }}\n />\n );\n};\n"]}
1
+ {"version":3,"file":"FieldGroupList.stories.js","sourceRoot":"","sources":["../../../src/core/FieldGroup/FieldGroupList.stories.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAyB,M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AQ,EAAE,EAAE,EAAE,CAAC,CAAC;YACrC,CAAC;YACH,CAAC,CAAC,SAAS,GAEf,CACH,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { useReducer, MouseEvent, FormEvent } from 'react';\nimport { action } from '@storybook/addon-actions';\nimport { Meta, Story } from '@storybook/react';\n\nimport { Button, createUID, FieldGroupList, Form, Text, Flex } from '@pega/cosmos-react-core';\n\nimport {\n DemoFieldRenderer,\n demoGroupMeta,\n ExpensesFieldRenderer,\n expensesGroupMeta,\n fieldGroupReducer,\n InsuranceFieldRenderer,\n insuranceGroupMeta\n} from './FieldGroupList.mocks';\n\nexport default {\n title: 'Core/FieldGroupList',\n component: FieldGroupList,\n args: {\n allowAdd: true,\n allowDelete: true\n }\n} as Meta;\n\ninterface FieldGroupListDemoProps {\n allowAdd?: boolean;\n allowDelete?: boolean;\n}\n\nexport const ExpensesDemo: Story<FieldGroupListDemoProps> = (args: FieldGroupListDemoProps) => {\n const [state, dispatch] = useReducer(\n fieldGroupReducer(expensesGroupMeta, ExpensesFieldRenderer),\n undefined,\n () => [\n {\n name: `${expensesGroupMeta.label} 1`,\n id: createUID(),\n children: expensesGroupMeta.fields.map(ExpensesFieldRenderer)\n }\n ]\n );\n\n return (\n <Form\n actions={\n <>\n <Button\n name='Cancel'\n variant='secondary'\n onClick={(e: MouseEvent<HTMLButtonElement>) => {\n action('Click')(`${e.currentTarget.name}:${e.type}`);\n }}\n >\n Cancel\n </Button>\n <Button name='Submit' type='submit' variant='primary'>\n Submit\n </Button>\n </>\n }\n onSubmit={(e: FormEvent) => {\n e.preventDefault();\n action('Submit')(`Form:${e.type}`);\n }}\n style={{ margin: 'auto', maxWidth: '37.5rem' }}\n >\n <Text variant='h2'>Expense report</Text>\n <FieldGroupList\n items={state.map(fields => {\n return {\n ...fields,\n children: <Flex container={{ direction: 'column', gap: 2 }}>{fields.children}</Flex>\n };\n })}\n onAdd={\n args.allowAdd\n ? () => {\n dispatch({ action: 'add' });\n }\n : undefined\n }\n onDelete={\n args.allowDelete\n ? id => {\n dispatch({ action: 'delete', id });\n }\n : undefined\n }\n />\n </Form>\n );\n};\n\nexport const InsuranceDemo: Story<FieldGroupListDemoProps> = (args: FieldGroupListDemoProps) => {\n const [state, dispatch] = useReducer(\n fieldGroupReducer(insuranceGroupMeta, InsuranceFieldRenderer),\n undefined,\n () => [\n {\n name: `${insuranceGroupMeta.label} 1`,\n id: createUID(),\n children: insuranceGroupMeta.fields.map(InsuranceFieldRenderer)\n }\n ]\n );\n\n return (\n <Form\n actions={\n <>\n <Button\n name='Cancel'\n variant='secondary'\n onClick={(e: MouseEvent<HTMLButtonElement>) => {\n action('Click')(`${e.currentTarget.name}:${e.type}`);\n }}\n >\n Cancel\n </Button>\n <Button name='Submit' type='submit' variant='primary'>\n Submit\n </Button>\n </>\n }\n onSubmit={(e: FormEvent) => {\n e.preventDefault();\n action('Submit')(`Form:${e.type}`);\n }}\n style={{ margin: 'auto', maxWidth: '37.5rem' }}\n >\n <Text variant='h1'>Insurance step 1</Text>\n <Text variant='h2'>Dependants</Text>\n <FieldGroupList\n items={state.map(fields => {\n return {\n ...fields,\n children: <Flex container={{ direction: 'column', gap: 2 }}>{fields.children}</Flex>\n };\n })}\n onAdd={\n args.allowAdd\n ? () => {\n dispatch({ action: 'add' });\n }\n : undefined\n }\n onDelete={\n args.allowDelete\n ? id => {\n dispatch({ action: 'delete', id });\n }\n : undefined\n }\n />\n </Form>\n );\n};\n\nexport const FieldGroupListDemo: Story<FieldGroupListDemoProps> = (\n args: FieldGroupListDemoProps\n) => {\n const [state, dispatch] = useReducer(\n fieldGroupReducer(demoGroupMeta, DemoFieldRenderer),\n undefined,\n () => [\n {\n name: `${demoGroupMeta.label} 1`,\n id: createUID(),\n children: demoGroupMeta.fields.map(DemoFieldRenderer)\n }\n ]\n );\n\n return (\n <FieldGroupList\n items={state.map(fields => {\n return {\n ...fields,\n children: <Flex container={{ direction: 'column', gap: 2 }}>{fields.children}</Flex>\n };\n })}\n onAdd={\n args.allowAdd\n ? () => {\n dispatch({ action: 'add' });\n }\n : undefined\n }\n onDelete={\n args.allowDelete\n ? id => {\n dispatch({ action: 'delete', id });\n }\n : undefined\n }\n />\n );\n};\n"]}
@@ -1,8 +1,8 @@
1
1
  import { Meta, Story } from '@storybook/react';
2
- import { FieldValueListProps } from '@pega/cosmos-react-core';
2
+ import { FieldValueListProps, OmitStrict } from '@pega/cosmos-react-core';
3
3
  declare const _default: Meta<import("@storybook/react").Args>;
4
4
  export default _default;
5
- interface FieldValueListStoryProps extends FieldValueListProps {
5
+ interface FieldValueListStoryProps extends OmitStrict<FieldValueListProps, 'fields'> {
6
6
  name: string;
7
7
  value: string;
8
8
  }
@@ -1 +1 @@
1
- {"version":3,"file":"FieldValueList.stories.d.ts","sourceRoot":"","sources":["../../../src/core/FieldValueList/FieldValueList.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAE/C,OAAO,EAAkB,mBAAmB,EAAsB,MAAM,yBAAyB,CAAC;;AAElG,wBAGU;AAEV,UAAU,wBAAyB,SAAQ,mBAAmB;IAC5D,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf;AAED,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,wBAAwB,CA4C9D,CAAC"}
1
+ {"version":3,"file":"FieldValueList.stories.d.ts","sourceRoot":"","sources":["../../../src/core/FieldValueList/FieldValueList.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAE/C,OAAO,EAEL,mBAAmB,EAInB,UAAU,EACX,MAAM,yBAAyB,CAAC;;AAEjC,wBAGU;AAEV,UAAU,wBAAyB,SAAQ,UAAU,CAAC,mBAAmB,EAAE,QAAQ,CAAC;IAClF,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf;AAED,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,wBAAwB,CA4C9D,CAAC"}
@@ -9,12 +9,12 @@ export const FieldValueListDemo = (args) => {
9
9
  {
10
10
  id: 'id',
11
11
  name: 'ID',
12
- value: (_jsx(Text, { variant: 'h1', as: 'span', children: "C-1234" }, void 0))
12
+ value: (_jsx(Text, { variant: 'h1', as: 'span', children: "C-1234" }))
13
13
  },
14
14
  {
15
15
  id: 'status',
16
16
  name: 'Status',
17
- value: _jsx(Status, { variant: 'pending', children: "pending" }, void 0)
17
+ value: _jsx(Status, { variant: 'pending', children: "pending" })
18
18
  },
19
19
  {
20
20
  id: 'dynamic',
@@ -24,7 +24,7 @@ export const FieldValueListDemo = (args) => {
24
24
  {
25
25
  id: 'link',
26
26
  name: 'Link',
27
- value: (_jsx(Link, { href: 'https://www.pega.com', target: '_blank', children: "C-ABC" }, void 0))
27
+ value: (_jsx(Link, { href: 'https://www.pega.com', target: '_blank', children: "C-ABC" }))
28
28
  },
29
29
  {
30
30
  id: 'created',
@@ -36,7 +36,7 @@ export const FieldValueListDemo = (args) => {
36
36
  name: 'No Value'
37
37
  }
38
38
  ];
39
- return _jsx(FieldValueList, { variant: args.variant, fields: data }, void 0);
39
+ return _jsx(FieldValueList, { variant: args.variant, fields: data });
40
40
  };
41
41
  FieldValueListDemo.args = {
42
42
  variant: 'inline',
@@ -1 +1 @@
1
- {"version":3,"file":"FieldValueList.stories.js","sourceRoot":"","sources":["../../../src/core/FieldValueList/FieldValueList.stories.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,cAAc,EAAuB,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAElG,eAAe;IACb,KAAK,EAAE,qBAAqB;IAC5B,SAAS,EAAE,cAAc;CAClB,CAAC;AAOV,MAAM,CAAC,MAAM,kBAAkB,GAAoC,CACjE,IAA8B,EAC9B,EAAE;IACF,MAAM,IAAI,GAAG;QACX;YACE,EAAE,EAAE,IAAI;YACR,IAA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ta, Story } from '@storybook/react';\n\nimport { FieldValueList, FieldValueListProps, Link, Status, Text } from '@pega/cosmos-react-core';\n\nexport default {\n title: 'Core/FieldValueList',\n component: FieldValueList\n} as Meta;\n\ninterface FieldValueListStoryProps extends FieldValueListProps {\n name: string;\n value: string;\n}\n\nexport const FieldValueListDemo: Story<FieldValueListStoryProps> = (\n args: FieldValueListStoryProps\n) => {\n const data = [\n {\n id: 'id',\n name: 'ID',\n value: (\n <Text variant='h1' as='span'>\n C-1234\n </Text>\n )\n },\n {\n id: 'status',\n name: 'Status',\n value: <Status variant='pending'>pending</Status>\n },\n {\n id: 'dynamic',\n name: args.name,\n value: args.value\n },\n {\n id: 'link',\n name: 'Link',\n value: (\n <Link href='https://www.pega.com' target='_blank'>\n C-ABC\n </Link>\n )\n },\n {\n id: 'created',\n name: 'Created',\n value: new Date().toLocaleDateString()\n },\n {\n id: 'no value',\n name: 'No Value'\n }\n ];\n\n return <FieldValueList variant={args.variant} fields={data} />;\n};\n\nFieldValueListDemo.args = {\n variant: 'inline',\n name: 'Name',\n value: 'Value'\n};\n\nFieldValueListDemo.argTypes = {\n variant: { options: ['inline', 'stacked'], control: { type: 'select' } },\n name: { control: { type: 'text' } },\n value: { control: { type: 'text' } }\n};\n"]}
1
+ {"version":3,"file":"FieldValueList.stories.js","sourceRoot":"","sources":["../../../src/core/FieldValueList/FieldValueList.stories.tsx"],"names":[],"mappings":";AAEA,OAAO,EACL,cAAc,EAEd,IAAI,EACJ,MAAM,EACN,IAAI,EAEL,MAAM,yBAAyB,CAAC;AAEjC,eAAe;IACb,KAAK,EAAE,qBAAqB;IAC5B,SAAS,EAAE,cAAc;CAClB,CAAC;AAOV,MAAM,CAAC,MAAM,kBAAkB,GAAoC,CACjE,IAA8B,EAC9B,EAAE;IACF,MAAM,IAAI,GAAG;QACX;YACE,EAAE,EAAE,IAAI;YACR,IAAI,EAAE,IAAI;YACV,KAAK,EAAE,CACL,KAAC,IAAI,IAAC,OAAO,EAAC,IAAI,EAAC,EAAE,EAAC,MAAM,uBAErB,CACR;SACF;QACD;YACE,EAAE,EAAE,QAAQ;YACZ,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,KAAC,MAAM,IAAC,OAAO,EAAC,SAAS,wBAAiB;SAClD;QACD;YACE,EAAE,EAAE,SAAS;YACb,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,KAAK,EAAE,IAAI,CAAC,KAAK;SAClB;QACD;YACE,EAAE,EAAE,MAAM;YACV,IAAI,EAAE,MAAM;YACZ,KAAK,EAAE,CACL,KAAC,IAAI,IAAC,IAAI,EAAC,sBAAsB,EAAC,MAAM,EAAC,QAAQ,sBAE1C,CACR;SACF;QACD;YACE,EAAE,EAAE,SAAS;YACb,IAAI,EAAE,SAAS;YACf,KAAK,EAAE,IAAI,IAAI,EAAE,CAAC,kBAAkB,EAAE;SACvC;QACD;YACE,EAAE,EAAE,UAAU;YACd,IAAI,EAAE,UAAU;SACjB;KACF,CAAC;IAEF,OAAO,KAAC,cAAc,IAAC,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,GAAI,CAAC;AACjE,CAAC,CAAC;AAEF,kBAAkB,CAAC,IAAI,GAAG;IACxB,OAAO,EAAE,QAAQ;IACjB,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;CACf,CAAC;AAEF,kBAAkB,CAAC,QAAQ,GAAG;IAC5B,OAAO,EAAE,EAAE,OAAO,EAAE,CAAC,QAAQ,EAAE,SAAS,CAAC,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;IACxE,IAAI,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;IACnC,KAAK,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;CACrC,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\n\nimport {\n FieldValueList,\n FieldValueListProps,\n Link,\n Status,\n Text,\n OmitStrict\n} from '@pega/cosmos-react-core';\n\nexport default {\n title: 'Core/FieldValueList',\n component: FieldValueList\n} as Meta;\n\ninterface FieldValueListStoryProps extends OmitStrict<FieldValueListProps, 'fields'> {\n name: string;\n value: string;\n}\n\nexport const FieldValueListDemo: Story<FieldValueListStoryProps> = (\n args: FieldValueListStoryProps\n) => {\n const data = [\n {\n id: 'id',\n name: 'ID',\n value: (\n <Text variant='h1' as='span'>\n C-1234\n </Text>\n )\n },\n {\n id: 'status',\n name: 'Status',\n value: <Status variant='pending'>pending</Status>\n },\n {\n id: 'dynamic',\n name: args.name,\n value: args.value\n },\n {\n id: 'link',\n name: 'Link',\n value: (\n <Link href='https://www.pega.com' target='_blank'>\n C-ABC\n </Link>\n )\n },\n {\n id: 'created',\n name: 'Created',\n value: new Date().toLocaleDateString()\n },\n {\n id: 'no value',\n name: 'No Value'\n }\n ];\n\n return <FieldValueList variant={args.variant} fields={data} />;\n};\n\nFieldValueListDemo.args = {\n variant: 'inline',\n name: 'Name',\n value: 'Value'\n};\n\nFieldValueListDemo.argTypes = {\n variant: { options: ['inline', 'stacked'], control: { type: 'select' } },\n name: { control: { type: 'text' } },\n value: { control: { type: 'text' } }\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"FileDisplay.stories.d.ts","sourceRoot":"","sources":["../../../src/core/File/FileDisplay.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAG/C,OAAO,EAEL,gBAAgB,EAQhB,mBAAmB,EAEpB,MAAM,yBAAyB,CAAC;;AAEjC,wBAaU;AAEV,UAAU,oBAAoB;IAC5B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,oBAAoB,CAmG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