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