@pega/cosmos-react-demos 4.0.0-dev.2.0 → 4.0.0-dev.21.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 (1465) hide show
  1. package/jsx/build/AppShell/AppShell.mocks.d.ts +28 -53
  2. package/jsx/build/AppShell/AppShell.mocks.d.ts.map +1 -1
  3. package/jsx/build/AppShell/AppShell.mocks.jsx +260 -376
  4. package/jsx/build/AppShell/AppShell.mocks.jsx.map +1 -1
  5. package/jsx/build/AppShell/AppShell.stories.d.ts +16 -13
  6. package/jsx/build/AppShell/AppShell.stories.d.ts.map +1 -1
  7. package/jsx/build/AppShell/AppShell.stories.jsx +72 -100
  8. package/jsx/build/AppShell/AppShell.stories.jsx.map +1 -1
  9. package/jsx/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts +3 -3
  10. package/jsx/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts.map +1 -1
  11. package/jsx/build/DynamicContentEditor/DynamicContentEditor.stories.jsx.map +1 -1
  12. package/jsx/build/ExpressionBuilder/ExpressionBuilder.mocks.d.ts +2 -0
  13. package/jsx/build/ExpressionBuilder/ExpressionBuilder.mocks.d.ts.map +1 -1
  14. package/jsx/build/ExpressionBuilder/ExpressionBuilder.mocks.js +23 -0
  15. package/jsx/build/ExpressionBuilder/ExpressionBuilder.mocks.js.map +1 -1
  16. package/jsx/build/ExpressionBuilder/ExpressionBuilder.stories.d.ts +8 -8
  17. package/jsx/build/ExpressionBuilder/ExpressionBuilder.stories.d.ts.map +1 -1
  18. package/jsx/build/ExpressionBuilder/ExpressionBuilder.stories.jsx +7 -7
  19. package/jsx/build/ExpressionBuilder/ExpressionBuilder.stories.jsx.map +1 -1
  20. package/jsx/build/FlowModeller/FlowModeller.mocks.d.ts.map +1 -1
  21. package/jsx/build/FlowModeller/FlowModeller.mocks.jsx +17 -21
  22. package/jsx/build/FlowModeller/FlowModeller.mocks.jsx.map +1 -1
  23. package/jsx/build/FlowModeller/FlowModeller.stories.d.ts +5 -5
  24. package/jsx/build/FlowModeller/FlowModeller.stories.d.ts.map +1 -1
  25. package/jsx/build/FlowModeller/FlowModeller.stories.jsx +125 -9
  26. package/jsx/build/FlowModeller/FlowModeller.stories.jsx.map +1 -1
  27. package/jsx/build/ItemLibrary/LibraryPicker.stories.d.ts +3 -3
  28. package/jsx/build/ItemLibrary/LibraryPicker.stories.d.ts.map +1 -1
  29. package/jsx/build/ItemLibrary/LibraryPicker.stories.jsx +1 -2
  30. package/jsx/build/ItemLibrary/LibraryPicker.stories.jsx.map +1 -1
  31. package/jsx/build/LifeCycle/LifeCycle.stories.d.ts +6 -6
  32. package/jsx/build/LifeCycle/LifeCycle.stories.d.ts.map +1 -1
  33. package/jsx/build/LifeCycle/LifeCycle.stories.jsx +43 -3
  34. package/jsx/build/LifeCycle/LifeCycle.stories.jsx.map +1 -1
  35. package/jsx/build/MobileBuildSummary/MobileBuildSummary.mocks.d.ts +1 -0
  36. package/jsx/build/MobileBuildSummary/MobileBuildSummary.mocks.d.ts.map +1 -1
  37. package/jsx/build/MobileBuildSummary/MobileBuildSummary.mocks.js +2 -1
  38. package/jsx/build/MobileBuildSummary/MobileBuildSummary.mocks.js.map +1 -1
  39. package/jsx/build/MobileBuildSummary/MobileBuildSummary.stories.d.ts +3 -3
  40. package/jsx/build/MobileBuildSummary/MobileBuildSummary.stories.d.ts.map +1 -1
  41. package/jsx/build/MobileBuildSummary/MobileBuildSummary.stories.jsx.map +1 -1
  42. package/jsx/build/ObjectSelect/ObjectSelect.mocks.d.ts +3 -2
  43. package/jsx/build/ObjectSelect/ObjectSelect.mocks.d.ts.map +1 -1
  44. package/jsx/build/ObjectSelect/ObjectSelect.mocks.jsx +6 -6
  45. package/jsx/build/ObjectSelect/ObjectSelect.mocks.jsx.map +1 -1
  46. package/jsx/build/ObjectSelect/ObjectSelect.stories.d.ts +6 -6
  47. package/jsx/build/ObjectSelect/ObjectSelect.stories.d.ts.map +1 -1
  48. package/jsx/build/ObjectSelect/ObjectSelect.stories.jsx.map +1 -1
  49. package/jsx/build/PageBanner/PageBanner.stories.d.ts +15 -0
  50. package/jsx/build/PageBanner/PageBanner.stories.d.ts.map +1 -0
  51. package/jsx/build/PageBanner/PageBanner.stories.jsx +41 -0
  52. package/jsx/build/PageBanner/PageBanner.stories.jsx.map +1 -0
  53. package/jsx/build/PageTemplates/GalleryPage.mocks.d.ts +0 -2
  54. package/jsx/build/PageTemplates/GalleryPage.mocks.d.ts.map +1 -1
  55. package/jsx/build/PageTemplates/GalleryPage.mocks.jsx +1 -50
  56. package/jsx/build/PageTemplates/GalleryPage.mocks.jsx.map +1 -1
  57. package/jsx/build/PageTemplates/GalleryPage.stories.d.ts +9 -5
  58. package/jsx/build/PageTemplates/GalleryPage.stories.d.ts.map +1 -1
  59. package/jsx/build/PageTemplates/GalleryPage.stories.jsx +32 -31
  60. package/jsx/build/PageTemplates/GalleryPage.stories.jsx.map +1 -1
  61. package/jsx/build/PageTemplates/PageTemplates.mocks.d.ts +0 -1
  62. package/jsx/build/PageTemplates/PageTemplates.mocks.d.ts.map +1 -1
  63. package/jsx/build/PageTemplates/PageTemplates.mocks.jsx +2 -156
  64. package/jsx/build/PageTemplates/PageTemplates.mocks.jsx.map +1 -1
  65. package/jsx/build/PageTemplates/PageTemplates.stories.d.ts +5 -5
  66. package/jsx/build/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
  67. package/jsx/build/PageTemplates/PageTemplates.stories.jsx +6 -7
  68. package/jsx/build/PageTemplates/PageTemplates.stories.jsx.map +1 -1
  69. package/jsx/build/PageTemplates/ShowcasePage.stories.d.ts +17 -0
  70. package/jsx/build/PageTemplates/ShowcasePage.stories.d.ts.map +1 -0
  71. package/jsx/build/PageTemplates/ShowcasePage.stories.jsx +42 -0
  72. package/jsx/build/PageTemplates/ShowcasePage.stories.jsx.map +1 -0
  73. package/jsx/build/Workbench/Workbench.stories.d.ts +4 -4
  74. package/jsx/build/Workbench/Workbench.stories.d.ts.map +1 -1
  75. package/jsx/build/Workbench/Workbench.stories.jsx.map +1 -1
  76. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts +5 -5
  77. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts.map +1 -1
  78. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.jsx.map +1 -1
  79. package/jsx/condition-builder/ConditionBuilder/props.mock.d.ts.map +1 -1
  80. package/jsx/condition-builder/ConditionBuilder/props.mock.js +4 -2
  81. package/jsx/condition-builder/ConditionBuilder/props.mock.js.map +1 -1
  82. package/jsx/condition-builder/ConditionInput/ConditionInput.stories.d.ts +4 -4
  83. package/jsx/condition-builder/ConditionInput/ConditionInput.stories.d.ts.map +1 -1
  84. package/jsx/condition-builder/ConditionInput/ConditionInput.stories.jsx.map +1 -1
  85. package/jsx/condition-builder/PromotedFilters/PromotedFilters.mocks.d.ts.map +1 -1
  86. package/jsx/condition-builder/PromotedFilters/PromotedFilters.mocks.js +53 -1
  87. package/jsx/condition-builder/PromotedFilters/PromotedFilters.mocks.js.map +1 -1
  88. package/jsx/condition-builder/PromotedFilters/PromotedFilters.stories.d.ts +3 -3
  89. package/jsx/condition-builder/PromotedFilters/PromotedFilters.stories.d.ts.map +1 -1
  90. package/jsx/condition-builder/PromotedFilters/PromotedFilters.stories.jsx.map +1 -1
  91. package/jsx/core/AIButton/AIButton.mocks.d.ts +22 -0
  92. package/jsx/core/AIButton/AIButton.mocks.d.ts.map +1 -0
  93. package/jsx/core/AIButton/AIButton.mocks.js +136 -0
  94. package/jsx/core/AIButton/AIButton.mocks.js.map +1 -0
  95. package/jsx/core/AIButton/AIButton.stories.d.ts +23 -0
  96. package/jsx/core/AIButton/AIButton.stories.d.ts.map +1 -0
  97. package/jsx/core/AIButton/AIButton.stories.jsx +306 -0
  98. package/jsx/core/AIButton/AIButton.stories.jsx.map +1 -0
  99. package/jsx/core/AdditionalInfo/AdditionalInfo.stories.d.ts +4 -4
  100. package/jsx/core/AdditionalInfo/AdditionalInfo.stories.d.ts.map +1 -1
  101. package/jsx/core/AdditionalInfo/AdditionalInfo.stories.jsx.map +1 -1
  102. package/jsx/core/AppShell/AppShell.mocks.d.ts.map +1 -1
  103. package/jsx/core/AppShell/AppShell.mocks.jsx +4 -19
  104. package/jsx/core/AppShell/AppShell.mocks.jsx.map +1 -1
  105. package/jsx/core/AppShell/AppShell.stories.d.ts +6 -7
  106. package/jsx/core/AppShell/AppShell.stories.d.ts.map +1 -1
  107. package/jsx/core/AppShell/AppShell.stories.jsx +58 -77
  108. package/jsx/core/AppShell/AppShell.stories.jsx.map +1 -1
  109. package/jsx/core/Avatar/Avatar.stories.d.ts +9 -9
  110. package/jsx/core/Avatar/Avatar.stories.d.ts.map +1 -1
  111. package/jsx/core/Avatar/Avatar.stories.jsx.map +1 -1
  112. package/jsx/core/Backdrop/Backdrop.stories.d.ts +5 -5
  113. package/jsx/core/Backdrop/Backdrop.stories.d.ts.map +1 -1
  114. package/jsx/core/Backdrop/Backdrop.stories.jsx +12 -12
  115. package/jsx/core/Backdrop/Backdrop.stories.jsx.map +1 -1
  116. package/jsx/core/Badges/Alert.stories.d.ts +4 -4
  117. package/jsx/core/Badges/Alert.stories.d.ts.map +1 -1
  118. package/jsx/core/Badges/Alert.stories.jsx.map +1 -1
  119. package/jsx/core/Badges/Count.stories.d.ts +4 -4
  120. package/jsx/core/Badges/Count.stories.d.ts.map +1 -1
  121. package/jsx/core/Badges/Count.stories.jsx +1 -1
  122. package/jsx/core/Badges/Count.stories.jsx.map +1 -1
  123. package/jsx/core/Badges/Keyboard.stories.d.ts +4 -4
  124. package/jsx/core/Badges/Keyboard.stories.d.ts.map +1 -1
  125. package/jsx/core/Badges/Keyboard.stories.jsx +1 -1
  126. package/jsx/core/Badges/Keyboard.stories.jsx.map +1 -1
  127. package/jsx/core/Badges/Selection.stories.d.ts +3 -3
  128. package/jsx/core/Badges/Selection.stories.d.ts.map +1 -1
  129. package/jsx/core/Badges/Selection.stories.jsx.map +1 -1
  130. package/jsx/core/Badges/Status.stories.d.ts +5 -5
  131. package/jsx/core/Badges/Status.stories.d.ts.map +1 -1
  132. package/jsx/core/Badges/Status.stories.jsx.map +1 -1
  133. package/jsx/core/Badges/Tag.stories.d.ts +3 -3
  134. package/jsx/core/Badges/Tag.stories.d.ts.map +1 -1
  135. package/jsx/core/Badges/Tag.stories.jsx.map +1 -1
  136. package/jsx/core/Banner/Banner.stories.d.ts +13 -9
  137. package/jsx/core/Banner/Banner.stories.d.ts.map +1 -1
  138. package/jsx/core/Banner/Banner.stories.jsx +109 -54
  139. package/jsx/core/Banner/Banner.stories.jsx.map +1 -1
  140. package/jsx/core/Boolean/BooleanDisplay.stories.d.ts +4 -4
  141. package/jsx/core/Boolean/BooleanDisplay.stories.d.ts.map +1 -1
  142. package/jsx/core/Boolean/BooleanDisplay.stories.jsx.map +1 -1
  143. package/jsx/core/Breadcrumbs/Breadcrumbs.stories.d.ts +8 -4
  144. package/jsx/core/Breadcrumbs/Breadcrumbs.stories.d.ts.map +1 -1
  145. package/jsx/core/Breadcrumbs/Breadcrumbs.stories.jsx +16 -4
  146. package/jsx/core/Breadcrumbs/Breadcrumbs.stories.jsx.map +1 -1
  147. package/jsx/core/Button/Button.stories.d.ts +9 -10
  148. package/jsx/core/Button/Button.stories.d.ts.map +1 -1
  149. package/jsx/core/Button/Button.stories.jsx +0 -14
  150. package/jsx/core/Button/Button.stories.jsx.map +1 -1
  151. package/jsx/core/Card/Card.stories.d.ts +6 -6
  152. package/jsx/core/Card/Card.stories.d.ts.map +1 -1
  153. package/jsx/core/Card/Card.stories.jsx.map +1 -1
  154. package/jsx/core/Checkbox/Checkbox.stories.d.ts +6 -6
  155. package/jsx/core/Checkbox/Checkbox.stories.d.ts.map +1 -1
  156. package/jsx/core/Checkbox/Checkbox.stories.jsx +3 -1
  157. package/jsx/core/Checkbox/Checkbox.stories.jsx.map +1 -1
  158. package/jsx/core/CheckboxGroup/CheckboxGroup.stories.d.ts +5 -5
  159. package/jsx/core/CheckboxGroup/CheckboxGroup.stories.d.ts.map +1 -1
  160. package/jsx/core/CheckboxGroup/CheckboxGroup.stories.jsx +8 -5
  161. package/jsx/core/CheckboxGroup/CheckboxGroup.stories.jsx.map +1 -1
  162. package/jsx/core/ColorPicker/ColorPicker.stories.d.ts +5 -5
  163. package/jsx/core/ColorPicker/ColorPicker.stories.d.ts.map +1 -1
  164. package/jsx/core/ColorPicker/ColorPicker.stories.jsx.map +1 -1
  165. package/jsx/core/ComboBox/ComboBox.stories.d.ts +10 -10
  166. package/jsx/core/ComboBox/ComboBox.stories.d.ts.map +1 -1
  167. package/jsx/core/ComboBox/ComboBox.stories.jsx +17 -9
  168. package/jsx/core/ComboBox/ComboBox.stories.jsx.map +1 -1
  169. package/jsx/core/CompositeInput/CompositeInput.stories.d.ts +3 -3
  170. package/jsx/core/CompositeInput/CompositeInput.stories.d.ts.map +1 -1
  171. package/jsx/core/CompositeInput/CompositeInput.stories.jsx.map +1 -1
  172. package/jsx/core/Configuration/Configuration.stories.d.ts +8 -8
  173. package/jsx/core/Configuration/Configuration.stories.d.ts.map +1 -1
  174. package/jsx/core/Configuration/Configuration.stories.jsx.map +1 -1
  175. package/jsx/core/CreditCard/CreditCard.stories.d.ts +4 -4
  176. package/jsx/core/CreditCard/CreditCard.stories.d.ts.map +1 -1
  177. package/jsx/core/CreditCard/CreditCard.stories.jsx +1 -2
  178. package/jsx/core/CreditCard/CreditCard.stories.jsx.map +1 -1
  179. package/jsx/core/Currency/Currency.stories.d.ts +6 -6
  180. package/jsx/core/Currency/Currency.stories.d.ts.map +1 -1
  181. package/jsx/core/Currency/Currency.stories.jsx.map +1 -1
  182. package/jsx/core/DangerButton/DangerButton.stories.d.ts +6 -0
  183. package/jsx/core/DangerButton/DangerButton.stories.d.ts.map +1 -0
  184. package/jsx/core/DangerButton/DangerButton.stories.jsx +17 -0
  185. package/jsx/core/DangerButton/DangerButton.stories.jsx.map +1 -0
  186. package/jsx/core/DateTime/DateTime.stories.d.ts +13 -13
  187. package/jsx/core/DateTime/DateTime.stories.d.ts.map +1 -1
  188. package/jsx/core/DateTime/DateTime.stories.jsx +11 -9
  189. package/jsx/core/DateTime/DateTime.stories.jsx.map +1 -1
  190. package/jsx/core/DateTime/DateTimeDisplay.stories.d.ts +5 -5
  191. package/jsx/core/DateTime/DateTimeDisplay.stories.d.ts.map +1 -1
  192. package/jsx/core/DateTime/DateTimeDisplay.stories.jsx +5 -3
  193. package/jsx/core/DateTime/DateTimeDisplay.stories.jsx.map +1 -1
  194. package/jsx/core/DateTime/DateTimePicker.stories.d.ts +5 -5
  195. package/jsx/core/DateTime/DateTimePicker.stories.d.ts.map +1 -1
  196. package/jsx/core/DateTime/DateTimePicker.stories.jsx +1 -1
  197. package/jsx/core/DateTime/DateTimePicker.stories.jsx.map +1 -1
  198. package/jsx/core/Dialog/Dialog.stories.d.ts +5 -4
  199. package/jsx/core/Dialog/Dialog.stories.d.ts.map +1 -1
  200. package/jsx/core/Dialog/Dialog.stories.jsx +9 -73
  201. package/jsx/core/Dialog/Dialog.stories.jsx.map +1 -1
  202. package/jsx/core/Dialog/FormDialog.mocks.d.ts +27 -0
  203. package/jsx/core/Dialog/FormDialog.mocks.d.ts.map +1 -0
  204. package/jsx/core/Dialog/FormDialog.mocks.jsx +194 -0
  205. package/jsx/core/Dialog/FormDialog.mocks.jsx.map +1 -0
  206. package/jsx/core/Dialog/InfoDialog.mocks.d.ts +4 -0
  207. package/jsx/core/Dialog/InfoDialog.mocks.d.ts.map +1 -0
  208. package/jsx/core/Dialog/InfoDialog.mocks.jsx +64 -0
  209. package/jsx/core/Dialog/InfoDialog.mocks.jsx.map +1 -0
  210. package/jsx/core/Drawer/Drawer.stories.d.ts +5 -5
  211. package/jsx/core/Drawer/Drawer.stories.d.ts.map +1 -1
  212. package/jsx/core/Drawer/Drawer.stories.jsx.map +1 -1
  213. package/jsx/core/Email/EmailDisplay.stories.d.ts +4 -4
  214. package/jsx/core/Email/EmailDisplay.stories.d.ts.map +1 -1
  215. package/jsx/core/Email/EmailDisplay.stories.jsx.map +1 -1
  216. package/jsx/core/EmojiPicker/EmojiPicker.stories.d.ts +6 -6
  217. package/jsx/core/EmojiPicker/EmojiPicker.stories.d.ts.map +1 -1
  218. package/jsx/core/EmojiPicker/EmojiPicker.stories.jsx +6 -5
  219. package/jsx/core/EmojiPicker/EmojiPicker.stories.jsx.map +1 -1
  220. package/jsx/core/EmptyState/EmptyState.stories.d.ts +4 -4
  221. package/jsx/core/EmptyState/EmptyState.stories.d.ts.map +1 -1
  222. package/jsx/core/EmptyState/EmptyState.stories.jsx.map +1 -1
  223. package/jsx/core/ErrorState/ErrorState.stories.d.ts +4 -4
  224. package/jsx/core/ErrorState/ErrorState.stories.d.ts.map +1 -1
  225. package/jsx/core/ErrorState/ErrorState.stories.jsx.map +1 -1
  226. package/jsx/core/ExpandCollapse/ExpandCollapse.stories.d.ts +5 -5
  227. package/jsx/core/ExpandCollapse/ExpandCollapse.stories.d.ts.map +1 -1
  228. package/jsx/core/ExpandCollapse/ExpandCollapse.stories.jsx.map +1 -1
  229. package/jsx/core/FieldGroup/FieldGroup.stories.d.ts +8 -3
  230. package/jsx/core/FieldGroup/FieldGroup.stories.d.ts.map +1 -1
  231. package/jsx/core/FieldGroup/FieldGroup.stories.jsx +28 -3
  232. package/jsx/core/FieldGroup/FieldGroup.stories.jsx.map +1 -1
  233. package/jsx/core/FieldGroup/FieldGroupList.mocks.d.ts +1 -1
  234. package/jsx/core/FieldGroup/FieldGroupList.mocks.d.ts.map +1 -1
  235. package/jsx/core/FieldGroup/FieldGroupList.mocks.jsx +6 -1
  236. package/jsx/core/FieldGroup/FieldGroupList.mocks.jsx.map +1 -1
  237. package/jsx/core/FieldGroup/FieldGroupList.stories.d.ts +6 -5
  238. package/jsx/core/FieldGroup/FieldGroupList.stories.d.ts.map +1 -1
  239. package/jsx/core/FieldGroup/FieldGroupList.stories.jsx +43 -11
  240. package/jsx/core/FieldGroup/FieldGroupList.stories.jsx.map +1 -1
  241. package/jsx/core/FieldValueList/FieldValueList.stories.d.ts +4 -4
  242. package/jsx/core/FieldValueList/FieldValueList.stories.d.ts.map +1 -1
  243. package/jsx/core/FieldValueList/FieldValueList.stories.jsx.map +1 -1
  244. package/jsx/core/File/FileDisplay.stories.d.ts +6 -6
  245. package/jsx/core/File/FileDisplay.stories.d.ts.map +1 -1
  246. package/jsx/core/File/FileDisplay.stories.jsx.map +1 -1
  247. package/jsx/core/File/FileInput.stories.d.ts +4 -4
  248. package/jsx/core/File/FileInput.stories.d.ts.map +1 -1
  249. package/jsx/core/File/FileInput.stories.jsx.map +1 -1
  250. package/jsx/core/Flex/FlexContainer.stories.d.ts +10 -10
  251. package/jsx/core/Flex/FlexContainer.stories.d.ts.map +1 -1
  252. package/jsx/core/Flex/FlexContainer.stories.jsx.map +1 -1
  253. package/jsx/core/Flex/FlexItem.stories.d.ts +6 -6
  254. package/jsx/core/Flex/FlexItem.stories.d.ts.map +1 -1
  255. package/jsx/core/Flex/FlexItem.stories.jsx.map +1 -1
  256. package/jsx/core/Form/Form.stories.d.ts +8 -8
  257. package/jsx/core/Form/Form.stories.d.ts.map +1 -1
  258. package/jsx/core/Form/Form.stories.jsx +2 -2
  259. package/jsx/core/Form/Form.stories.jsx.map +1 -1
  260. package/jsx/core/Grid/GridContainer.stories.d.ts +12 -12
  261. package/jsx/core/Grid/GridContainer.stories.d.ts.map +1 -1
  262. package/jsx/core/Grid/GridContainer.stories.jsx.map +1 -1
  263. package/jsx/core/Grid/GridItem.stories.d.ts +6 -6
  264. package/jsx/core/Grid/GridItem.stories.d.ts.map +1 -1
  265. package/jsx/core/Grid/GridItem.stories.jsx.map +1 -1
  266. package/jsx/core/HTML/HTML.stories.d.ts +4 -4
  267. package/jsx/core/HTML/HTML.stories.d.ts.map +1 -1
  268. package/jsx/core/HTML/HTML.stories.jsx.map +1 -1
  269. package/jsx/core/Icon/Icon.stories.d.ts +9 -6
  270. package/jsx/core/Icon/Icon.stories.d.ts.map +1 -1
  271. package/jsx/core/Icon/Icon.stories.jsx +26 -16
  272. package/jsx/core/Icon/Icon.stories.jsx.map +1 -1
  273. package/jsx/core/IconPicker/IconPicker.stories.d.ts +4 -4
  274. package/jsx/core/IconPicker/IconPicker.stories.d.ts.map +1 -1
  275. package/jsx/core/IconPicker/IconPicker.stories.jsx.map +1 -1
  276. package/jsx/core/Image/Image.stories.d.ts +3 -3
  277. package/jsx/core/Image/Image.stories.d.ts.map +1 -1
  278. package/jsx/core/Image/Image.stories.jsx.map +1 -1
  279. package/jsx/core/Input/Input.stories.d.ts +6 -6
  280. package/jsx/core/Input/Input.stories.d.ts.map +1 -1
  281. package/jsx/core/Input/Input.stories.jsx.map +1 -1
  282. package/jsx/core/Label/Label.stories.d.ts +5 -5
  283. package/jsx/core/Label/Label.stories.d.ts.map +1 -1
  284. package/jsx/core/Label/Label.stories.jsx.map +1 -1
  285. package/jsx/core/Lightbox/Lightbox.mocks.d.ts.map +1 -1
  286. package/jsx/core/Lightbox/Lightbox.mocks.js.map +1 -1
  287. package/jsx/core/Lightbox/Lightbox.stories.d.ts +3 -3
  288. package/jsx/core/Lightbox/Lightbox.stories.d.ts.map +1 -1
  289. package/jsx/core/Lightbox/Lightbox.stories.jsx.map +1 -1
  290. package/jsx/core/Link/Link.stories.d.ts +11 -7
  291. package/jsx/core/Link/Link.stories.d.ts.map +1 -1
  292. package/jsx/core/Link/Link.stories.jsx +13 -30
  293. package/jsx/core/Link/Link.stories.jsx.map +1 -1
  294. package/jsx/core/List/CommaSeparatedList.stories.d.ts +4 -4
  295. package/jsx/core/List/CommaSeparatedList.stories.d.ts.map +1 -1
  296. package/jsx/core/List/CommaSeparatedList.stories.jsx.map +1 -1
  297. package/jsx/core/List/OrderedList.stories.d.ts +4 -4
  298. package/jsx/core/List/OrderedList.stories.d.ts.map +1 -1
  299. package/jsx/core/List/OrderedList.stories.jsx.map +1 -1
  300. package/jsx/core/List/UnorderedList.stories.d.ts +4 -4
  301. package/jsx/core/List/UnorderedList.stories.d.ts.map +1 -1
  302. package/jsx/core/List/UnorderedList.stories.jsx.map +1 -1
  303. package/jsx/core/ListToolbar/ListToolbar.mocks.d.ts.map +1 -1
  304. package/jsx/core/ListToolbar/ListToolbar.mocks.jsx +47 -52
  305. package/jsx/core/ListToolbar/ListToolbar.mocks.jsx.map +1 -1
  306. package/jsx/core/ListToolbar/ListToolbar.stories.d.ts +5 -6
  307. package/jsx/core/ListToolbar/ListToolbar.stories.d.ts.map +1 -1
  308. package/jsx/core/ListToolbar/ListToolbar.stories.jsx +14 -19
  309. package/jsx/core/ListToolbar/ListToolbar.stories.jsx.map +1 -1
  310. package/jsx/core/LiveLog/LiveLog.mocks.d.ts +5 -0
  311. package/jsx/core/LiveLog/LiveLog.mocks.d.ts.map +1 -0
  312. package/jsx/core/LiveLog/LiveLog.mocks.jsx +47 -0
  313. package/jsx/core/LiveLog/LiveLog.mocks.jsx.map +1 -0
  314. package/jsx/core/LiveLog/LiveLog.stories.d.ts +9 -0
  315. package/jsx/core/LiveLog/LiveLog.stories.d.ts.map +1 -0
  316. package/jsx/core/LiveLog/LiveLog.stories.jsx +19 -0
  317. package/jsx/core/LiveLog/LiveLog.stories.jsx.map +1 -0
  318. package/jsx/core/Location/Location.stories.d.ts +7 -7
  319. package/jsx/core/Location/Location.stories.d.ts.map +1 -1
  320. package/jsx/core/Location/Location.stories.jsx +17 -9
  321. package/jsx/core/Location/Location.stories.jsx.map +1 -1
  322. package/jsx/core/Menu/Menu.mocks.js.map +1 -1
  323. package/jsx/core/Menu/Menu.stories.d.ts +6 -5
  324. package/jsx/core/Menu/Menu.stories.d.ts.map +1 -1
  325. package/jsx/core/Menu/Menu.stories.jsx +33 -0
  326. package/jsx/core/Menu/Menu.stories.jsx.map +1 -1
  327. package/jsx/core/MenuButton/MenuButton.stories.d.ts +9 -8
  328. package/jsx/core/MenuButton/MenuButton.stories.d.ts.map +1 -1
  329. package/jsx/core/MenuButton/MenuButton.stories.jsx +1 -1
  330. package/jsx/core/MenuButton/MenuButton.stories.jsx.map +1 -1
  331. package/jsx/core/MetaList/MetaList.stories.d.ts +4 -4
  332. package/jsx/core/MetaList/MetaList.stories.d.ts.map +1 -1
  333. package/jsx/core/MetaList/MetaList.stories.jsx.map +1 -1
  334. package/jsx/core/Modal/Modal.mocks.d.ts +1 -1
  335. package/jsx/core/Modal/Modal.mocks.d.ts.map +1 -1
  336. package/jsx/core/Modal/Modal.stories.d.ts +11 -11
  337. package/jsx/core/Modal/Modal.stories.d.ts.map +1 -1
  338. package/jsx/core/Modal/Modal.stories.jsx +5 -6
  339. package/jsx/core/Modal/Modal.stories.jsx.map +1 -1
  340. package/jsx/core/MultiStepForm/MultiStepForm.mocks.d.ts +36 -3
  341. package/jsx/core/MultiStepForm/MultiStepForm.mocks.d.ts.map +1 -1
  342. package/jsx/core/MultiStepForm/MultiStepForm.mocks.jsx +295 -40
  343. package/jsx/core/MultiStepForm/MultiStepForm.mocks.jsx.map +1 -1
  344. package/jsx/core/MultiStepForm/MultiStepForm.stories.d.ts +5 -3
  345. package/jsx/core/MultiStepForm/MultiStepForm.stories.d.ts.map +1 -1
  346. package/jsx/core/MultiStepForm/MultiStepForm.stories.jsx +70 -165
  347. package/jsx/core/MultiStepForm/MultiStepForm.stories.jsx.map +1 -1
  348. package/jsx/core/NoValue/NoValue.stories.d.ts +6 -0
  349. package/jsx/core/NoValue/NoValue.stories.d.ts.map +1 -0
  350. package/jsx/core/NoValue/NoValue.stories.jsx +30 -0
  351. package/jsx/core/NoValue/NoValue.stories.jsx.map +1 -0
  352. package/jsx/core/Number/Number.stories.d.ts +8 -8
  353. package/jsx/core/Number/Number.stories.d.ts.map +1 -1
  354. package/jsx/core/Number/Number.stories.jsx.map +1 -1
  355. package/jsx/core/PageTemplates/PageTemplates.stories.d.ts +8 -8
  356. package/jsx/core/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
  357. package/jsx/core/PageTemplates/PageTemplates.stories.jsx +2 -2
  358. package/jsx/core/PageTemplates/PageTemplates.stories.jsx.map +1 -1
  359. package/jsx/core/Pagination/Pagination.stories.d.ts +4 -4
  360. package/jsx/core/Pagination/Pagination.stories.d.ts.map +1 -1
  361. package/jsx/core/Pagination/Pagination.stories.jsx.map +1 -1
  362. package/jsx/core/Paragraph/ParagraphDisplay.stories.d.ts +4 -4
  363. package/jsx/core/Paragraph/ParagraphDisplay.stories.d.ts.map +1 -1
  364. package/jsx/core/Paragraph/ParagraphDisplay.stories.jsx.map +1 -1
  365. package/jsx/core/Phone/Phone.stories.d.ts +5 -5
  366. package/jsx/core/Phone/Phone.stories.d.ts.map +1 -1
  367. package/jsx/core/Phone/Phone.stories.jsx.map +1 -1
  368. package/jsx/core/Popover/Popover.mocks.d.ts +9 -0
  369. package/jsx/core/Popover/Popover.mocks.d.ts.map +1 -0
  370. package/jsx/core/Popover/Popover.mocks.jsx +114 -0
  371. package/jsx/core/Popover/Popover.mocks.jsx.map +1 -0
  372. package/jsx/core/Popover/Popover.stories.d.ts +11 -5
  373. package/jsx/core/Popover/Popover.stories.d.ts.map +1 -1
  374. package/jsx/core/Popover/Popover.stories.jsx +27 -0
  375. package/jsx/core/Popover/Popover.stories.jsx.map +1 -1
  376. package/jsx/core/Progress/Progress.mocks.d.ts +2 -0
  377. package/jsx/core/Progress/Progress.mocks.d.ts.map +1 -0
  378. package/jsx/core/Progress/Progress.mocks.js +2 -0
  379. package/jsx/core/Progress/Progress.mocks.js.map +1 -0
  380. package/jsx/core/Progress/Progress.stories.d.ts +8 -5
  381. package/jsx/core/Progress/Progress.stories.d.ts.map +1 -1
  382. package/jsx/core/Progress/Progress.stories.jsx +81 -14
  383. package/jsx/core/Progress/Progress.stories.jsx.map +1 -1
  384. package/jsx/core/QRCode/QRCode.stories.d.ts +9 -0
  385. package/jsx/core/QRCode/QRCode.stories.d.ts.map +1 -0
  386. package/jsx/core/QRCode/QRCode.stories.jsx +17 -0
  387. package/jsx/core/QRCode/QRCode.stories.jsx.map +1 -0
  388. package/jsx/core/RadioButton/RadioButton.stories.d.ts +6 -6
  389. package/jsx/core/RadioButton/RadioButton.stories.d.ts.map +1 -1
  390. package/jsx/core/RadioButton/RadioButton.stories.jsx +3 -1
  391. package/jsx/core/RadioButton/RadioButton.stories.jsx.map +1 -1
  392. package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts +5 -5
  393. package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts.map +1 -1
  394. package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.jsx +9 -5
  395. package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.jsx.map +1 -1
  396. package/jsx/core/Rating/Rating.stories.d.ts +5 -5
  397. package/jsx/core/Rating/Rating.stories.d.ts.map +1 -1
  398. package/jsx/core/Rating/Rating.stories.jsx +1 -1
  399. package/jsx/core/Rating/Rating.stories.jsx.map +1 -1
  400. package/jsx/core/SearchInput/SearchInput.stories.d.ts +5 -5
  401. package/jsx/core/SearchInput/SearchInput.stories.d.ts.map +1 -1
  402. package/jsx/core/SearchInput/SearchInput.stories.jsx +1 -1
  403. package/jsx/core/SearchInput/SearchInput.stories.jsx.map +1 -1
  404. package/jsx/core/Select/Select.stories.d.ts +5 -5
  405. package/jsx/core/Select/Select.stories.d.ts.map +1 -1
  406. package/jsx/core/Select/Select.stories.jsx.map +1 -1
  407. package/jsx/core/Sentiment/Sentiment.stories.d.ts +5 -5
  408. package/jsx/core/Sentiment/Sentiment.stories.d.ts.map +1 -1
  409. package/jsx/core/Sentiment/Sentiment.stories.jsx.map +1 -1
  410. package/jsx/core/SkipLinks/SkipLinks.stories.d.ts +4 -4
  411. package/jsx/core/SkipLinks/SkipLinks.stories.d.ts.map +1 -1
  412. package/jsx/core/SkipLinks/SkipLinks.stories.jsx.map +1 -1
  413. package/jsx/core/Slider/Slider.stories.d.ts +5 -5
  414. package/jsx/core/Slider/Slider.stories.d.ts.map +1 -1
  415. package/jsx/core/Slider/Slider.stories.jsx.map +1 -1
  416. package/jsx/core/SummaryItem/SummaryItem.stories.d.ts +5 -5
  417. package/jsx/core/SummaryItem/SummaryItem.stories.d.ts.map +1 -1
  418. package/jsx/core/SummaryItem/SummaryItem.stories.jsx.map +1 -1
  419. package/jsx/core/SummaryList/SummaryList.mocks.d.ts.map +1 -1
  420. package/jsx/core/SummaryList/SummaryList.mocks.jsx +10 -2
  421. package/jsx/core/SummaryList/SummaryList.mocks.jsx.map +1 -1
  422. package/jsx/core/SummaryList/SummaryList.stories.d.ts +5 -5
  423. package/jsx/core/SummaryList/SummaryList.stories.d.ts.map +1 -1
  424. package/jsx/core/SummaryList/SummaryList.stories.jsx +2 -2
  425. package/jsx/core/SummaryList/SummaryList.stories.jsx.map +1 -1
  426. package/jsx/core/SummaryList/mockUsers.d.ts.map +1 -1
  427. package/jsx/core/SummaryList/mockUsers.js.map +1 -1
  428. package/jsx/core/Switch/Switch.stories.d.ts +6 -6
  429. package/jsx/core/Switch/Switch.stories.d.ts.map +1 -1
  430. package/jsx/core/Switch/Switch.stories.jsx.map +1 -1
  431. package/jsx/core/Table/Table.mocks.jsx +1 -1
  432. package/jsx/core/Table/Table.mocks.jsx.map +1 -1
  433. package/jsx/core/Table/Table.stories.d.ts +6 -6
  434. package/jsx/core/Table/Table.stories.d.ts.map +1 -1
  435. package/jsx/core/Table/Table.stories.jsx.map +1 -1
  436. package/jsx/core/Tabs/Tabs.stories.d.ts +4 -10
  437. package/jsx/core/Tabs/Tabs.stories.d.ts.map +1 -1
  438. package/jsx/core/Tabs/Tabs.stories.jsx +1 -40
  439. package/jsx/core/Tabs/Tabs.stories.jsx.map +1 -1
  440. package/jsx/core/Text/Text.stories.d.ts +5 -5
  441. package/jsx/core/Text/Text.stories.d.ts.map +1 -1
  442. package/jsx/core/Text/Text.stories.jsx.map +1 -1
  443. package/jsx/core/TextArea/TextArea.stories.d.ts +5 -5
  444. package/jsx/core/TextArea/TextArea.stories.d.ts.map +1 -1
  445. package/jsx/core/TextArea/TextArea.stories.jsx +1 -1
  446. package/jsx/core/TextArea/TextArea.stories.jsx.map +1 -1
  447. package/jsx/core/Toaster/Toaster.stories.d.ts +3 -3
  448. package/jsx/core/Toaster/Toaster.stories.d.ts.map +1 -1
  449. package/jsx/core/Toaster/Toaster.stories.jsx.map +1 -1
  450. package/jsx/core/Tooltip/Tooltip.stories.d.ts +5 -4
  451. package/jsx/core/Tooltip/Tooltip.stories.d.ts.map +1 -1
  452. package/jsx/core/Tooltip/Tooltip.stories.jsx +21 -1
  453. package/jsx/core/Tooltip/Tooltip.stories.jsx.map +1 -1
  454. package/jsx/core/Tooltip/Tooltip.styles.d.ts +2 -0
  455. package/jsx/core/Tooltip/Tooltip.styles.d.ts.map +1 -0
  456. package/jsx/core/Tooltip/Tooltip.styles.js +23 -0
  457. package/jsx/core/Tooltip/Tooltip.styles.js.map +1 -0
  458. package/jsx/core/Tree/Tree.stories.d.ts +5 -5
  459. package/jsx/core/Tree/Tree.stories.d.ts.map +1 -1
  460. package/jsx/core/Tree/Tree.stories.jsx +10 -18
  461. package/jsx/core/Tree/Tree.stories.jsx.map +1 -1
  462. package/jsx/core/URL/URL.stories.d.ts +4 -4
  463. package/jsx/core/URL/URL.stories.d.ts.map +1 -1
  464. package/jsx/core/URL/URL.stories.jsx +1 -1
  465. package/jsx/core/URL/URL.stories.jsx.map +1 -1
  466. package/jsx/cs/Article/Article.mocks.js +4 -4
  467. package/jsx/cs/Article/Article.mocks.js.map +1 -1
  468. package/jsx/cs/Article/Article.stories.d.ts +15 -4
  469. package/jsx/cs/Article/Article.stories.d.ts.map +1 -1
  470. package/jsx/cs/Article/Article.stories.jsx +167 -92
  471. package/jsx/cs/Article/Article.stories.jsx.map +1 -1
  472. package/jsx/cs/ArticleList/ArticleList.mocks.d.ts +129 -10
  473. package/jsx/cs/ArticleList/ArticleList.mocks.d.ts.map +1 -1
  474. package/jsx/cs/ArticleList/ArticleList.mocks.js +362 -50
  475. package/jsx/cs/ArticleList/ArticleList.mocks.js.map +1 -1
  476. package/jsx/cs/ArticleList/ArticleList.stories.d.ts +12 -4
  477. package/jsx/cs/ArticleList/ArticleList.stories.d.ts.map +1 -1
  478. package/jsx/cs/ArticleList/ArticleList.stories.jsx +243 -92
  479. package/jsx/cs/ArticleList/ArticleList.stories.jsx.map +1 -1
  480. package/jsx/cs/CSAppShell/CSAppShell.mocks.d.ts +18 -1
  481. package/jsx/cs/CSAppShell/CSAppShell.mocks.d.ts.map +1 -1
  482. package/jsx/cs/CSAppShell/CSAppShell.mocks.jsx +143 -10
  483. package/jsx/cs/CSAppShell/CSAppShell.mocks.jsx.map +1 -1
  484. package/jsx/cs/CSAppShell/CSAppShell.stories.d.ts +4 -4
  485. package/jsx/cs/CSAppShell/CSAppShell.stories.d.ts.map +1 -1
  486. package/jsx/cs/CSAppShell/CSAppShell.stories.jsx +9 -37
  487. package/jsx/cs/CSAppShell/CSAppShell.stories.jsx.map +1 -1
  488. package/jsx/cs/CallControlPanel/CallControlPanel.mocks.d.ts +2 -2
  489. package/jsx/cs/CallControlPanel/CallControlPanel.mocks.d.ts.map +1 -1
  490. package/jsx/cs/CallControlPanel/CallControlPanel.stories.d.ts +5 -5
  491. package/jsx/cs/CallControlPanel/CallControlPanel.stories.d.ts.map +1 -1
  492. package/jsx/cs/CallControlPanel/CallControlPanel.stories.jsx +2 -2
  493. package/jsx/cs/CallControlPanel/CallControlPanel.stories.jsx.map +1 -1
  494. package/jsx/cs/DialPad/DialPad.stories.d.ts +4 -4
  495. package/jsx/cs/DialPad/DialPad.stories.d.ts.map +1 -1
  496. package/jsx/cs/DialPad/DialPad.stories.jsx.map +1 -1
  497. package/jsx/cs/InteractionNotification/InteractionNotification.stories.d.ts +6 -4
  498. package/jsx/cs/InteractionNotification/InteractionNotification.stories.d.ts.map +1 -1
  499. package/jsx/cs/InteractionNotification/InteractionNotification.stories.jsx +18 -4
  500. package/jsx/cs/InteractionNotification/InteractionNotification.stories.jsx.map +1 -1
  501. package/jsx/cs/InteractionTimer/InteractionTimer.stories.d.ts +5 -4
  502. package/jsx/cs/InteractionTimer/InteractionTimer.stories.d.ts.map +1 -1
  503. package/jsx/cs/InteractionTimer/InteractionTimer.stories.jsx +12 -5
  504. package/jsx/cs/InteractionTimer/InteractionTimer.stories.jsx.map +1 -1
  505. package/jsx/cs/Picker/Picker.stories.d.ts +11 -0
  506. package/jsx/cs/Picker/Picker.stories.d.ts.map +1 -0
  507. package/jsx/cs/Picker/Picker.stories.jsx +64 -0
  508. package/jsx/cs/Picker/Picker.stories.jsx.map +1 -0
  509. package/jsx/cs/TaskManager/TaskManager.stories.d.ts +5 -5
  510. package/jsx/cs/TaskManager/TaskManager.stories.d.ts.map +1 -1
  511. package/jsx/cs/TaskManager/TaskManager.stories.jsx +1 -1
  512. package/jsx/cs/TaskManager/TaskManager.stories.jsx.map +1 -1
  513. package/jsx/dnd/DragDropList/DragDropList.stories.d.ts +4 -4
  514. package/jsx/dnd/DragDropList/DragDropList.stories.d.ts.map +1 -1
  515. package/jsx/dnd/DragDropList/DragDropList.stories.jsx.map +1 -1
  516. package/jsx/dnd/StandardDragDropList/Demo.d.ts +1 -0
  517. package/jsx/dnd/StandardDragDropList/Demo.d.ts.map +1 -1
  518. package/jsx/dnd/StandardDragDropList/Demo.jsx +6 -8
  519. package/jsx/dnd/StandardDragDropList/Demo.jsx.map +1 -1
  520. package/jsx/dnd/StandardDragDropList/Popover.d.ts +1 -1
  521. package/jsx/dnd/StandardDragDropList/Popover.d.ts.map +1 -1
  522. package/jsx/dnd/StandardDragDropList/StandardDragDropList.stories.d.ts +3 -3
  523. package/jsx/dnd/StandardDragDropList/StandardDragDropList.stories.d.ts.map +1 -1
  524. package/jsx/dnd/StandardDragDropList/StandardDragDropList.stories.jsx.map +1 -1
  525. package/jsx/dnd/StandardDragDropList/mockData.d.ts +2 -2
  526. package/jsx/dnd/StandardDragDropList/mockData.d.ts.map +1 -1
  527. package/jsx/dnd/StandardDragDropList/mockData.js.map +1 -1
  528. package/jsx/rte/DynamicContentEditor/DynamicContentEditor.stories.d.ts +8 -0
  529. package/jsx/rte/DynamicContentEditor/DynamicContentEditor.stories.d.ts.map +1 -0
  530. package/jsx/rte/DynamicContentEditor/DynamicContentEditor.stories.jsx +101 -0
  531. package/jsx/rte/DynamicContentEditor/DynamicContentEditor.stories.jsx.map +1 -0
  532. package/jsx/rte/DynamicContentEditor/FieldSelector.d.ts +11 -0
  533. package/jsx/rte/DynamicContentEditor/FieldSelector.d.ts.map +1 -0
  534. package/jsx/rte/DynamicContentEditor/FieldSelector.jsx +80 -0
  535. package/jsx/rte/DynamicContentEditor/FieldSelector.jsx.map +1 -0
  536. package/jsx/rte/Editor/Editor.mocks.d.ts +41 -27
  537. package/jsx/rte/Editor/Editor.mocks.d.ts.map +1 -1
  538. package/jsx/rte/Editor/Editor.stories.d.ts +8 -8
  539. package/jsx/rte/Editor/Editor.stories.d.ts.map +1 -1
  540. package/jsx/rte/Editor/Editor.stories.jsx.map +1 -1
  541. package/jsx/rte/RichTextEditor/RichTextEditor.stories.d.ts +4 -4
  542. package/jsx/rte/RichTextEditor/RichTextEditor.stories.d.ts.map +1 -1
  543. package/jsx/rte/RichTextEditor/RichTextEditor.stories.jsx.map +1 -1
  544. package/jsx/rte/RichTextEditor/RichTextViewer.stories.d.ts +6 -6
  545. package/jsx/rte/RichTextEditor/RichTextViewer.stories.d.ts.map +1 -1
  546. package/jsx/rte/RichTextEditor/RichTextViewer.stories.jsx.map +1 -1
  547. package/jsx/social/Chat/Chat.mocks.d.ts +23 -395
  548. package/jsx/social/Chat/Chat.mocks.d.ts.map +1 -1
  549. package/jsx/social/Chat/Chat.mocks.js +568 -585
  550. package/jsx/social/Chat/Chat.mocks.js.map +1 -1
  551. package/jsx/social/Chat/Chat.stories.d.ts +28 -24
  552. package/jsx/social/Chat/Chat.stories.d.ts.map +1 -1
  553. package/jsx/social/Chat/Chat.stories.jsx +226 -301
  554. package/jsx/social/Chat/Chat.stories.jsx.map +1 -1
  555. package/jsx/social/Email/Email.mocks.d.ts +50 -8
  556. package/jsx/social/Email/Email.mocks.d.ts.map +1 -1
  557. package/jsx/social/Email/Email.mocks.jsx +130 -18
  558. package/jsx/social/Email/Email.mocks.jsx.map +1 -1
  559. package/jsx/social/Email/Email.stories.d.ts +24 -14
  560. package/jsx/social/Email/Email.stories.d.ts.map +1 -1
  561. package/jsx/social/Email/Email.stories.jsx +153 -35
  562. package/jsx/social/Email/Email.stories.jsx.map +1 -1
  563. package/jsx/social/Feed/Feed.mocks.d.ts +2 -1
  564. package/jsx/social/Feed/Feed.mocks.d.ts.map +1 -1
  565. package/jsx/social/Feed/Feed.mocks.jsx +4 -2
  566. package/jsx/social/Feed/Feed.mocks.jsx.map +1 -1
  567. package/jsx/social/Feed/Feed.stories.d.ts +5 -5
  568. package/jsx/social/Feed/Feed.stories.d.ts.map +1 -1
  569. package/jsx/social/Feed/Feed.stories.jsx +13 -5
  570. package/jsx/social/Feed/Feed.stories.jsx.map +1 -1
  571. package/jsx/social/Feed/FeedNewPost.stories.d.ts +4 -4
  572. package/jsx/social/Feed/FeedNewPost.stories.d.ts.map +1 -1
  573. package/jsx/social/Feed/FeedNewPost.stories.jsx +2 -2
  574. package/jsx/social/Feed/FeedNewPost.stories.jsx.map +1 -1
  575. package/jsx/social/Feed/FeedPost.stories.d.ts +6 -6
  576. package/jsx/social/Feed/FeedPost.stories.d.ts.map +1 -1
  577. package/jsx/social/Feed/FeedPost.stories.jsx +16 -9
  578. package/jsx/social/Feed/FeedPost.stories.jsx.map +1 -1
  579. package/jsx/social/Feed/FeedReply.stories.d.ts +5 -5
  580. package/jsx/social/Feed/FeedReply.stories.d.ts.map +1 -1
  581. package/jsx/social/Feed/FeedReply.stories.jsx +11 -3
  582. package/jsx/social/Feed/FeedReply.stories.jsx.map +1 -1
  583. package/jsx/social/Feed/FeedReplyInput.stories.d.ts +4 -4
  584. package/jsx/social/Feed/FeedReplyInput.stories.d.ts.map +1 -1
  585. package/jsx/social/Feed/FeedReplyInput.stories.jsx +2 -2
  586. package/jsx/social/Feed/FeedReplyInput.stories.jsx.map +1 -1
  587. package/jsx/tools/Clipboard/Clipboard.mocks.d.ts.map +1 -1
  588. package/jsx/tools/Clipboard/Clipboard.mocks.jsx.map +1 -1
  589. package/jsx/tools/Clipboard/Clipboard.stories.d.ts +4 -4
  590. package/jsx/tools/Clipboard/Clipboard.stories.d.ts.map +1 -1
  591. package/jsx/tools/Clipboard/Clipboard.stories.jsx +12 -14
  592. package/jsx/tools/Clipboard/Clipboard.stories.jsx.map +1 -1
  593. package/jsx/tools/DevTools/DevTools.stories.d.ts +4 -4
  594. package/jsx/tools/DevTools/DevTools.stories.d.ts.map +1 -1
  595. package/jsx/tools/DevTools/DevTools.stories.jsx +2 -4
  596. package/jsx/tools/DevTools/DevTools.stories.jsx.map +1 -1
  597. package/jsx/tools/PreviewShell/PreviewShell.mocks.d.ts +12 -1
  598. package/jsx/tools/PreviewShell/PreviewShell.mocks.d.ts.map +1 -1
  599. package/jsx/tools/PreviewShell/PreviewShell.mocks.jsx +24 -2
  600. package/jsx/tools/PreviewShell/PreviewShell.mocks.jsx.map +1 -1
  601. package/jsx/tools/PreviewShell/PreviewShell.stories.d.ts +10 -8
  602. package/jsx/tools/PreviewShell/PreviewShell.stories.d.ts.map +1 -1
  603. package/jsx/tools/PreviewShell/PreviewShell.stories.jsx +74 -51
  604. package/jsx/tools/PreviewShell/PreviewShell.stories.jsx.map +1 -1
  605. package/jsx/tools/PreviewShell/PreviewShell.styles.d.ts +1 -2
  606. package/jsx/tools/PreviewShell/PreviewShell.styles.d.ts.map +1 -1
  607. package/jsx/tools/PreviewShell/PreviewShell.styles.js +1 -2
  608. package/jsx/tools/PreviewShell/PreviewShell.styles.js.map +1 -1
  609. package/jsx/work/AppAnnouncement/AppAnnouncement.stories.d.ts +4 -4
  610. package/jsx/work/AppAnnouncement/AppAnnouncement.stories.d.ts.map +1 -1
  611. package/jsx/work/AppAnnouncement/AppAnnouncement.stories.jsx.map +1 -1
  612. package/jsx/work/Assignments/Assignments.stories.d.ts +11 -0
  613. package/jsx/work/Assignments/Assignments.stories.d.ts.map +1 -0
  614. package/jsx/work/Assignments/Assignments.stories.jsx +64 -0
  615. package/jsx/work/Assignments/Assignments.stories.jsx.map +1 -0
  616. package/jsx/work/CaseView/Attachments.mocks.d.ts.map +1 -1
  617. package/jsx/work/CaseView/Attachments.mocks.jsx +81 -71
  618. package/jsx/work/CaseView/Attachments.mocks.jsx.map +1 -1
  619. package/jsx/work/CaseView/CaseView.mocks.d.ts +39 -22
  620. package/jsx/work/CaseView/CaseView.mocks.d.ts.map +1 -1
  621. package/jsx/work/CaseView/CaseView.mocks.jsx +258 -85
  622. package/jsx/work/CaseView/CaseView.mocks.jsx.map +1 -1
  623. package/jsx/work/CaseView/CaseView.stories.d.ts +4 -9
  624. package/jsx/work/CaseView/CaseView.stories.d.ts.map +1 -1
  625. package/jsx/work/CaseView/CaseView.stories.jsx +39 -11
  626. package/jsx/work/CaseView/CaseView.stories.jsx.map +1 -1
  627. package/jsx/work/CaseView/Details.mocks.jsx +1 -1
  628. package/jsx/work/CaseView/Details.mocks.jsx.map +1 -1
  629. package/jsx/work/CaseView/FileService.mock.d.ts +2 -2
  630. package/jsx/work/CaseView/FileService.mock.d.ts.map +1 -1
  631. package/jsx/work/CaseView/FileService.mock.jsx +2 -6
  632. package/jsx/work/CaseView/FileService.mock.jsx.map +1 -1
  633. package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts +3 -3
  634. package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts.map +1 -1
  635. package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.jsx.map +1 -1
  636. package/jsx/work/Confirmation/Confirmation.stories.d.ts +4 -4
  637. package/jsx/work/Confirmation/Confirmation.stories.d.ts.map +1 -1
  638. package/jsx/work/Confirmation/Confirmation.stories.jsx +1 -1
  639. package/jsx/work/Confirmation/Confirmation.stories.jsx.map +1 -1
  640. package/jsx/work/Details/Details.stories.d.ts +3 -3
  641. package/jsx/work/Details/Details.stories.d.ts.map +1 -1
  642. package/jsx/work/Details/Details.stories.jsx +6 -1
  643. package/jsx/work/Details/Details.stories.jsx.map +1 -1
  644. package/jsx/work/Glimpse/Glimpse.stories.d.ts +3 -8
  645. package/jsx/work/Glimpse/Glimpse.stories.d.ts.map +1 -1
  646. package/jsx/work/Glimpse/Glimpse.stories.jsx +16 -13
  647. package/jsx/work/Glimpse/Glimpse.stories.jsx.map +1 -1
  648. package/jsx/work/IntelligentGuidance/IntelligentGuidance.stories.d.ts +4 -4
  649. package/jsx/work/IntelligentGuidance/IntelligentGuidance.stories.d.ts.map +1 -1
  650. package/jsx/work/IntelligentGuidance/IntelligentGuidance.stories.jsx +89 -12
  651. package/jsx/work/IntelligentGuidance/IntelligentGuidance.stories.jsx.map +1 -1
  652. package/jsx/work/Predictions/Predictions.mocks.d.ts +3 -0
  653. package/jsx/work/Predictions/Predictions.mocks.d.ts.map +1 -0
  654. package/jsx/work/Predictions/Predictions.mocks.jsx +18 -0
  655. package/jsx/work/Predictions/Predictions.mocks.jsx.map +1 -0
  656. package/jsx/work/Predictions/Predictions.stories.d.ts +5 -0
  657. package/jsx/work/Predictions/Predictions.stories.d.ts.map +1 -0
  658. package/jsx/work/Predictions/Predictions.stories.jsx +53 -0
  659. package/jsx/work/Predictions/Predictions.stories.jsx.map +1 -0
  660. package/jsx/work/SearchResults/SearchResults.mocks.d.ts +1 -1
  661. package/jsx/work/SearchResults/SearchResults.mocks.d.ts.map +1 -1
  662. package/jsx/work/SearchResults/SearchResults.stories.d.ts +3 -3
  663. package/jsx/work/SearchResults/SearchResults.stories.d.ts.map +1 -1
  664. package/jsx/work/SearchResults/SearchResults.stories.jsx +20 -7
  665. package/jsx/work/SearchResults/SearchResults.stories.jsx.map +1 -1
  666. package/jsx/work/Stages/Stages.mocks.jsx +6 -6
  667. package/jsx/work/Stages/Stages.mocks.jsx.map +1 -1
  668. package/jsx/work/Stages/Stages.stories.d.ts +4 -4
  669. package/jsx/work/Stages/Stages.stories.d.ts.map +1 -1
  670. package/jsx/work/Stages/Stages.stories.jsx +22 -8
  671. package/jsx/work/Stages/Stages.stories.jsx.map +1 -1
  672. package/jsx/work/Stakeholders/Stakeholders.mocks.d.ts.map +1 -1
  673. package/jsx/work/Stakeholders/Stakeholders.mocks.jsx +6 -2
  674. package/jsx/work/Stakeholders/Stakeholders.mocks.jsx.map +1 -1
  675. package/jsx/work/Stakeholders/Stakeholders.stories.d.ts +3 -3
  676. package/jsx/work/Stakeholders/Stakeholders.stories.d.ts.map +1 -1
  677. package/jsx/work/Stakeholders/Stakeholders.stories.jsx.map +1 -1
  678. package/jsx/work/Tags/Tags.stories.d.ts +3 -3
  679. package/jsx/work/Tags/Tags.stories.d.ts.map +1 -1
  680. package/jsx/work/Tags/Tags.stories.jsx +6 -1
  681. package/jsx/work/Tags/Tags.stories.jsx.map +1 -1
  682. package/jsx/work/Tasks/TaskList.stories.d.ts +3 -3
  683. package/jsx/work/Tasks/TaskList.stories.d.ts.map +1 -1
  684. package/jsx/work/Tasks/TaskList.stories.jsx.map +1 -1
  685. package/jsx/work/Tasks/Tasks.mocks.d.ts +22 -0
  686. package/jsx/work/Tasks/Tasks.mocks.d.ts.map +1 -0
  687. package/jsx/work/Tasks/Tasks.mocks.js +51 -0
  688. package/jsx/work/Tasks/Tasks.mocks.js.map +1 -0
  689. package/jsx/work/Tasks/Tasks.stories.d.ts +9 -7
  690. package/jsx/work/Tasks/Tasks.stories.d.ts.map +1 -1
  691. package/jsx/work/Tasks/Tasks.stories.jsx +41 -73
  692. package/jsx/work/Tasks/Tasks.stories.jsx.map +1 -1
  693. package/jsx/work/Timeline/Timeline.mocks.d.ts.map +1 -1
  694. package/jsx/work/Timeline/Timeline.mocks.jsx +16 -1
  695. package/jsx/work/Timeline/Timeline.mocks.jsx.map +1 -1
  696. package/jsx/work/Timeline/Timeline.stories.d.ts +6 -6
  697. package/jsx/work/Timeline/Timeline.stories.d.ts.map +1 -1
  698. package/jsx/work/Timeline/Timeline.stories.jsx +2 -2
  699. package/jsx/work/Timeline/Timeline.stories.jsx.map +1 -1
  700. package/jsx/wss/AppShell/AppShell.stories.d.ts +5 -5
  701. package/jsx/wss/AppShell/AppShell.stories.d.ts.map +1 -1
  702. package/jsx/wss/AppShell/AppShell.stories.jsx +18 -0
  703. package/jsx/wss/AppShell/AppShell.stories.jsx.map +1 -1
  704. package/jsx/wss/CaseView/CaseView.stories.d.ts +3 -3
  705. package/jsx/wss/CaseView/CaseView.stories.d.ts.map +1 -1
  706. package/jsx/wss/CaseView/CaseView.stories.jsx +8 -2
  707. package/jsx/wss/CaseView/CaseView.stories.jsx.map +1 -1
  708. package/jsx/wss/PageTemplates/PageTemplates.stories.d.ts +3 -3
  709. package/jsx/wss/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
  710. package/jsx/wss/PageTemplates/PageTemplates.stories.jsx +2 -2
  711. package/jsx/wss/PageTemplates/PageTemplates.stories.jsx.map +1 -1
  712. package/jsx/wss/QuickCreate/QuickCreate.stories.d.ts +3 -3
  713. package/jsx/wss/QuickCreate/QuickCreate.stories.d.ts.map +1 -1
  714. package/jsx/wss/QuickCreate/QuickCreate.stories.jsx.map +1 -1
  715. package/lib/build/AppShell/AppShell.mocks.d.ts +28 -53
  716. package/lib/build/AppShell/AppShell.mocks.d.ts.map +1 -1
  717. package/lib/build/AppShell/AppShell.mocks.js +260 -376
  718. package/lib/build/AppShell/AppShell.mocks.js.map +1 -1
  719. package/lib/build/AppShell/AppShell.stories.d.ts +16 -13
  720. package/lib/build/AppShell/AppShell.stories.d.ts.map +1 -1
  721. package/lib/build/AppShell/AppShell.stories.js +71 -100
  722. package/lib/build/AppShell/AppShell.stories.js.map +1 -1
  723. package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts +3 -3
  724. package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts.map +1 -1
  725. package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.js.map +1 -1
  726. package/lib/build/ExpressionBuilder/ExpressionBuilder.mocks.d.ts +2 -0
  727. package/lib/build/ExpressionBuilder/ExpressionBuilder.mocks.d.ts.map +1 -1
  728. package/lib/build/ExpressionBuilder/ExpressionBuilder.mocks.js +23 -1
  729. package/lib/build/ExpressionBuilder/ExpressionBuilder.mocks.js.map +1 -1
  730. package/lib/build/ExpressionBuilder/ExpressionBuilder.stories.d.ts +8 -8
  731. package/lib/build/ExpressionBuilder/ExpressionBuilder.stories.d.ts.map +1 -1
  732. package/lib/build/ExpressionBuilder/ExpressionBuilder.stories.js +7 -7
  733. package/lib/build/ExpressionBuilder/ExpressionBuilder.stories.js.map +1 -1
  734. package/lib/build/FlowModeller/FlowModeller.mocks.d.ts.map +1 -1
  735. package/lib/build/FlowModeller/FlowModeller.mocks.js +1 -1
  736. package/lib/build/FlowModeller/FlowModeller.mocks.js.map +1 -1
  737. package/lib/build/FlowModeller/FlowModeller.stories.d.ts +5 -5
  738. package/lib/build/FlowModeller/FlowModeller.stories.d.ts.map +1 -1
  739. package/lib/build/FlowModeller/FlowModeller.stories.js +119 -9
  740. package/lib/build/FlowModeller/FlowModeller.stories.js.map +1 -1
  741. package/lib/build/ItemLibrary/LibraryPicker.stories.d.ts +3 -3
  742. package/lib/build/ItemLibrary/LibraryPicker.stories.d.ts.map +1 -1
  743. package/lib/build/ItemLibrary/LibraryPicker.stories.js +1 -2
  744. package/lib/build/ItemLibrary/LibraryPicker.stories.js.map +1 -1
  745. package/lib/build/LifeCycle/LifeCycle.stories.d.ts +6 -6
  746. package/lib/build/LifeCycle/LifeCycle.stories.d.ts.map +1 -1
  747. package/lib/build/LifeCycle/LifeCycle.stories.js +43 -4
  748. package/lib/build/LifeCycle/LifeCycle.stories.js.map +1 -1
  749. package/lib/build/MobileBuildSummary/MobileBuildSummary.mocks.d.ts +1 -0
  750. package/lib/build/MobileBuildSummary/MobileBuildSummary.mocks.d.ts.map +1 -1
  751. package/lib/build/MobileBuildSummary/MobileBuildSummary.mocks.js +2 -1
  752. package/lib/build/MobileBuildSummary/MobileBuildSummary.mocks.js.map +1 -1
  753. package/lib/build/MobileBuildSummary/MobileBuildSummary.stories.d.ts +3 -3
  754. package/lib/build/MobileBuildSummary/MobileBuildSummary.stories.d.ts.map +1 -1
  755. package/lib/build/MobileBuildSummary/MobileBuildSummary.stories.js.map +1 -1
  756. package/lib/build/ObjectSelect/ObjectSelect.mocks.d.ts +3 -2
  757. package/lib/build/ObjectSelect/ObjectSelect.mocks.d.ts.map +1 -1
  758. package/lib/build/ObjectSelect/ObjectSelect.mocks.js +7 -7
  759. package/lib/build/ObjectSelect/ObjectSelect.mocks.js.map +1 -1
  760. package/lib/build/ObjectSelect/ObjectSelect.stories.d.ts +6 -6
  761. package/lib/build/ObjectSelect/ObjectSelect.stories.d.ts.map +1 -1
  762. package/lib/build/ObjectSelect/ObjectSelect.stories.js +2 -6
  763. package/lib/build/ObjectSelect/ObjectSelect.stories.js.map +1 -1
  764. package/lib/build/PageBanner/PageBanner.stories.d.ts +15 -0
  765. package/lib/build/PageBanner/PageBanner.stories.d.ts.map +1 -0
  766. package/lib/build/PageBanner/PageBanner.stories.js +42 -0
  767. package/lib/build/PageBanner/PageBanner.stories.js.map +1 -0
  768. package/lib/build/PageTemplates/GalleryPage.mocks.d.ts +0 -2
  769. package/lib/build/PageTemplates/GalleryPage.mocks.d.ts.map +1 -1
  770. package/lib/build/PageTemplates/GalleryPage.mocks.js +1 -50
  771. package/lib/build/PageTemplates/GalleryPage.mocks.js.map +1 -1
  772. package/lib/build/PageTemplates/GalleryPage.stories.d.ts +9 -5
  773. package/lib/build/PageTemplates/GalleryPage.stories.d.ts.map +1 -1
  774. package/lib/build/PageTemplates/GalleryPage.stories.js +32 -31
  775. package/lib/build/PageTemplates/GalleryPage.stories.js.map +1 -1
  776. package/lib/build/PageTemplates/PageTemplates.mocks.d.ts +0 -1
  777. package/lib/build/PageTemplates/PageTemplates.mocks.d.ts.map +1 -1
  778. package/lib/build/PageTemplates/PageTemplates.mocks.js +2 -154
  779. package/lib/build/PageTemplates/PageTemplates.mocks.js.map +1 -1
  780. package/lib/build/PageTemplates/PageTemplates.stories.d.ts +5 -5
  781. package/lib/build/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
  782. package/lib/build/PageTemplates/PageTemplates.stories.js +4 -8
  783. package/lib/build/PageTemplates/PageTemplates.stories.js.map +1 -1
  784. package/lib/build/PageTemplates/ShowcasePage.stories.d.ts +17 -0
  785. package/lib/build/PageTemplates/ShowcasePage.stories.d.ts.map +1 -0
  786. package/lib/build/PageTemplates/ShowcasePage.stories.js +43 -0
  787. package/lib/build/PageTemplates/ShowcasePage.stories.js.map +1 -0
  788. package/lib/build/Workbench/Workbench.stories.d.ts +4 -4
  789. package/lib/build/Workbench/Workbench.stories.d.ts.map +1 -1
  790. package/lib/build/Workbench/Workbench.stories.js.map +1 -1
  791. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts +5 -5
  792. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts.map +1 -1
  793. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.js.map +1 -1
  794. package/lib/condition-builder/ConditionBuilder/props.mock.d.ts.map +1 -1
  795. package/lib/condition-builder/ConditionBuilder/props.mock.js +4 -2
  796. package/lib/condition-builder/ConditionBuilder/props.mock.js.map +1 -1
  797. package/lib/condition-builder/ConditionInput/ConditionInput.stories.d.ts +4 -4
  798. package/lib/condition-builder/ConditionInput/ConditionInput.stories.d.ts.map +1 -1
  799. package/lib/condition-builder/ConditionInput/ConditionInput.stories.js.map +1 -1
  800. package/lib/condition-builder/PromotedFilters/PromotedFilters.mocks.d.ts.map +1 -1
  801. package/lib/condition-builder/PromotedFilters/PromotedFilters.mocks.js +53 -1
  802. package/lib/condition-builder/PromotedFilters/PromotedFilters.mocks.js.map +1 -1
  803. package/lib/condition-builder/PromotedFilters/PromotedFilters.stories.d.ts +3 -3
  804. package/lib/condition-builder/PromotedFilters/PromotedFilters.stories.d.ts.map +1 -1
  805. package/lib/condition-builder/PromotedFilters/PromotedFilters.stories.js.map +1 -1
  806. package/lib/core/AIButton/AIButton.mocks.d.ts +22 -0
  807. package/lib/core/AIButton/AIButton.mocks.d.ts.map +1 -0
  808. package/lib/core/AIButton/AIButton.mocks.js +139 -0
  809. package/lib/core/AIButton/AIButton.mocks.js.map +1 -0
  810. package/lib/core/AIButton/AIButton.stories.d.ts +23 -0
  811. package/lib/core/AIButton/AIButton.stories.d.ts.map +1 -0
  812. package/lib/core/AIButton/AIButton.stories.js +223 -0
  813. package/lib/core/AIButton/AIButton.stories.js.map +1 -0
  814. package/lib/core/AdditionalInfo/AdditionalInfo.stories.d.ts +4 -4
  815. package/lib/core/AdditionalInfo/AdditionalInfo.stories.d.ts.map +1 -1
  816. package/lib/core/AdditionalInfo/AdditionalInfo.stories.js.map +1 -1
  817. package/lib/core/AppShell/AppShell.mocks.d.ts.map +1 -1
  818. package/lib/core/AppShell/AppShell.mocks.js +4 -19
  819. package/lib/core/AppShell/AppShell.mocks.js.map +1 -1
  820. package/lib/core/AppShell/AppShell.stories.d.ts +6 -7
  821. package/lib/core/AppShell/AppShell.stories.d.ts.map +1 -1
  822. package/lib/core/AppShell/AppShell.stories.js +59 -44
  823. package/lib/core/AppShell/AppShell.stories.js.map +1 -1
  824. package/lib/core/Avatar/Avatar.stories.d.ts +9 -9
  825. package/lib/core/Avatar/Avatar.stories.d.ts.map +1 -1
  826. package/lib/core/Avatar/Avatar.stories.js.map +1 -1
  827. package/lib/core/Backdrop/Backdrop.stories.d.ts +5 -5
  828. package/lib/core/Backdrop/Backdrop.stories.d.ts.map +1 -1
  829. package/lib/core/Backdrop/Backdrop.stories.js +2 -2
  830. package/lib/core/Backdrop/Backdrop.stories.js.map +1 -1
  831. package/lib/core/Badges/Alert.stories.d.ts +4 -4
  832. package/lib/core/Badges/Alert.stories.d.ts.map +1 -1
  833. package/lib/core/Badges/Alert.stories.js.map +1 -1
  834. package/lib/core/Badges/Count.stories.d.ts +4 -4
  835. package/lib/core/Badges/Count.stories.d.ts.map +1 -1
  836. package/lib/core/Badges/Count.stories.js +1 -1
  837. package/lib/core/Badges/Count.stories.js.map +1 -1
  838. package/lib/core/Badges/Keyboard.stories.d.ts +4 -4
  839. package/lib/core/Badges/Keyboard.stories.d.ts.map +1 -1
  840. package/lib/core/Badges/Keyboard.stories.js +1 -1
  841. package/lib/core/Badges/Keyboard.stories.js.map +1 -1
  842. package/lib/core/Badges/Selection.stories.d.ts +3 -3
  843. package/lib/core/Badges/Selection.stories.d.ts.map +1 -1
  844. package/lib/core/Badges/Selection.stories.js.map +1 -1
  845. package/lib/core/Badges/Status.stories.d.ts +5 -5
  846. package/lib/core/Badges/Status.stories.d.ts.map +1 -1
  847. package/lib/core/Badges/Status.stories.js.map +1 -1
  848. package/lib/core/Badges/Tag.stories.d.ts +3 -3
  849. package/lib/core/Badges/Tag.stories.d.ts.map +1 -1
  850. package/lib/core/Badges/Tag.stories.js.map +1 -1
  851. package/lib/core/Banner/Banner.stories.d.ts +13 -9
  852. package/lib/core/Banner/Banner.stories.d.ts.map +1 -1
  853. package/lib/core/Banner/Banner.stories.js +105 -39
  854. package/lib/core/Banner/Banner.stories.js.map +1 -1
  855. package/lib/core/Boolean/BooleanDisplay.stories.d.ts +4 -4
  856. package/lib/core/Boolean/BooleanDisplay.stories.d.ts.map +1 -1
  857. package/lib/core/Boolean/BooleanDisplay.stories.js.map +1 -1
  858. package/lib/core/Breadcrumbs/Breadcrumbs.stories.d.ts +8 -4
  859. package/lib/core/Breadcrumbs/Breadcrumbs.stories.d.ts.map +1 -1
  860. package/lib/core/Breadcrumbs/Breadcrumbs.stories.js +16 -4
  861. package/lib/core/Breadcrumbs/Breadcrumbs.stories.js.map +1 -1
  862. package/lib/core/Button/Button.stories.d.ts +9 -10
  863. package/lib/core/Button/Button.stories.d.ts.map +1 -1
  864. package/lib/core/Button/Button.stories.js +0 -12
  865. package/lib/core/Button/Button.stories.js.map +1 -1
  866. package/lib/core/Card/Card.stories.d.ts +6 -6
  867. package/lib/core/Card/Card.stories.d.ts.map +1 -1
  868. package/lib/core/Card/Card.stories.js.map +1 -1
  869. package/lib/core/Checkbox/Checkbox.stories.d.ts +6 -6
  870. package/lib/core/Checkbox/Checkbox.stories.d.ts.map +1 -1
  871. package/lib/core/Checkbox/Checkbox.stories.js +3 -1
  872. package/lib/core/Checkbox/Checkbox.stories.js.map +1 -1
  873. package/lib/core/CheckboxGroup/CheckboxGroup.stories.d.ts +5 -5
  874. package/lib/core/CheckboxGroup/CheckboxGroup.stories.d.ts.map +1 -1
  875. package/lib/core/CheckboxGroup/CheckboxGroup.stories.js +8 -5
  876. package/lib/core/CheckboxGroup/CheckboxGroup.stories.js.map +1 -1
  877. package/lib/core/ColorPicker/ColorPicker.stories.d.ts +5 -5
  878. package/lib/core/ColorPicker/ColorPicker.stories.d.ts.map +1 -1
  879. package/lib/core/ColorPicker/ColorPicker.stories.js.map +1 -1
  880. package/lib/core/ComboBox/ComboBox.stories.d.ts +10 -10
  881. package/lib/core/ComboBox/ComboBox.stories.d.ts.map +1 -1
  882. package/lib/core/ComboBox/ComboBox.stories.js +17 -9
  883. package/lib/core/ComboBox/ComboBox.stories.js.map +1 -1
  884. package/lib/core/CompositeInput/CompositeInput.stories.d.ts +3 -3
  885. package/lib/core/CompositeInput/CompositeInput.stories.d.ts.map +1 -1
  886. package/lib/core/CompositeInput/CompositeInput.stories.js.map +1 -1
  887. package/lib/core/Configuration/Configuration.stories.d.ts +8 -8
  888. package/lib/core/Configuration/Configuration.stories.d.ts.map +1 -1
  889. package/lib/core/Configuration/Configuration.stories.js.map +1 -1
  890. package/lib/core/CreditCard/CreditCard.stories.d.ts +4 -4
  891. package/lib/core/CreditCard/CreditCard.stories.d.ts.map +1 -1
  892. package/lib/core/CreditCard/CreditCard.stories.js +1 -2
  893. package/lib/core/CreditCard/CreditCard.stories.js.map +1 -1
  894. package/lib/core/Currency/Currency.stories.d.ts +6 -6
  895. package/lib/core/Currency/Currency.stories.d.ts.map +1 -1
  896. package/lib/core/Currency/Currency.stories.js.map +1 -1
  897. package/lib/core/DangerButton/DangerButton.stories.d.ts +6 -0
  898. package/lib/core/DangerButton/DangerButton.stories.d.ts.map +1 -0
  899. package/lib/core/DangerButton/DangerButton.stories.js +18 -0
  900. package/lib/core/DangerButton/DangerButton.stories.js.map +1 -0
  901. package/lib/core/DateTime/DateTime.stories.d.ts +13 -13
  902. package/lib/core/DateTime/DateTime.stories.d.ts.map +1 -1
  903. package/lib/core/DateTime/DateTime.stories.js +11 -10
  904. package/lib/core/DateTime/DateTime.stories.js.map +1 -1
  905. package/lib/core/DateTime/DateTimeDisplay.stories.d.ts +5 -5
  906. package/lib/core/DateTime/DateTimeDisplay.stories.d.ts.map +1 -1
  907. package/lib/core/DateTime/DateTimeDisplay.stories.js +5 -3
  908. package/lib/core/DateTime/DateTimeDisplay.stories.js.map +1 -1
  909. package/lib/core/DateTime/DateTimePicker.stories.d.ts +5 -5
  910. package/lib/core/DateTime/DateTimePicker.stories.d.ts.map +1 -1
  911. package/lib/core/DateTime/DateTimePicker.stories.js +1 -1
  912. package/lib/core/DateTime/DateTimePicker.stories.js.map +1 -1
  913. package/lib/core/Dialog/Dialog.stories.d.ts +5 -4
  914. package/lib/core/Dialog/Dialog.stories.d.ts.map +1 -1
  915. package/lib/core/Dialog/Dialog.stories.js +10 -41
  916. package/lib/core/Dialog/Dialog.stories.js.map +1 -1
  917. package/lib/core/Dialog/FormDialog.mocks.d.ts +27 -0
  918. package/lib/core/Dialog/FormDialog.mocks.d.ts.map +1 -0
  919. package/lib/core/Dialog/FormDialog.mocks.js +188 -0
  920. package/lib/core/Dialog/FormDialog.mocks.js.map +1 -0
  921. package/lib/core/Dialog/InfoDialog.mocks.d.ts +4 -0
  922. package/lib/core/Dialog/InfoDialog.mocks.d.ts.map +1 -0
  923. package/lib/core/Dialog/InfoDialog.mocks.js +41 -0
  924. package/lib/core/Dialog/InfoDialog.mocks.js.map +1 -0
  925. package/lib/core/Drawer/Drawer.stories.d.ts +5 -5
  926. package/lib/core/Drawer/Drawer.stories.d.ts.map +1 -1
  927. package/lib/core/Drawer/Drawer.stories.js.map +1 -1
  928. package/lib/core/Email/EmailDisplay.stories.d.ts +4 -4
  929. package/lib/core/Email/EmailDisplay.stories.d.ts.map +1 -1
  930. package/lib/core/Email/EmailDisplay.stories.js.map +1 -1
  931. package/lib/core/EmojiPicker/EmojiPicker.stories.d.ts +6 -6
  932. package/lib/core/EmojiPicker/EmojiPicker.stories.d.ts.map +1 -1
  933. package/lib/core/EmojiPicker/EmojiPicker.stories.js +6 -5
  934. package/lib/core/EmojiPicker/EmojiPicker.stories.js.map +1 -1
  935. package/lib/core/EmptyState/EmptyState.stories.d.ts +4 -4
  936. package/lib/core/EmptyState/EmptyState.stories.d.ts.map +1 -1
  937. package/lib/core/EmptyState/EmptyState.stories.js.map +1 -1
  938. package/lib/core/ErrorState/ErrorState.stories.d.ts +4 -4
  939. package/lib/core/ErrorState/ErrorState.stories.d.ts.map +1 -1
  940. package/lib/core/ErrorState/ErrorState.stories.js.map +1 -1
  941. package/lib/core/ExpandCollapse/ExpandCollapse.stories.d.ts +5 -5
  942. package/lib/core/ExpandCollapse/ExpandCollapse.stories.d.ts.map +1 -1
  943. package/lib/core/ExpandCollapse/ExpandCollapse.stories.js.map +1 -1
  944. package/lib/core/FieldGroup/FieldGroup.stories.d.ts +8 -3
  945. package/lib/core/FieldGroup/FieldGroup.stories.d.ts.map +1 -1
  946. package/lib/core/FieldGroup/FieldGroup.stories.js +27 -2
  947. package/lib/core/FieldGroup/FieldGroup.stories.js.map +1 -1
  948. package/lib/core/FieldGroup/FieldGroupList.mocks.d.ts +1 -1
  949. package/lib/core/FieldGroup/FieldGroupList.mocks.d.ts.map +1 -1
  950. package/lib/core/FieldGroup/FieldGroupList.mocks.js +6 -1
  951. package/lib/core/FieldGroup/FieldGroupList.mocks.js.map +1 -1
  952. package/lib/core/FieldGroup/FieldGroupList.stories.d.ts +6 -5
  953. package/lib/core/FieldGroup/FieldGroupList.stories.d.ts.map +1 -1
  954. package/lib/core/FieldGroup/FieldGroupList.stories.js +43 -11
  955. package/lib/core/FieldGroup/FieldGroupList.stories.js.map +1 -1
  956. package/lib/core/FieldValueList/FieldValueList.stories.d.ts +4 -4
  957. package/lib/core/FieldValueList/FieldValueList.stories.d.ts.map +1 -1
  958. package/lib/core/FieldValueList/FieldValueList.stories.js.map +1 -1
  959. package/lib/core/File/FileDisplay.stories.d.ts +6 -6
  960. package/lib/core/File/FileDisplay.stories.d.ts.map +1 -1
  961. package/lib/core/File/FileDisplay.stories.js.map +1 -1
  962. package/lib/core/File/FileInput.stories.d.ts +4 -4
  963. package/lib/core/File/FileInput.stories.d.ts.map +1 -1
  964. package/lib/core/File/FileInput.stories.js.map +1 -1
  965. package/lib/core/Flex/FlexContainer.stories.d.ts +10 -10
  966. package/lib/core/Flex/FlexContainer.stories.d.ts.map +1 -1
  967. package/lib/core/Flex/FlexContainer.stories.js.map +1 -1
  968. package/lib/core/Flex/FlexItem.stories.d.ts +6 -6
  969. package/lib/core/Flex/FlexItem.stories.d.ts.map +1 -1
  970. package/lib/core/Flex/FlexItem.stories.js.map +1 -1
  971. package/lib/core/Form/Form.stories.d.ts +8 -8
  972. package/lib/core/Form/Form.stories.d.ts.map +1 -1
  973. package/lib/core/Form/Form.stories.js +2 -2
  974. package/lib/core/Form/Form.stories.js.map +1 -1
  975. package/lib/core/Grid/GridContainer.stories.d.ts +12 -12
  976. package/lib/core/Grid/GridContainer.stories.d.ts.map +1 -1
  977. package/lib/core/Grid/GridContainer.stories.js.map +1 -1
  978. package/lib/core/Grid/GridItem.stories.d.ts +6 -6
  979. package/lib/core/Grid/GridItem.stories.d.ts.map +1 -1
  980. package/lib/core/Grid/GridItem.stories.js.map +1 -1
  981. package/lib/core/HTML/HTML.stories.d.ts +4 -4
  982. package/lib/core/HTML/HTML.stories.d.ts.map +1 -1
  983. package/lib/core/HTML/HTML.stories.js.map +1 -1
  984. package/lib/core/Icon/Icon.stories.d.ts +9 -6
  985. package/lib/core/Icon/Icon.stories.d.ts.map +1 -1
  986. package/lib/core/Icon/Icon.stories.js +16 -8
  987. package/lib/core/Icon/Icon.stories.js.map +1 -1
  988. package/lib/core/IconPicker/IconPicker.stories.d.ts +4 -4
  989. package/lib/core/IconPicker/IconPicker.stories.d.ts.map +1 -1
  990. package/lib/core/IconPicker/IconPicker.stories.js.map +1 -1
  991. package/lib/core/Image/Image.stories.d.ts +3 -3
  992. package/lib/core/Image/Image.stories.d.ts.map +1 -1
  993. package/lib/core/Image/Image.stories.js.map +1 -1
  994. package/lib/core/Input/Input.stories.d.ts +6 -6
  995. package/lib/core/Input/Input.stories.d.ts.map +1 -1
  996. package/lib/core/Input/Input.stories.js.map +1 -1
  997. package/lib/core/Label/Label.stories.d.ts +5 -5
  998. package/lib/core/Label/Label.stories.d.ts.map +1 -1
  999. package/lib/core/Label/Label.stories.js.map +1 -1
  1000. package/lib/core/Lightbox/Lightbox.mocks.d.ts.map +1 -1
  1001. package/lib/core/Lightbox/Lightbox.mocks.js +0 -8
  1002. package/lib/core/Lightbox/Lightbox.mocks.js.map +1 -1
  1003. package/lib/core/Lightbox/Lightbox.stories.d.ts +3 -3
  1004. package/lib/core/Lightbox/Lightbox.stories.d.ts.map +1 -1
  1005. package/lib/core/Lightbox/Lightbox.stories.js.map +1 -1
  1006. package/lib/core/Link/Link.stories.d.ts +11 -7
  1007. package/lib/core/Link/Link.stories.d.ts.map +1 -1
  1008. package/lib/core/Link/Link.stories.js +6 -9
  1009. package/lib/core/Link/Link.stories.js.map +1 -1
  1010. package/lib/core/List/CommaSeparatedList.stories.d.ts +4 -4
  1011. package/lib/core/List/CommaSeparatedList.stories.d.ts.map +1 -1
  1012. package/lib/core/List/CommaSeparatedList.stories.js.map +1 -1
  1013. package/lib/core/List/OrderedList.stories.d.ts +4 -4
  1014. package/lib/core/List/OrderedList.stories.d.ts.map +1 -1
  1015. package/lib/core/List/OrderedList.stories.js.map +1 -1
  1016. package/lib/core/List/UnorderedList.stories.d.ts +4 -4
  1017. package/lib/core/List/UnorderedList.stories.d.ts.map +1 -1
  1018. package/lib/core/List/UnorderedList.stories.js.map +1 -1
  1019. package/lib/core/ListToolbar/ListToolbar.mocks.d.ts.map +1 -1
  1020. package/lib/core/ListToolbar/ListToolbar.mocks.js +26 -33
  1021. package/lib/core/ListToolbar/ListToolbar.mocks.js.map +1 -1
  1022. package/lib/core/ListToolbar/ListToolbar.stories.d.ts +5 -6
  1023. package/lib/core/ListToolbar/ListToolbar.stories.d.ts.map +1 -1
  1024. package/lib/core/ListToolbar/ListToolbar.stories.js +23 -20
  1025. package/lib/core/ListToolbar/ListToolbar.stories.js.map +1 -1
  1026. package/lib/core/LiveLog/LiveLog.mocks.d.ts +5 -0
  1027. package/lib/core/LiveLog/LiveLog.mocks.d.ts.map +1 -0
  1028. package/lib/core/LiveLog/LiveLog.mocks.js +29 -0
  1029. package/lib/core/LiveLog/LiveLog.mocks.js.map +1 -0
  1030. package/lib/core/LiveLog/LiveLog.stories.d.ts +9 -0
  1031. package/lib/core/LiveLog/LiveLog.stories.d.ts.map +1 -0
  1032. package/lib/core/LiveLog/LiveLog.stories.js +20 -0
  1033. package/lib/core/LiveLog/LiveLog.stories.js.map +1 -0
  1034. package/lib/core/Location/Location.stories.d.ts +7 -7
  1035. package/lib/core/Location/Location.stories.d.ts.map +1 -1
  1036. package/lib/core/Location/Location.stories.js +15 -7
  1037. package/lib/core/Location/Location.stories.js.map +1 -1
  1038. package/lib/core/Menu/Menu.mocks.js.map +1 -1
  1039. package/lib/core/Menu/Menu.stories.d.ts +6 -5
  1040. package/lib/core/Menu/Menu.stories.d.ts.map +1 -1
  1041. package/lib/core/Menu/Menu.stories.js +27 -0
  1042. package/lib/core/Menu/Menu.stories.js.map +1 -1
  1043. package/lib/core/MenuButton/MenuButton.stories.d.ts +9 -8
  1044. package/lib/core/MenuButton/MenuButton.stories.d.ts.map +1 -1
  1045. package/lib/core/MenuButton/MenuButton.stories.js +1 -1
  1046. package/lib/core/MenuButton/MenuButton.stories.js.map +1 -1
  1047. package/lib/core/MetaList/MetaList.stories.d.ts +4 -4
  1048. package/lib/core/MetaList/MetaList.stories.d.ts.map +1 -1
  1049. package/lib/core/MetaList/MetaList.stories.js.map +1 -1
  1050. package/lib/core/Modal/Modal.mocks.d.ts +1 -1
  1051. package/lib/core/Modal/Modal.mocks.d.ts.map +1 -1
  1052. package/lib/core/Modal/Modal.stories.d.ts +11 -11
  1053. package/lib/core/Modal/Modal.stories.d.ts.map +1 -1
  1054. package/lib/core/Modal/Modal.stories.js +7 -6
  1055. package/lib/core/Modal/Modal.stories.js.map +1 -1
  1056. package/lib/core/MultiStepForm/MultiStepForm.mocks.d.ts +36 -3
  1057. package/lib/core/MultiStepForm/MultiStepForm.mocks.d.ts.map +1 -1
  1058. package/lib/core/MultiStepForm/MultiStepForm.mocks.js +269 -31
  1059. package/lib/core/MultiStepForm/MultiStepForm.mocks.js.map +1 -1
  1060. package/lib/core/MultiStepForm/MultiStepForm.stories.d.ts +5 -3
  1061. package/lib/core/MultiStepForm/MultiStepForm.stories.d.ts.map +1 -1
  1062. package/lib/core/MultiStepForm/MultiStepForm.stories.js +65 -163
  1063. package/lib/core/MultiStepForm/MultiStepForm.stories.js.map +1 -1
  1064. package/lib/core/NoValue/NoValue.stories.d.ts +6 -0
  1065. package/lib/core/NoValue/NoValue.stories.d.ts.map +1 -0
  1066. package/lib/core/NoValue/NoValue.stories.js +29 -0
  1067. package/lib/core/NoValue/NoValue.stories.js.map +1 -0
  1068. package/lib/core/Number/Number.stories.d.ts +8 -8
  1069. package/lib/core/Number/Number.stories.d.ts.map +1 -1
  1070. package/lib/core/Number/Number.stories.js.map +1 -1
  1071. package/lib/core/PageTemplates/PageTemplates.stories.d.ts +8 -8
  1072. package/lib/core/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
  1073. package/lib/core/PageTemplates/PageTemplates.stories.js +2 -2
  1074. package/lib/core/PageTemplates/PageTemplates.stories.js.map +1 -1
  1075. package/lib/core/Pagination/Pagination.stories.d.ts +4 -4
  1076. package/lib/core/Pagination/Pagination.stories.d.ts.map +1 -1
  1077. package/lib/core/Pagination/Pagination.stories.js.map +1 -1
  1078. package/lib/core/Paragraph/ParagraphDisplay.stories.d.ts +4 -4
  1079. package/lib/core/Paragraph/ParagraphDisplay.stories.d.ts.map +1 -1
  1080. package/lib/core/Paragraph/ParagraphDisplay.stories.js.map +1 -1
  1081. package/lib/core/Phone/Phone.stories.d.ts +5 -5
  1082. package/lib/core/Phone/Phone.stories.d.ts.map +1 -1
  1083. package/lib/core/Phone/Phone.stories.js.map +1 -1
  1084. package/lib/core/Popover/Popover.mocks.d.ts +9 -0
  1085. package/lib/core/Popover/Popover.mocks.d.ts.map +1 -0
  1086. package/lib/core/Popover/Popover.mocks.js +105 -0
  1087. package/lib/core/Popover/Popover.mocks.js.map +1 -0
  1088. package/lib/core/Popover/Popover.stories.d.ts +11 -5
  1089. package/lib/core/Popover/Popover.stories.d.ts.map +1 -1
  1090. package/lib/core/Popover/Popover.stories.js +27 -0
  1091. package/lib/core/Popover/Popover.stories.js.map +1 -1
  1092. package/lib/core/Progress/Progress.mocks.d.ts +2 -0
  1093. package/lib/core/Progress/Progress.mocks.d.ts.map +1 -0
  1094. package/lib/core/Progress/Progress.mocks.js +2 -0
  1095. package/lib/core/Progress/Progress.mocks.js.map +1 -0
  1096. package/lib/core/Progress/Progress.stories.d.ts +8 -5
  1097. package/lib/core/Progress/Progress.stories.d.ts.map +1 -1
  1098. package/lib/core/Progress/Progress.stories.js +66 -3
  1099. package/lib/core/Progress/Progress.stories.js.map +1 -1
  1100. package/lib/core/QRCode/QRCode.stories.d.ts +9 -0
  1101. package/lib/core/QRCode/QRCode.stories.d.ts.map +1 -0
  1102. package/lib/core/QRCode/QRCode.stories.js +18 -0
  1103. package/lib/core/QRCode/QRCode.stories.js.map +1 -0
  1104. package/lib/core/RadioButton/RadioButton.stories.d.ts +6 -6
  1105. package/lib/core/RadioButton/RadioButton.stories.d.ts.map +1 -1
  1106. package/lib/core/RadioButton/RadioButton.stories.js +3 -1
  1107. package/lib/core/RadioButton/RadioButton.stories.js.map +1 -1
  1108. package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts +5 -5
  1109. package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts.map +1 -1
  1110. package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.js +9 -5
  1111. package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.js.map +1 -1
  1112. package/lib/core/Rating/Rating.stories.d.ts +5 -5
  1113. package/lib/core/Rating/Rating.stories.d.ts.map +1 -1
  1114. package/lib/core/Rating/Rating.stories.js +1 -1
  1115. package/lib/core/Rating/Rating.stories.js.map +1 -1
  1116. package/lib/core/SearchInput/SearchInput.stories.d.ts +5 -5
  1117. package/lib/core/SearchInput/SearchInput.stories.d.ts.map +1 -1
  1118. package/lib/core/SearchInput/SearchInput.stories.js +1 -1
  1119. package/lib/core/SearchInput/SearchInput.stories.js.map +1 -1
  1120. package/lib/core/Select/Select.stories.d.ts +5 -5
  1121. package/lib/core/Select/Select.stories.d.ts.map +1 -1
  1122. package/lib/core/Select/Select.stories.js.map +1 -1
  1123. package/lib/core/Sentiment/Sentiment.stories.d.ts +5 -5
  1124. package/lib/core/Sentiment/Sentiment.stories.d.ts.map +1 -1
  1125. package/lib/core/Sentiment/Sentiment.stories.js.map +1 -1
  1126. package/lib/core/SkipLinks/SkipLinks.stories.d.ts +4 -4
  1127. package/lib/core/SkipLinks/SkipLinks.stories.d.ts.map +1 -1
  1128. package/lib/core/SkipLinks/SkipLinks.stories.js.map +1 -1
  1129. package/lib/core/Slider/Slider.stories.d.ts +5 -5
  1130. package/lib/core/Slider/Slider.stories.d.ts.map +1 -1
  1131. package/lib/core/Slider/Slider.stories.js.map +1 -1
  1132. package/lib/core/SummaryItem/SummaryItem.stories.d.ts +5 -5
  1133. package/lib/core/SummaryItem/SummaryItem.stories.d.ts.map +1 -1
  1134. package/lib/core/SummaryItem/SummaryItem.stories.js.map +1 -1
  1135. package/lib/core/SummaryList/SummaryList.mocks.d.ts.map +1 -1
  1136. package/lib/core/SummaryList/SummaryList.mocks.js +11 -2
  1137. package/lib/core/SummaryList/SummaryList.mocks.js.map +1 -1
  1138. package/lib/core/SummaryList/SummaryList.stories.d.ts +5 -5
  1139. package/lib/core/SummaryList/SummaryList.stories.d.ts.map +1 -1
  1140. package/lib/core/SummaryList/SummaryList.stories.js +2 -2
  1141. package/lib/core/SummaryList/SummaryList.stories.js.map +1 -1
  1142. package/lib/core/SummaryList/mockUsers.d.ts.map +1 -1
  1143. package/lib/core/SummaryList/mockUsers.js +2 -0
  1144. package/lib/core/SummaryList/mockUsers.js.map +1 -1
  1145. package/lib/core/Switch/Switch.stories.d.ts +6 -6
  1146. package/lib/core/Switch/Switch.stories.d.ts.map +1 -1
  1147. package/lib/core/Switch/Switch.stories.js.map +1 -1
  1148. package/lib/core/Table/Table.mocks.js +1 -1
  1149. package/lib/core/Table/Table.mocks.js.map +1 -1
  1150. package/lib/core/Table/Table.stories.d.ts +6 -6
  1151. package/lib/core/Table/Table.stories.d.ts.map +1 -1
  1152. package/lib/core/Table/Table.stories.js.map +1 -1
  1153. package/lib/core/Tabs/Tabs.stories.d.ts +4 -10
  1154. package/lib/core/Tabs/Tabs.stories.d.ts.map +1 -1
  1155. package/lib/core/Tabs/Tabs.stories.js +1 -31
  1156. package/lib/core/Tabs/Tabs.stories.js.map +1 -1
  1157. package/lib/core/Text/Text.stories.d.ts +5 -5
  1158. package/lib/core/Text/Text.stories.d.ts.map +1 -1
  1159. package/lib/core/Text/Text.stories.js.map +1 -1
  1160. package/lib/core/TextArea/TextArea.stories.d.ts +5 -5
  1161. package/lib/core/TextArea/TextArea.stories.d.ts.map +1 -1
  1162. package/lib/core/TextArea/TextArea.stories.js +1 -1
  1163. package/lib/core/TextArea/TextArea.stories.js.map +1 -1
  1164. package/lib/core/Toaster/Toaster.stories.d.ts +3 -3
  1165. package/lib/core/Toaster/Toaster.stories.d.ts.map +1 -1
  1166. package/lib/core/Toaster/Toaster.stories.js.map +1 -1
  1167. package/lib/core/Tooltip/Tooltip.stories.d.ts +5 -4
  1168. package/lib/core/Tooltip/Tooltip.stories.d.ts.map +1 -1
  1169. package/lib/core/Tooltip/Tooltip.stories.js +9 -1
  1170. package/lib/core/Tooltip/Tooltip.stories.js.map +1 -1
  1171. package/lib/core/Tooltip/Tooltip.styles.d.ts +2 -0
  1172. package/lib/core/Tooltip/Tooltip.styles.d.ts.map +1 -0
  1173. package/lib/core/Tooltip/Tooltip.styles.js +23 -0
  1174. package/lib/core/Tooltip/Tooltip.styles.js.map +1 -0
  1175. package/lib/core/Tree/Tree.stories.d.ts +5 -5
  1176. package/lib/core/Tree/Tree.stories.d.ts.map +1 -1
  1177. package/lib/core/Tree/Tree.stories.js +10 -20
  1178. package/lib/core/Tree/Tree.stories.js.map +1 -1
  1179. package/lib/core/URL/URL.stories.d.ts +4 -4
  1180. package/lib/core/URL/URL.stories.d.ts.map +1 -1
  1181. package/lib/core/URL/URL.stories.js +1 -1
  1182. package/lib/core/URL/URL.stories.js.map +1 -1
  1183. package/lib/cs/Article/Article.mocks.js +4 -4
  1184. package/lib/cs/Article/Article.mocks.js.map +1 -1
  1185. package/lib/cs/Article/Article.stories.d.ts +15 -4
  1186. package/lib/cs/Article/Article.stories.d.ts.map +1 -1
  1187. package/lib/cs/Article/Article.stories.js +168 -53
  1188. package/lib/cs/Article/Article.stories.js.map +1 -1
  1189. package/lib/cs/ArticleList/ArticleList.mocks.d.ts +129 -10
  1190. package/lib/cs/ArticleList/ArticleList.mocks.d.ts.map +1 -1
  1191. package/lib/cs/ArticleList/ArticleList.mocks.js +362 -50
  1192. package/lib/cs/ArticleList/ArticleList.mocks.js.map +1 -1
  1193. package/lib/cs/ArticleList/ArticleList.stories.d.ts +12 -4
  1194. package/lib/cs/ArticleList/ArticleList.stories.d.ts.map +1 -1
  1195. package/lib/cs/ArticleList/ArticleList.stories.js +245 -68
  1196. package/lib/cs/ArticleList/ArticleList.stories.js.map +1 -1
  1197. package/lib/cs/CSAppShell/CSAppShell.mocks.d.ts +18 -1
  1198. package/lib/cs/CSAppShell/CSAppShell.mocks.d.ts.map +1 -1
  1199. package/lib/cs/CSAppShell/CSAppShell.mocks.js +124 -19
  1200. package/lib/cs/CSAppShell/CSAppShell.mocks.js.map +1 -1
  1201. package/lib/cs/CSAppShell/CSAppShell.stories.d.ts +4 -4
  1202. package/lib/cs/CSAppShell/CSAppShell.stories.d.ts.map +1 -1
  1203. package/lib/cs/CSAppShell/CSAppShell.stories.js +10 -21
  1204. package/lib/cs/CSAppShell/CSAppShell.stories.js.map +1 -1
  1205. package/lib/cs/CallControlPanel/CallControlPanel.mocks.d.ts +2 -2
  1206. package/lib/cs/CallControlPanel/CallControlPanel.mocks.d.ts.map +1 -1
  1207. package/lib/cs/CallControlPanel/CallControlPanel.stories.d.ts +5 -5
  1208. package/lib/cs/CallControlPanel/CallControlPanel.stories.d.ts.map +1 -1
  1209. package/lib/cs/CallControlPanel/CallControlPanel.stories.js +2 -2
  1210. package/lib/cs/CallControlPanel/CallControlPanel.stories.js.map +1 -1
  1211. package/lib/cs/DialPad/DialPad.stories.d.ts +4 -4
  1212. package/lib/cs/DialPad/DialPad.stories.d.ts.map +1 -1
  1213. package/lib/cs/DialPad/DialPad.stories.js.map +1 -1
  1214. package/lib/cs/InteractionNotification/InteractionNotification.stories.d.ts +6 -4
  1215. package/lib/cs/InteractionNotification/InteractionNotification.stories.d.ts.map +1 -1
  1216. package/lib/cs/InteractionNotification/InteractionNotification.stories.js +18 -4
  1217. package/lib/cs/InteractionNotification/InteractionNotification.stories.js.map +1 -1
  1218. package/lib/cs/InteractionTimer/InteractionTimer.stories.d.ts +5 -4
  1219. package/lib/cs/InteractionTimer/InteractionTimer.stories.d.ts.map +1 -1
  1220. package/lib/cs/InteractionTimer/InteractionTimer.stories.js +12 -5
  1221. package/lib/cs/InteractionTimer/InteractionTimer.stories.js.map +1 -1
  1222. package/lib/cs/Picker/Picker.stories.d.ts +11 -0
  1223. package/lib/cs/Picker/Picker.stories.d.ts.map +1 -0
  1224. package/lib/cs/Picker/Picker.stories.js +56 -0
  1225. package/lib/cs/Picker/Picker.stories.js.map +1 -0
  1226. package/lib/cs/TaskManager/TaskManager.stories.d.ts +5 -5
  1227. package/lib/cs/TaskManager/TaskManager.stories.d.ts.map +1 -1
  1228. package/lib/cs/TaskManager/TaskManager.stories.js +3 -3
  1229. package/lib/cs/TaskManager/TaskManager.stories.js.map +1 -1
  1230. package/lib/dnd/DragDropList/DragDropList.stories.d.ts +4 -4
  1231. package/lib/dnd/DragDropList/DragDropList.stories.d.ts.map +1 -1
  1232. package/lib/dnd/DragDropList/DragDropList.stories.js.map +1 -1
  1233. package/lib/dnd/StandardDragDropList/Demo.d.ts +1 -0
  1234. package/lib/dnd/StandardDragDropList/Demo.d.ts.map +1 -1
  1235. package/lib/dnd/StandardDragDropList/Demo.js +1 -1
  1236. package/lib/dnd/StandardDragDropList/Demo.js.map +1 -1
  1237. package/lib/dnd/StandardDragDropList/Popover.d.ts +1 -1
  1238. package/lib/dnd/StandardDragDropList/Popover.d.ts.map +1 -1
  1239. package/lib/dnd/StandardDragDropList/StandardDragDropList.stories.d.ts +3 -3
  1240. package/lib/dnd/StandardDragDropList/StandardDragDropList.stories.d.ts.map +1 -1
  1241. package/lib/dnd/StandardDragDropList/StandardDragDropList.stories.js.map +1 -1
  1242. package/lib/dnd/StandardDragDropList/mockData.d.ts +2 -2
  1243. package/lib/dnd/StandardDragDropList/mockData.d.ts.map +1 -1
  1244. package/lib/dnd/StandardDragDropList/mockData.js.map +1 -1
  1245. package/lib/rte/DynamicContentEditor/DynamicContentEditor.stories.d.ts +8 -0
  1246. package/lib/rte/DynamicContentEditor/DynamicContentEditor.stories.d.ts.map +1 -0
  1247. package/lib/rte/DynamicContentEditor/DynamicContentEditor.stories.js +85 -0
  1248. package/lib/rte/DynamicContentEditor/DynamicContentEditor.stories.js.map +1 -0
  1249. package/lib/rte/DynamicContentEditor/FieldSelector.d.ts +14 -0
  1250. package/lib/rte/DynamicContentEditor/FieldSelector.d.ts.map +1 -0
  1251. package/lib/rte/DynamicContentEditor/FieldSelector.js +81 -0
  1252. package/lib/rte/DynamicContentEditor/FieldSelector.js.map +1 -0
  1253. package/lib/rte/Editor/Editor.mocks.d.ts +41 -27
  1254. package/lib/rte/Editor/Editor.mocks.d.ts.map +1 -1
  1255. package/lib/rte/Editor/Editor.stories.d.ts +8 -8
  1256. package/lib/rte/Editor/Editor.stories.d.ts.map +1 -1
  1257. package/lib/rte/Editor/Editor.stories.js.map +1 -1
  1258. package/lib/rte/RichTextEditor/RichTextEditor.stories.d.ts +4 -4
  1259. package/lib/rte/RichTextEditor/RichTextEditor.stories.d.ts.map +1 -1
  1260. package/lib/rte/RichTextEditor/RichTextEditor.stories.js.map +1 -1
  1261. package/lib/rte/RichTextEditor/RichTextViewer.stories.d.ts +6 -6
  1262. package/lib/rte/RichTextEditor/RichTextViewer.stories.d.ts.map +1 -1
  1263. package/lib/rte/RichTextEditor/RichTextViewer.stories.js.map +1 -1
  1264. package/lib/social/Chat/Chat.mocks.d.ts +23 -395
  1265. package/lib/social/Chat/Chat.mocks.d.ts.map +1 -1
  1266. package/lib/social/Chat/Chat.mocks.js +568 -585
  1267. package/lib/social/Chat/Chat.mocks.js.map +1 -1
  1268. package/lib/social/Chat/Chat.stories.d.ts +30 -32
  1269. package/lib/social/Chat/Chat.stories.d.ts.map +1 -1
  1270. package/lib/social/Chat/Chat.stories.js +223 -247
  1271. package/lib/social/Chat/Chat.stories.js.map +1 -1
  1272. package/lib/social/Email/Email.mocks.d.ts +50 -8
  1273. package/lib/social/Email/Email.mocks.d.ts.map +1 -1
  1274. package/lib/social/Email/Email.mocks.js +131 -19
  1275. package/lib/social/Email/Email.mocks.js.map +1 -1
  1276. package/lib/social/Email/Email.stories.d.ts +24 -14
  1277. package/lib/social/Email/Email.stories.d.ts.map +1 -1
  1278. package/lib/social/Email/Email.stories.js +160 -38
  1279. package/lib/social/Email/Email.stories.js.map +1 -1
  1280. package/lib/social/Feed/Feed.mocks.d.ts +2 -1
  1281. package/lib/social/Feed/Feed.mocks.d.ts.map +1 -1
  1282. package/lib/social/Feed/Feed.mocks.js +5 -3
  1283. package/lib/social/Feed/Feed.mocks.js.map +1 -1
  1284. package/lib/social/Feed/Feed.stories.d.ts +5 -5
  1285. package/lib/social/Feed/Feed.stories.d.ts.map +1 -1
  1286. package/lib/social/Feed/Feed.stories.js +13 -5
  1287. package/lib/social/Feed/Feed.stories.js.map +1 -1
  1288. package/lib/social/Feed/FeedNewPost.stories.d.ts +4 -4
  1289. package/lib/social/Feed/FeedNewPost.stories.d.ts.map +1 -1
  1290. package/lib/social/Feed/FeedNewPost.stories.js +2 -2
  1291. package/lib/social/Feed/FeedNewPost.stories.js.map +1 -1
  1292. package/lib/social/Feed/FeedPost.stories.d.ts +6 -6
  1293. package/lib/social/Feed/FeedPost.stories.d.ts.map +1 -1
  1294. package/lib/social/Feed/FeedPost.stories.js +16 -7
  1295. package/lib/social/Feed/FeedPost.stories.js.map +1 -1
  1296. package/lib/social/Feed/FeedReply.stories.d.ts +5 -5
  1297. package/lib/social/Feed/FeedReply.stories.d.ts.map +1 -1
  1298. package/lib/social/Feed/FeedReply.stories.js +11 -3
  1299. package/lib/social/Feed/FeedReply.stories.js.map +1 -1
  1300. package/lib/social/Feed/FeedReplyInput.stories.d.ts +4 -4
  1301. package/lib/social/Feed/FeedReplyInput.stories.d.ts.map +1 -1
  1302. package/lib/social/Feed/FeedReplyInput.stories.js +2 -2
  1303. package/lib/social/Feed/FeedReplyInput.stories.js.map +1 -1
  1304. package/lib/tools/Clipboard/Clipboard.mocks.d.ts.map +1 -1
  1305. package/lib/tools/Clipboard/Clipboard.mocks.js +0 -1
  1306. package/lib/tools/Clipboard/Clipboard.mocks.js.map +1 -1
  1307. package/lib/tools/Clipboard/Clipboard.stories.d.ts +4 -4
  1308. package/lib/tools/Clipboard/Clipboard.stories.d.ts.map +1 -1
  1309. package/lib/tools/Clipboard/Clipboard.stories.js +13 -17
  1310. package/lib/tools/Clipboard/Clipboard.stories.js.map +1 -1
  1311. package/lib/tools/DevTools/DevTools.stories.d.ts +4 -4
  1312. package/lib/tools/DevTools/DevTools.stories.d.ts.map +1 -1
  1313. package/lib/tools/DevTools/DevTools.stories.js +2 -4
  1314. package/lib/tools/DevTools/DevTools.stories.js.map +1 -1
  1315. package/lib/tools/PreviewShell/PreviewShell.mocks.d.ts +12 -1
  1316. package/lib/tools/PreviewShell/PreviewShell.mocks.d.ts.map +1 -1
  1317. package/lib/tools/PreviewShell/PreviewShell.mocks.js +22 -2
  1318. package/lib/tools/PreviewShell/PreviewShell.mocks.js.map +1 -1
  1319. package/lib/tools/PreviewShell/PreviewShell.stories.d.ts +10 -8
  1320. package/lib/tools/PreviewShell/PreviewShell.stories.d.ts.map +1 -1
  1321. package/lib/tools/PreviewShell/PreviewShell.stories.js +70 -51
  1322. package/lib/tools/PreviewShell/PreviewShell.stories.js.map +1 -1
  1323. package/lib/tools/PreviewShell/PreviewShell.styles.d.ts +1 -2
  1324. package/lib/tools/PreviewShell/PreviewShell.styles.d.ts.map +1 -1
  1325. package/lib/tools/PreviewShell/PreviewShell.styles.js +1 -2
  1326. package/lib/tools/PreviewShell/PreviewShell.styles.js.map +1 -1
  1327. package/lib/work/AppAnnouncement/AppAnnouncement.stories.d.ts +4 -4
  1328. package/lib/work/AppAnnouncement/AppAnnouncement.stories.d.ts.map +1 -1
  1329. package/lib/work/AppAnnouncement/AppAnnouncement.stories.js.map +1 -1
  1330. package/lib/work/Assignments/Assignments.stories.d.ts +11 -0
  1331. package/lib/work/Assignments/Assignments.stories.d.ts.map +1 -0
  1332. package/lib/work/Assignments/Assignments.stories.js +63 -0
  1333. package/lib/work/Assignments/Assignments.stories.js.map +1 -0
  1334. package/lib/work/CaseView/Attachments.mocks.d.ts.map +1 -1
  1335. package/lib/work/CaseView/Attachments.mocks.js +96 -80
  1336. package/lib/work/CaseView/Attachments.mocks.js.map +1 -1
  1337. package/lib/work/CaseView/CaseView.mocks.d.ts +39 -22
  1338. package/lib/work/CaseView/CaseView.mocks.d.ts.map +1 -1
  1339. package/lib/work/CaseView/CaseView.mocks.js +241 -103
  1340. package/lib/work/CaseView/CaseView.mocks.js.map +1 -1
  1341. package/lib/work/CaseView/CaseView.stories.d.ts +4 -9
  1342. package/lib/work/CaseView/CaseView.stories.d.ts.map +1 -1
  1343. package/lib/work/CaseView/CaseView.stories.js +39 -11
  1344. package/lib/work/CaseView/CaseView.stories.js.map +1 -1
  1345. package/lib/work/CaseView/Details.mocks.js +1 -1
  1346. package/lib/work/CaseView/Details.mocks.js.map +1 -1
  1347. package/lib/work/CaseView/FileService.mock.d.ts +2 -2
  1348. package/lib/work/CaseView/FileService.mock.d.ts.map +1 -1
  1349. package/lib/work/CaseView/FileService.mock.js +2 -6
  1350. package/lib/work/CaseView/FileService.mock.js.map +1 -1
  1351. package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts +3 -3
  1352. package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts.map +1 -1
  1353. package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.js.map +1 -1
  1354. package/lib/work/Confirmation/Confirmation.stories.d.ts +4 -4
  1355. package/lib/work/Confirmation/Confirmation.stories.d.ts.map +1 -1
  1356. package/lib/work/Confirmation/Confirmation.stories.js +1 -1
  1357. package/lib/work/Confirmation/Confirmation.stories.js.map +1 -1
  1358. package/lib/work/Details/Details.stories.d.ts +3 -3
  1359. package/lib/work/Details/Details.stories.d.ts.map +1 -1
  1360. package/lib/work/Details/Details.stories.js +6 -1
  1361. package/lib/work/Details/Details.stories.js.map +1 -1
  1362. package/lib/work/Glimpse/Glimpse.stories.d.ts +3 -8
  1363. package/lib/work/Glimpse/Glimpse.stories.d.ts.map +1 -1
  1364. package/lib/work/Glimpse/Glimpse.stories.js +12 -14
  1365. package/lib/work/Glimpse/Glimpse.stories.js.map +1 -1
  1366. package/lib/work/IntelligentGuidance/IntelligentGuidance.stories.d.ts +4 -4
  1367. package/lib/work/IntelligentGuidance/IntelligentGuidance.stories.d.ts.map +1 -1
  1368. package/lib/work/IntelligentGuidance/IntelligentGuidance.stories.js +89 -12
  1369. package/lib/work/IntelligentGuidance/IntelligentGuidance.stories.js.map +1 -1
  1370. package/lib/work/Predictions/Predictions.mocks.d.ts +3 -0
  1371. package/lib/work/Predictions/Predictions.mocks.d.ts.map +1 -0
  1372. package/lib/work/Predictions/Predictions.mocks.js +6 -0
  1373. package/lib/work/Predictions/Predictions.mocks.js.map +1 -0
  1374. package/lib/work/Predictions/Predictions.stories.d.ts +5 -0
  1375. package/lib/work/Predictions/Predictions.stories.d.ts.map +1 -0
  1376. package/lib/work/Predictions/Predictions.stories.js +54 -0
  1377. package/lib/work/Predictions/Predictions.stories.js.map +1 -0
  1378. package/lib/work/SearchResults/SearchResults.mocks.d.ts +1 -1
  1379. package/lib/work/SearchResults/SearchResults.mocks.d.ts.map +1 -1
  1380. package/lib/work/SearchResults/SearchResults.stories.d.ts +3 -3
  1381. package/lib/work/SearchResults/SearchResults.stories.d.ts.map +1 -1
  1382. package/lib/work/SearchResults/SearchResults.stories.js +20 -7
  1383. package/lib/work/SearchResults/SearchResults.stories.js.map +1 -1
  1384. package/lib/work/Stages/Stages.mocks.js +6 -6
  1385. package/lib/work/Stages/Stages.mocks.js.map +1 -1
  1386. package/lib/work/Stages/Stages.stories.d.ts +4 -4
  1387. package/lib/work/Stages/Stages.stories.d.ts.map +1 -1
  1388. package/lib/work/Stages/Stages.stories.js +22 -8
  1389. package/lib/work/Stages/Stages.stories.js.map +1 -1
  1390. package/lib/work/Stakeholders/Stakeholders.mocks.d.ts.map +1 -1
  1391. package/lib/work/Stakeholders/Stakeholders.mocks.js +4 -2
  1392. package/lib/work/Stakeholders/Stakeholders.mocks.js.map +1 -1
  1393. package/lib/work/Stakeholders/Stakeholders.stories.d.ts +3 -3
  1394. package/lib/work/Stakeholders/Stakeholders.stories.d.ts.map +1 -1
  1395. package/lib/work/Stakeholders/Stakeholders.stories.js.map +1 -1
  1396. package/lib/work/Tags/Tags.stories.d.ts +3 -3
  1397. package/lib/work/Tags/Tags.stories.d.ts.map +1 -1
  1398. package/lib/work/Tags/Tags.stories.js +7 -1
  1399. package/lib/work/Tags/Tags.stories.js.map +1 -1
  1400. package/lib/work/Tasks/TaskList.stories.d.ts +3 -3
  1401. package/lib/work/Tasks/TaskList.stories.d.ts.map +1 -1
  1402. package/lib/work/Tasks/TaskList.stories.js.map +1 -1
  1403. package/lib/work/Tasks/Tasks.mocks.d.ts +22 -0
  1404. package/lib/work/Tasks/Tasks.mocks.d.ts.map +1 -0
  1405. package/lib/work/Tasks/Tasks.mocks.js +51 -0
  1406. package/lib/work/Tasks/Tasks.mocks.js.map +1 -0
  1407. package/lib/work/Tasks/Tasks.stories.d.ts +9 -7
  1408. package/lib/work/Tasks/Tasks.stories.d.ts.map +1 -1
  1409. package/lib/work/Tasks/Tasks.stories.js +40 -54
  1410. package/lib/work/Tasks/Tasks.stories.js.map +1 -1
  1411. package/lib/work/Timeline/Timeline.mocks.d.ts.map +1 -1
  1412. package/lib/work/Timeline/Timeline.mocks.js +16 -1
  1413. package/lib/work/Timeline/Timeline.mocks.js.map +1 -1
  1414. package/lib/work/Timeline/Timeline.stories.d.ts +6 -6
  1415. package/lib/work/Timeline/Timeline.stories.d.ts.map +1 -1
  1416. package/lib/work/Timeline/Timeline.stories.js +2 -2
  1417. package/lib/work/Timeline/Timeline.stories.js.map +1 -1
  1418. package/lib/wss/AppShell/AppShell.stories.d.ts +5 -5
  1419. package/lib/wss/AppShell/AppShell.stories.d.ts.map +1 -1
  1420. package/lib/wss/AppShell/AppShell.stories.js +18 -1
  1421. package/lib/wss/AppShell/AppShell.stories.js.map +1 -1
  1422. package/lib/wss/CaseView/CaseView.stories.d.ts +3 -3
  1423. package/lib/wss/CaseView/CaseView.stories.d.ts.map +1 -1
  1424. package/lib/wss/CaseView/CaseView.stories.js +5 -3
  1425. package/lib/wss/CaseView/CaseView.stories.js.map +1 -1
  1426. package/lib/wss/PageTemplates/PageTemplates.stories.d.ts +3 -3
  1427. package/lib/wss/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
  1428. package/lib/wss/PageTemplates/PageTemplates.stories.js +2 -2
  1429. package/lib/wss/PageTemplates/PageTemplates.stories.js.map +1 -1
  1430. package/lib/wss/QuickCreate/QuickCreate.stories.d.ts +3 -3
  1431. package/lib/wss/QuickCreate/QuickCreate.stories.d.ts.map +1 -1
  1432. package/lib/wss/QuickCreate/QuickCreate.stories.js.map +1 -1
  1433. package/package.json +24 -21
  1434. package/jsx/build/AppHeader/AppHeader.stories.d.ts +0 -13
  1435. package/jsx/build/AppHeader/AppHeader.stories.d.ts.map +0 -1
  1436. package/jsx/build/AppHeader/AppHeader.stories.jsx +0 -153
  1437. package/jsx/build/AppHeader/AppHeader.stories.jsx.map +0 -1
  1438. package/jsx/social/Chat/RepeatingView.mocks.d.ts +0 -14
  1439. package/jsx/social/Chat/RepeatingView.mocks.d.ts.map +0 -1
  1440. package/jsx/social/Chat/RepeatingView.mocks.js +0 -11
  1441. package/jsx/social/Chat/RepeatingView.mocks.js.map +0 -1
  1442. package/jsx/social/Chat/RepeatingView.stories.d.ts +0 -9
  1443. package/jsx/social/Chat/RepeatingView.stories.d.ts.map +0 -1
  1444. package/jsx/social/Chat/RepeatingView.stories.jsx +0 -60
  1445. package/jsx/social/Chat/RepeatingView.stories.jsx.map +0 -1
  1446. package/jsx/social/Chat/RepeatingView.styles.d.ts +0 -2
  1447. package/jsx/social/Chat/RepeatingView.styles.d.ts.map +0 -1
  1448. package/jsx/social/Chat/RepeatingView.styles.js +0 -22
  1449. package/jsx/social/Chat/RepeatingView.styles.js.map +0 -1
  1450. package/lib/build/AppHeader/AppHeader.stories.d.ts +0 -13
  1451. package/lib/build/AppHeader/AppHeader.stories.d.ts.map +0 -1
  1452. package/lib/build/AppHeader/AppHeader.stories.js +0 -152
  1453. package/lib/build/AppHeader/AppHeader.stories.js.map +0 -1
  1454. package/lib/social/Chat/RepeatingView.mocks.d.ts +0 -14
  1455. package/lib/social/Chat/RepeatingView.mocks.d.ts.map +0 -1
  1456. package/lib/social/Chat/RepeatingView.mocks.js +0 -11
  1457. package/lib/social/Chat/RepeatingView.mocks.js.map +0 -1
  1458. package/lib/social/Chat/RepeatingView.stories.d.ts +0 -9
  1459. package/lib/social/Chat/RepeatingView.stories.d.ts.map +0 -1
  1460. package/lib/social/Chat/RepeatingView.stories.js +0 -59
  1461. package/lib/social/Chat/RepeatingView.stories.js.map +0 -1
  1462. package/lib/social/Chat/RepeatingView.styles.d.ts +0 -2
  1463. package/lib/social/Chat/RepeatingView.styles.d.ts.map +0 -1
  1464. package/lib/social/Chat/RepeatingView.styles.js +0 -22
  1465. package/lib/social/Chat/RepeatingView.styles.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"UnorderedList.stories.js","sourceRoot":"","sources":["../../../src/core/List/UnorderedList.stories.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE5C,OAAO,EAAsB,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAE5E,eAAe;IACb,KAAK,EAAE,WAAW;IAClB,SAAS,EAAE,aAAa;CACjB,CAAC;AAOV,MAAM,CAAC,MAAM,iBAAiB,GAAmC,CAC/D,IAA6B,EAC7B,EAAE;IACF,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;IACtC,MAAM,KAAK,GAAG;QACZ,SAAS;QACT,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC;QAC/E,SAAS;QACT,UAAU;QACV,UAAU;QACV,UAAU;KACX,CAAC;IAEF,SAAS,CAAC,GAAG,EAAE;QACb,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;IAC7B,CAAC,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;IAEvB,MAAM,gBAAgB,GAAG,GAAG,EAAE;QAC5B,IAAI,KAAK,KAAK,IAAI,CAAC,WAAW,EAAE;YAC9B,QAAQ,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,MAAM,CAAC,CAAC;SAC/B;aAAM;YACL,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;SAC5B;IACH,CAAC,CAAC;IAEF,OAAO,CACL,KAAC,aAAa,IACZ,YAAY,EAAE,gBAAgB,EAC9B,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,CAAC,EAC5B,KAAK,EAAE,KAAK,CAAC,IAAI,EAAE,CAAC,MAAM,GAC1B,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,iBAAiB,CAAC,IAAI,GAAG;IACvB,OAAO,EAAE,cAAc;IACvB,WAAW,EAAE,CAAC;CACf,CAAC;AAEF,iBAAiB,CAAC,QAAQ,GAAG;IAC3B,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;IACtC,WAAW,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;CAC7C,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\nimport { useState, useEffect } from 'react';\n\nimport { UnorderedListProps, UnorderedList } from '@pega/cosmos-react-core';\n\nexport default {\n title: 'Core/List',\n component: UnorderedList\n} as Meta;\n\ninterface UnorderedListStoryProps {\n itemsToShow: number;\n heading: UnorderedListProps['heading'];\n}\n\nexport const UnorderedListDemo: Story<UnorderedListStoryProps> = (\n args: UnorderedListStoryProps\n) => {\n const [limit, setLimit] = useState(0);\n const items = [\n 'Value 1',\n ['Value 2', 'Value 3', 'Value 4', ['Value 5', 'Value 6', 'Value 7', 'Value 8']],\n 'Value 9',\n 'Value 10',\n 'Value 11',\n 'Value 12'\n ];\n\n useEffect(() => {\n setLimit(args.itemsToShow);\n }, [args.itemsToShow]);\n\n const handleToggleShow = () => {\n if (limit === args.itemsToShow) {\n setLimit(items.flat().length);\n } else {\n setLimit(args.itemsToShow);\n }\n };\n\n return (\n <UnorderedList\n onToggleShow={handleToggleShow}\n heading={args.heading}\n items={items.slice(0, limit)}\n count={items.flat().length}\n />\n );\n};\n\nUnorderedListDemo.args = {\n heading: 'List Heading',\n itemsToShow: 3\n};\n\nUnorderedListDemo.argTypes = {\n heading: { control: { type: 'text' } },\n itemsToShow: { control: { type: 'number' } }\n};\n"]}
1
+ {"version":3,"file":"UnorderedList.stories.js","sourceRoot":"","sources":["../../../src/core/List/UnorderedList.stories.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE5C,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAGxD,eAAe;IACb,KAAK,EAAE,WAAW;IAClB,SAAS,EAAE,aAAa;CACjB,CAAC;AAOV,MAAM,CAAC,MAAM,iBAAiB,GAAqC,CACjE,IAA6B,EAC7B,EAAE;IACF,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;IACtC,MAAM,KAAK,GAAG;QACZ,SAAS;QACT,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC;QAC/E,SAAS;QACT,UAAU;QACV,UAAU;QACV,UAAU;KACX,CAAC;IAEF,SAAS,CAAC,GAAG,EAAE;QACb,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;IAC7B,CAAC,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;IAEvB,MAAM,gBAAgB,GAAG,GAAG,EAAE;QAC5B,IAAI,KAAK,KAAK,IAAI,CAAC,WAAW,EAAE;YAC9B,QAAQ,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,MAAM,CAAC,CAAC;SAC/B;aAAM;YACL,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;SAC5B;IACH,CAAC,CAAC;IAEF,OAAO,CACL,KAAC,aAAa,IACZ,YAAY,EAAE,gBAAgB,EAC9B,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,CAAC,EAC5B,KAAK,EAAE,KAAK,CAAC,IAAI,EAAE,CAAC,MAAM,GAC1B,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,iBAAiB,CAAC,IAAI,GAAG;IACvB,OAAO,EAAE,cAAc;IACvB,WAAW,EAAE,CAAC;CACf,CAAC;AAEF,iBAAiB,CAAC,QAAQ,GAAG;IAC3B,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;IACtC,WAAW,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;CAC7C,CAAC","sourcesContent":["import type { Meta, StoryFn } from '@storybook/react';\nimport { useState, useEffect } from 'react';\n\nimport { UnorderedList } from '@pega/cosmos-react-core';\nimport type { UnorderedListProps } from '@pega/cosmos-react-core';\n\nexport default {\n title: 'Core/List',\n component: UnorderedList\n} as Meta;\n\ninterface UnorderedListStoryProps {\n itemsToShow: number;\n heading: UnorderedListProps['heading'];\n}\n\nexport const UnorderedListDemo: StoryFn<UnorderedListStoryProps> = (\n args: UnorderedListStoryProps\n) => {\n const [limit, setLimit] = useState(0);\n const items = [\n 'Value 1',\n ['Value 2', 'Value 3', 'Value 4', ['Value 5', 'Value 6', 'Value 7', 'Value 8']],\n 'Value 9',\n 'Value 10',\n 'Value 11',\n 'Value 12'\n ];\n\n useEffect(() => {\n setLimit(args.itemsToShow);\n }, [args.itemsToShow]);\n\n const handleToggleShow = () => {\n if (limit === args.itemsToShow) {\n setLimit(items.flat().length);\n } else {\n setLimit(args.itemsToShow);\n }\n };\n\n return (\n <UnorderedList\n onToggleShow={handleToggleShow}\n heading={args.heading}\n items={items.slice(0, limit)}\n count={items.flat().length}\n />\n );\n};\n\nUnorderedListDemo.args = {\n heading: 'List Heading',\n itemsToShow: 3\n};\n\nUnorderedListDemo.argTypes = {\n heading: { control: { type: 'text' } },\n itemsToShow: { control: { type: 'number' } }\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"ListToolbar.mocks.d.ts","sourceRoot":"","sources":["../../../src/core/ListToolbar/ListToolbar.mocks.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA8B,QAAQ,EAAwB,MAAM,OAAO,CAAC;AAEnF,OAAO,EAGL,MAAM,EAQP,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,iBAAiB,EAAE,MAAM,sEAAsE,CAAC;AAEzG,eAAO,MAAM,OAAO,EAAE,MAAM,EAIzB,CAAC;AAEJ,eAAO,MAAM,SAAS,EAAE,iBAAiB,CAAC,OAAO,CAIhD,CAAC;AAEF,eAAO,MAAM,0BAA0B,2CAA4C,CAAC;AA6DpF,eAAO,MAAM,cAAc,mBAoB1B,CAAC;AAEF,eAAO,MAAM,aAAa,mBAEzB,CAAC"}
1
+ {"version":3,"file":"ListToolbar.mocks.d.ts","sourceRoot":"","sources":["../../../src/core/ListToolbar/ListToolbar.mocks.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiB,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEhD,OAAO,EAAE,MAAM,EAAsC,MAAM,yBAAyB,CAAC;AACrF,OAAO,EAAE,iBAAiB,EAAE,MAAM,sEAAsE,CAAC;AAMzG,eAAO,MAAM,OAAO,EAAE,MAAM,EAIzB,CAAC;AAEJ,eAAO,MAAM,SAAS,EAAE,iBAAiB,CAAC,OAAO,CAIhD,CAAC;AAEF,eAAO,MAAM,0BAA0B,2CAA4C,CAAC;AAwDpF,eAAO,MAAM,cAAc,mBAE1B,CAAC;AAEF,eAAO,MAAM,aAAa,mBAEzB,CAAC"}
@@ -1,6 +1,9 @@
1
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- import { createContext, useContext, useState } from 'react';
3
- import { useAfterInitialEffect, useUID, Input, Select, Option, Flex, Button, Icon, Grid } from '@pega/cosmos-react-core';
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { createContext } from 'react';
3
+ import { Select, Option, Flex, Button, Icon } from '@pega/cosmos-react-core';
4
+ import { ConditionBuilder } from '@pega/cosmos-react-condition-builder';
5
+ import FieldSelector from '@pega/cosmos-react-condition-builder/lib/components/ConditionBuilder/RhsControls/FieldSelector';
6
+ import { demoFields } from '../../condition-builder/ConditionBuilder/props.mock';
4
7
  export const actions = ['Action 1', 'Action 2', 'Action 3'].map(text => ({
5
8
  text,
6
9
  id: text,
@@ -12,39 +15,29 @@ export const mockViews = [
12
15
  { id: '3', text: 'Data view 3', selected: false }
13
16
  ];
14
17
  export const StagedStateDispatchContext = createContext(() => { });
15
- const mockFields = Array.from({ length: 10 }, (_, i) => `Field ${i + 1}`);
16
- const MockCondition = () => {
17
- const setStagedState = useContext(StagedStateDispatchContext);
18
- const conditionId = useUID();
19
- const [localState, setLocalState] = useState({
20
- lhs: 'Field 1',
21
- comparator: 'Equals',
22
- rhs: ''
23
- });
24
- useAfterInitialEffect(() => {
25
- setStagedState({
26
- [conditionId]: localState
27
- });
28
- }, [conditionId, localState, setStagedState]);
29
- return (_jsxs(Grid, { container: { gap: 2, cols: 'repeat(3, minmax(0, 1fr))' }, children: [_jsx(Select, { label: 'Field', onChange: (e) => {
30
- setLocalState(cur => ({ ...cur, lhs: e.target.value }));
31
- }, children: mockFields.map(field => {
32
- return (_jsx(Option, { value: field, children: field }, field));
33
- }) }), _jsx(Select, { label: 'Comparator', onChange: (e) => {
34
- setLocalState(cur => ({ ...cur, comparator: e.target.value }));
35
- }, children: ['Equals', 'Contains', 'Starts with'].map(comparator => {
36
- return (_jsx(Option, { value: comparator, children: comparator }, comparator));
37
- }) }), _jsx(Input, { label: 'Value', value: localState.rhs, onChange: (e) => {
38
- setLocalState(cur => ({ ...cur, rhs: e.target.value }));
39
- } })] }));
18
+ const GroupByMock = () => {
19
+ return (_jsxs(Flex, { container: { direction: 'column', gap: 2 }, children: [_jsx(Flex, { container: { direction: 'column', gap: 1 }, children: _jsxs(Flex, { container: {
20
+ justify: 'between',
21
+ alignItems: 'center',
22
+ direction: 'row',
23
+ wrap: 'nowrap',
24
+ itemGap: 0.5
25
+ }, children: [_jsxs(Flex, { container: {
26
+ justify: 'start',
27
+ alignItems: 'center',
28
+ direction: 'row',
29
+ wrap: 'nowrap',
30
+ itemGap: 0.5
31
+ }, item: { grow: 1 }, children: [_jsx(Icon, { name: 'drag' }), _jsx(Flex, { item: { grow: 1, basis: '50%' }, children: _jsx(FieldSelector, { fields: [], value: '', onChange: () => { } }) }), _jsxs(Flex, { as: Select, item: { basis: '50%' }, children: [_jsx(Option, { children: " " }), _jsx(Option, { children: "Item A" })] })] }), _jsx(Button, { "aria-label": 'Delete group', icon: true, variant: 'simple', children: _jsx(Icon, { name: 'trash' }) })] }) }), _jsx(Button, { variant: 'link', "aria-label": 'Add a group', children: _jsxs(Flex, { container: {
32
+ inline: true,
33
+ alignItems: 'start',
34
+ gap: 1
35
+ }, as: 'span', children: [_jsx(Icon, { name: 'plus' }), _jsx("span", { children: "Add" })] }) })] }));
40
36
  };
41
37
  export const FilterRenderer = () => {
42
- const [conditions, setConditions] = useState(() => [_jsx(MockCondition, {}, 1)]);
43
- return (_jsxs(Flex, { container: { direction: 'column', gap: 2 }, children: [conditions, _jsx("div", { children: _jsx(Button, { variant: 'link', onClick: () => {
44
- setConditions(cur => [...cur, _jsx(MockCondition, {}, cur.length + 1)]);
45
- }, children: _jsxs(Flex, { container: { inline: true, alignItems: 'start', gap: 1 }, as: 'span', children: [_jsx(Icon, { name: 'plus' }), _jsx("span", { children: "Add condition" })] }) }) })] }));
38
+ return _jsx(ConditionBuilder, { fields: demoFields });
46
39
  };
47
40
  export const GroupRenderer = () => {
48
- return _jsx(_Fragment, { children: "GroupBy content goes here..." });
41
+ return _jsx(GroupByMock, {});
49
42
  };
50
43
  //# sourceMappingURL=ListToolbar.mocks.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ListToolbar.mocks.js","sourceRoot":"","sources":["../../../src/core/ListToolbar/ListToolbar.mocks.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAe,aAAa,EAAY,UAAU,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEnF,OAAO,EACL,qBAAqB,EACrB,MAAM,EAEN,KAAK,EACL,MAAM,EACN,MAAM,EACN,IAAI,EACJ,MAAM,EACN,IAAI,EACJ,IAAI,EACL,MAAM,yBAAyB,CAAC;AAGjC,MAAM,CAAC,MAAM,OAAO,GAAa,CAAC,UAAU,EAAE,UAAU,EAAE,UAAU,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACjF,IAAI;IACJ,EAAE,EAAE,IAAI;IACR,IAAI,EAAE,QAAQ;CACf,CAAC,CAAC,CAAC;AAEJ,MAAM,CAAC,MAAM,SAAS,GAA+B;IACnD,EAAE,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,aAAa,EAAE,QAAQ,EAAE,IAAI,EAAE;IAChD,EAAE,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE;IACjD,EAAE,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE;CAClD,CAAC;AAEF,MAAM,CAAC,MAAM,0BAA0B,GAAG,aAAa,CAAmB,GAAG,EAAE,GAAE,CAAC,CAAC,CAAC;AAEpF,MAAM,UAAU,GAAG,K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I,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,EAAE,EAAE,EAAE,EAAC,MAAM,aACvE,KAAC,IAAI,IAAC,IAAI,EAAC,MAAM,GAAG,EACpB,2CAA0B,IACrB,GACA,GACL,IACD,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAG,GAAG,EAAE;IAChC,OAAO,6DAAiC,CAAC;AAC3C,CAAC,CAAC","sourcesContent":["import { ChangeEvent, createContext, Dispatch, useContext, useState } from 'react';\n\nimport {\n useAfterInitialEffect,\n useUID,\n Action,\n Input,\n Select,\n Option,\n Flex,\n Button,\n Icon,\n Grid\n} from '@pega/cosmos-react-core';\nimport { ViewSelectorProps } from '@pega/cosmos-react-core/lib/components/ListToolbar/ListToolbar.types';\n\nexport const actions: Action[] = ['Action 1', 'Action 2', 'Action 3'].map(text => ({\n text,\n id: text,\n icon: 'filter'\n}));\n\nexport const mockViews: ViewSelectorProps['views'] = [\n { id: '1', text: 'Data view 1', selected: true },\n { id: '2', text: 'Data view 2', selected: false },\n { id: '3', text: 'Data view 3', selected: false }\n];\n\nexport const StagedStateDispatchContext = createContext<Dispatch<object>>(() => {});\n\nconst mockFields = Array.from({ length: 10 }, (_, i) => `Field ${i + 1}`);\n\nconst MockCondition = () => {\n const setStagedState = useContext(StagedStateDispatchContext);\n const conditionId = useUID();\n\n const [localState, setLocalState] = useState({\n lhs: 'Field 1',\n comparator: 'Equals',\n rhs: ''\n });\n\n useAfterInitialEffect(() => {\n setStagedState({\n [conditionId]: localState\n });\n }, [conditionId, localState, setStagedState]);\n\n return (\n <Grid container={{ gap: 2, cols: 'repeat(3, minmax(0, 1fr))' }}>\n <Select\n label='Field'\n onChange={(e: ChangeEvent<HTMLSelectElement>) => {\n setLocalState(cur => ({ ...cur, lhs: e.target.value }));\n }}\n >\n {mockFields.map(field => {\n return (\n <Option value={field} key={field}>\n {field}\n </Option>\n );\n })}\n </Select>\n <Select\n label='Comparator'\n onChange={(e: ChangeEvent<HTMLSelectElement>) => {\n setLocalState(cur => ({ ...cur, comparator: e.target.value }));\n }}\n >\n {['Equals', 'Contains', 'Starts with'].map(comparator => {\n return (\n <Option value={comparator} key={comparator}>\n {comparator}\n </Option>\n );\n })}\n </Select>\n <Input\n label='Value'\n value={localState.rhs}\n onChange={(e: ChangeEvent<HTMLInputElement>) => {\n setLocalState(cur => ({ ...cur, rhs: e.target.value }));\n }}\n />\n </Grid>\n );\n};\n\nexport const FilterRenderer = () => {\n const [conditions, setConditions] = useState<JSX.Element[]>(() => [<MockCondition key={1} />]);\n return (\n <Flex container={{ direction: 'column', gap: 2 }}>\n {conditions}\n <div>\n <Button\n variant='link'\n onClick={() => {\n setConditions(cur => [...cur, <MockCondition key={cur.length + 1} />]);\n }}\n >\n <Flex container={{ inline: true, alignItems: 'start', gap: 1 }} as='span'>\n <Icon name='plus' />\n <span>Add condition</span>\n </Flex>\n </Button>\n </div>\n </Flex>\n );\n};\n\nexport const GroupRenderer = () => {\n return <>GroupBy content goes here...</>;\n};\n"]}
1
+ {"version":3,"file":"ListToolbar.mocks.js","sourceRoot":"","sources":["../../../src/core/ListToolbar/ListToolbar.mocks.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,aAAa,EAAY,MAAM,OAAO,CAAC;AAEhD,OAAO,EAAU,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAErF,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AACxE,OAAO,aAAa,MAAM,gGAAgG,CAAC;AAE3H,OAAO,EAAE,UAAU,EAAE,MAAM,qDAAqD,CAAC;AAEjF,MAAM,CAAC,MAAM,OAAO,GAAa,CAAC,UAAU,EAAE,UAAU,EAAE,UAAU,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACjF,IAAI;IACJ,EAAE,EAAE,IAAI;IACR,IAAI,EAAE,QAAQ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,EAAE,EAAC,QAAQ,EAAE,GAAG,EAAE,GAAE,CAAC,GAAI,GACrD,EACP,MAAC,IAAI,IAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,aACtC,KAAC,MAAM,oBAAW,EAClB,KAAC,MAAM,yBAAgB,IAClB,IACF,EACP,KAAC,MAAM,kBAAY,cAAc,EAAC,IAAI,QAAC,OAAO,EAAC,QAAQ,YACrD,KAAC,IAAI,IAAC,IAAI,EAAC,OAAO,GAAG,GACd,IACJ,GACF,EACP,KAAC,MAAM,IAAC,OAAO,EAAC,MAAM,gBAAY,aAAa,YAC7C,MAAC,IAAI,IACH,SAAS,EAAE;wBACT,MAAM,EAAE,IAAI;wBACZ,UAAU,EAAE,OAAO;wBACnB,GAAG,EAAE,CAAC;qBACP,EACD,EAAE,EAAC,MAAM,aAET,KAAC,IAAI,IAAC,IAAI,EAAC,MAAM,GAAG,EACpB,iCAAgB,IACX,GACA,IACJ,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG,GAAG,EAAE;IACjC,OAAO,KAAC,gBAAgB,IAAC,MAAM,EAAE,UAAU,GAAI,CAAC;AAClD,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAG,GAAG,EAAE;IAChC,OAAO,KAAC,WAAW,KAAG,CAAC;AACzB,CAAC,CAAC","sourcesContent":["import { createContext, Dispatch } from 'react';\n\nimport { Action, Select, Option, Flex, Button, Icon } from '@pega/cosmos-react-core';\nimport { ViewSelectorProps } from '@pega/cosmos-react-core/lib/components/ListToolbar/ListToolbar.types';\nimport { ConditionBuilder } from '@pega/cosmos-react-condition-builder';\nimport FieldSelector from '@pega/cosmos-react-condition-builder/lib/components/ConditionBuilder/RhsControls/FieldSelector';\n\nimport { demoFields } from '../../condition-builder/ConditionBuilder/props.mock';\n\nexport const actions: Action[] = ['Action 1', 'Action 2', 'Action 3'].map(text => ({\n text,\n id: text,\n icon: 'filter'\n}));\n\nexport const mockViews: ViewSelectorProps['views'] = [\n { id: '1', text: 'Data view 1', selected: true },\n { id: '2', text: 'Data view 2', selected: false },\n { id: '3', text: 'Data view 3', selected: false }\n];\n\nexport const StagedStateDispatchContext = createContext<Dispatch<object>>(() => {});\n\nconst GroupByMock = () => {\n return (\n <Flex container={{ direction: 'column', gap: 2 }}>\n <Flex container={{ direction: 'column', gap: 1 }}>\n <Flex\n container={{\n justify: 'between',\n alignItems: 'center',\n direction: 'row',\n wrap: 'nowrap',\n itemGap: 0.5\n }}\n >\n <Flex\n container={{\n justify: 'start',\n alignItems: 'center',\n direction: 'row',\n wrap: 'nowrap',\n itemGap: 0.5\n }}\n item={{ grow: 1 }}\n >\n <Icon name='drag' />\n <Flex item={{ grow: 1, basis: '50%' }}>\n <FieldSelector fields={[]} value='' onChange={() => {}} />\n </Flex>\n <Flex as={Select} item={{ basis: '50%' }}>\n <Option> </Option>\n <Option>Item A</Option>\n </Flex>\n </Flex>\n <Button aria-label='Delete group' icon variant='simple'>\n <Icon name='trash' />\n </Button>\n </Flex>\n </Flex>\n <Button variant='link' aria-label='Add a group'>\n <Flex\n container={{\n inline: true,\n alignItems: 'start',\n gap: 1\n }}\n as='span'\n >\n <Icon name='plus' />\n <span>Add</span>\n </Flex>\n </Button>\n </Flex>\n );\n};\n\nexport const FilterRenderer = () => {\n return <ConditionBuilder fields={demoFields} />;\n};\n\nexport const GroupRenderer = () => {\n return <GroupByMock />;\n};\n"]}
@@ -1,12 +1,11 @@
1
- import { Meta, Story } from '@storybook/react';
2
- import { ListToolbarProps, FormControlProps } from '@pega/cosmos-react-core';
3
- declare const _default: Meta<import("@storybook/react").Args>;
1
+ import type { StoryFn } from '@storybook/react';
2
+ import type { FormControlProps } from '@pega/cosmos-react-core';
3
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
4
4
  export default _default;
5
5
  interface ListToolbarStoryProps {
6
- condensed: ListToolbarProps['condensed'];
7
6
  createNewLabel: string;
8
7
  required: FormControlProps['required'];
9
8
  }
10
- export declare const ListToolbarDemo: Story<ListToolbarStoryProps>;
11
- export declare const SimpleToolbarDemo: Story;
9
+ export declare const ListToolbarDemo: StoryFn<ListToolbarStoryProps>;
10
+ export declare const SimpleToolbarDemo: StoryFn;
12
11
  //# sourceMappingURL=ListToolbar.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ListToolbar.stories.d.ts","sourceRoot":"","sources":["../../../src/core/ListToolbar/ListToolbar.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAI/C,OAAO,EAGL,gBAAgB,EAGhB,gBAAgB,EACjB,MAAM,yBAAyB,CAAC;;AAWjC,wBAGU;AAIV,UAAU,qBAAqB;IAC7B,SAAS,EAAE,gBAAgB,CAAC,WAAW,CAAC,CAAC;IACzC,cAAc,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,gBAAgB,CAAC,UAAU,CAAC,CAAC;CACxC;AAED,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,qBAAqB,CA8FxD,CAAC;AAcF,eAAO,MAAM,iBAAiB,EAAE,KAc/B,CAAC"}
1
+ {"version":3,"file":"ListToolbar.stories.d.ts","sourceRoot":"","sources":["../../../src/core/ListToolbar/ListToolbar.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAKtD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;;AAWhE,wBAGU;AAIV,UAAU,qBAAqB;IAC7B,cAAc,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,gBAAgB,CAAC,UAAU,CAAC,CAAC;CACxC;AAED,eAAO,MAAM,eAAe,EAAE,OAAO,CAAC,qBAAqB,CA+F1D,CAAC;AAYF,eAAO,MAAM,iBAAiB,EAAE,OAU/B,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { useMemo, useState } from 'react';
3
3
  import { action } from '@storybook/addon-actions';
4
- import { Card, CardHeader, ListToolbar, MenuButton } from '@pega/cosmos-react-core';
4
+ import { ListToolbar, MenuButton, listToolbarHelpers as helpers } from '@pega/cosmos-react-core';
5
5
  import { mockViews, actions, FilterRenderer, StagedStateDispatchContext, GroupRenderer } from './ListToolbar.mocks';
6
6
  export default {
7
7
  title: 'Core/ListToolbar',
@@ -11,6 +11,7 @@ export const ListToolbarDemo = (args) => {
11
11
  const [stagedQueryOptionState, setStagedQueryOptionState] = useState(null);
12
12
  const [views, setViews] = useState(mockViews);
13
13
  const [currentSort, setCurrentSort] = useState(null);
14
+ const [searchValue, setSearchValue] = useState('');
14
15
  const filterProp = useMemo(() => {
15
16
  return {
16
17
  value: stagedQueryOptionState,
@@ -61,34 +62,36 @@ export const ListToolbarDemo = (args) => {
61
62
  onSubmit: () => { }
62
63
  };
63
64
  }, []);
64
- return (_jsx(Card, { children: _jsx(CardHeader, { children: _jsx(StagedStateDispatchContext.Provider, { value: setStagedQueryOptionState, children: _jsx(ListToolbar, { heading: {
65
- views,
66
- onViewSelect: id => {
67
- setViews(cur => {
68
- return cur.map(view => ({ ...view, selected: view.id === id }));
69
- });
70
- },
71
- defaultId: '1',
72
- appDefaultId: '2'
73
- }, createNew: {
74
- onClick: action('Clicked Create New'),
75
- label: args.createNewLabel
76
- }, search: { onSearchSubmit: action('Search submit') }, count: {
77
- total: 32,
78
- selected: 4
79
- }, filter: filterProp, sort: sortProp, group: groupProp, actions: actions, additionalActions: _jsx(MenuButton, { text: 'Edit' }), condensed: args.condensed, formControlProps: { required: args.required } }) }) }) }));
65
+ return (_jsx(StagedStateDispatchContext.Provider, { value: setStagedQueryOptionState, children: _jsx(ListToolbar, { name: 'Contacts', viewSelector: {
66
+ views,
67
+ onViewSelect: id => {
68
+ setViews(cur => {
69
+ return helpers.selectView(cur, id);
70
+ });
71
+ },
72
+ defaultId: '1',
73
+ appDefaultId: '2'
74
+ }, createNew: {
75
+ onClick: action('Clicked Create New'),
76
+ label: args.createNewLabel
77
+ }, search: {
78
+ onSearchSubmit: action('Search submit'),
79
+ value: searchValue,
80
+ onSearchChange: setSearchValue
81
+ }, count: {
82
+ total: 1146,
83
+ selected: 4
84
+ }, filter: filterProp, sort: sortProp, group: groupProp, actions: actions, additionalActions: _jsx(MenuButton, { text: 'Edit' }), formControlProps: { required: args.required } }) }));
80
85
  };
81
86
  ListToolbarDemo.args = {
82
- condensed: false,
83
87
  createNewLabel: undefined,
84
88
  required: false
85
89
  };
86
90
  ListToolbarDemo.argTypes = {
87
- condensed: { control: { type: 'boolean' } },
88
91
  createNewLabel: { control: { type: 'text' } },
89
92
  required: { control: { type: 'boolean' } }
90
93
  };
91
94
  export const SimpleToolbarDemo = () => {
92
- return (_jsx(Card, { children: _jsx(CardHeader, { children: _jsx(ListToolbar, { heading: 'Top accounts in California', search: { onSearchSubmit: action('Search submit') }, count: { total: 212, totalHasMore: true }, actions: actions, formControlProps: { required: true } }) }) }));
95
+ return (_jsx(ListToolbar, { name: 'Top accounts in California', search: { onSearchSubmit: action('Search submit') }, count: { total: 212, totalHasMore: true }, actions: actions, formControlProps: { required: true } }));
93
96
  };
94
97
  //# sourceMappingURL=ListToolbar.stories.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ListToolbar.stories.js","sourceRoot":"","sources":["../../../src/core/ListToolbar/ListToolbar.stories.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAElD,OAAO,EACL,IAAI,EACJ,UAAU,EAEV,WAAW,EACX,UAAU,EAEX,MAAM,yBAAyB,CAAC;AAGjC,OAAO,EACL,SAAS,EACT,OAAO,EACP,cAAc,EACd,0BAA0B,EAC1B,aAAa,EACd,MA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,KAAK,EAAE;wBACL,KAAK,EAAE,EAAE;wBACT,QAAQ,EAAE,CAAC;qBACZ,EACD,MAAM,EAAE,UAAU,EAClB,IAAI,EAAE,QAAQ,EACd,KAAK,EAAE,SAAS,EAChB,OAAO,EAAE,OAAO,EAChB,iBAAiB,EAAE,KAAC,UAAU,IAAC,IAAI,EAAC,MAAM,GAAG,EAC7C,SAAS,EAAE,IAAI,CAAC,SAAS,EACzB,gBAAgB,EAAE,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,GAC7C,GACkC,GAC3B,GACR,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,CAAC,IAAI,GAAG;IACrB,SAAS,EAAE,KAAK;IAChB,cAAc,EAAE,SAAS;IACzB,QAAQ,EAAE,KAAK;CAChB,CAAC;AAEF,eAAe,CAAC,QAAQ,GAAG;IACzB,SAAS,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IAC3C,cAAc,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;IAC7C,QAAQ,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;CAC3C,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAU,GAAG,EAAE;IAC3C,OAAO,CACL,KAAC,IAAI,cACH,KAAC,UAAU,cACT,KAAC,WAAW,IACV,OAAO,EAAC,4BAA4B,EACpC,MAAM,EAAE,EAAE,cAAc,EAAE,MAAM,CAAC,eAAe,CAAC,EAAE,EACnD,KAAK,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,YAAY,EAAE,IAAI,EAAE,EACzC,OAAO,EAAE,OAAO,EAChB,gBAAgB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,GACpC,GACS,GACR,CACR,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\nimport { useMemo, useState } from 'react';\nimport { action } from '@storybook/addon-actions';\n\nimport {\n Card,\n CardHeader,\n ListToolbarProps,\n ListToolbar,\n MenuButton,\n FormControlProps\n} from '@pega/cosmos-react-core';\nimport { PresetMenuProps } from '@pega/cosmos-react-core/lib/components/ListToolbar/ListToolbar.types';\n\nimport {\n mockViews,\n actions,\n FilterRenderer,\n StagedStateDispatchContext,\n GroupRenderer\n} from './ListToolbar.mocks';\n\nexport default {\n title: 'Core/ListToolbar',\n component: ListToolbar\n} as Meta;\n\ntype SortString = 'asc' | 'desc';\n\ninterface ListToolbarStoryProps {\n condensed: ListToolbarProps['condensed'];\n createNewLabel: string;\n required: FormControlProps['required'];\n}\n\nexport const ListToolbarDemo: Story<ListToolbarStoryProps> = (args: ListToolbarStoryProps) => {\n const [stagedQueryOptionState, setStagedQueryOptionState] = useState<object | null>(null);\n const [views, setViews] = useState(mockViews);\n const [currentSort, setCurrentSort] = useState<SortString | null>(null);\n\n const filterProp = useMemo(() => {\n return {\n value: stagedQueryOptionState,\n count: undefined,\n renderer: FilterRenderer,\n onCancel: () => {\n setStagedQueryOptionState(null);\n },\n onSubmit: () => {\n setStagedQueryOptionState(cur => {\n // eslint-disable-next-line no-console\n console.table(cur);\n return null;\n });\n }\n };\n }, [stagedQueryOptionState]);\n\n const sortProp: PresetMenuProps = useMemo(() => {\n return {\n mode: 'single-select',\n count: currentSort ? 1 : undefined,\n items: [\n {\n id: 'asc',\n text: 'Ascending',\n icon: 'arrow-up',\n selected: currentSort === 'asc'\n },\n {\n id: 'desc',\n text: 'Descending',\n icon: 'arrow-down',\n selected: currentSort === 'desc'\n }\n ],\n onItemClick: id => {\n setCurrentSort(cur => {\n return cur === id ? null : (id as SortString);\n });\n }\n };\n }, [currentSort]);\n\n const groupProp = useMemo(() => {\n return {\n count: undefined,\n renderer: GroupRenderer,\n onCancel: () => {},\n onSubmit: () => {}\n };\n }, []);\n\n return (\n <Card>\n <CardHeader>\n <StagedStateDispatchContext.Provider value={setStagedQueryOptionState}>\n <ListToolbar\n heading={{\n views,\n onViewSelect: id => {\n setViews(cur => {\n return cur.map(view => ({ ...view, selected: view.id === id }));\n });\n },\n defaultId: '1',\n appDefaultId: '2'\n }}\n createNew={{\n onClick: action('Clicked Create New'),\n label: args.createNewLabel\n }}\n search={{ onSearchSubmit: action('Search submit') }}\n count={{\n total: 32,\n selected: 4\n }}\n filter={filterProp}\n sort={sortProp}\n group={groupProp}\n actions={actions}\n additionalActions={<MenuButton text='Edit' />}\n condensed={args.condensed}\n formControlProps={{ required: args.required }}\n />\n </StagedStateDispatchContext.Provider>\n </CardHeader>\n </Card>\n );\n};\n\nListToolbarDemo.args = {\n condensed: false,\n createNewLabel: undefined,\n required: false\n};\n\nListToolbarDemo.argTypes = {\n condensed: { control: { type: 'boolean' } },\n createNewLabel: { control: { type: 'text' } },\n required: { control: { type: 'boolean' } }\n};\n\nexport const SimpleToolbarDemo: Story = () => {\n return (\n <Card>\n <CardHeader>\n <ListToolbar\n heading='Top accounts in California'\n search={{ onSearchSubmit: action('Search submit') }}\n count={{ total: 212, totalHasMore: true }}\n actions={actions}\n formControlProps={{ required: true }}\n />\n </CardHeader>\n </Card>\n );\n};\n"]}
1
+ {"version":3,"file":"ListToolbar.stories.js","sourceRoot":"","sources":["../../../src/core/ListToolbar/ListToolbar.stories.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAElD,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,kBAAkB,IAAI,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAIjG,OAAO,EACL,SAAS,EACT,OAAO,EACP,cAAc,EACd,0BAA0B,EAC1B,aAAa,EACd,MAAM,qBAAqB,CAAC;AAE7B,eAAe;IACb,KAAK,EAAE,kBAAkB;IACzB,SAAS,EAAE,WAAW;CACf,CAAC;AASV,MAAM,CAAC,MAAM,eAAe,GAAmC,CAAC,IAA2B,EAAE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d,KAAK,EAAE,SAAS,EAChB,OAAO,EAAE,OAAO,EAChB,iBAAiB,EAAE,KAAC,UAAU,IAAC,IAAI,EAAC,MAAM,GAAG,EAC7C,gBAAgB,EAAE,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,GAC7C,GACkC,CACvC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,CAAC,IAAI,GAAG;IACrB,cAAc,EAAE,SAAS;IACzB,QAAQ,EAAE,KAAK;CAChB,CAAC;AAEF,eAAe,CAAC,QAAQ,GAAG;IACzB,cAAc,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;IAC7C,QAAQ,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;CAC3C,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAY,GAAG,EAAE;IAC7C,OAAO,CACL,KAAC,WAAW,IACV,IAAI,EAAC,4BAA4B,EACjC,MAAM,EAAE,EAAE,cAAc,EAAE,MAAM,CAAC,eAAe,CAAC,EAAE,EACnD,KAAK,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,YAAY,EAAE,IAAI,EAAE,EACzC,OAAO,EAAE,OAAO,EAChB,gBAAgB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,GACpC,CACH,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import type { Meta, StoryFn } from '@storybook/react';\nimport { useMemo, useState } from 'react';\nimport { action } from '@storybook/addon-actions';\n\nimport { ListToolbar, MenuButton, listToolbarHelpers as helpers } from '@pega/cosmos-react-core';\nimport type { FormControlProps } from '@pega/cosmos-react-core';\nimport type { PresetMenuProps } from '@pega/cosmos-react-core/lib/components/ListToolbar/ListToolbar.types';\n\nimport {\n mockViews,\n actions,\n FilterRenderer,\n StagedStateDispatchContext,\n GroupRenderer\n} from './ListToolbar.mocks';\n\nexport default {\n title: 'Core/ListToolbar',\n component: ListToolbar\n} as Meta;\n\ntype SortString = 'asc' | 'desc';\n\ninterface ListToolbarStoryProps {\n createNewLabel: string;\n required: FormControlProps['required'];\n}\n\nexport const ListToolbarDemo: StoryFn<ListToolbarStoryProps> = (args: ListToolbarStoryProps) => {\n const [stagedQueryOptionState, setStagedQueryOptionState] = useState<object | null>(null);\n const [views, setViews] = useState(mockViews);\n const [currentSort, setCurrentSort] = useState<SortString | null>(null);\n const [searchValue, setSearchValue] = useState('');\n\n const filterProp = useMemo(() => {\n return {\n value: stagedQueryOptionState,\n count: undefined,\n renderer: FilterRenderer,\n onCancel: () => {\n setStagedQueryOptionState(null);\n },\n onSubmit: () => {\n setStagedQueryOptionState(cur => {\n // eslint-disable-next-line no-console\n console.table(cur);\n return null;\n });\n }\n };\n }, [stagedQueryOptionState]);\n\n const sortProp: PresetMenuProps = useMemo(() => {\n return {\n mode: 'single-select',\n count: currentSort ? 1 : undefined,\n items: [\n {\n id: 'asc',\n text: 'Ascending',\n icon: 'arrow-up',\n selected: currentSort === 'asc'\n },\n {\n id: 'desc',\n text: 'Descending',\n icon: 'arrow-down',\n selected: currentSort === 'desc'\n }\n ],\n onItemClick: id => {\n setCurrentSort(cur => {\n return cur === id ? null : (id as SortString);\n });\n }\n };\n }, [currentSort]);\n\n const groupProp = useMemo(() => {\n return {\n count: undefined,\n renderer: GroupRenderer,\n onCancel: () => {},\n onSubmit: () => {}\n };\n }, []);\n\n return (\n <StagedStateDispatchContext.Provider value={setStagedQueryOptionState}>\n <ListToolbar\n name='Contacts'\n viewSelector={{\n views,\n onViewSelect: id => {\n setViews(cur => {\n return helpers.selectView(cur, id);\n });\n },\n defaultId: '1',\n appDefaultId: '2'\n }}\n createNew={{\n onClick: action('Clicked Create New'),\n label: args.createNewLabel\n }}\n search={{\n onSearchSubmit: action('Search submit'),\n value: searchValue,\n onSearchChange: setSearchValue\n }}\n count={{\n total: 1146,\n selected: 4\n }}\n filter={filterProp}\n sort={sortProp}\n group={groupProp}\n actions={actions}\n additionalActions={<MenuButton text='Edit' />}\n formControlProps={{ required: args.required }}\n />\n </StagedStateDispatchContext.Provider>\n );\n};\n\nListToolbarDemo.args = {\n createNewLabel: undefined,\n required: false\n};\n\nListToolbarDemo.argTypes = {\n createNewLabel: { control: { type: 'text' } },\n required: { control: { type: 'boolean' } }\n};\n\nexport const SimpleToolbarDemo: StoryFn = () => {\n return (\n <ListToolbar\n name='Top accounts in California'\n search={{ onSearchSubmit: action('Search submit') }}\n count={{ total: 212, totalHasMore: true }}\n actions={actions}\n formControlProps={{ required: true }}\n />\n );\n};\n"]}
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ export declare const SubComponent: ({ timeout }: {
3
+ timeout?: number | undefined;
4
+ }) => JSX.Element;
5
+ //# sourceMappingURL=LiveLog.mocks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LiveLog.mocks.d.ts","sourceRoot":"","sources":["../../../src/core/LiveLog/LiveLog.mocks.tsx"],"names":[],"mappings":";AAIA,eAAO,MAAM,YAAY;;iBAoDxB,CAAC"}
@@ -0,0 +1,29 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useState } from 'react';
3
+ import { Button, Flex, TextArea, useLiveLog } from '@pega/cosmos-react-core';
4
+ export const SubComponent = ({ timeout = 1000 }) => {
5
+ const [messageVal, setMessageVal] = useState('');
6
+ const { announcePolite, announceAssertive } = useLiveLog();
7
+ return (_jsxs(Flex, { container: { direction: 'column', gap: 1 }, children: [_jsx("p", { children: "This story will announce the value entered in the text area on button click after a 1-second delay." }), _jsx("br", {}), _jsx(TextArea, { label: 'Message to announce', value: messageVal, onChange: (e) => setMessageVal(e.target.value) }), _jsxs("div", { children: [_jsx(Button, { onClick: () => {
8
+ if (timeout < 0) {
9
+ announcePolite({ message: messageVal });
10
+ }
11
+ else {
12
+ setTimeout(() => {
13
+ announcePolite({ message: messageVal });
14
+ }, timeout);
15
+ }
16
+ setMessageVal('');
17
+ }, children: "Announce Polite" }), _jsx(Button, { onClick: () => {
18
+ if (timeout < 0) {
19
+ announceAssertive({ message: messageVal });
20
+ }
21
+ else {
22
+ setTimeout(() => {
23
+ announceAssertive({ message: messageVal });
24
+ }, timeout);
25
+ }
26
+ setMessageVal('');
27
+ }, children: "Announce Assertive" })] })] }));
28
+ };
29
+ //# sourceMappingURL=LiveLog.mocks.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LiveLog.mocks.js","sourceRoot":"","sources":["../../../src/core/LiveLog/LiveLog.mocks.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAe,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE9C,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAE7E,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,EAAE,OAAO,GAAG,IAAI,EAAwB,EAAE,EAAE;IACvE,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC;IACjD,MAAM,EAAE,cAAc,EAAE,iBAAiB,EAAE,GAAG,UAAU,EAAE,CAAC;IAE3D,OAAO,CACL,MAAC,IAAI,IAAC,SAAS,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,EAAE,aAC9C,8HAGI,EAEJ,cAAM,EAEN,KAAC,QAAQ,IACP,KAAK,EAAC,qBAAqB,EAC3B,KAAK,EAAE,UAAU,EACjB,QAAQ,EAAE,CAAC,CAAmC,EAAE,EAAE,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,GAChF,EAEF,0BACE,KAAC,MAAM,IACL,OAAO,EAAE,GAAG,EAAE;4BACZ,IAAI,OAAO,GAAG,CAAC,EAAE;gCACf,cAAc,CAAC,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC,CAAC;6BACzC;iCAAM;gCACL,UAAU,CAAC,GAAG,EAAE;oCACd,cAAc,CAAC,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC,CAAC;gCAC1C,CAAC,EAAE,OAAO,CAAC,CAAC;6BACb;4BACD,aAAa,CAAC,EAAE,CAAC,CAAC;wBACpB,CAAC,gCAGM,EAET,KAAC,MAAM,IACL,OAAO,EAAE,GAAG,EAAE;4BACZ,IAAI,OAAO,GAAG,CAAC,EAAE;gCACf,iBAAiB,CAAC,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC,CAAC;6BAC5C;iCAAM;gCACL,UAAU,CAAC,GAAG,EAAE;oCACd,iBAAiB,CAAC,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC,CAAC;gCAC7C,CAAC,EAAE,OAAO,CAAC,CAAC;6BACb;4BACD,aAAa,CAAC,EAAE,CAAC,CAAC;wBACpB,CAAC,mCAGM,IACL,IACD,CACR,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { ChangeEvent, useState } from 'react';\n\nimport { Button, Flex, TextArea, useLiveLog } from '@pega/cosmos-react-core';\n\nexport const SubComponent = ({ timeout = 1000 }: { timeout?: number }) => {\n const [messageVal, setMessageVal] = useState('');\n const { announcePolite, announceAssertive } = useLiveLog();\n\n return (\n <Flex container={{ direction: 'column', gap: 1 }}>\n <p>\n This story will announce the value entered in the text area on button click after a 1-second\n delay.\n </p>\n\n <br />\n\n <TextArea\n label='Message to announce'\n value={messageVal}\n onChange={(e: ChangeEvent<HTMLTextAreaElement>) => setMessageVal(e.target.value)}\n />\n\n <div>\n <Button\n onClick={() => {\n if (timeout < 0) {\n announcePolite({ message: messageVal });\n } else {\n setTimeout(() => {\n announcePolite({ message: messageVal });\n }, timeout);\n }\n setMessageVal('');\n }}\n >\n Announce Polite\n </Button>\n\n <Button\n onClick={() => {\n if (timeout < 0) {\n announceAssertive({ message: messageVal });\n } else {\n setTimeout(() => {\n announceAssertive({ message: messageVal });\n }, timeout);\n }\n setMessageVal('');\n }}\n >\n Announce Assertive\n </Button>\n </div>\n </Flex>\n );\n};\n"]}
@@ -0,0 +1,9 @@
1
+ import type { StoryFn } from '@storybook/react';
2
+ import type { LiveLogProps } from '@pega/cosmos-react-core';
3
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
4
+ export default _default;
5
+ interface LiveLogDemoProps {
6
+ liveLogMaxLength: LiveLogProps['maxLength'];
7
+ }
8
+ export declare const LiveLogDemo: StoryFn<LiveLogDemoProps>;
9
+ //# sourceMappingURL=LiveLog.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LiveLog.stories.d.ts","sourceRoot":"","sources":["../../../src/core/LiveLog/LiveLog.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAGtD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;;AAI5D,wBAYU;AAEV,UAAU,gBAAgB;IACxB,gBAAgB,EAAE,YAAY,CAAC,WAAW,CAAC,CAAC;CAC7C;AAED,eAAO,MAAM,WAAW,EAAE,OAAO,CAAC,gBAAgB,CAEjD,CAAC"}
@@ -0,0 +1,20 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { LiveLog } from '@pega/cosmos-react-core';
3
+ import { SubComponent } from './LiveLog.mocks';
4
+ export default {
5
+ title: 'Core/LiveLog',
6
+ component: LiveLog,
7
+ parameters: {
8
+ layout: 'centered'
9
+ },
10
+ args: {
11
+ liveLogMaxLength: 50
12
+ },
13
+ argTypes: {
14
+ liveLogMaxLength: { control: { type: 'number' } }
15
+ }
16
+ };
17
+ export const LiveLogDemo = () => {
18
+ return _jsx(SubComponent, {});
19
+ };
20
+ //# sourceMappingURL=LiveLog.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LiveLog.stories.js","sourceRoot":"","sources":["../../../src/core/LiveLog/LiveLog.stories.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAGlD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,eAAe;IACb,KAAK,EAAE,cAAc;IACrB,SAAS,EAAE,OAAO;IAClB,UAAU,EAAE;QACV,MAAM,EAAE,UAAU;KACnB;IACD,IAAI,EAAE;QACJ,gBAAgB,EAAE,EAAE;KACrB;IACD,QAAQ,EAAE;QACR,gBAAgB,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;KAClD;CACM,CAAC;AAMV,MAAM,CAAC,MAAM,WAAW,GAA8B,GAAG,EAAE;IACzD,OAAO,KAAC,YAAY,KAAG,CAAC;AAC1B,CAAC,CAAC","sourcesContent":["import type { Meta, StoryFn } from '@storybook/react';\n\nimport { LiveLog } from '@pega/cosmos-react-core';\nimport type { LiveLogProps } from '@pega/cosmos-react-core';\n\nimport { SubComponent } from './LiveLog.mocks';\n\nexport default {\n title: 'Core/LiveLog',\n component: LiveLog,\n parameters: {\n layout: 'centered'\n },\n args: {\n liveLogMaxLength: 50\n },\n argTypes: {\n liveLogMaxLength: { control: { type: 'number' } }\n }\n} as Meta;\n\ninterface LiveLogDemoProps {\n liveLogMaxLength: LiveLogProps['maxLength'];\n}\n\nexport const LiveLogDemo: StoryFn<LiveLogDemoProps> = () => {\n return <SubComponent />;\n};\n"]}
@@ -1,15 +1,15 @@
1
- import { Meta, Story } from '@storybook/react';
2
- import { LocationDisplayProps, LocationInputProps, LocationViewProps } from '@pega/cosmos-react-core';
3
- declare const _default: Meta<import("@storybook/react").Args>;
1
+ import type { StoryFn } from '@storybook/react';
2
+ import type { LocationDisplayProps, LocationInputProps, LocationViewProps } from '@pega/cosmos-react-core';
3
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
4
4
  export default _default;
5
5
  interface APIKey {
6
6
  apiKey?: string;
7
7
  }
8
- export declare const LocationDemo: Story<LocationInputProps & APIKey>;
8
+ export declare const LocationDemo: StoryFn<LocationInputProps & APIKey>;
9
9
  interface LocationInputStoryProps extends LocationInputProps {
10
10
  showAdditionalInfo?: boolean;
11
11
  }
12
- export declare const LocationInputDemo: Story<LocationInputStoryProps & APIKey>;
13
- export declare const LocationViewDemo: Story<LocationViewProps & APIKey>;
14
- export declare const LocationDisplayDemo: Story<LocationDisplayProps & APIKey>;
12
+ export declare const LocationInputDemo: StoryFn<LocationInputStoryProps & APIKey>;
13
+ export declare const LocationViewDemo: StoryFn<LocationViewProps & APIKey>;
14
+ export declare const LocationDisplayDemo: StoryFn<LocationDisplayProps & APIKey>;
15
15
  //# sourceMappingURL=Location.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Location.stories.d.ts","sourceRoot":"","sources":["../../../src/core/Location/Location.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAG/C,OAAO,EAGL,oBAAoB,EAEpB,kBAAkB,EAElB,iBAAiB,EAElB,MAAM,yBAAyB,CAAC;;AAEjC,wBAGU;AAEV,UAAU,MAAM;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,kBAAkB,GAAG,MAAM,CA4C3D,CAAC;AA8BF,UAAU,uBAAwB,SAAQ,kBAAkB;IAC1D,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B;AAED,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,uBAAuB,GAAG,MAAM,CAiCrE,CAAC;AA0BF,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,iBAAiB,GAAG,MAAM,CAoB9D,CAAC;AAkBF,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,oBAAoB,GAAG,MAAM,CAcpE,CAAC"}
1
+ {"version":3,"file":"Location.stories.d.ts","sourceRoot":"","sources":["../../../src/core/Location/Location.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAItD,OAAO,KAAK,EAEV,oBAAoB,EACpB,kBAAkB,EAClB,iBAAiB,EAClB,MAAM,yBAAyB,CAAC;;AAEjC,wBAGU;AAEV,UAAU,MAAM;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,YAAY,EAAE,OAAO,CAAC,kBAAkB,GAAG,MAAM,CA+C7D,CAAC;AAgCF,UAAU,uBAAwB,SAAQ,kBAAkB;IAC1D,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B;AAED,eAAO,MAAM,iBAAiB,EAAE,OAAO,CAAC,uBAAuB,GAAG,MAAM,CAoCvE,CAAC;AA4BF,eAAO,MAAM,gBAAgB,EAAE,OAAO,CAAC,iBAAiB,GAAG,MAAM,CAsBhE,CAAC;AAkBF,eAAO,MAAM,mBAAmB,EAAE,OAAO,CAAC,oBAAoB,GAAG,MAAM,CAgBtE,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import { useState } from 'react';
2
+ import { useMemo, useState } from 'react';
3
3
  import { LocationDisplay, LocationInput, LocationView, MapsContext } from '@pega/cosmos-react-core';
4
4
  export default {
5
5
  title: 'Core/Location',
@@ -11,7 +11,8 @@ export const LocationDemo = (args) => {
11
11
  const handleClick = ({ latitude, longitude }) => {
12
12
  setLocationObj({ latitude, longitude });
13
13
  };
14
- return (_jsx(MapsContext.Provider, { value: { name: 'google', apiKey: args.apiKey }, children: _jsx(LocationInput, { showMap: true, defaultToCurrentLocation: args.defaultToCurrentLocation, value: value, label: args.label, labelHidden: args.labelHidden, onChange: inputValue => {
14
+ const ctx = useMemo(() => ({ name: 'google', apiKey: args.apiKey }), [args.apiKey]);
15
+ return (_jsx(MapsContext.Provider, { value: ctx, children: _jsx(LocationInput, { showMap: true, defaultToCurrentLocation: args.defaultToCurrentLocation, value: value, label: args.label, labelHidden: args.labelHidden, info: args.info, onChange: inputValue => {
15
16
  setValue(inputValue);
16
17
  }, location: locationObj, onSelect: selectedValueObj => {
17
18
  setValue(selectedValueObj.name ?? '');
@@ -29,8 +30,9 @@ export const LocationDemo = (args) => {
29
30
  LocationDemo.args = {
30
31
  apiKey: '',
31
32
  defaultToCurrentLocation: false,
32
- label: 'Pick a location',
33
+ label: 'Location',
33
34
  labelHidden: false,
35
+ info: undefined,
34
36
  centerMapOnChange: true,
35
37
  zoomLevel: 13,
36
38
  height: '25rem',
@@ -44,6 +46,7 @@ LocationDemo.argTypes = {
44
46
  defaultToCurrentLocation: { control: { type: 'boolean' } },
45
47
  label: { control: { type: 'text' } },
46
48
  labelHidden: { control: { type: 'boolean' } },
49
+ info: { control: { type: 'text' } },
47
50
  centerMapOnChange: { control: { type: 'boolean' } },
48
51
  zoomLevel: { control: { type: 'number' } },
49
52
  height: { control: { type: 'text' } },
@@ -54,7 +57,8 @@ LocationDemo.argTypes = {
54
57
  };
55
58
  export const LocationInputDemo = (args) => {
56
59
  const [value, setValue] = useState('');
57
- return (_jsx(MapsContext.Provider, { value: { name: 'google', apiKey: args.apiKey }, children: _jsx(LocationInput, { defaultToCurrentLocation: args.defaultToCurrentLocation, value: value, label: args.label, labelHidden: args.labelHidden, onChange: inputValue => {
60
+ const ctx = useMemo(() => ({ name: 'google', apiKey: args.apiKey }), [args.apiKey]);
61
+ return (_jsx(MapsContext.Provider, { value: ctx, children: _jsx(LocationInput, { defaultToCurrentLocation: args.defaultToCurrentLocation, value: value, label: args.label, labelHidden: args.labelHidden, info: args.info, onChange: inputValue => {
58
62
  setValue(inputValue);
59
63
  }, onSelect: selectedValueObj => {
60
64
  setValue(selectedValueObj.name ?? '');
@@ -68,8 +72,9 @@ export const LocationInputDemo = (args) => {
68
72
  LocationInputDemo.args = {
69
73
  apiKey: '',
70
74
  defaultToCurrentLocation: false,
71
- label: 'Pick a location',
75
+ label: 'Location',
72
76
  labelHidden: false,
77
+ info: 'Enter some location',
73
78
  status: undefined,
74
79
  required: false,
75
80
  disabled: false,
@@ -81,6 +86,7 @@ LocationInputDemo.argTypes = {
81
86
  defaultToCurrentLocation: { control: { type: 'boolean' } },
82
87
  label: { control: { type: 'text' } },
83
88
  labelHidden: { control: { type: 'boolean' } },
89
+ info: { control: { type: 'text' } },
84
90
  status: { options: [undefined, 'success', 'warning', 'error'], control: { type: 'select' } },
85
91
  required: { control: { type: 'boolean' } },
86
92
  disabled: { control: { type: 'boolean' } },
@@ -92,7 +98,8 @@ export const LocationViewDemo = (args) => {
92
98
  const handleClick = ({ latitude, longitude }) => {
93
99
  setLocation(`${latitude.toString()},${longitude.toString()}`);
94
100
  };
95
- return (_jsx(MapsContext.Provider, { value: { name: 'google', apiKey: args.apiKey }, children: _jsx(LocationView, { location: location, centerMapOnChange: args.centerMapOnChange, zoomLevel: args.zoomLevel, height: args.height, onClick: handleClick }) }));
101
+ const ctx = useMemo(() => ({ name: 'google', apiKey: args.apiKey }), [args.apiKey]);
102
+ return (_jsx(MapsContext.Provider, { value: ctx, children: _jsx(LocationView, { location: location, centerMapOnChange: args.centerMapOnChange, zoomLevel: args.zoomLevel, height: args.height, onClick: handleClick }) }));
96
103
  };
97
104
  LocationViewDemo.args = {
98
105
  apiKey: '',
@@ -109,7 +116,8 @@ LocationViewDemo.argTypes = {
109
116
  height: { control: { type: 'text' } }
110
117
  };
111
118
  export const LocationDisplayDemo = (args) => {
112
- return (_jsx(MapsContext.Provider, { value: { name: 'google', apiKey: args.apiKey }, children: _jsx(LocationDisplay, { value: args.value, zoomLevel: args.zoomLevel, height: args.height, variant: args.variant, displayText: args.displayText }) }));
119
+ const ctx = useMemo(() => ({ name: 'google', apiKey: args.apiKey }), [args.apiKey]);
120
+ return (_jsx(MapsContext.Provider, { value: ctx, children: _jsx(LocationDisplay, { value: args.value, zoomLevel: args.zoomLevel, height: args.height, variant: args.variant, displayText: args.displayText }) }));
113
121
  };
114
122
  LocationDisplayDemo.args = {
115
123
  apiKey: '',
@@ -1 +1 @@
1
- {"version":3,"file":"Location.stories.js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AAE;IAC9E,WAAW,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;CAC3C,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\nimport { useState } from 'react';\n\nimport {\n LatLng,\n LocationDisplay,\n LocationDisplayProps,\n LocationInput,\n LocationInputProps,\n LocationView,\n LocationViewProps,\n MapsContext\n} from '@pega/cosmos-react-core';\n\nexport default {\n title: 'Core/Location',\n component: LocationInput\n} as Meta;\n\ninterface APIKey {\n apiKey?: string;\n}\n\nexport const LocationDemo: Story<LocationInputProps & APIKey> = (\n args: LocationInputProps & APIKey\n) => {\n const [value, setValue] = useState('Boston, MA');\n const [locationObj, setLocationObj] = useState<LatLng | string>('Boston, MA');\n\n const handleClick = ({ latitude, longitude }: { latitude: number; longitude: number }) => {\n setLocationObj({ latitude, longitude });\n };\n\n return (\n <MapsContext.Provider value={{ name: 'google', apiKey: args.apiKey }}>\n <LocationInput\n showMap\n defaultToCurrentLocation={args.defaultToCurrentLocation}\n value={value}\n label={args.label}\n labelHidden={args.labelHidden}\n onChange={inputValue => {\n setValue(inputValue);\n }}\n location={locationObj}\n onSelect={selectedValueObj => {\n setValue(selectedValueObj.name ?? '');\n if (selectedValueObj.latitude && selectedValueObj.longitude) {\n setLocationObj({\n latitude: selectedValueObj.latitude,\n longitude: selectedValueObj.longitude\n });\n } else {\n setLocationObj(selectedValueObj.name ?? '');\n }\n }}\n onClick={handleClick}\n centerMapOnChange={args.centerMapOnChange}\n zoomLevel={args.zoomLevel}\n height={args.height}\n status={args.status}\n required={args.required}\n disabled={args.disabled}\n readOnly={args.readOnly}\n />\n </MapsContext.Provider>\n );\n};\n\nLocationDemo.args = {\n apiKey: '',\n defaultToCurrentLocation: false,\n label: 'Pick a location',\n labelHidden: false,\n centerMapOnChange: true,\n zoomLevel: 13,\n height: '25rem',\n status: undefined,\n required: false,\n disabled: false,\n readOnly: false\n};\n\nLocationDemo.argTypes = {\n apiKey: { control: { type: 'text' } },\n defaultToCurrentLocation: { control: { type: 'boolean' } },\n label: { control: { type: 'text' } },\n labelHidden: { control: { type: 'boolean' } },\n centerMapOnChange: { control: { type: 'boolean' } },\n zoomLevel: { control: { type: 'number' } },\n height: { 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};\n\ninterface LocationInputStoryProps extends LocationInputProps {\n showAdditionalInfo?: boolean;\n}\n\nexport const LocationInputDemo: Story<LocationInputStoryProps & APIKey> = (\n args: LocationInputStoryProps & APIKey\n) => {\n const [value, setValue] = useState('');\n\n return (\n <MapsContext.Provider value={{ name: 'google', apiKey: args.apiKey }}>\n <LocationInput\n defaultToCurrentLocation={args.defaultToCurrentLocation}\n value={value}\n label={args.label}\n labelHidden={args.labelHidden}\n onChange={inputValue => {\n setValue(inputValue);\n }}\n onSelect={selectedValueObj => {\n setValue(selectedValueObj.name ?? '');\n }}\n status={args.status}\n required={args.required}\n disabled={args.disabled}\n readOnly={args.readOnly}\n additionalInfo={\n args.showAdditionalInfo\n ? {\n heading: 'Additional Info',\n content: 'Please enter your location'\n }\n : undefined\n }\n />\n </MapsContext.Provider>\n );\n};\n\nLocationInputDemo.args = {\n apiKey: '',\n defaultToCurrentLocation: false,\n label: 'Pick a location',\n labelHidden: false,\n status: undefined,\n required: false,\n disabled: false,\n readOnly: false,\n showAdditionalInfo: true\n};\n\nLocationInputDemo.argTypes = {\n apiKey: { control: { type: 'text' } },\n defaultToCurrentLocation: { control: { type: 'boolean' } },\n label: { control: { type: 'text' } },\n labelHidden: { control: { type: 'boolean' } },\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 showAdditionalInfo: { control: { type: 'boolean' } }\n};\n\nexport const LocationViewDemo: Story<LocationViewProps & APIKey> = (\n args: LocationViewProps & APIKey\n) => {\n const [location, setLocation] = useState(args.location);\n\n const handleClick = ({ latitude, longitude }: { latitude: number; longitude: number }) => {\n setLocation(`${latitude.toString()},${longitude.toString()}`);\n };\n\n return (\n <MapsContext.Provider value={{ name: 'google', apiKey: args.apiKey }}>\n <LocationView\n location={location}\n centerMapOnChange={args.centerMapOnChange}\n zoomLevel={args.zoomLevel}\n height={args.height}\n onClick={handleClick}\n />\n </MapsContext.Provider>\n );\n};\n\nLocationViewDemo.args = {\n apiKey: '',\n location: 'Boston, MA',\n centerMapOnChange: true,\n zoomLevel: 13,\n height: '25rem'\n};\n\nLocationViewDemo.argTypes = {\n apiKey: { control: { type: 'text' } },\n location: { control: { type: 'text' } },\n centerMapOnChange: { control: { type: 'boolean' } },\n zoomLevel: { control: { type: 'number' } },\n height: { control: { type: 'text' } }\n};\n\nexport const LocationDisplayDemo: Story<LocationDisplayProps & APIKey> = (\n args: LocationDisplayProps & APIKey\n) => {\n return (\n <MapsContext.Provider value={{ name: 'google', apiKey: args.apiKey }}>\n <LocationDisplay\n value={args.value}\n zoomLevel={args.zoomLevel}\n height={args.height}\n variant={args.variant}\n displayText={args.displayText}\n />\n </MapsContext.Provider>\n );\n};\n\nLocationDisplayDemo.args = {\n apiKey: '',\n value: 'Boston, MA',\n zoomLevel: 13,\n height: '25rem',\n variant: 'text-map',\n displayText: 'Come visit Boston!'\n};\n\nLocationDisplayDemo.argTypes = {\n apiKey: { control: { type: 'text' } },\n value: { control: { type: 'text' } },\n zoomLevel: { control: { type: 'number' } },\n height: { control: { type: 'text' } },\n variant: { options: ['text-map', 'map', 'text'], control: { type: 'select' } },\n displayText: { control: { type: 'text' } }\n};\n"]}
1
+ {"version":3,"file":"Location.stories.js","sourceRoot":"","sources":["../../../src/core/Location/Location.stories.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,EAAE,eAAe,EAAE,aAAa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IACzB,MAAM,EAAE,EAAE;IACV,KAAK,EAAE,YAAY;IACnB,SAAS,EAAE,EAAE;IACb,MAAM,EAAE,OAAO;IACf,OAAO,EAAE,UAAU;IACnB,WAAW,EAAE,oBAAoB;CAClC,CAAC;AAEF,mBAAmB,CAAC,QAAQ,GAAG;IAC7B,MAAM,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;IACrC,KAAK,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;IACpC,SAAS,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;IAC1C,MAAM,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;IACrC,OAAO,EAAE,EAAE,OAAO,EAAE,CAAC,UAAU,EAAE,KAAK,EAAE,MAAM,CAAC,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;IAC9E,WAAW,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;CAC3C,CAAC","sourcesContent":["import type { Meta, StoryFn } from '@storybook/react';\nimport { useMemo, useState } from 'react';\n\nimport { LocationDisplay, LocationInput, LocationView, MapsContext } from '@pega/cosmos-react-core';\nimport type {\n LatLng,\n LocationDisplayProps,\n LocationInputProps,\n LocationViewProps\n} from '@pega/cosmos-react-core';\n\nexport default {\n title: 'Core/Location',\n component: LocationInput\n} as Meta;\n\ninterface APIKey {\n apiKey?: string;\n}\n\nexport const LocationDemo: StoryFn<LocationInputProps & APIKey> = (\n args: LocationInputProps & APIKey\n) => {\n const [value, setValue] = useState('Boston, MA');\n const [locationObj, setLocationObj] = useState<LatLng | string>('Boston, MA');\n\n const handleClick = ({ latitude, longitude }: { latitude: number; longitude: number }) => {\n setLocationObj({ latitude, longitude });\n };\n\n const ctx = useMemo(() => ({ name: 'google', apiKey: args.apiKey }), [args.apiKey]);\n\n return (\n <MapsContext.Provider value={ctx}>\n <LocationInput\n showMap\n defaultToCurrentLocation={args.defaultToCurrentLocation}\n value={value}\n label={args.label}\n labelHidden={args.labelHidden}\n info={args.info}\n onChange={inputValue => {\n setValue(inputValue);\n }}\n location={locationObj}\n onSelect={selectedValueObj => {\n setValue(selectedValueObj.name ?? '');\n if (selectedValueObj.latitude && selectedValueObj.longitude) {\n setLocationObj({\n latitude: selectedValueObj.latitude,\n longitude: selectedValueObj.longitude\n });\n } else {\n setLocationObj(selectedValueObj.name ?? '');\n }\n }}\n onClick={handleClick}\n centerMapOnChange={args.centerMapOnChange}\n zoomLevel={args.zoomLevel}\n height={args.height}\n status={args.status}\n required={args.required}\n disabled={args.disabled}\n readOnly={args.readOnly}\n />\n </MapsContext.Provider>\n );\n};\n\nLocationDemo.args = {\n apiKey: '',\n defaultToCurrentLocation: false,\n label: 'Location',\n labelHidden: false,\n info: undefined,\n centerMapOnChange: true,\n zoomLevel: 13,\n height: '25rem',\n status: undefined,\n required: false,\n disabled: false,\n readOnly: false\n};\n\nLocationDemo.argTypes = {\n apiKey: { control: { type: 'text' } },\n defaultToCurrentLocation: { control: { type: 'boolean' } },\n label: { control: { type: 'text' } },\n labelHidden: { control: { type: 'boolean' } },\n info: { control: { type: 'text' } },\n centerMapOnChange: { control: { type: 'boolean' } },\n zoomLevel: { control: { type: 'number' } },\n height: { 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};\n\ninterface LocationInputStoryProps extends LocationInputProps {\n showAdditionalInfo?: boolean;\n}\n\nexport const LocationInputDemo: StoryFn<LocationInputStoryProps & APIKey> = (\n args: LocationInputStoryProps & APIKey\n) => {\n const [value, setValue] = useState('');\n\n const ctx = useMemo(() => ({ name: 'google', apiKey: args.apiKey }), [args.apiKey]);\n\n return (\n <MapsContext.Provider value={ctx}>\n <LocationInput\n defaultToCurrentLocation={args.defaultToCurrentLocation}\n value={value}\n label={args.label}\n labelHidden={args.labelHidden}\n info={args.info}\n onChange={inputValue => {\n setValue(inputValue);\n }}\n onSelect={selectedValueObj => {\n setValue(selectedValueObj.name ?? '');\n }}\n status={args.status}\n required={args.required}\n disabled={args.disabled}\n readOnly={args.readOnly}\n additionalInfo={\n args.showAdditionalInfo\n ? {\n heading: 'Additional Info',\n content: 'Please enter your location'\n }\n : undefined\n }\n />\n </MapsContext.Provider>\n );\n};\n\nLocationInputDemo.args = {\n apiKey: '',\n defaultToCurrentLocation: false,\n label: 'Location',\n labelHidden: false,\n info: 'Enter some location',\n status: undefined,\n required: false,\n disabled: false,\n readOnly: false,\n showAdditionalInfo: true\n};\n\nLocationInputDemo.argTypes = {\n apiKey: { control: { type: 'text' } },\n defaultToCurrentLocation: { control: { type: 'boolean' } },\n label: { control: { type: 'text' } },\n labelHidden: { control: { type: 'boolean' } },\n info: { 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 showAdditionalInfo: { control: { type: 'boolean' } }\n};\n\nexport const LocationViewDemo: StoryFn<LocationViewProps & APIKey> = (\n args: LocationViewProps & APIKey\n) => {\n const [location, setLocation] = useState(args.location);\n\n const handleClick = ({ latitude, longitude }: { latitude: number; longitude: number }) => {\n setLocation(`${latitude.toString()},${longitude.toString()}`);\n };\n\n const ctx = useMemo(() => ({ name: 'google', apiKey: args.apiKey }), [args.apiKey]);\n\n return (\n <MapsContext.Provider value={ctx}>\n <LocationView\n location={location}\n centerMapOnChange={args.centerMapOnChange}\n zoomLevel={args.zoomLevel}\n height={args.height}\n onClick={handleClick}\n />\n </MapsContext.Provider>\n );\n};\n\nLocationViewDemo.args = {\n apiKey: '',\n location: 'Boston, MA',\n centerMapOnChange: true,\n zoomLevel: 13,\n height: '25rem'\n};\n\nLocationViewDemo.argTypes = {\n apiKey: { control: { type: 'text' } },\n location: { control: { type: 'text' } },\n centerMapOnChange: { control: { type: 'boolean' } },\n zoomLevel: { control: { type: 'number' } },\n height: { control: { type: 'text' } }\n};\n\nexport const LocationDisplayDemo: StoryFn<LocationDisplayProps & APIKey> = (\n args: LocationDisplayProps & APIKey\n) => {\n const ctx = useMemo(() => ({ name: 'google', apiKey: args.apiKey }), [args.apiKey]);\n\n return (\n <MapsContext.Provider value={ctx}>\n <LocationDisplay\n value={args.value}\n zoomLevel={args.zoomLevel}\n height={args.height}\n variant={args.variant}\n displayText={args.displayText}\n />\n </MapsContext.Provider>\n );\n};\n\nLocationDisplayDemo.args = {\n apiKey: '',\n value: 'Boston, MA',\n zoomLevel: 13,\n height: '25rem',\n variant: 'text-map',\n displayText: 'Come visit Boston!'\n};\n\nLocationDisplayDemo.argTypes = {\n apiKey: { control: { type: 'text' } },\n value: { control: { type: 'text' } },\n zoomLevel: { control: { type: 'number' } },\n height: { control: { type: 'text' } },\n variant: { options: ['text-map', 'map', 'text'], control: { type: 'select' } },\n displayText: { control: { type: 'text' } }\n};\n"]}