@pega/cosmos-react-demos 4.0.0-dev.2.0 → 4.0.0-dev.20.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 (1187) 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 +14 -11
  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 +1 -1
  10. package/jsx/build/ExpressionBuilder/ExpressionBuilder.mocks.d.ts +2 -0
  11. package/jsx/build/ExpressionBuilder/ExpressionBuilder.mocks.d.ts.map +1 -1
  12. package/jsx/build/ExpressionBuilder/ExpressionBuilder.mocks.js +23 -0
  13. package/jsx/build/ExpressionBuilder/ExpressionBuilder.mocks.js.map +1 -1
  14. package/jsx/build/ExpressionBuilder/ExpressionBuilder.stories.d.ts +1 -1
  15. package/jsx/build/ExpressionBuilder/ExpressionBuilder.stories.d.ts.map +1 -1
  16. package/jsx/build/ExpressionBuilder/ExpressionBuilder.stories.jsx +6 -5
  17. package/jsx/build/ExpressionBuilder/ExpressionBuilder.stories.jsx.map +1 -1
  18. package/jsx/build/FlowModeller/FlowModeller.mocks.d.ts.map +1 -1
  19. package/jsx/build/FlowModeller/FlowModeller.mocks.jsx +17 -21
  20. package/jsx/build/FlowModeller/FlowModeller.mocks.jsx.map +1 -1
  21. package/jsx/build/FlowModeller/FlowModeller.stories.d.ts +1 -1
  22. package/jsx/build/FlowModeller/FlowModeller.stories.d.ts.map +1 -1
  23. package/jsx/build/FlowModeller/FlowModeller.stories.jsx +125 -9
  24. package/jsx/build/FlowModeller/FlowModeller.stories.jsx.map +1 -1
  25. package/jsx/build/ItemLibrary/LibraryPicker.stories.d.ts +1 -1
  26. package/jsx/build/LifeCycle/LifeCycle.stories.d.ts +1 -1
  27. package/jsx/build/LifeCycle/LifeCycle.stories.d.ts.map +1 -1
  28. package/jsx/build/LifeCycle/LifeCycle.stories.jsx +43 -3
  29. package/jsx/build/LifeCycle/LifeCycle.stories.jsx.map +1 -1
  30. package/jsx/build/MobileBuildSummary/MobileBuildSummary.mocks.d.ts +1 -0
  31. package/jsx/build/MobileBuildSummary/MobileBuildSummary.mocks.d.ts.map +1 -1
  32. package/jsx/build/MobileBuildSummary/MobileBuildSummary.mocks.js +2 -1
  33. package/jsx/build/MobileBuildSummary/MobileBuildSummary.mocks.js.map +1 -1
  34. package/jsx/build/MobileBuildSummary/MobileBuildSummary.stories.d.ts +1 -1
  35. package/jsx/build/ObjectSelect/ObjectSelect.mocks.d.ts +3 -2
  36. package/jsx/build/ObjectSelect/ObjectSelect.mocks.d.ts.map +1 -1
  37. package/jsx/build/ObjectSelect/ObjectSelect.mocks.jsx +6 -6
  38. package/jsx/build/ObjectSelect/ObjectSelect.mocks.jsx.map +1 -1
  39. package/jsx/build/ObjectSelect/ObjectSelect.stories.d.ts +1 -1
  40. package/jsx/build/ObjectSelect/ObjectSelect.stories.d.ts.map +1 -1
  41. package/jsx/build/ObjectSelect/ObjectSelect.stories.jsx.map +1 -1
  42. package/jsx/build/PageBanner/PageBanner.stories.d.ts +15 -0
  43. package/jsx/build/PageBanner/PageBanner.stories.d.ts.map +1 -0
  44. package/jsx/build/PageBanner/PageBanner.stories.jsx +41 -0
  45. package/jsx/build/PageBanner/PageBanner.stories.jsx.map +1 -0
  46. package/jsx/build/PageTemplates/GalleryPage.mocks.d.ts +0 -2
  47. package/jsx/build/PageTemplates/GalleryPage.mocks.d.ts.map +1 -1
  48. package/jsx/build/PageTemplates/GalleryPage.mocks.jsx +1 -50
  49. package/jsx/build/PageTemplates/GalleryPage.mocks.jsx.map +1 -1
  50. package/jsx/build/PageTemplates/GalleryPage.stories.d.ts +8 -4
  51. package/jsx/build/PageTemplates/GalleryPage.stories.d.ts.map +1 -1
  52. package/jsx/build/PageTemplates/GalleryPage.stories.jsx +32 -31
  53. package/jsx/build/PageTemplates/GalleryPage.stories.jsx.map +1 -1
  54. package/jsx/build/PageTemplates/PageTemplates.mocks.d.ts +0 -1
  55. package/jsx/build/PageTemplates/PageTemplates.mocks.d.ts.map +1 -1
  56. package/jsx/build/PageTemplates/PageTemplates.mocks.jsx +2 -156
  57. package/jsx/build/PageTemplates/PageTemplates.mocks.jsx.map +1 -1
  58. package/jsx/build/PageTemplates/PageTemplates.stories.d.ts +1 -1
  59. package/jsx/build/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
  60. package/jsx/build/PageTemplates/PageTemplates.stories.jsx +6 -7
  61. package/jsx/build/PageTemplates/PageTemplates.stories.jsx.map +1 -1
  62. package/jsx/build/PageTemplates/ShowcasePage.stories.d.ts +17 -0
  63. package/jsx/build/PageTemplates/ShowcasePage.stories.d.ts.map +1 -0
  64. package/jsx/build/PageTemplates/ShowcasePage.stories.jsx +42 -0
  65. package/jsx/build/PageTemplates/ShowcasePage.stories.jsx.map +1 -0
  66. package/jsx/build/Workbench/Workbench.stories.d.ts +1 -1
  67. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts +1 -1
  68. package/jsx/condition-builder/ConditionBuilder/props.mock.d.ts.map +1 -1
  69. package/jsx/condition-builder/ConditionBuilder/props.mock.js +4 -2
  70. package/jsx/condition-builder/ConditionBuilder/props.mock.js.map +1 -1
  71. package/jsx/condition-builder/ConditionInput/ConditionInput.stories.d.ts +1 -1
  72. package/jsx/condition-builder/PromotedFilters/PromotedFilters.mocks.d.ts.map +1 -1
  73. package/jsx/condition-builder/PromotedFilters/PromotedFilters.mocks.js +53 -1
  74. package/jsx/condition-builder/PromotedFilters/PromotedFilters.mocks.js.map +1 -1
  75. package/jsx/condition-builder/PromotedFilters/PromotedFilters.stories.d.ts +1 -1
  76. package/jsx/core/AIButton/AIButton.mocks.d.ts +22 -0
  77. package/jsx/core/AIButton/AIButton.mocks.d.ts.map +1 -0
  78. package/jsx/core/AIButton/AIButton.mocks.js +136 -0
  79. package/jsx/core/AIButton/AIButton.mocks.js.map +1 -0
  80. package/jsx/core/AIButton/AIButton.stories.d.ts +23 -0
  81. package/jsx/core/AIButton/AIButton.stories.d.ts.map +1 -0
  82. package/jsx/core/AIButton/AIButton.stories.jsx +306 -0
  83. package/jsx/core/AIButton/AIButton.stories.jsx.map +1 -0
  84. package/jsx/core/AdditionalInfo/AdditionalInfo.stories.d.ts +1 -1
  85. package/jsx/core/AppShell/AppShell.mocks.d.ts.map +1 -1
  86. package/jsx/core/AppShell/AppShell.mocks.jsx +4 -19
  87. package/jsx/core/AppShell/AppShell.mocks.jsx.map +1 -1
  88. package/jsx/core/AppShell/AppShell.stories.d.ts +2 -3
  89. package/jsx/core/AppShell/AppShell.stories.d.ts.map +1 -1
  90. package/jsx/core/AppShell/AppShell.stories.jsx +58 -77
  91. package/jsx/core/AppShell/AppShell.stories.jsx.map +1 -1
  92. package/jsx/core/Avatar/Avatar.stories.d.ts +1 -1
  93. package/jsx/core/Backdrop/Backdrop.stories.d.ts +1 -1
  94. package/jsx/core/Backdrop/Backdrop.stories.d.ts.map +1 -1
  95. package/jsx/core/Backdrop/Backdrop.stories.jsx +12 -12
  96. package/jsx/core/Backdrop/Backdrop.stories.jsx.map +1 -1
  97. package/jsx/core/Badges/Alert.stories.d.ts +1 -1
  98. package/jsx/core/Badges/Count.stories.d.ts +1 -1
  99. package/jsx/core/Badges/Count.stories.jsx +1 -1
  100. package/jsx/core/Badges/Count.stories.jsx.map +1 -1
  101. package/jsx/core/Badges/Keyboard.stories.d.ts +1 -1
  102. package/jsx/core/Badges/Keyboard.stories.jsx +1 -1
  103. package/jsx/core/Badges/Keyboard.stories.jsx.map +1 -1
  104. package/jsx/core/Badges/Selection.stories.d.ts +1 -1
  105. package/jsx/core/Badges/Status.stories.d.ts +1 -1
  106. package/jsx/core/Badges/Tag.stories.d.ts +1 -1
  107. package/jsx/core/Banner/Banner.stories.d.ts +9 -5
  108. package/jsx/core/Banner/Banner.stories.d.ts.map +1 -1
  109. package/jsx/core/Banner/Banner.stories.jsx +109 -54
  110. package/jsx/core/Banner/Banner.stories.jsx.map +1 -1
  111. package/jsx/core/Boolean/BooleanDisplay.stories.d.ts +1 -1
  112. package/jsx/core/Breadcrumbs/Breadcrumbs.stories.d.ts +7 -3
  113. package/jsx/core/Breadcrumbs/Breadcrumbs.stories.d.ts.map +1 -1
  114. package/jsx/core/Breadcrumbs/Breadcrumbs.stories.jsx +16 -4
  115. package/jsx/core/Breadcrumbs/Breadcrumbs.stories.jsx.map +1 -1
  116. package/jsx/core/Button/Button.stories.d.ts +1 -2
  117. package/jsx/core/Button/Button.stories.d.ts.map +1 -1
  118. package/jsx/core/Button/Button.stories.jsx +0 -14
  119. package/jsx/core/Button/Button.stories.jsx.map +1 -1
  120. package/jsx/core/Card/Card.stories.d.ts +1 -1
  121. package/jsx/core/Checkbox/Checkbox.stories.d.ts +1 -1
  122. package/jsx/core/Checkbox/Checkbox.stories.d.ts.map +1 -1
  123. package/jsx/core/Checkbox/Checkbox.stories.jsx +3 -1
  124. package/jsx/core/Checkbox/Checkbox.stories.jsx.map +1 -1
  125. package/jsx/core/CheckboxGroup/CheckboxGroup.stories.d.ts +1 -1
  126. package/jsx/core/CheckboxGroup/CheckboxGroup.stories.d.ts.map +1 -1
  127. package/jsx/core/CheckboxGroup/CheckboxGroup.stories.jsx +8 -5
  128. package/jsx/core/CheckboxGroup/CheckboxGroup.stories.jsx.map +1 -1
  129. package/jsx/core/ColorPicker/ColorPicker.stories.d.ts +1 -1
  130. package/jsx/core/ComboBox/ComboBox.stories.d.ts +3 -3
  131. package/jsx/core/ComboBox/ComboBox.stories.d.ts.map +1 -1
  132. package/jsx/core/ComboBox/ComboBox.stories.jsx +17 -9
  133. package/jsx/core/ComboBox/ComboBox.stories.jsx.map +1 -1
  134. package/jsx/core/CompositeInput/CompositeInput.stories.d.ts +1 -1
  135. package/jsx/core/Configuration/Configuration.stories.d.ts +1 -1
  136. package/jsx/core/CreditCard/CreditCard.stories.d.ts +1 -1
  137. package/jsx/core/Currency/Currency.stories.d.ts +2 -2
  138. package/jsx/core/Currency/Currency.stories.d.ts.map +1 -1
  139. package/jsx/core/DangerButton/DangerButton.stories.d.ts +6 -0
  140. package/jsx/core/DangerButton/DangerButton.stories.d.ts.map +1 -0
  141. package/jsx/core/DangerButton/DangerButton.stories.jsx +17 -0
  142. package/jsx/core/DangerButton/DangerButton.stories.jsx.map +1 -0
  143. package/jsx/core/DateTime/DateTime.stories.d.ts +1 -1
  144. package/jsx/core/DateTime/DateTime.stories.d.ts.map +1 -1
  145. package/jsx/core/DateTime/DateTime.stories.jsx +11 -9
  146. package/jsx/core/DateTime/DateTime.stories.jsx.map +1 -1
  147. package/jsx/core/DateTime/DateTimeDisplay.stories.d.ts +1 -1
  148. package/jsx/core/DateTime/DateTimeDisplay.stories.d.ts.map +1 -1
  149. package/jsx/core/DateTime/DateTimeDisplay.stories.jsx +5 -3
  150. package/jsx/core/DateTime/DateTimeDisplay.stories.jsx.map +1 -1
  151. package/jsx/core/DateTime/DateTimePicker.stories.d.ts +1 -1
  152. package/jsx/core/DateTime/DateTimePicker.stories.jsx +1 -1
  153. package/jsx/core/DateTime/DateTimePicker.stories.jsx.map +1 -1
  154. package/jsx/core/Dialog/Dialog.stories.d.ts +3 -2
  155. package/jsx/core/Dialog/Dialog.stories.d.ts.map +1 -1
  156. package/jsx/core/Dialog/Dialog.stories.jsx +9 -73
  157. package/jsx/core/Dialog/Dialog.stories.jsx.map +1 -1
  158. package/jsx/core/Dialog/FormDialog.mocks.d.ts +27 -0
  159. package/jsx/core/Dialog/FormDialog.mocks.d.ts.map +1 -0
  160. package/jsx/core/Dialog/FormDialog.mocks.jsx +194 -0
  161. package/jsx/core/Dialog/FormDialog.mocks.jsx.map +1 -0
  162. package/jsx/core/Dialog/InfoDialog.mocks.d.ts +4 -0
  163. package/jsx/core/Dialog/InfoDialog.mocks.d.ts.map +1 -0
  164. package/jsx/core/Dialog/InfoDialog.mocks.jsx +64 -0
  165. package/jsx/core/Dialog/InfoDialog.mocks.jsx.map +1 -0
  166. package/jsx/core/Drawer/Drawer.stories.d.ts +1 -1
  167. package/jsx/core/Email/EmailDisplay.stories.d.ts +1 -1
  168. package/jsx/core/EmojiPicker/EmojiPicker.stories.d.ts +1 -1
  169. package/jsx/core/EmojiPicker/EmojiPicker.stories.d.ts.map +1 -1
  170. package/jsx/core/EmojiPicker/EmojiPicker.stories.jsx +6 -5
  171. package/jsx/core/EmojiPicker/EmojiPicker.stories.jsx.map +1 -1
  172. package/jsx/core/EmptyState/EmptyState.stories.d.ts +1 -1
  173. package/jsx/core/ErrorState/ErrorState.stories.d.ts +1 -1
  174. package/jsx/core/ExpandCollapse/ExpandCollapse.stories.d.ts +1 -1
  175. package/jsx/core/FieldGroup/FieldGroup.stories.d.ts +6 -1
  176. package/jsx/core/FieldGroup/FieldGroup.stories.d.ts.map +1 -1
  177. package/jsx/core/FieldGroup/FieldGroup.stories.jsx +28 -3
  178. package/jsx/core/FieldGroup/FieldGroup.stories.jsx.map +1 -1
  179. package/jsx/core/FieldGroup/FieldGroupList.mocks.d.ts +1 -1
  180. package/jsx/core/FieldGroup/FieldGroupList.mocks.d.ts.map +1 -1
  181. package/jsx/core/FieldGroup/FieldGroupList.mocks.jsx +6 -1
  182. package/jsx/core/FieldGroup/FieldGroupList.mocks.jsx.map +1 -1
  183. package/jsx/core/FieldGroup/FieldGroupList.stories.d.ts +2 -1
  184. package/jsx/core/FieldGroup/FieldGroupList.stories.d.ts.map +1 -1
  185. package/jsx/core/FieldGroup/FieldGroupList.stories.jsx +43 -11
  186. package/jsx/core/FieldGroup/FieldGroupList.stories.jsx.map +1 -1
  187. package/jsx/core/FieldValueList/FieldValueList.stories.d.ts +1 -1
  188. package/jsx/core/File/FileDisplay.stories.d.ts +1 -1
  189. package/jsx/core/File/FileInput.stories.d.ts +1 -1
  190. package/jsx/core/Flex/FlexContainer.stories.d.ts +1 -1
  191. package/jsx/core/Flex/FlexItem.stories.d.ts +1 -1
  192. package/jsx/core/Form/Form.stories.d.ts +1 -1
  193. package/jsx/core/Form/Form.stories.d.ts.map +1 -1
  194. package/jsx/core/Form/Form.stories.jsx +2 -2
  195. package/jsx/core/Form/Form.stories.jsx.map +1 -1
  196. package/jsx/core/Grid/GridContainer.stories.d.ts +1 -1
  197. package/jsx/core/Grid/GridItem.stories.d.ts +1 -1
  198. package/jsx/core/HTML/HTML.stories.d.ts +1 -1
  199. package/jsx/core/Icon/Icon.stories.d.ts +5 -2
  200. package/jsx/core/Icon/Icon.stories.d.ts.map +1 -1
  201. package/jsx/core/Icon/Icon.stories.jsx +26 -16
  202. package/jsx/core/Icon/Icon.stories.jsx.map +1 -1
  203. package/jsx/core/IconPicker/IconPicker.stories.d.ts +1 -1
  204. package/jsx/core/Image/Image.stories.d.ts +1 -1
  205. package/jsx/core/Input/Input.stories.d.ts +1 -1
  206. package/jsx/core/Label/Label.stories.d.ts +1 -1
  207. package/jsx/core/Lightbox/Lightbox.mocks.d.ts.map +1 -1
  208. package/jsx/core/Lightbox/Lightbox.mocks.js.map +1 -1
  209. package/jsx/core/Lightbox/Lightbox.stories.d.ts +1 -1
  210. package/jsx/core/Link/Link.stories.d.ts +9 -5
  211. package/jsx/core/Link/Link.stories.d.ts.map +1 -1
  212. package/jsx/core/Link/Link.stories.jsx +13 -30
  213. package/jsx/core/Link/Link.stories.jsx.map +1 -1
  214. package/jsx/core/List/CommaSeparatedList.stories.d.ts +1 -1
  215. package/jsx/core/List/OrderedList.stories.d.ts +1 -1
  216. package/jsx/core/List/UnorderedList.stories.d.ts +1 -1
  217. package/jsx/core/ListToolbar/ListToolbar.mocks.d.ts.map +1 -1
  218. package/jsx/core/ListToolbar/ListToolbar.mocks.jsx +47 -52
  219. package/jsx/core/ListToolbar/ListToolbar.mocks.jsx.map +1 -1
  220. package/jsx/core/ListToolbar/ListToolbar.stories.d.ts +2 -3
  221. package/jsx/core/ListToolbar/ListToolbar.stories.d.ts.map +1 -1
  222. package/jsx/core/ListToolbar/ListToolbar.stories.jsx +14 -19
  223. package/jsx/core/ListToolbar/ListToolbar.stories.jsx.map +1 -1
  224. package/jsx/core/LiveLog/LiveLog.mocks.d.ts +5 -0
  225. package/jsx/core/LiveLog/LiveLog.mocks.d.ts.map +1 -0
  226. package/jsx/core/LiveLog/LiveLog.mocks.jsx +47 -0
  227. package/jsx/core/LiveLog/LiveLog.mocks.jsx.map +1 -0
  228. package/jsx/core/LiveLog/LiveLog.stories.d.ts +9 -0
  229. package/jsx/core/LiveLog/LiveLog.stories.d.ts.map +1 -0
  230. package/jsx/core/LiveLog/LiveLog.stories.jsx +19 -0
  231. package/jsx/core/LiveLog/LiveLog.stories.jsx.map +1 -0
  232. package/jsx/core/Location/Location.stories.d.ts +1 -1
  233. package/jsx/core/Location/Location.stories.d.ts.map +1 -1
  234. package/jsx/core/Location/Location.stories.jsx +11 -7
  235. package/jsx/core/Location/Location.stories.jsx.map +1 -1
  236. package/jsx/core/Menu/Menu.mocks.js.map +1 -1
  237. package/jsx/core/Menu/Menu.stories.d.ts +2 -1
  238. package/jsx/core/Menu/Menu.stories.d.ts.map +1 -1
  239. package/jsx/core/Menu/Menu.stories.jsx +33 -0
  240. package/jsx/core/Menu/Menu.stories.jsx.map +1 -1
  241. package/jsx/core/MenuButton/MenuButton.stories.d.ts +3 -2
  242. package/jsx/core/MenuButton/MenuButton.stories.d.ts.map +1 -1
  243. package/jsx/core/MenuButton/MenuButton.stories.jsx +1 -1
  244. package/jsx/core/MenuButton/MenuButton.stories.jsx.map +1 -1
  245. package/jsx/core/MetaList/MetaList.stories.d.ts +1 -1
  246. package/jsx/core/Modal/Modal.mocks.d.ts +1 -1
  247. package/jsx/core/Modal/Modal.mocks.d.ts.map +1 -1
  248. package/jsx/core/Modal/Modal.stories.d.ts +1 -1
  249. package/jsx/core/Modal/Modal.stories.d.ts.map +1 -1
  250. package/jsx/core/Modal/Modal.stories.jsx +5 -6
  251. package/jsx/core/Modal/Modal.stories.jsx.map +1 -1
  252. package/jsx/core/MultiStepForm/MultiStepForm.mocks.d.ts +36 -3
  253. package/jsx/core/MultiStepForm/MultiStepForm.mocks.d.ts.map +1 -1
  254. package/jsx/core/MultiStepForm/MultiStepForm.mocks.jsx +295 -40
  255. package/jsx/core/MultiStepForm/MultiStepForm.mocks.jsx.map +1 -1
  256. package/jsx/core/MultiStepForm/MultiStepForm.stories.d.ts +4 -2
  257. package/jsx/core/MultiStepForm/MultiStepForm.stories.d.ts.map +1 -1
  258. package/jsx/core/MultiStepForm/MultiStepForm.stories.jsx +70 -165
  259. package/jsx/core/MultiStepForm/MultiStepForm.stories.jsx.map +1 -1
  260. package/jsx/core/NoValue/NoValue.stories.d.ts +6 -0
  261. package/jsx/core/NoValue/NoValue.stories.d.ts.map +1 -0
  262. package/jsx/core/NoValue/NoValue.stories.jsx +30 -0
  263. package/jsx/core/NoValue/NoValue.stories.jsx.map +1 -0
  264. package/jsx/core/Number/Number.stories.d.ts +2 -2
  265. package/jsx/core/Number/Number.stories.d.ts.map +1 -1
  266. package/jsx/core/PageTemplates/PageTemplates.stories.d.ts +2 -2
  267. package/jsx/core/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
  268. package/jsx/core/PageTemplates/PageTemplates.stories.jsx +2 -2
  269. package/jsx/core/PageTemplates/PageTemplates.stories.jsx.map +1 -1
  270. package/jsx/core/Pagination/Pagination.stories.d.ts +1 -1
  271. package/jsx/core/Paragraph/ParagraphDisplay.stories.d.ts +1 -1
  272. package/jsx/core/Phone/Phone.stories.d.ts +1 -1
  273. package/jsx/core/Popover/Popover.mocks.d.ts +9 -0
  274. package/jsx/core/Popover/Popover.mocks.d.ts.map +1 -0
  275. package/jsx/core/Popover/Popover.mocks.jsx +114 -0
  276. package/jsx/core/Popover/Popover.mocks.jsx.map +1 -0
  277. package/jsx/core/Popover/Popover.stories.d.ts +7 -1
  278. package/jsx/core/Popover/Popover.stories.d.ts.map +1 -1
  279. package/jsx/core/Popover/Popover.stories.jsx +27 -0
  280. package/jsx/core/Popover/Popover.stories.jsx.map +1 -1
  281. package/jsx/core/Progress/Progress.mocks.d.ts +2 -0
  282. package/jsx/core/Progress/Progress.mocks.d.ts.map +1 -0
  283. package/jsx/core/Progress/Progress.mocks.js +2 -0
  284. package/jsx/core/Progress/Progress.mocks.js.map +1 -0
  285. package/jsx/core/Progress/Progress.stories.d.ts +4 -1
  286. package/jsx/core/Progress/Progress.stories.d.ts.map +1 -1
  287. package/jsx/core/Progress/Progress.stories.jsx +81 -14
  288. package/jsx/core/Progress/Progress.stories.jsx.map +1 -1
  289. package/jsx/core/QRCode/QRCode.stories.d.ts +9 -0
  290. package/jsx/core/QRCode/QRCode.stories.d.ts.map +1 -0
  291. package/jsx/core/QRCode/QRCode.stories.jsx +17 -0
  292. package/jsx/core/QRCode/QRCode.stories.jsx.map +1 -0
  293. package/jsx/core/RadioButton/RadioButton.stories.d.ts +1 -1
  294. package/jsx/core/RadioButton/RadioButton.stories.d.ts.map +1 -1
  295. package/jsx/core/RadioButton/RadioButton.stories.jsx +3 -1
  296. package/jsx/core/RadioButton/RadioButton.stories.jsx.map +1 -1
  297. package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts +1 -1
  298. package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts.map +1 -1
  299. package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.jsx +9 -5
  300. package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.jsx.map +1 -1
  301. package/jsx/core/Rating/Rating.stories.d.ts +1 -1
  302. package/jsx/core/Rating/Rating.stories.d.ts.map +1 -1
  303. package/jsx/core/Rating/Rating.stories.jsx +1 -1
  304. package/jsx/core/Rating/Rating.stories.jsx.map +1 -1
  305. package/jsx/core/SearchInput/SearchInput.stories.d.ts +1 -1
  306. package/jsx/core/SearchInput/SearchInput.stories.jsx +1 -1
  307. package/jsx/core/SearchInput/SearchInput.stories.jsx.map +1 -1
  308. package/jsx/core/Select/Select.stories.d.ts +1 -1
  309. package/jsx/core/Sentiment/Sentiment.stories.d.ts +1 -1
  310. package/jsx/core/SkipLinks/SkipLinks.stories.d.ts +1 -1
  311. package/jsx/core/Slider/Slider.stories.d.ts +2 -2
  312. package/jsx/core/Slider/Slider.stories.d.ts.map +1 -1
  313. package/jsx/core/SummaryItem/SummaryItem.stories.d.ts +2 -2
  314. package/jsx/core/SummaryItem/SummaryItem.stories.d.ts.map +1 -1
  315. package/jsx/core/SummaryList/SummaryList.mocks.d.ts.map +1 -1
  316. package/jsx/core/SummaryList/SummaryList.mocks.jsx +10 -2
  317. package/jsx/core/SummaryList/SummaryList.mocks.jsx.map +1 -1
  318. package/jsx/core/SummaryList/SummaryList.stories.d.ts +1 -1
  319. package/jsx/core/SummaryList/SummaryList.stories.jsx +2 -2
  320. package/jsx/core/SummaryList/SummaryList.stories.jsx.map +1 -1
  321. package/jsx/core/SummaryList/mockUsers.d.ts.map +1 -1
  322. package/jsx/core/SummaryList/mockUsers.js.map +1 -1
  323. package/jsx/core/Switch/Switch.stories.d.ts +1 -1
  324. package/jsx/core/Table/Table.mocks.jsx +1 -1
  325. package/jsx/core/Table/Table.mocks.jsx.map +1 -1
  326. package/jsx/core/Table/Table.stories.d.ts +1 -1
  327. package/jsx/core/Table/Table.stories.jsx.map +1 -1
  328. package/jsx/core/Tabs/Tabs.stories.d.ts +1 -7
  329. package/jsx/core/Tabs/Tabs.stories.d.ts.map +1 -1
  330. package/jsx/core/Tabs/Tabs.stories.jsx +1 -40
  331. package/jsx/core/Tabs/Tabs.stories.jsx.map +1 -1
  332. package/jsx/core/Text/Text.stories.d.ts +1 -1
  333. package/jsx/core/TextArea/TextArea.stories.d.ts +1 -1
  334. package/jsx/core/TextArea/TextArea.stories.jsx +1 -1
  335. package/jsx/core/TextArea/TextArea.stories.jsx.map +1 -1
  336. package/jsx/core/Toaster/Toaster.stories.d.ts +1 -1
  337. package/jsx/core/Tooltip/Tooltip.stories.d.ts +2 -1
  338. package/jsx/core/Tooltip/Tooltip.stories.d.ts.map +1 -1
  339. package/jsx/core/Tooltip/Tooltip.stories.jsx +21 -1
  340. package/jsx/core/Tooltip/Tooltip.stories.jsx.map +1 -1
  341. package/jsx/core/Tooltip/Tooltip.styles.d.ts +2 -0
  342. package/jsx/core/Tooltip/Tooltip.styles.d.ts.map +1 -0
  343. package/jsx/core/Tooltip/Tooltip.styles.js +23 -0
  344. package/jsx/core/Tooltip/Tooltip.styles.js.map +1 -0
  345. package/jsx/core/Tree/Tree.stories.d.ts +2 -2
  346. package/jsx/core/Tree/Tree.stories.d.ts.map +1 -1
  347. package/jsx/core/Tree/Tree.stories.jsx +10 -18
  348. package/jsx/core/Tree/Tree.stories.jsx.map +1 -1
  349. package/jsx/core/URL/URL.stories.d.ts +1 -1
  350. package/jsx/core/URL/URL.stories.jsx +1 -1
  351. package/jsx/core/URL/URL.stories.jsx.map +1 -1
  352. package/jsx/cs/Article/Article.mocks.js +4 -4
  353. package/jsx/cs/Article/Article.mocks.js.map +1 -1
  354. package/jsx/cs/Article/Article.stories.d.ts +14 -3
  355. package/jsx/cs/Article/Article.stories.d.ts.map +1 -1
  356. package/jsx/cs/Article/Article.stories.jsx +167 -92
  357. package/jsx/cs/Article/Article.stories.jsx.map +1 -1
  358. package/jsx/cs/ArticleList/ArticleList.mocks.d.ts +129 -10
  359. package/jsx/cs/ArticleList/ArticleList.mocks.d.ts.map +1 -1
  360. package/jsx/cs/ArticleList/ArticleList.mocks.js +362 -50
  361. package/jsx/cs/ArticleList/ArticleList.mocks.js.map +1 -1
  362. package/jsx/cs/ArticleList/ArticleList.stories.d.ts +11 -3
  363. package/jsx/cs/ArticleList/ArticleList.stories.d.ts.map +1 -1
  364. package/jsx/cs/ArticleList/ArticleList.stories.jsx +243 -92
  365. package/jsx/cs/ArticleList/ArticleList.stories.jsx.map +1 -1
  366. package/jsx/cs/CSAppShell/CSAppShell.mocks.d.ts +18 -1
  367. package/jsx/cs/CSAppShell/CSAppShell.mocks.d.ts.map +1 -1
  368. package/jsx/cs/CSAppShell/CSAppShell.mocks.jsx +143 -10
  369. package/jsx/cs/CSAppShell/CSAppShell.mocks.jsx.map +1 -1
  370. package/jsx/cs/CSAppShell/CSAppShell.stories.d.ts +1 -1
  371. package/jsx/cs/CSAppShell/CSAppShell.stories.d.ts.map +1 -1
  372. package/jsx/cs/CSAppShell/CSAppShell.stories.jsx +9 -37
  373. package/jsx/cs/CSAppShell/CSAppShell.stories.jsx.map +1 -1
  374. package/jsx/cs/CallControlPanel/CallControlPanel.mocks.d.ts +2 -2
  375. package/jsx/cs/CallControlPanel/CallControlPanel.mocks.d.ts.map +1 -1
  376. package/jsx/cs/CallControlPanel/CallControlPanel.stories.d.ts +1 -1
  377. package/jsx/cs/CallControlPanel/CallControlPanel.stories.d.ts.map +1 -1
  378. package/jsx/cs/CallControlPanel/CallControlPanel.stories.jsx +2 -2
  379. package/jsx/cs/CallControlPanel/CallControlPanel.stories.jsx.map +1 -1
  380. package/jsx/cs/DialPad/DialPad.stories.d.ts +1 -1
  381. package/jsx/cs/InteractionNotification/InteractionNotification.stories.d.ts +4 -2
  382. package/jsx/cs/InteractionNotification/InteractionNotification.stories.d.ts.map +1 -1
  383. package/jsx/cs/InteractionNotification/InteractionNotification.stories.jsx +18 -4
  384. package/jsx/cs/InteractionNotification/InteractionNotification.stories.jsx.map +1 -1
  385. package/jsx/cs/InteractionTimer/InteractionTimer.stories.d.ts +2 -1
  386. package/jsx/cs/InteractionTimer/InteractionTimer.stories.d.ts.map +1 -1
  387. package/jsx/cs/InteractionTimer/InteractionTimer.stories.jsx +12 -5
  388. package/jsx/cs/InteractionTimer/InteractionTimer.stories.jsx.map +1 -1
  389. package/jsx/cs/Picker/Picker.stories.d.ts +11 -0
  390. package/jsx/cs/Picker/Picker.stories.d.ts.map +1 -0
  391. package/jsx/cs/Picker/Picker.stories.jsx +64 -0
  392. package/jsx/cs/Picker/Picker.stories.jsx.map +1 -0
  393. package/jsx/cs/TaskManager/TaskManager.stories.d.ts +1 -1
  394. package/jsx/cs/TaskManager/TaskManager.stories.d.ts.map +1 -1
  395. package/jsx/cs/TaskManager/TaskManager.stories.jsx +1 -1
  396. package/jsx/cs/TaskManager/TaskManager.stories.jsx.map +1 -1
  397. package/jsx/dnd/DragDropList/DragDropList.stories.d.ts +1 -1
  398. package/jsx/dnd/StandardDragDropList/Demo.d.ts.map +1 -1
  399. package/jsx/dnd/StandardDragDropList/Demo.jsx +6 -8
  400. package/jsx/dnd/StandardDragDropList/Demo.jsx.map +1 -1
  401. package/jsx/dnd/StandardDragDropList/Popover.d.ts +1 -1
  402. package/jsx/dnd/StandardDragDropList/Popover.d.ts.map +1 -1
  403. package/jsx/dnd/StandardDragDropList/StandardDragDropList.stories.d.ts +1 -1
  404. package/jsx/dnd/StandardDragDropList/mockData.d.ts +2 -2
  405. package/jsx/dnd/StandardDragDropList/mockData.d.ts.map +1 -1
  406. package/jsx/dnd/StandardDragDropList/mockData.js.map +1 -1
  407. package/jsx/rte/DynamicContentEditor/DynamicContentEditor.stories.d.ts +8 -0
  408. package/jsx/rte/DynamicContentEditor/DynamicContentEditor.stories.d.ts.map +1 -0
  409. package/jsx/rte/DynamicContentEditor/DynamicContentEditor.stories.jsx +101 -0
  410. package/jsx/rte/DynamicContentEditor/DynamicContentEditor.stories.jsx.map +1 -0
  411. package/jsx/rte/DynamicContentEditor/FieldSelector.d.ts +11 -0
  412. package/jsx/rte/DynamicContentEditor/FieldSelector.d.ts.map +1 -0
  413. package/jsx/rte/DynamicContentEditor/FieldSelector.jsx +80 -0
  414. package/jsx/rte/DynamicContentEditor/FieldSelector.jsx.map +1 -0
  415. package/jsx/rte/Editor/Editor.mocks.d.ts +41 -27
  416. package/jsx/rte/Editor/Editor.mocks.d.ts.map +1 -1
  417. package/jsx/rte/Editor/Editor.stories.d.ts +1 -1
  418. package/jsx/rte/RichTextEditor/RichTextEditor.stories.d.ts +1 -1
  419. package/jsx/rte/RichTextEditor/RichTextViewer.stories.d.ts +1 -1
  420. package/jsx/social/Chat/Chat.mocks.d.ts +23 -395
  421. package/jsx/social/Chat/Chat.mocks.d.ts.map +1 -1
  422. package/jsx/social/Chat/Chat.mocks.js +568 -585
  423. package/jsx/social/Chat/Chat.mocks.js.map +1 -1
  424. package/jsx/social/Chat/Chat.stories.d.ts +23 -19
  425. package/jsx/social/Chat/Chat.stories.d.ts.map +1 -1
  426. package/jsx/social/Chat/Chat.stories.jsx +220 -301
  427. package/jsx/social/Chat/Chat.stories.jsx.map +1 -1
  428. package/jsx/social/Email/Email.mocks.d.ts +50 -8
  429. package/jsx/social/Email/Email.mocks.d.ts.map +1 -1
  430. package/jsx/social/Email/Email.mocks.jsx +130 -18
  431. package/jsx/social/Email/Email.mocks.jsx.map +1 -1
  432. package/jsx/social/Email/Email.stories.d.ts +11 -1
  433. package/jsx/social/Email/Email.stories.d.ts.map +1 -1
  434. package/jsx/social/Email/Email.stories.jsx +153 -35
  435. package/jsx/social/Email/Email.stories.jsx.map +1 -1
  436. package/jsx/social/Feed/Feed.mocks.d.ts +2 -1
  437. package/jsx/social/Feed/Feed.mocks.d.ts.map +1 -1
  438. package/jsx/social/Feed/Feed.mocks.jsx +4 -2
  439. package/jsx/social/Feed/Feed.mocks.jsx.map +1 -1
  440. package/jsx/social/Feed/Feed.stories.d.ts +1 -1
  441. package/jsx/social/Feed/Feed.stories.d.ts.map +1 -1
  442. package/jsx/social/Feed/Feed.stories.jsx +13 -5
  443. package/jsx/social/Feed/Feed.stories.jsx.map +1 -1
  444. package/jsx/social/Feed/FeedNewPost.stories.d.ts +1 -1
  445. package/jsx/social/Feed/FeedNewPost.stories.d.ts.map +1 -1
  446. package/jsx/social/Feed/FeedNewPost.stories.jsx +2 -2
  447. package/jsx/social/Feed/FeedNewPost.stories.jsx.map +1 -1
  448. package/jsx/social/Feed/FeedPost.stories.d.ts +1 -1
  449. package/jsx/social/Feed/FeedPost.stories.d.ts.map +1 -1
  450. package/jsx/social/Feed/FeedPost.stories.jsx +16 -9
  451. package/jsx/social/Feed/FeedPost.stories.jsx.map +1 -1
  452. package/jsx/social/Feed/FeedReply.stories.d.ts +1 -1
  453. package/jsx/social/Feed/FeedReply.stories.d.ts.map +1 -1
  454. package/jsx/social/Feed/FeedReply.stories.jsx +11 -3
  455. package/jsx/social/Feed/FeedReply.stories.jsx.map +1 -1
  456. package/jsx/social/Feed/FeedReplyInput.stories.d.ts +1 -1
  457. package/jsx/social/Feed/FeedReplyInput.stories.d.ts.map +1 -1
  458. package/jsx/social/Feed/FeedReplyInput.stories.jsx +2 -2
  459. package/jsx/social/Feed/FeedReplyInput.stories.jsx.map +1 -1
  460. package/jsx/tools/Clipboard/Clipboard.mocks.d.ts.map +1 -1
  461. package/jsx/tools/Clipboard/Clipboard.mocks.jsx.map +1 -1
  462. package/jsx/tools/Clipboard/Clipboard.stories.d.ts +1 -1
  463. package/jsx/tools/Clipboard/Clipboard.stories.d.ts.map +1 -1
  464. package/jsx/tools/Clipboard/Clipboard.stories.jsx +12 -14
  465. package/jsx/tools/Clipboard/Clipboard.stories.jsx.map +1 -1
  466. package/jsx/tools/DevTools/DevTools.stories.d.ts +1 -1
  467. package/jsx/tools/DevTools/DevTools.stories.d.ts.map +1 -1
  468. package/jsx/tools/DevTools/DevTools.stories.jsx +2 -4
  469. package/jsx/tools/DevTools/DevTools.stories.jsx.map +1 -1
  470. package/jsx/tools/PreviewShell/PreviewShell.mocks.d.ts +12 -1
  471. package/jsx/tools/PreviewShell/PreviewShell.mocks.d.ts.map +1 -1
  472. package/jsx/tools/PreviewShell/PreviewShell.mocks.jsx +24 -2
  473. package/jsx/tools/PreviewShell/PreviewShell.mocks.jsx.map +1 -1
  474. package/jsx/tools/PreviewShell/PreviewShell.stories.d.ts +5 -3
  475. package/jsx/tools/PreviewShell/PreviewShell.stories.d.ts.map +1 -1
  476. package/jsx/tools/PreviewShell/PreviewShell.stories.jsx +74 -51
  477. package/jsx/tools/PreviewShell/PreviewShell.stories.jsx.map +1 -1
  478. package/jsx/tools/PreviewShell/PreviewShell.styles.d.ts +1 -2
  479. package/jsx/tools/PreviewShell/PreviewShell.styles.d.ts.map +1 -1
  480. package/jsx/tools/PreviewShell/PreviewShell.styles.js +1 -2
  481. package/jsx/tools/PreviewShell/PreviewShell.styles.js.map +1 -1
  482. package/jsx/work/AppAnnouncement/AppAnnouncement.stories.d.ts +1 -1
  483. package/jsx/work/Assignments/Assignments.stories.d.ts +11 -0
  484. package/jsx/work/Assignments/Assignments.stories.d.ts.map +1 -0
  485. package/jsx/work/Assignments/Assignments.stories.jsx +64 -0
  486. package/jsx/work/Assignments/Assignments.stories.jsx.map +1 -0
  487. package/jsx/work/CaseView/Attachments.mocks.d.ts.map +1 -1
  488. package/jsx/work/CaseView/Attachments.mocks.jsx +81 -71
  489. package/jsx/work/CaseView/Attachments.mocks.jsx.map +1 -1
  490. package/jsx/work/CaseView/CaseView.mocks.d.ts +39 -22
  491. package/jsx/work/CaseView/CaseView.mocks.d.ts.map +1 -1
  492. package/jsx/work/CaseView/CaseView.mocks.jsx +258 -85
  493. package/jsx/work/CaseView/CaseView.mocks.jsx.map +1 -1
  494. package/jsx/work/CaseView/CaseView.stories.d.ts +3 -8
  495. package/jsx/work/CaseView/CaseView.stories.d.ts.map +1 -1
  496. package/jsx/work/CaseView/CaseView.stories.jsx +39 -11
  497. package/jsx/work/CaseView/CaseView.stories.jsx.map +1 -1
  498. package/jsx/work/CaseView/Details.mocks.jsx +1 -1
  499. package/jsx/work/CaseView/Details.mocks.jsx.map +1 -1
  500. package/jsx/work/CaseView/FileService.mock.d.ts +2 -2
  501. package/jsx/work/CaseView/FileService.mock.d.ts.map +1 -1
  502. package/jsx/work/CaseView/FileService.mock.jsx +2 -6
  503. package/jsx/work/CaseView/FileService.mock.jsx.map +1 -1
  504. package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts +1 -1
  505. package/jsx/work/Confirmation/Confirmation.stories.d.ts +1 -1
  506. package/jsx/work/Confirmation/Confirmation.stories.jsx +1 -1
  507. package/jsx/work/Confirmation/Confirmation.stories.jsx.map +1 -1
  508. package/jsx/work/Details/Details.stories.d.ts +1 -1
  509. package/jsx/work/Details/Details.stories.d.ts.map +1 -1
  510. package/jsx/work/Details/Details.stories.jsx +6 -1
  511. package/jsx/work/Details/Details.stories.jsx.map +1 -1
  512. package/jsx/work/Glimpse/Glimpse.stories.d.ts +2 -7
  513. package/jsx/work/Glimpse/Glimpse.stories.d.ts.map +1 -1
  514. package/jsx/work/Glimpse/Glimpse.stories.jsx +16 -13
  515. package/jsx/work/Glimpse/Glimpse.stories.jsx.map +1 -1
  516. package/jsx/work/IntelligentGuidance/IntelligentGuidance.stories.d.ts +1 -1
  517. package/jsx/work/IntelligentGuidance/IntelligentGuidance.stories.d.ts.map +1 -1
  518. package/jsx/work/IntelligentGuidance/IntelligentGuidance.stories.jsx +89 -12
  519. package/jsx/work/IntelligentGuidance/IntelligentGuidance.stories.jsx.map +1 -1
  520. package/jsx/work/Predictions/Predictions.mocks.d.ts +3 -0
  521. package/jsx/work/Predictions/Predictions.mocks.d.ts.map +1 -0
  522. package/jsx/work/Predictions/Predictions.mocks.jsx +18 -0
  523. package/jsx/work/Predictions/Predictions.mocks.jsx.map +1 -0
  524. package/jsx/work/Predictions/Predictions.stories.d.ts +5 -0
  525. package/jsx/work/Predictions/Predictions.stories.d.ts.map +1 -0
  526. package/jsx/work/Predictions/Predictions.stories.jsx +53 -0
  527. package/jsx/work/Predictions/Predictions.stories.jsx.map +1 -0
  528. package/jsx/work/SearchResults/SearchResults.mocks.d.ts +1 -1
  529. package/jsx/work/SearchResults/SearchResults.mocks.d.ts.map +1 -1
  530. package/jsx/work/SearchResults/SearchResults.stories.d.ts +1 -1
  531. package/jsx/work/SearchResults/SearchResults.stories.d.ts.map +1 -1
  532. package/jsx/work/SearchResults/SearchResults.stories.jsx +20 -7
  533. package/jsx/work/SearchResults/SearchResults.stories.jsx.map +1 -1
  534. package/jsx/work/Stages/Stages.mocks.jsx +6 -6
  535. package/jsx/work/Stages/Stages.mocks.jsx.map +1 -1
  536. package/jsx/work/Stages/Stages.stories.d.ts +1 -1
  537. package/jsx/work/Stages/Stages.stories.d.ts.map +1 -1
  538. package/jsx/work/Stages/Stages.stories.jsx +22 -8
  539. package/jsx/work/Stages/Stages.stories.jsx.map +1 -1
  540. package/jsx/work/Stakeholders/Stakeholders.mocks.d.ts.map +1 -1
  541. package/jsx/work/Stakeholders/Stakeholders.mocks.jsx +6 -2
  542. package/jsx/work/Stakeholders/Stakeholders.mocks.jsx.map +1 -1
  543. package/jsx/work/Stakeholders/Stakeholders.stories.d.ts +1 -1
  544. package/jsx/work/Tags/Tags.stories.d.ts +1 -1
  545. package/jsx/work/Tags/Tags.stories.d.ts.map +1 -1
  546. package/jsx/work/Tags/Tags.stories.jsx +6 -1
  547. package/jsx/work/Tags/Tags.stories.jsx.map +1 -1
  548. package/jsx/work/Tasks/TaskList.stories.d.ts +1 -1
  549. package/jsx/work/Tasks/Tasks.mocks.d.ts +22 -0
  550. package/jsx/work/Tasks/Tasks.mocks.d.ts.map +1 -0
  551. package/jsx/work/Tasks/Tasks.mocks.js +51 -0
  552. package/jsx/work/Tasks/Tasks.mocks.js.map +1 -0
  553. package/jsx/work/Tasks/Tasks.stories.d.ts +6 -4
  554. package/jsx/work/Tasks/Tasks.stories.d.ts.map +1 -1
  555. package/jsx/work/Tasks/Tasks.stories.jsx +41 -73
  556. package/jsx/work/Tasks/Tasks.stories.jsx.map +1 -1
  557. package/jsx/work/Timeline/Timeline.mocks.d.ts.map +1 -1
  558. package/jsx/work/Timeline/Timeline.mocks.jsx +16 -1
  559. package/jsx/work/Timeline/Timeline.mocks.jsx.map +1 -1
  560. package/jsx/work/Timeline/Timeline.stories.d.ts +1 -1
  561. package/jsx/work/Timeline/Timeline.stories.d.ts.map +1 -1
  562. package/jsx/work/Timeline/Timeline.stories.jsx +2 -2
  563. package/jsx/work/Timeline/Timeline.stories.jsx.map +1 -1
  564. package/jsx/wss/AppShell/AppShell.stories.d.ts +1 -1
  565. package/jsx/wss/AppShell/AppShell.stories.d.ts.map +1 -1
  566. package/jsx/wss/AppShell/AppShell.stories.jsx +18 -0
  567. package/jsx/wss/AppShell/AppShell.stories.jsx.map +1 -1
  568. package/jsx/wss/CaseView/CaseView.stories.d.ts +1 -1
  569. package/jsx/wss/CaseView/CaseView.stories.d.ts.map +1 -1
  570. package/jsx/wss/CaseView/CaseView.stories.jsx +8 -2
  571. package/jsx/wss/CaseView/CaseView.stories.jsx.map +1 -1
  572. package/jsx/wss/PageTemplates/PageTemplates.stories.d.ts +1 -1
  573. package/jsx/wss/PageTemplates/PageTemplates.stories.jsx +2 -2
  574. package/jsx/wss/PageTemplates/PageTemplates.stories.jsx.map +1 -1
  575. package/jsx/wss/QuickCreate/QuickCreate.stories.d.ts +1 -1
  576. package/lib/build/AppShell/AppShell.mocks.d.ts +28 -53
  577. package/lib/build/AppShell/AppShell.mocks.d.ts.map +1 -1
  578. package/lib/build/AppShell/AppShell.mocks.js +260 -376
  579. package/lib/build/AppShell/AppShell.mocks.js.map +1 -1
  580. package/lib/build/AppShell/AppShell.stories.d.ts +14 -11
  581. package/lib/build/AppShell/AppShell.stories.d.ts.map +1 -1
  582. package/lib/build/AppShell/AppShell.stories.js +71 -100
  583. package/lib/build/AppShell/AppShell.stories.js.map +1 -1
  584. package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts +1 -1
  585. package/lib/build/ExpressionBuilder/ExpressionBuilder.mocks.d.ts +2 -0
  586. package/lib/build/ExpressionBuilder/ExpressionBuilder.mocks.d.ts.map +1 -1
  587. package/lib/build/ExpressionBuilder/ExpressionBuilder.mocks.js +23 -1
  588. package/lib/build/ExpressionBuilder/ExpressionBuilder.mocks.js.map +1 -1
  589. package/lib/build/ExpressionBuilder/ExpressionBuilder.stories.d.ts +1 -1
  590. package/lib/build/ExpressionBuilder/ExpressionBuilder.stories.d.ts.map +1 -1
  591. package/lib/build/ExpressionBuilder/ExpressionBuilder.stories.js +6 -5
  592. package/lib/build/ExpressionBuilder/ExpressionBuilder.stories.js.map +1 -1
  593. package/lib/build/FlowModeller/FlowModeller.mocks.d.ts.map +1 -1
  594. package/lib/build/FlowModeller/FlowModeller.mocks.js +1 -1
  595. package/lib/build/FlowModeller/FlowModeller.mocks.js.map +1 -1
  596. package/lib/build/FlowModeller/FlowModeller.stories.d.ts +1 -1
  597. package/lib/build/FlowModeller/FlowModeller.stories.d.ts.map +1 -1
  598. package/lib/build/FlowModeller/FlowModeller.stories.js +119 -9
  599. package/lib/build/FlowModeller/FlowModeller.stories.js.map +1 -1
  600. package/lib/build/ItemLibrary/LibraryPicker.stories.d.ts +1 -1
  601. package/lib/build/LifeCycle/LifeCycle.stories.d.ts +1 -1
  602. package/lib/build/LifeCycle/LifeCycle.stories.d.ts.map +1 -1
  603. package/lib/build/LifeCycle/LifeCycle.stories.js +43 -4
  604. package/lib/build/LifeCycle/LifeCycle.stories.js.map +1 -1
  605. package/lib/build/MobileBuildSummary/MobileBuildSummary.mocks.d.ts +1 -0
  606. package/lib/build/MobileBuildSummary/MobileBuildSummary.mocks.d.ts.map +1 -1
  607. package/lib/build/MobileBuildSummary/MobileBuildSummary.mocks.js +2 -1
  608. package/lib/build/MobileBuildSummary/MobileBuildSummary.mocks.js.map +1 -1
  609. package/lib/build/MobileBuildSummary/MobileBuildSummary.stories.d.ts +1 -1
  610. package/lib/build/ObjectSelect/ObjectSelect.mocks.d.ts +3 -2
  611. package/lib/build/ObjectSelect/ObjectSelect.mocks.d.ts.map +1 -1
  612. package/lib/build/ObjectSelect/ObjectSelect.mocks.js +7 -7
  613. package/lib/build/ObjectSelect/ObjectSelect.mocks.js.map +1 -1
  614. package/lib/build/ObjectSelect/ObjectSelect.stories.d.ts +1 -1
  615. package/lib/build/ObjectSelect/ObjectSelect.stories.d.ts.map +1 -1
  616. package/lib/build/ObjectSelect/ObjectSelect.stories.js +2 -6
  617. package/lib/build/ObjectSelect/ObjectSelect.stories.js.map +1 -1
  618. package/lib/build/PageBanner/PageBanner.stories.d.ts +15 -0
  619. package/lib/build/PageBanner/PageBanner.stories.d.ts.map +1 -0
  620. package/lib/build/PageBanner/PageBanner.stories.js +42 -0
  621. package/lib/build/PageBanner/PageBanner.stories.js.map +1 -0
  622. package/lib/build/PageTemplates/GalleryPage.mocks.d.ts +0 -2
  623. package/lib/build/PageTemplates/GalleryPage.mocks.d.ts.map +1 -1
  624. package/lib/build/PageTemplates/GalleryPage.mocks.js +1 -50
  625. package/lib/build/PageTemplates/GalleryPage.mocks.js.map +1 -1
  626. package/lib/build/PageTemplates/GalleryPage.stories.d.ts +8 -4
  627. package/lib/build/PageTemplates/GalleryPage.stories.d.ts.map +1 -1
  628. package/lib/build/PageTemplates/GalleryPage.stories.js +32 -31
  629. package/lib/build/PageTemplates/GalleryPage.stories.js.map +1 -1
  630. package/lib/build/PageTemplates/PageTemplates.mocks.d.ts +0 -1
  631. package/lib/build/PageTemplates/PageTemplates.mocks.d.ts.map +1 -1
  632. package/lib/build/PageTemplates/PageTemplates.mocks.js +2 -154
  633. package/lib/build/PageTemplates/PageTemplates.mocks.js.map +1 -1
  634. package/lib/build/PageTemplates/PageTemplates.stories.d.ts +1 -1
  635. package/lib/build/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
  636. package/lib/build/PageTemplates/PageTemplates.stories.js +4 -8
  637. package/lib/build/PageTemplates/PageTemplates.stories.js.map +1 -1
  638. package/lib/build/PageTemplates/ShowcasePage.stories.d.ts +17 -0
  639. package/lib/build/PageTemplates/ShowcasePage.stories.d.ts.map +1 -0
  640. package/lib/build/PageTemplates/ShowcasePage.stories.js +43 -0
  641. package/lib/build/PageTemplates/ShowcasePage.stories.js.map +1 -0
  642. package/lib/build/Workbench/Workbench.stories.d.ts +1 -1
  643. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts +1 -1
  644. package/lib/condition-builder/ConditionBuilder/props.mock.d.ts.map +1 -1
  645. package/lib/condition-builder/ConditionBuilder/props.mock.js +4 -2
  646. package/lib/condition-builder/ConditionBuilder/props.mock.js.map +1 -1
  647. package/lib/condition-builder/ConditionInput/ConditionInput.stories.d.ts +1 -1
  648. package/lib/condition-builder/PromotedFilters/PromotedFilters.mocks.d.ts.map +1 -1
  649. package/lib/condition-builder/PromotedFilters/PromotedFilters.mocks.js +53 -1
  650. package/lib/condition-builder/PromotedFilters/PromotedFilters.mocks.js.map +1 -1
  651. package/lib/condition-builder/PromotedFilters/PromotedFilters.stories.d.ts +1 -1
  652. package/lib/core/AIButton/AIButton.mocks.d.ts +22 -0
  653. package/lib/core/AIButton/AIButton.mocks.d.ts.map +1 -0
  654. package/lib/core/AIButton/AIButton.mocks.js +139 -0
  655. package/lib/core/AIButton/AIButton.mocks.js.map +1 -0
  656. package/lib/core/AIButton/AIButton.stories.d.ts +23 -0
  657. package/lib/core/AIButton/AIButton.stories.d.ts.map +1 -0
  658. package/lib/core/AIButton/AIButton.stories.js +223 -0
  659. package/lib/core/AIButton/AIButton.stories.js.map +1 -0
  660. package/lib/core/AdditionalInfo/AdditionalInfo.stories.d.ts +1 -1
  661. package/lib/core/AppShell/AppShell.mocks.d.ts.map +1 -1
  662. package/lib/core/AppShell/AppShell.mocks.js +4 -19
  663. package/lib/core/AppShell/AppShell.mocks.js.map +1 -1
  664. package/lib/core/AppShell/AppShell.stories.d.ts +2 -3
  665. package/lib/core/AppShell/AppShell.stories.d.ts.map +1 -1
  666. package/lib/core/AppShell/AppShell.stories.js +59 -44
  667. package/lib/core/AppShell/AppShell.stories.js.map +1 -1
  668. package/lib/core/Avatar/Avatar.stories.d.ts +1 -1
  669. package/lib/core/Backdrop/Backdrop.stories.d.ts +1 -1
  670. package/lib/core/Backdrop/Backdrop.stories.d.ts.map +1 -1
  671. package/lib/core/Backdrop/Backdrop.stories.js +2 -2
  672. package/lib/core/Backdrop/Backdrop.stories.js.map +1 -1
  673. package/lib/core/Badges/Alert.stories.d.ts +1 -1
  674. package/lib/core/Badges/Count.stories.d.ts +1 -1
  675. package/lib/core/Badges/Count.stories.js +1 -1
  676. package/lib/core/Badges/Count.stories.js.map +1 -1
  677. package/lib/core/Badges/Keyboard.stories.d.ts +1 -1
  678. package/lib/core/Badges/Keyboard.stories.js +1 -1
  679. package/lib/core/Badges/Keyboard.stories.js.map +1 -1
  680. package/lib/core/Badges/Selection.stories.d.ts +1 -1
  681. package/lib/core/Badges/Status.stories.d.ts +1 -1
  682. package/lib/core/Badges/Tag.stories.d.ts +1 -1
  683. package/lib/core/Banner/Banner.stories.d.ts +9 -5
  684. package/lib/core/Banner/Banner.stories.d.ts.map +1 -1
  685. package/lib/core/Banner/Banner.stories.js +105 -39
  686. package/lib/core/Banner/Banner.stories.js.map +1 -1
  687. package/lib/core/Boolean/BooleanDisplay.stories.d.ts +1 -1
  688. package/lib/core/Breadcrumbs/Breadcrumbs.stories.d.ts +7 -3
  689. package/lib/core/Breadcrumbs/Breadcrumbs.stories.d.ts.map +1 -1
  690. package/lib/core/Breadcrumbs/Breadcrumbs.stories.js +16 -4
  691. package/lib/core/Breadcrumbs/Breadcrumbs.stories.js.map +1 -1
  692. package/lib/core/Button/Button.stories.d.ts +1 -2
  693. package/lib/core/Button/Button.stories.d.ts.map +1 -1
  694. package/lib/core/Button/Button.stories.js +0 -12
  695. package/lib/core/Button/Button.stories.js.map +1 -1
  696. package/lib/core/Card/Card.stories.d.ts +1 -1
  697. package/lib/core/Checkbox/Checkbox.stories.d.ts +1 -1
  698. package/lib/core/Checkbox/Checkbox.stories.d.ts.map +1 -1
  699. package/lib/core/Checkbox/Checkbox.stories.js +3 -1
  700. package/lib/core/Checkbox/Checkbox.stories.js.map +1 -1
  701. package/lib/core/CheckboxGroup/CheckboxGroup.stories.d.ts +1 -1
  702. package/lib/core/CheckboxGroup/CheckboxGroup.stories.d.ts.map +1 -1
  703. package/lib/core/CheckboxGroup/CheckboxGroup.stories.js +8 -5
  704. package/lib/core/CheckboxGroup/CheckboxGroup.stories.js.map +1 -1
  705. package/lib/core/ColorPicker/ColorPicker.stories.d.ts +1 -1
  706. package/lib/core/ComboBox/ComboBox.stories.d.ts +3 -3
  707. package/lib/core/ComboBox/ComboBox.stories.d.ts.map +1 -1
  708. package/lib/core/ComboBox/ComboBox.stories.js +17 -9
  709. package/lib/core/ComboBox/ComboBox.stories.js.map +1 -1
  710. package/lib/core/CompositeInput/CompositeInput.stories.d.ts +1 -1
  711. package/lib/core/Configuration/Configuration.stories.d.ts +1 -1
  712. package/lib/core/CreditCard/CreditCard.stories.d.ts +1 -1
  713. package/lib/core/Currency/Currency.stories.d.ts +2 -2
  714. package/lib/core/Currency/Currency.stories.d.ts.map +1 -1
  715. package/lib/core/DangerButton/DangerButton.stories.d.ts +6 -0
  716. package/lib/core/DangerButton/DangerButton.stories.d.ts.map +1 -0
  717. package/lib/core/DangerButton/DangerButton.stories.js +18 -0
  718. package/lib/core/DangerButton/DangerButton.stories.js.map +1 -0
  719. package/lib/core/DateTime/DateTime.stories.d.ts +1 -1
  720. package/lib/core/DateTime/DateTime.stories.d.ts.map +1 -1
  721. package/lib/core/DateTime/DateTime.stories.js +11 -10
  722. package/lib/core/DateTime/DateTime.stories.js.map +1 -1
  723. package/lib/core/DateTime/DateTimeDisplay.stories.d.ts +1 -1
  724. package/lib/core/DateTime/DateTimeDisplay.stories.d.ts.map +1 -1
  725. package/lib/core/DateTime/DateTimeDisplay.stories.js +5 -3
  726. package/lib/core/DateTime/DateTimeDisplay.stories.js.map +1 -1
  727. package/lib/core/DateTime/DateTimePicker.stories.d.ts +1 -1
  728. package/lib/core/DateTime/DateTimePicker.stories.js +1 -1
  729. package/lib/core/DateTime/DateTimePicker.stories.js.map +1 -1
  730. package/lib/core/Dialog/Dialog.stories.d.ts +3 -2
  731. package/lib/core/Dialog/Dialog.stories.d.ts.map +1 -1
  732. package/lib/core/Dialog/Dialog.stories.js +10 -41
  733. package/lib/core/Dialog/Dialog.stories.js.map +1 -1
  734. package/lib/core/Dialog/FormDialog.mocks.d.ts +27 -0
  735. package/lib/core/Dialog/FormDialog.mocks.d.ts.map +1 -0
  736. package/lib/core/Dialog/FormDialog.mocks.js +188 -0
  737. package/lib/core/Dialog/FormDialog.mocks.js.map +1 -0
  738. package/lib/core/Dialog/InfoDialog.mocks.d.ts +4 -0
  739. package/lib/core/Dialog/InfoDialog.mocks.d.ts.map +1 -0
  740. package/lib/core/Dialog/InfoDialog.mocks.js +41 -0
  741. package/lib/core/Dialog/InfoDialog.mocks.js.map +1 -0
  742. package/lib/core/Drawer/Drawer.stories.d.ts +1 -1
  743. package/lib/core/Email/EmailDisplay.stories.d.ts +1 -1
  744. package/lib/core/EmojiPicker/EmojiPicker.stories.d.ts +1 -1
  745. package/lib/core/EmojiPicker/EmojiPicker.stories.d.ts.map +1 -1
  746. package/lib/core/EmojiPicker/EmojiPicker.stories.js +6 -5
  747. package/lib/core/EmojiPicker/EmojiPicker.stories.js.map +1 -1
  748. package/lib/core/EmptyState/EmptyState.stories.d.ts +1 -1
  749. package/lib/core/ErrorState/ErrorState.stories.d.ts +1 -1
  750. package/lib/core/ExpandCollapse/ExpandCollapse.stories.d.ts +1 -1
  751. package/lib/core/FieldGroup/FieldGroup.stories.d.ts +6 -1
  752. package/lib/core/FieldGroup/FieldGroup.stories.d.ts.map +1 -1
  753. package/lib/core/FieldGroup/FieldGroup.stories.js +27 -2
  754. package/lib/core/FieldGroup/FieldGroup.stories.js.map +1 -1
  755. package/lib/core/FieldGroup/FieldGroupList.mocks.d.ts +1 -1
  756. package/lib/core/FieldGroup/FieldGroupList.mocks.d.ts.map +1 -1
  757. package/lib/core/FieldGroup/FieldGroupList.mocks.js +6 -1
  758. package/lib/core/FieldGroup/FieldGroupList.mocks.js.map +1 -1
  759. package/lib/core/FieldGroup/FieldGroupList.stories.d.ts +2 -1
  760. package/lib/core/FieldGroup/FieldGroupList.stories.d.ts.map +1 -1
  761. package/lib/core/FieldGroup/FieldGroupList.stories.js +43 -11
  762. package/lib/core/FieldGroup/FieldGroupList.stories.js.map +1 -1
  763. package/lib/core/FieldValueList/FieldValueList.stories.d.ts +1 -1
  764. package/lib/core/File/FileDisplay.stories.d.ts +1 -1
  765. package/lib/core/File/FileInput.stories.d.ts +1 -1
  766. package/lib/core/Flex/FlexContainer.stories.d.ts +1 -1
  767. package/lib/core/Flex/FlexItem.stories.d.ts +1 -1
  768. package/lib/core/Form/Form.stories.d.ts +1 -1
  769. package/lib/core/Form/Form.stories.d.ts.map +1 -1
  770. package/lib/core/Form/Form.stories.js +2 -2
  771. package/lib/core/Form/Form.stories.js.map +1 -1
  772. package/lib/core/Grid/GridContainer.stories.d.ts +1 -1
  773. package/lib/core/Grid/GridItem.stories.d.ts +1 -1
  774. package/lib/core/HTML/HTML.stories.d.ts +1 -1
  775. package/lib/core/Icon/Icon.stories.d.ts +5 -2
  776. package/lib/core/Icon/Icon.stories.d.ts.map +1 -1
  777. package/lib/core/Icon/Icon.stories.js +16 -8
  778. package/lib/core/Icon/Icon.stories.js.map +1 -1
  779. package/lib/core/IconPicker/IconPicker.stories.d.ts +1 -1
  780. package/lib/core/Image/Image.stories.d.ts +1 -1
  781. package/lib/core/Input/Input.stories.d.ts +1 -1
  782. package/lib/core/Label/Label.stories.d.ts +1 -1
  783. package/lib/core/Lightbox/Lightbox.mocks.d.ts.map +1 -1
  784. package/lib/core/Lightbox/Lightbox.mocks.js +0 -8
  785. package/lib/core/Lightbox/Lightbox.mocks.js.map +1 -1
  786. package/lib/core/Lightbox/Lightbox.stories.d.ts +1 -1
  787. package/lib/core/Link/Link.stories.d.ts +9 -5
  788. package/lib/core/Link/Link.stories.d.ts.map +1 -1
  789. package/lib/core/Link/Link.stories.js +6 -9
  790. package/lib/core/Link/Link.stories.js.map +1 -1
  791. package/lib/core/List/CommaSeparatedList.stories.d.ts +1 -1
  792. package/lib/core/List/OrderedList.stories.d.ts +1 -1
  793. package/lib/core/List/UnorderedList.stories.d.ts +1 -1
  794. package/lib/core/ListToolbar/ListToolbar.mocks.d.ts.map +1 -1
  795. package/lib/core/ListToolbar/ListToolbar.mocks.js +26 -33
  796. package/lib/core/ListToolbar/ListToolbar.mocks.js.map +1 -1
  797. package/lib/core/ListToolbar/ListToolbar.stories.d.ts +2 -3
  798. package/lib/core/ListToolbar/ListToolbar.stories.d.ts.map +1 -1
  799. package/lib/core/ListToolbar/ListToolbar.stories.js +23 -20
  800. package/lib/core/ListToolbar/ListToolbar.stories.js.map +1 -1
  801. package/lib/core/LiveLog/LiveLog.mocks.d.ts +5 -0
  802. package/lib/core/LiveLog/LiveLog.mocks.d.ts.map +1 -0
  803. package/lib/core/LiveLog/LiveLog.mocks.js +29 -0
  804. package/lib/core/LiveLog/LiveLog.mocks.js.map +1 -0
  805. package/lib/core/LiveLog/LiveLog.stories.d.ts +9 -0
  806. package/lib/core/LiveLog/LiveLog.stories.d.ts.map +1 -0
  807. package/lib/core/LiveLog/LiveLog.stories.js +20 -0
  808. package/lib/core/LiveLog/LiveLog.stories.js.map +1 -0
  809. package/lib/core/Location/Location.stories.d.ts +1 -1
  810. package/lib/core/Location/Location.stories.d.ts.map +1 -1
  811. package/lib/core/Location/Location.stories.js +11 -7
  812. package/lib/core/Location/Location.stories.js.map +1 -1
  813. package/lib/core/Menu/Menu.mocks.js.map +1 -1
  814. package/lib/core/Menu/Menu.stories.d.ts +2 -1
  815. package/lib/core/Menu/Menu.stories.d.ts.map +1 -1
  816. package/lib/core/Menu/Menu.stories.js +27 -0
  817. package/lib/core/Menu/Menu.stories.js.map +1 -1
  818. package/lib/core/MenuButton/MenuButton.stories.d.ts +3 -2
  819. package/lib/core/MenuButton/MenuButton.stories.d.ts.map +1 -1
  820. package/lib/core/MenuButton/MenuButton.stories.js +1 -1
  821. package/lib/core/MenuButton/MenuButton.stories.js.map +1 -1
  822. package/lib/core/MetaList/MetaList.stories.d.ts +1 -1
  823. package/lib/core/Modal/Modal.mocks.d.ts +1 -1
  824. package/lib/core/Modal/Modal.mocks.d.ts.map +1 -1
  825. package/lib/core/Modal/Modal.stories.d.ts +1 -1
  826. package/lib/core/Modal/Modal.stories.d.ts.map +1 -1
  827. package/lib/core/Modal/Modal.stories.js +7 -6
  828. package/lib/core/Modal/Modal.stories.js.map +1 -1
  829. package/lib/core/MultiStepForm/MultiStepForm.mocks.d.ts +36 -3
  830. package/lib/core/MultiStepForm/MultiStepForm.mocks.d.ts.map +1 -1
  831. package/lib/core/MultiStepForm/MultiStepForm.mocks.js +269 -31
  832. package/lib/core/MultiStepForm/MultiStepForm.mocks.js.map +1 -1
  833. package/lib/core/MultiStepForm/MultiStepForm.stories.d.ts +4 -2
  834. package/lib/core/MultiStepForm/MultiStepForm.stories.d.ts.map +1 -1
  835. package/lib/core/MultiStepForm/MultiStepForm.stories.js +65 -163
  836. package/lib/core/MultiStepForm/MultiStepForm.stories.js.map +1 -1
  837. package/lib/core/NoValue/NoValue.stories.d.ts +6 -0
  838. package/lib/core/NoValue/NoValue.stories.d.ts.map +1 -0
  839. package/lib/core/NoValue/NoValue.stories.js +29 -0
  840. package/lib/core/NoValue/NoValue.stories.js.map +1 -0
  841. package/lib/core/Number/Number.stories.d.ts +2 -2
  842. package/lib/core/Number/Number.stories.d.ts.map +1 -1
  843. package/lib/core/PageTemplates/PageTemplates.stories.d.ts +2 -2
  844. package/lib/core/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
  845. package/lib/core/PageTemplates/PageTemplates.stories.js +2 -2
  846. package/lib/core/PageTemplates/PageTemplates.stories.js.map +1 -1
  847. package/lib/core/Pagination/Pagination.stories.d.ts +1 -1
  848. package/lib/core/Paragraph/ParagraphDisplay.stories.d.ts +1 -1
  849. package/lib/core/Phone/Phone.stories.d.ts +1 -1
  850. package/lib/core/Popover/Popover.mocks.d.ts +9 -0
  851. package/lib/core/Popover/Popover.mocks.d.ts.map +1 -0
  852. package/lib/core/Popover/Popover.mocks.js +105 -0
  853. package/lib/core/Popover/Popover.mocks.js.map +1 -0
  854. package/lib/core/Popover/Popover.stories.d.ts +7 -1
  855. package/lib/core/Popover/Popover.stories.d.ts.map +1 -1
  856. package/lib/core/Popover/Popover.stories.js +27 -0
  857. package/lib/core/Popover/Popover.stories.js.map +1 -1
  858. package/lib/core/Progress/Progress.mocks.d.ts +2 -0
  859. package/lib/core/Progress/Progress.mocks.d.ts.map +1 -0
  860. package/lib/core/Progress/Progress.mocks.js +2 -0
  861. package/lib/core/Progress/Progress.mocks.js.map +1 -0
  862. package/lib/core/Progress/Progress.stories.d.ts +4 -1
  863. package/lib/core/Progress/Progress.stories.d.ts.map +1 -1
  864. package/lib/core/Progress/Progress.stories.js +66 -3
  865. package/lib/core/Progress/Progress.stories.js.map +1 -1
  866. package/lib/core/QRCode/QRCode.stories.d.ts +9 -0
  867. package/lib/core/QRCode/QRCode.stories.d.ts.map +1 -0
  868. package/lib/core/QRCode/QRCode.stories.js +18 -0
  869. package/lib/core/QRCode/QRCode.stories.js.map +1 -0
  870. package/lib/core/RadioButton/RadioButton.stories.d.ts +1 -1
  871. package/lib/core/RadioButton/RadioButton.stories.d.ts.map +1 -1
  872. package/lib/core/RadioButton/RadioButton.stories.js +3 -1
  873. package/lib/core/RadioButton/RadioButton.stories.js.map +1 -1
  874. package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts +1 -1
  875. package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts.map +1 -1
  876. package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.js +9 -5
  877. package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.js.map +1 -1
  878. package/lib/core/Rating/Rating.stories.d.ts +1 -1
  879. package/lib/core/Rating/Rating.stories.d.ts.map +1 -1
  880. package/lib/core/Rating/Rating.stories.js +1 -1
  881. package/lib/core/Rating/Rating.stories.js.map +1 -1
  882. package/lib/core/SearchInput/SearchInput.stories.d.ts +1 -1
  883. package/lib/core/SearchInput/SearchInput.stories.js +1 -1
  884. package/lib/core/SearchInput/SearchInput.stories.js.map +1 -1
  885. package/lib/core/Select/Select.stories.d.ts +1 -1
  886. package/lib/core/Sentiment/Sentiment.stories.d.ts +1 -1
  887. package/lib/core/SkipLinks/SkipLinks.stories.d.ts +1 -1
  888. package/lib/core/Slider/Slider.stories.d.ts +2 -2
  889. package/lib/core/Slider/Slider.stories.d.ts.map +1 -1
  890. package/lib/core/SummaryItem/SummaryItem.stories.d.ts +2 -2
  891. package/lib/core/SummaryItem/SummaryItem.stories.d.ts.map +1 -1
  892. package/lib/core/SummaryList/SummaryList.mocks.d.ts.map +1 -1
  893. package/lib/core/SummaryList/SummaryList.mocks.js +11 -2
  894. package/lib/core/SummaryList/SummaryList.mocks.js.map +1 -1
  895. package/lib/core/SummaryList/SummaryList.stories.d.ts +1 -1
  896. package/lib/core/SummaryList/SummaryList.stories.js +2 -2
  897. package/lib/core/SummaryList/SummaryList.stories.js.map +1 -1
  898. package/lib/core/SummaryList/mockUsers.d.ts.map +1 -1
  899. package/lib/core/SummaryList/mockUsers.js +2 -0
  900. package/lib/core/SummaryList/mockUsers.js.map +1 -1
  901. package/lib/core/Switch/Switch.stories.d.ts +1 -1
  902. package/lib/core/Table/Table.mocks.js +1 -1
  903. package/lib/core/Table/Table.mocks.js.map +1 -1
  904. package/lib/core/Table/Table.stories.d.ts +1 -1
  905. package/lib/core/Table/Table.stories.js.map +1 -1
  906. package/lib/core/Tabs/Tabs.stories.d.ts +1 -7
  907. package/lib/core/Tabs/Tabs.stories.d.ts.map +1 -1
  908. package/lib/core/Tabs/Tabs.stories.js +1 -31
  909. package/lib/core/Tabs/Tabs.stories.js.map +1 -1
  910. package/lib/core/Text/Text.stories.d.ts +1 -1
  911. package/lib/core/TextArea/TextArea.stories.d.ts +1 -1
  912. package/lib/core/TextArea/TextArea.stories.js +1 -1
  913. package/lib/core/TextArea/TextArea.stories.js.map +1 -1
  914. package/lib/core/Toaster/Toaster.stories.d.ts +1 -1
  915. package/lib/core/Tooltip/Tooltip.stories.d.ts +2 -1
  916. package/lib/core/Tooltip/Tooltip.stories.d.ts.map +1 -1
  917. package/lib/core/Tooltip/Tooltip.stories.js +9 -1
  918. package/lib/core/Tooltip/Tooltip.stories.js.map +1 -1
  919. package/lib/core/Tooltip/Tooltip.styles.d.ts +2 -0
  920. package/lib/core/Tooltip/Tooltip.styles.d.ts.map +1 -0
  921. package/lib/core/Tooltip/Tooltip.styles.js +23 -0
  922. package/lib/core/Tooltip/Tooltip.styles.js.map +1 -0
  923. package/lib/core/Tree/Tree.stories.d.ts +2 -2
  924. package/lib/core/Tree/Tree.stories.d.ts.map +1 -1
  925. package/lib/core/Tree/Tree.stories.js +10 -20
  926. package/lib/core/Tree/Tree.stories.js.map +1 -1
  927. package/lib/core/URL/URL.stories.d.ts +1 -1
  928. package/lib/core/URL/URL.stories.js +1 -1
  929. package/lib/core/URL/URL.stories.js.map +1 -1
  930. package/lib/cs/Article/Article.mocks.js +4 -4
  931. package/lib/cs/Article/Article.mocks.js.map +1 -1
  932. package/lib/cs/Article/Article.stories.d.ts +14 -3
  933. package/lib/cs/Article/Article.stories.d.ts.map +1 -1
  934. package/lib/cs/Article/Article.stories.js +168 -53
  935. package/lib/cs/Article/Article.stories.js.map +1 -1
  936. package/lib/cs/ArticleList/ArticleList.mocks.d.ts +129 -10
  937. package/lib/cs/ArticleList/ArticleList.mocks.d.ts.map +1 -1
  938. package/lib/cs/ArticleList/ArticleList.mocks.js +362 -50
  939. package/lib/cs/ArticleList/ArticleList.mocks.js.map +1 -1
  940. package/lib/cs/ArticleList/ArticleList.stories.d.ts +11 -3
  941. package/lib/cs/ArticleList/ArticleList.stories.d.ts.map +1 -1
  942. package/lib/cs/ArticleList/ArticleList.stories.js +245 -68
  943. package/lib/cs/ArticleList/ArticleList.stories.js.map +1 -1
  944. package/lib/cs/CSAppShell/CSAppShell.mocks.d.ts +18 -1
  945. package/lib/cs/CSAppShell/CSAppShell.mocks.d.ts.map +1 -1
  946. package/lib/cs/CSAppShell/CSAppShell.mocks.js +124 -19
  947. package/lib/cs/CSAppShell/CSAppShell.mocks.js.map +1 -1
  948. package/lib/cs/CSAppShell/CSAppShell.stories.d.ts +1 -1
  949. package/lib/cs/CSAppShell/CSAppShell.stories.d.ts.map +1 -1
  950. package/lib/cs/CSAppShell/CSAppShell.stories.js +10 -21
  951. package/lib/cs/CSAppShell/CSAppShell.stories.js.map +1 -1
  952. package/lib/cs/CallControlPanel/CallControlPanel.mocks.d.ts +2 -2
  953. package/lib/cs/CallControlPanel/CallControlPanel.mocks.d.ts.map +1 -1
  954. package/lib/cs/CallControlPanel/CallControlPanel.stories.d.ts +1 -1
  955. package/lib/cs/CallControlPanel/CallControlPanel.stories.d.ts.map +1 -1
  956. package/lib/cs/CallControlPanel/CallControlPanel.stories.js +2 -2
  957. package/lib/cs/CallControlPanel/CallControlPanel.stories.js.map +1 -1
  958. package/lib/cs/DialPad/DialPad.stories.d.ts +1 -1
  959. package/lib/cs/InteractionNotification/InteractionNotification.stories.d.ts +4 -2
  960. package/lib/cs/InteractionNotification/InteractionNotification.stories.d.ts.map +1 -1
  961. package/lib/cs/InteractionNotification/InteractionNotification.stories.js +18 -4
  962. package/lib/cs/InteractionNotification/InteractionNotification.stories.js.map +1 -1
  963. package/lib/cs/InteractionTimer/InteractionTimer.stories.d.ts +2 -1
  964. package/lib/cs/InteractionTimer/InteractionTimer.stories.d.ts.map +1 -1
  965. package/lib/cs/InteractionTimer/InteractionTimer.stories.js +12 -5
  966. package/lib/cs/InteractionTimer/InteractionTimer.stories.js.map +1 -1
  967. package/lib/cs/Picker/Picker.stories.d.ts +11 -0
  968. package/lib/cs/Picker/Picker.stories.d.ts.map +1 -0
  969. package/lib/cs/Picker/Picker.stories.js +56 -0
  970. package/lib/cs/Picker/Picker.stories.js.map +1 -0
  971. package/lib/cs/TaskManager/TaskManager.stories.d.ts +1 -1
  972. package/lib/cs/TaskManager/TaskManager.stories.d.ts.map +1 -1
  973. package/lib/cs/TaskManager/TaskManager.stories.js +3 -3
  974. package/lib/cs/TaskManager/TaskManager.stories.js.map +1 -1
  975. package/lib/dnd/DragDropList/DragDropList.stories.d.ts +1 -1
  976. package/lib/dnd/StandardDragDropList/Demo.d.ts.map +1 -1
  977. package/lib/dnd/StandardDragDropList/Demo.js +1 -1
  978. package/lib/dnd/StandardDragDropList/Demo.js.map +1 -1
  979. package/lib/dnd/StandardDragDropList/Popover.d.ts +1 -1
  980. package/lib/dnd/StandardDragDropList/Popover.d.ts.map +1 -1
  981. package/lib/dnd/StandardDragDropList/StandardDragDropList.stories.d.ts +1 -1
  982. package/lib/dnd/StandardDragDropList/mockData.d.ts +2 -2
  983. package/lib/dnd/StandardDragDropList/mockData.d.ts.map +1 -1
  984. package/lib/dnd/StandardDragDropList/mockData.js.map +1 -1
  985. package/lib/rte/DynamicContentEditor/DynamicContentEditor.stories.d.ts +8 -0
  986. package/lib/rte/DynamicContentEditor/DynamicContentEditor.stories.d.ts.map +1 -0
  987. package/lib/rte/DynamicContentEditor/DynamicContentEditor.stories.js +85 -0
  988. package/lib/rte/DynamicContentEditor/DynamicContentEditor.stories.js.map +1 -0
  989. package/lib/rte/DynamicContentEditor/FieldSelector.d.ts +14 -0
  990. package/lib/rte/DynamicContentEditor/FieldSelector.d.ts.map +1 -0
  991. package/lib/rte/DynamicContentEditor/FieldSelector.js +81 -0
  992. package/lib/rte/DynamicContentEditor/FieldSelector.js.map +1 -0
  993. package/lib/rte/Editor/Editor.mocks.d.ts +41 -27
  994. package/lib/rte/Editor/Editor.mocks.d.ts.map +1 -1
  995. package/lib/rte/Editor/Editor.stories.d.ts +1 -1
  996. package/lib/rte/RichTextEditor/RichTextEditor.stories.d.ts +1 -1
  997. package/lib/rte/RichTextEditor/RichTextViewer.stories.d.ts +1 -1
  998. package/lib/social/Chat/Chat.mocks.d.ts +23 -395
  999. package/lib/social/Chat/Chat.mocks.d.ts.map +1 -1
  1000. package/lib/social/Chat/Chat.mocks.js +568 -585
  1001. package/lib/social/Chat/Chat.mocks.js.map +1 -1
  1002. package/lib/social/Chat/Chat.stories.d.ts +25 -27
  1003. package/lib/social/Chat/Chat.stories.d.ts.map +1 -1
  1004. package/lib/social/Chat/Chat.stories.js +217 -247
  1005. package/lib/social/Chat/Chat.stories.js.map +1 -1
  1006. package/lib/social/Email/Email.mocks.d.ts +50 -8
  1007. package/lib/social/Email/Email.mocks.d.ts.map +1 -1
  1008. package/lib/social/Email/Email.mocks.js +131 -19
  1009. package/lib/social/Email/Email.mocks.js.map +1 -1
  1010. package/lib/social/Email/Email.stories.d.ts +11 -1
  1011. package/lib/social/Email/Email.stories.d.ts.map +1 -1
  1012. package/lib/social/Email/Email.stories.js +160 -38
  1013. package/lib/social/Email/Email.stories.js.map +1 -1
  1014. package/lib/social/Feed/Feed.mocks.d.ts +2 -1
  1015. package/lib/social/Feed/Feed.mocks.d.ts.map +1 -1
  1016. package/lib/social/Feed/Feed.mocks.js +5 -3
  1017. package/lib/social/Feed/Feed.mocks.js.map +1 -1
  1018. package/lib/social/Feed/Feed.stories.d.ts +1 -1
  1019. package/lib/social/Feed/Feed.stories.d.ts.map +1 -1
  1020. package/lib/social/Feed/Feed.stories.js +13 -5
  1021. package/lib/social/Feed/Feed.stories.js.map +1 -1
  1022. package/lib/social/Feed/FeedNewPost.stories.d.ts +1 -1
  1023. package/lib/social/Feed/FeedNewPost.stories.d.ts.map +1 -1
  1024. package/lib/social/Feed/FeedNewPost.stories.js +2 -2
  1025. package/lib/social/Feed/FeedNewPost.stories.js.map +1 -1
  1026. package/lib/social/Feed/FeedPost.stories.d.ts +1 -1
  1027. package/lib/social/Feed/FeedPost.stories.d.ts.map +1 -1
  1028. package/lib/social/Feed/FeedPost.stories.js +16 -7
  1029. package/lib/social/Feed/FeedPost.stories.js.map +1 -1
  1030. package/lib/social/Feed/FeedReply.stories.d.ts +1 -1
  1031. package/lib/social/Feed/FeedReply.stories.d.ts.map +1 -1
  1032. package/lib/social/Feed/FeedReply.stories.js +11 -3
  1033. package/lib/social/Feed/FeedReply.stories.js.map +1 -1
  1034. package/lib/social/Feed/FeedReplyInput.stories.d.ts +1 -1
  1035. package/lib/social/Feed/FeedReplyInput.stories.d.ts.map +1 -1
  1036. package/lib/social/Feed/FeedReplyInput.stories.js +2 -2
  1037. package/lib/social/Feed/FeedReplyInput.stories.js.map +1 -1
  1038. package/lib/tools/Clipboard/Clipboard.mocks.d.ts.map +1 -1
  1039. package/lib/tools/Clipboard/Clipboard.mocks.js +0 -1
  1040. package/lib/tools/Clipboard/Clipboard.mocks.js.map +1 -1
  1041. package/lib/tools/Clipboard/Clipboard.stories.d.ts +1 -1
  1042. package/lib/tools/Clipboard/Clipboard.stories.d.ts.map +1 -1
  1043. package/lib/tools/Clipboard/Clipboard.stories.js +13 -17
  1044. package/lib/tools/Clipboard/Clipboard.stories.js.map +1 -1
  1045. package/lib/tools/DevTools/DevTools.stories.d.ts +1 -1
  1046. package/lib/tools/DevTools/DevTools.stories.d.ts.map +1 -1
  1047. package/lib/tools/DevTools/DevTools.stories.js +2 -4
  1048. package/lib/tools/DevTools/DevTools.stories.js.map +1 -1
  1049. package/lib/tools/PreviewShell/PreviewShell.mocks.d.ts +12 -1
  1050. package/lib/tools/PreviewShell/PreviewShell.mocks.d.ts.map +1 -1
  1051. package/lib/tools/PreviewShell/PreviewShell.mocks.js +22 -2
  1052. package/lib/tools/PreviewShell/PreviewShell.mocks.js.map +1 -1
  1053. package/lib/tools/PreviewShell/PreviewShell.stories.d.ts +5 -3
  1054. package/lib/tools/PreviewShell/PreviewShell.stories.d.ts.map +1 -1
  1055. package/lib/tools/PreviewShell/PreviewShell.stories.js +70 -51
  1056. package/lib/tools/PreviewShell/PreviewShell.stories.js.map +1 -1
  1057. package/lib/tools/PreviewShell/PreviewShell.styles.d.ts +1 -2
  1058. package/lib/tools/PreviewShell/PreviewShell.styles.d.ts.map +1 -1
  1059. package/lib/tools/PreviewShell/PreviewShell.styles.js +1 -2
  1060. package/lib/tools/PreviewShell/PreviewShell.styles.js.map +1 -1
  1061. package/lib/work/AppAnnouncement/AppAnnouncement.stories.d.ts +1 -1
  1062. package/lib/work/Assignments/Assignments.stories.d.ts +11 -0
  1063. package/lib/work/Assignments/Assignments.stories.d.ts.map +1 -0
  1064. package/lib/work/Assignments/Assignments.stories.js +63 -0
  1065. package/lib/work/Assignments/Assignments.stories.js.map +1 -0
  1066. package/lib/work/CaseView/Attachments.mocks.d.ts.map +1 -1
  1067. package/lib/work/CaseView/Attachments.mocks.js +96 -80
  1068. package/lib/work/CaseView/Attachments.mocks.js.map +1 -1
  1069. package/lib/work/CaseView/CaseView.mocks.d.ts +39 -22
  1070. package/lib/work/CaseView/CaseView.mocks.d.ts.map +1 -1
  1071. package/lib/work/CaseView/CaseView.mocks.js +241 -103
  1072. package/lib/work/CaseView/CaseView.mocks.js.map +1 -1
  1073. package/lib/work/CaseView/CaseView.stories.d.ts +3 -8
  1074. package/lib/work/CaseView/CaseView.stories.d.ts.map +1 -1
  1075. package/lib/work/CaseView/CaseView.stories.js +39 -11
  1076. package/lib/work/CaseView/CaseView.stories.js.map +1 -1
  1077. package/lib/work/CaseView/Details.mocks.js +1 -1
  1078. package/lib/work/CaseView/Details.mocks.js.map +1 -1
  1079. package/lib/work/CaseView/FileService.mock.d.ts +2 -2
  1080. package/lib/work/CaseView/FileService.mock.d.ts.map +1 -1
  1081. package/lib/work/CaseView/FileService.mock.js +2 -6
  1082. package/lib/work/CaseView/FileService.mock.js.map +1 -1
  1083. package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts +1 -1
  1084. package/lib/work/Confirmation/Confirmation.stories.d.ts +1 -1
  1085. package/lib/work/Confirmation/Confirmation.stories.js +1 -1
  1086. package/lib/work/Confirmation/Confirmation.stories.js.map +1 -1
  1087. package/lib/work/Details/Details.stories.d.ts +1 -1
  1088. package/lib/work/Details/Details.stories.d.ts.map +1 -1
  1089. package/lib/work/Details/Details.stories.js +6 -1
  1090. package/lib/work/Details/Details.stories.js.map +1 -1
  1091. package/lib/work/Glimpse/Glimpse.stories.d.ts +2 -7
  1092. package/lib/work/Glimpse/Glimpse.stories.d.ts.map +1 -1
  1093. package/lib/work/Glimpse/Glimpse.stories.js +12 -14
  1094. package/lib/work/Glimpse/Glimpse.stories.js.map +1 -1
  1095. package/lib/work/IntelligentGuidance/IntelligentGuidance.stories.d.ts +1 -1
  1096. package/lib/work/IntelligentGuidance/IntelligentGuidance.stories.d.ts.map +1 -1
  1097. package/lib/work/IntelligentGuidance/IntelligentGuidance.stories.js +89 -12
  1098. package/lib/work/IntelligentGuidance/IntelligentGuidance.stories.js.map +1 -1
  1099. package/lib/work/Predictions/Predictions.mocks.d.ts +3 -0
  1100. package/lib/work/Predictions/Predictions.mocks.d.ts.map +1 -0
  1101. package/lib/work/Predictions/Predictions.mocks.js +6 -0
  1102. package/lib/work/Predictions/Predictions.mocks.js.map +1 -0
  1103. package/lib/work/Predictions/Predictions.stories.d.ts +5 -0
  1104. package/lib/work/Predictions/Predictions.stories.d.ts.map +1 -0
  1105. package/lib/work/Predictions/Predictions.stories.js +54 -0
  1106. package/lib/work/Predictions/Predictions.stories.js.map +1 -0
  1107. package/lib/work/SearchResults/SearchResults.mocks.d.ts +1 -1
  1108. package/lib/work/SearchResults/SearchResults.mocks.d.ts.map +1 -1
  1109. package/lib/work/SearchResults/SearchResults.stories.d.ts +1 -1
  1110. package/lib/work/SearchResults/SearchResults.stories.d.ts.map +1 -1
  1111. package/lib/work/SearchResults/SearchResults.stories.js +20 -7
  1112. package/lib/work/SearchResults/SearchResults.stories.js.map +1 -1
  1113. package/lib/work/Stages/Stages.mocks.js +6 -6
  1114. package/lib/work/Stages/Stages.mocks.js.map +1 -1
  1115. package/lib/work/Stages/Stages.stories.d.ts +1 -1
  1116. package/lib/work/Stages/Stages.stories.d.ts.map +1 -1
  1117. package/lib/work/Stages/Stages.stories.js +22 -8
  1118. package/lib/work/Stages/Stages.stories.js.map +1 -1
  1119. package/lib/work/Stakeholders/Stakeholders.mocks.d.ts.map +1 -1
  1120. package/lib/work/Stakeholders/Stakeholders.mocks.js +4 -2
  1121. package/lib/work/Stakeholders/Stakeholders.mocks.js.map +1 -1
  1122. package/lib/work/Stakeholders/Stakeholders.stories.d.ts +1 -1
  1123. package/lib/work/Tags/Tags.stories.d.ts +1 -1
  1124. package/lib/work/Tags/Tags.stories.d.ts.map +1 -1
  1125. package/lib/work/Tags/Tags.stories.js +7 -1
  1126. package/lib/work/Tags/Tags.stories.js.map +1 -1
  1127. package/lib/work/Tasks/TaskList.stories.d.ts +1 -1
  1128. package/lib/work/Tasks/Tasks.mocks.d.ts +22 -0
  1129. package/lib/work/Tasks/Tasks.mocks.d.ts.map +1 -0
  1130. package/lib/work/Tasks/Tasks.mocks.js +51 -0
  1131. package/lib/work/Tasks/Tasks.mocks.js.map +1 -0
  1132. package/lib/work/Tasks/Tasks.stories.d.ts +6 -4
  1133. package/lib/work/Tasks/Tasks.stories.d.ts.map +1 -1
  1134. package/lib/work/Tasks/Tasks.stories.js +40 -54
  1135. package/lib/work/Tasks/Tasks.stories.js.map +1 -1
  1136. package/lib/work/Timeline/Timeline.mocks.d.ts.map +1 -1
  1137. package/lib/work/Timeline/Timeline.mocks.js +16 -1
  1138. package/lib/work/Timeline/Timeline.mocks.js.map +1 -1
  1139. package/lib/work/Timeline/Timeline.stories.d.ts +1 -1
  1140. package/lib/work/Timeline/Timeline.stories.d.ts.map +1 -1
  1141. package/lib/work/Timeline/Timeline.stories.js +2 -2
  1142. package/lib/work/Timeline/Timeline.stories.js.map +1 -1
  1143. package/lib/wss/AppShell/AppShell.stories.d.ts +1 -1
  1144. package/lib/wss/AppShell/AppShell.stories.d.ts.map +1 -1
  1145. package/lib/wss/AppShell/AppShell.stories.js +18 -1
  1146. package/lib/wss/AppShell/AppShell.stories.js.map +1 -1
  1147. package/lib/wss/CaseView/CaseView.stories.d.ts +1 -1
  1148. package/lib/wss/CaseView/CaseView.stories.d.ts.map +1 -1
  1149. package/lib/wss/CaseView/CaseView.stories.js +5 -3
  1150. package/lib/wss/CaseView/CaseView.stories.js.map +1 -1
  1151. package/lib/wss/PageTemplates/PageTemplates.stories.d.ts +1 -1
  1152. package/lib/wss/PageTemplates/PageTemplates.stories.js +2 -2
  1153. package/lib/wss/PageTemplates/PageTemplates.stories.js.map +1 -1
  1154. package/lib/wss/QuickCreate/QuickCreate.stories.d.ts +1 -1
  1155. package/package.json +24 -21
  1156. package/jsx/build/AppHeader/AppHeader.stories.d.ts +0 -13
  1157. package/jsx/build/AppHeader/AppHeader.stories.d.ts.map +0 -1
  1158. package/jsx/build/AppHeader/AppHeader.stories.jsx +0 -153
  1159. package/jsx/build/AppHeader/AppHeader.stories.jsx.map +0 -1
  1160. package/jsx/social/Chat/RepeatingView.mocks.d.ts +0 -14
  1161. package/jsx/social/Chat/RepeatingView.mocks.d.ts.map +0 -1
  1162. package/jsx/social/Chat/RepeatingView.mocks.js +0 -11
  1163. package/jsx/social/Chat/RepeatingView.mocks.js.map +0 -1
  1164. package/jsx/social/Chat/RepeatingView.stories.d.ts +0 -9
  1165. package/jsx/social/Chat/RepeatingView.stories.d.ts.map +0 -1
  1166. package/jsx/social/Chat/RepeatingView.stories.jsx +0 -60
  1167. package/jsx/social/Chat/RepeatingView.stories.jsx.map +0 -1
  1168. package/jsx/social/Chat/RepeatingView.styles.d.ts +0 -2
  1169. package/jsx/social/Chat/RepeatingView.styles.d.ts.map +0 -1
  1170. package/jsx/social/Chat/RepeatingView.styles.js +0 -22
  1171. package/jsx/social/Chat/RepeatingView.styles.js.map +0 -1
  1172. package/lib/build/AppHeader/AppHeader.stories.d.ts +0 -13
  1173. package/lib/build/AppHeader/AppHeader.stories.d.ts.map +0 -1
  1174. package/lib/build/AppHeader/AppHeader.stories.js +0 -152
  1175. package/lib/build/AppHeader/AppHeader.stories.js.map +0 -1
  1176. package/lib/social/Chat/RepeatingView.mocks.d.ts +0 -14
  1177. package/lib/social/Chat/RepeatingView.mocks.d.ts.map +0 -1
  1178. package/lib/social/Chat/RepeatingView.mocks.js +0 -11
  1179. package/lib/social/Chat/RepeatingView.mocks.js.map +0 -1
  1180. package/lib/social/Chat/RepeatingView.stories.d.ts +0 -9
  1181. package/lib/social/Chat/RepeatingView.stories.d.ts.map +0 -1
  1182. package/lib/social/Chat/RepeatingView.stories.js +0 -59
  1183. package/lib/social/Chat/RepeatingView.stories.js.map +0 -1
  1184. package/lib/social/Chat/RepeatingView.styles.d.ts +0 -2
  1185. package/lib/social/Chat/RepeatingView.styles.d.ts.map +0 -1
  1186. package/lib/social/Chat/RepeatingView.styles.js +0 -22
  1187. package/lib/social/Chat/RepeatingView.styles.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"Table.stories.jsx","sourceRoot":"","sources":["../../../src/core/Table/Table.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,KAAK,EAA2B,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAEhG,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAE/C,eAAe;IACb,KAAK,EAAE,YAAY;IACnB,SAAS,EAAE,KAAK;IAChB,cAAc,EAAE,CAAC,mBAAmB,CAAC;IACrC,IAAI,EAAE;QACJ,KAAK,EAAE,UAAU;QACjB,cAAc,EAAE,KAAK;QACrB,OAAO,EAAE,KAAK;QACd,cAAc,EAAE,cAAc;QAC9B,UAAU,EAAE,KAAK;KAClB;IACD,QAAQ,EAAE;QACR,KAAK,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;QACpC,cAAc,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;QAChD,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;QACzC,cAAc,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,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O,EAAE,IAAI,EAAE,EAAE;IAC5C,OAAO,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;IACrC,cAAc,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;IAC5C,UAAU,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;CACzC,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\n\nimport { Status, Table, ColumnProps, TableProps, Configuration } from '@pega/cosmos-react-core';\n\nimport { tableData } from './Table.mocks';\nimport { StyledBalance } from './Table.styles';\n\nexport default {\n title: 'Core/Table',\n component: Table,\n excludeStories: ['ConfigurableTable'],\n args: {\n title: 'Accounts',\n hoverHighlight: false,\n loading: false,\n loadingMessage: 'Loading data',\n emptyTable: false\n },\n argTypes: {\n title: { control: { type: 'text' } },\n hoverHighlight: { control: { type: 'boolean' } },\n loading: { control: { type: 'boolean' } },\n loadingMessage: { control: { type: 'text' } },\n emptyTable: { control: { type: 'boolean' } }\n }\n} as Meta;\n\ninterface TableStoryProps {\n title?: TableProps['title'];\n hoverHighlight?: TableProps['hoverHighlight'];\n loading?: TableProps['loading'];\n loadingMessage?: TableProps['loadingMessage'];\n emptyTable?: boolean;\n}\n\nexport const TableDemo: Story<TableStoryProps> = (args: TableStoryProps) => {\n const columns: ColumnProps<typeof tableData[number]>[] = [\n { renderer: 'name', label: 'Name' },\n { renderer: 'dob', label: 'Date of Birth' },\n { renderer: 'address', label: 'Address' },\n { renderer: 'email', label: 'Email' },\n { renderer: 'balance', label: 'Account Balance', align: 'right' }\n ];\n\n return (\n <Table\n title={args.title}\n hoverHighlight={args.hoverHighlight}\n loading={args.loading}\n loadingMessage={args.loadingMessage}\n data={args.emptyTable ? [] : tableData}\n columns={columns}\n />\n );\n};\n\nexport const StyledTableDemo: Story<TableStoryProps> = (args: TableStoryProps) => {\n const columns: ColumnProps<typeof tableData[number]>[] = [\n { renderer: data => <b>{data.name}</b>, label: 'Name' },\n { renderer: 'dob', label: 'Date of Birth' },\n { renderer: 'address', label: 'Address' },\n {\n renderer: data => {\n return (\n <>\n {data.email && data.emailVerified && <Status variant='success'>{data.email}</Status>}\n {data.email && !data.emailVerified && <Status variant='urgent'>{data.email}</Status>}\n </>\n );\n },\n label: 'Email'\n },\n {\n renderer: data => {\n return (\n <StyledBalance negativeBalance={data.balance.startsWith('-')}>\n {data.balance}\n </StyledBalance>\n );\n },\n label: 'Account Balance',\n align: 'right'\n }\n ];\n\n return (\n <Table\n title={args.title}\n hoverHighlight={args.hoverHighlight}\n loading={args.loading}\n loadingMessage={args.loadingMessage}\n data={args.emptyTable ? [] : tableData}\n columns={columns}\n />\n );\n};\n\ninterface ConfigurableTableProps extends TableStoryProps {\n headerFontSize?: string;\n headerFontWeight?: string;\n headerForegroundColor?: string;\n headerBackgroundColor?: string;\n headerVerticalSpacing?: number;\n headerHorizontalSpacing?: number;\n headerBorderWidth?: string;\n headerBorderColor?: string;\n bodyForegroundColor?: string;\n bodyBackgroundColor?: string;\n bodyVerticalSpacing?: number;\n bodyHorizontalSpacing?: number;\n bodyBorderWidth?: string;\n bodyBorderColor?: string;\n borderHorizontalInner?: boolean;\n borderHorizontalOuter?: boolean;\n borderVerticalInner?: boolean;\n borderVerticalOuter?: boolean;\n spacingHorizontalInner?: boolean;\n spacingHorizontalOuter?: boolean;\n spacingVerticalInner?: boolean;\n spacingVerticalOuter?: boolean;\n}\n\nexport const ConfigurableTable: Story<ConfigurableTableProps> = (args: ConfigurableTableProps) => {\n const columns: ColumnProps<typeof tableData[number]>[] = [\n { renderer: data => <b>{data.name}</b>, label: 'Name' },\n { renderer: 'dob', label: 'Date of Birth' },\n { renderer: 'address', label: 'Address' },\n {\n renderer: data => {\n return (\n <>\n {data.email && data.emailVerified && <Status variant='success'>{data.email}</Status>}\n {data.email && !data.emailVerified && <Status variant='urgent'>{data.email}</Status>}\n </>\n );\n },\n label: 'Email'\n },\n {\n renderer: data => {\n return (\n <StyledBalance negativeBalance={data.balance.startsWith('-')}>\n {data.balance}\n </StyledBalance>\n );\n },\n label: 'Account Balance',\n align: 'right'\n }\n ];\n\n return (\n <Configuration\n theme={{\n components: {\n table: {\n header: {\n 'font-size': args.headerFontSize,\n 'font-weight': args.headerFontWeight,\n 'foreground-color': args.headerForegroundColor,\n 'background-color': args.headerBackgroundColor,\n 'vertical-spacing': args.headerVerticalSpacing,\n 'horizontal-spacing': args.headerHorizontalSpacing,\n 'border-width': args.headerBorderWidth,\n 'border-color': args.headerBorderColor\n },\n body: {\n 'foreground-color': args.bodyForegroundColor,\n 'background-color': args.bodyBackgroundColor,\n 'vertical-spacing': args.bodyVerticalSpacing,\n 'horizontal-spacing': args.bodyHorizontalSpacing,\n 'border-width': args.bodyBorderWidth,\n 'border-color': args.bodyBorderColor\n },\n border: {\n 'horizontal-inner': args.borderHorizontalInner,\n 'horizontal-outer': args.borderHorizontalOuter,\n 'vertical-inner': args.borderVerticalInner,\n 'vertical-outer': args.borderVerticalOuter\n },\n spacing: {\n 'horizontal-inner': args.spacingHorizontalInner,\n 'horizontal-outer': args.spacingHorizontalOuter,\n 'vertical-inner': args.spacingVerticalInner,\n 'vertical-outer': args.spacingVerticalOuter\n }\n }\n }\n }}\n >\n <Table title='Accounts' data={tableData} columns={columns} />\n </Configuration>\n );\n};\n\nConfigurableTable.args = {\n headerFontSize: 's',\n headerFontWeight: '600',\n headerForegroundColor: '#000000',\n headerBackgroundColor: '#71baff',\n headerVerticalSpacing: 1,\n headerHorizontalSpacing: 2,\n headerBorderWidth: '0.0625rem',\n headerBorderColor: '#cfcfcf',\n bodyForegroundColor: '#000000',\n bodyBackgroundColor: '#e2f1ff',\n bodyVerticalSpacing: 1,\n bodyHorizontalSpacing: 1,\n bodyBorderWidth: '0.0625rem',\n bodyBorderColor: '#cfcfcf',\n borderHorizontalInner: true,\n borderHorizontalOuter: true,\n borderVerticalInner: true,\n borderVerticalOuter: true,\n spacingHorizontalInner: true,\n spacingHorizontalOuter: true,\n spacingVerticalInner: true,\n spacingVerticalOuter: true\n};\n\nConfigurableTable.argTypes = {\n headerFontSize: {\n options: ['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl'],\n control: { type: 'select' }\n },\n headerFontWeight: { control: { type: 'text' } },\n headerForegroundColor: { control: { type: 'color' } },\n headerBackgroundColor: { control: { type: 'color' } },\n headerVerticalSpacing: { control: { type: 'number' } },\n headerHorizontalSpacing: { control: { type: 'number' } },\n headerBorderWidth: { control: { type: 'text' } },\n headerBorderColor: { control: { type: 'color' } },\n bodyForegroundColor: { control: { type: 'color' } },\n bodyBackgroundColor: { control: { type: 'color' } },\n bodyVerticalSpacing: { control: { type: 'number' } },\n bodyHorizontalSpacing: { control: { type: 'number' } },\n bodyBorderWidth: { control: { type: 'text' } },\n bodyBorderColor: { control: { type: 'color' } },\n borderHorizontalInner: { control: { type: 'boolean' } },\n borderHorizontalOuter: { control: { type: 'boolean' } },\n borderVerticalInner: { control: { type: 'boolean' } },\n borderVerticalOuter: { control: { type: 'boolean' } },\n spacingHorizontalInner: { control: { type: 'boolean' } },\n spacingHorizontalOuter: { control: { type: 'boolean' } },\n spacingVerticalInner: { control: { type: 'boolean' } },\n spacingVerticalOuter: { control: { type: 'boolean' } },\n title: { table: { disable: true } },\n hoverHighlight: { table: { disable: true } },\n loading: { table: { disable: true } },\n loadingMessage: { table: { disable: true } },\n emptyTable: { table: { disable: true } }\n};\n"]}
1
+ {"version":3,"file":"Table.stories.jsx","sourceRoot":"","sources":["../../../src/core/Table/Table.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,KAAK,EAA2B,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAEhG,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAE/C,eAAe;IACb,KAAK,EAAE,YAAY;IACnB,SAAS,EAAE,KAAK;IAChB,cAAc,E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AAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IACrD,sBAAsB,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IACxD,sBAAsB,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IACxD,oBAAoB,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IACtD,oBAAoB,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IACtD,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;IACnC,cAAc,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;IAC5C,OAAO,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;IACrC,cAAc,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;IAC5C,UAAU,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;CACzC,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\n\nimport { Status, Table, ColumnProps, TableProps, Configuration } from '@pega/cosmos-react-core';\n\nimport { tableData } from './Table.mocks';\nimport { StyledBalance } from './Table.styles';\n\nexport default {\n title: 'Core/Table',\n component: Table,\n excludeStories: ['ConfigurableTable'],\n args: {\n title: 'Accounts',\n hoverHighlight: false,\n loading: false,\n loadingMessage: 'Loading data',\n emptyTable: false\n },\n argTypes: {\n title: { control: { type: 'text' } },\n hoverHighlight: { control: { type: 'boolean' } },\n loading: { control: { type: 'boolean' } },\n loadingMessage: { control: { type: 'text' } },\n emptyTable: { control: { type: 'boolean' } }\n }\n} as Meta;\n\ninterface TableStoryProps {\n title?: TableProps['title'];\n hoverHighlight?: TableProps['hoverHighlight'];\n loading?: TableProps['loading'];\n loadingMessage?: TableProps['loadingMessage'];\n emptyTable?: boolean;\n}\n\nexport const TableDemo: Story<TableStoryProps> = (args: TableStoryProps) => {\n const columns: ColumnProps<(typeof tableData)[number]>[] = [\n { renderer: 'name', label: 'Name' },\n { renderer: 'dob', label: 'Date of Birth' },\n { renderer: 'address', label: 'Address' },\n { renderer: 'email', label: 'Email' },\n { renderer: 'balance', label: 'Account Balance', align: 'right' }\n ];\n\n return (\n <Table\n title={args.title}\n hoverHighlight={args.hoverHighlight}\n loading={args.loading}\n loadingMessage={args.loadingMessage}\n data={args.emptyTable ? [] : tableData}\n columns={columns}\n />\n );\n};\n\nexport const StyledTableDemo: Story<TableStoryProps> = (args: TableStoryProps) => {\n const columns: ColumnProps<(typeof tableData)[number]>[] = [\n { renderer: data => <b>{data.name}</b>, label: 'Name' },\n { renderer: 'dob', label: 'Date of Birth' },\n { renderer: 'address', label: 'Address' },\n {\n renderer: data => {\n return (\n <>\n {data.email && data.emailVerified && <Status variant='success'>{data.email}</Status>}\n {data.email && !data.emailVerified && <Status variant='urgent'>{data.email}</Status>}\n </>\n );\n },\n label: 'Email'\n },\n {\n renderer: data => {\n return (\n <StyledBalance negativeBalance={data.balance.startsWith('-')}>\n {data.balance}\n </StyledBalance>\n );\n },\n label: 'Account Balance',\n align: 'right'\n }\n ];\n\n return (\n <Table\n title={args.title}\n hoverHighlight={args.hoverHighlight}\n loading={args.loading}\n loadingMessage={args.loadingMessage}\n data={args.emptyTable ? [] : tableData}\n columns={columns}\n />\n );\n};\n\ninterface ConfigurableTableProps extends TableStoryProps {\n headerFontSize?: string;\n headerFontWeight?: string;\n headerForegroundColor?: string;\n headerBackgroundColor?: string;\n headerVerticalSpacing?: number;\n headerHorizontalSpacing?: number;\n headerBorderWidth?: string;\n headerBorderColor?: string;\n bodyForegroundColor?: string;\n bodyBackgroundColor?: string;\n bodyVerticalSpacing?: number;\n bodyHorizontalSpacing?: number;\n bodyBorderWidth?: string;\n bodyBorderColor?: string;\n borderHorizontalInner?: boolean;\n borderHorizontalOuter?: boolean;\n borderVerticalInner?: boolean;\n borderVerticalOuter?: boolean;\n spacingHorizontalInner?: boolean;\n spacingHorizontalOuter?: boolean;\n spacingVerticalInner?: boolean;\n spacingVerticalOuter?: boolean;\n}\n\nexport const ConfigurableTable: Story<ConfigurableTableProps> = (args: ConfigurableTableProps) => {\n const columns: ColumnProps<(typeof tableData)[number]>[] = [\n { renderer: data => <b>{data.name}</b>, label: 'Name' },\n { renderer: 'dob', label: 'Date of Birth' },\n { renderer: 'address', label: 'Address' },\n {\n renderer: data => {\n return (\n <>\n {data.email && data.emailVerified && <Status variant='success'>{data.email}</Status>}\n {data.email && !data.emailVerified && <Status variant='urgent'>{data.email}</Status>}\n </>\n );\n },\n label: 'Email'\n },\n {\n renderer: data => {\n return (\n <StyledBalance negativeBalance={data.balance.startsWith('-')}>\n {data.balance}\n </StyledBalance>\n );\n },\n label: 'Account Balance',\n align: 'right'\n }\n ];\n\n return (\n <Configuration\n theme={{\n components: {\n table: {\n header: {\n 'font-size': args.headerFontSize,\n 'font-weight': args.headerFontWeight,\n 'foreground-color': args.headerForegroundColor,\n 'background-color': args.headerBackgroundColor,\n 'vertical-spacing': args.headerVerticalSpacing,\n 'horizontal-spacing': args.headerHorizontalSpacing,\n 'border-width': args.headerBorderWidth,\n 'border-color': args.headerBorderColor\n },\n body: {\n 'foreground-color': args.bodyForegroundColor,\n 'background-color': args.bodyBackgroundColor,\n 'vertical-spacing': args.bodyVerticalSpacing,\n 'horizontal-spacing': args.bodyHorizontalSpacing,\n 'border-width': args.bodyBorderWidth,\n 'border-color': args.bodyBorderColor\n },\n border: {\n 'horizontal-inner': args.borderHorizontalInner,\n 'horizontal-outer': args.borderHorizontalOuter,\n 'vertical-inner': args.borderVerticalInner,\n 'vertical-outer': args.borderVerticalOuter\n },\n spacing: {\n 'horizontal-inner': args.spacingHorizontalInner,\n 'horizontal-outer': args.spacingHorizontalOuter,\n 'vertical-inner': args.spacingVerticalInner,\n 'vertical-outer': args.spacingVerticalOuter\n }\n }\n }\n }}\n >\n <Table title='Accounts' data={tableData} columns={columns} />\n </Configuration>\n );\n};\n\nConfigurableTable.args = {\n headerFontSize: 's',\n headerFontWeight: '600',\n headerForegroundColor: '#000000',\n headerBackgroundColor: '#71baff',\n headerVerticalSpacing: 1,\n headerHorizontalSpacing: 2,\n headerBorderWidth: '0.0625rem',\n headerBorderColor: '#cfcfcf',\n bodyForegroundColor: '#000000',\n bodyBackgroundColor: '#e2f1ff',\n bodyVerticalSpacing: 1,\n bodyHorizontalSpacing: 1,\n bodyBorderWidth: '0.0625rem',\n bodyBorderColor: '#cfcfcf',\n borderHorizontalInner: true,\n borderHorizontalOuter: true,\n borderVerticalInner: true,\n borderVerticalOuter: true,\n spacingHorizontalInner: true,\n spacingHorizontalOuter: true,\n spacingVerticalInner: true,\n spacingVerticalOuter: true\n};\n\nConfigurableTable.argTypes = {\n headerFontSize: {\n options: ['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl'],\n control: { type: 'select' }\n },\n headerFontWeight: { control: { type: 'text' } },\n headerForegroundColor: { control: { type: 'color' } },\n headerBackgroundColor: { control: { type: 'color' } },\n headerVerticalSpacing: { control: { type: 'number' } },\n headerHorizontalSpacing: { control: { type: 'number' } },\n headerBorderWidth: { control: { type: 'text' } },\n headerBorderColor: { control: { type: 'color' } },\n bodyForegroundColor: { control: { type: 'color' } },\n bodyBackgroundColor: { control: { type: 'color' } },\n bodyVerticalSpacing: { control: { type: 'number' } },\n bodyHorizontalSpacing: { control: { type: 'number' } },\n bodyBorderWidth: { control: { type: 'text' } },\n bodyBorderColor: { control: { type: 'color' } },\n borderHorizontalInner: { control: { type: 'boolean' } },\n borderHorizontalOuter: { control: { type: 'boolean' } },\n borderVerticalInner: { control: { type: 'boolean' } },\n borderVerticalOuter: { control: { type: 'boolean' } },\n spacingHorizontalInner: { control: { type: 'boolean' } },\n spacingHorizontalOuter: { control: { type: 'boolean' } },\n spacingVerticalInner: { control: { type: 'boolean' } },\n spacingVerticalOuter: { control: { type: 'boolean' } },\n title: { table: { disable: true } },\n hoverHighlight: { table: { disable: true } },\n loading: { table: { disable: true } },\n loadingMessage: { table: { disable: true } },\n emptyTable: { table: { disable: true } }\n};\n"]}
@@ -1,15 +1,9 @@
1
1
  import { Meta, Story } from '@storybook/react';
2
- import { TabsProps } from '@pega/cosmos-react-core';
3
- declare const _default: Meta<import("@storybook/react").Args>;
2
+ declare const _default: Meta;
4
3
  export default _default;
5
4
  interface TabDemoProps {
6
5
  type: 'horizontal' | 'vertical';
7
6
  }
8
7
  export declare const TabsDemo: Story<TabDemoProps>;
9
8
  export declare const TabsCountDemo: Story<TabDemoProps>;
10
- interface ConfigurableTabsProps {
11
- foreground?: string;
12
- type?: TabsProps['type'];
13
- }
14
- export declare const ConfigurableTabs: Story<ConfigurableTabsProps>;
15
9
  //# sourceMappingURL=Tabs.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Tabs.stories.d.ts","sourceRoot":"","sources":["../../../src/core/Tabs/Tabs.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAG/C,OAAO,EAAuC,SAAS,EAAE,MAAM,yBAAyB,CAAC;;AAEzF,wBAUU;AAEV,UAAU,YAAY;IACpB,IAAI,EAAE,YAAY,GAAG,UAAU,CAAC;CACjC;AAED,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,YAAY,CA6BxC,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,YAAY,CA6B7C,CAAC;AAEF,UAAU,qBAAqB;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC;CAC1B;AAED,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,qBAAqB,CAuCzD,CAAC"}
1
+ {"version":3,"file":"Tabs.stories.d.ts","sourceRoot":"","sources":["../../../src/core/Tabs/Tabs.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;;AAK/C,wBASU;AAEV,UAAU,YAAY;IACpB,IAAI,EAAE,YAAY,GAAG,UAAU,CAAC;CACjC;AAED,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,YAAY,CA6BxC,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,YAAY,CA6B7C,CAAC"}
@@ -1,9 +1,8 @@
1
1
  import { useState } from 'react';
2
- import { Configuration, Flex, TabPanel, Tabs } from '@pega/cosmos-react-core';
2
+ import { Flex, TabPanel, Tabs } from '@pega/cosmos-react-core';
3
3
  export default {
4
4
  title: 'Core/Tabs',
5
5
  component: Tabs,
6
- excludeStories: ['ConfigurableTabs'],
7
6
  args: {
8
7
  type: 'horizontal'
9
8
  },
@@ -57,42 +56,4 @@ export const TabsCountDemo = (args) => {
57
56
  </Flex>
58
57
  </Flex>);
59
58
  };
60
- export const ConfigurableTabs = (args) => {
61
- const [panelShown, changePanel] = useState('1');
62
- const handleTabChange = (id) => {
63
- changePanel(id);
64
- };
65
- const tabs = [
66
- { name: 'Tab 1', id: '1' },
67
- { name: 'Tab 2', id: '2' },
68
- { name: 'Tab 3', id: '3' },
69
- { name: 'Tab 4', id: '4', disabled: true },
70
- { name: 'Tab 5', id: '5' }
71
- ];
72
- return (<Configuration theme={{
73
- components: {
74
- tabs: {
75
- base: {
76
- foreground: args.foreground
77
- }
78
- }
79
- }
80
- }}>
81
- <Flex item={{ grow: 1 }}>
82
- <Tabs tabs={tabs} onTabClick={handleTabChange} currentTabId={panelShown}/>
83
- </Flex>
84
- <Flex container={{ pad: [1, 2] }} item={{ grow: 1 }}>
85
- {tabs.map(tab => (<TabPanel tabId={tab.id} currentTabId={panelShown} key={tab.id}>
86
- <div>{tab.name} content</div>
87
- </TabPanel>))}
88
- </Flex>
89
- </Configuration>);
90
- };
91
- ConfigurableTabs.args = {
92
- foreground: '#076bc9'
93
- };
94
- ConfigurableTabs.argTypes = {
95
- foreground: { control: { type: 'color' } },
96
- type: { table: { disable: true } }
97
- };
98
59
  //# sourceMappingURL=Tabs.stories.jsx.map
@@ -1 +1 @@
1
- {"version":3,"file":"Tabs.stories.jsx","sourceRoot":"","sources":["../../../src/core/Tabs/Tabs.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjC,OAAO,EAAE,aAAa,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAa,MAAM,yBAAyB,CAAC;AAEzF,eAAe;IACb,KAAK,EAAE,WAAW;IAClB,SAAS,EAAE,IAAI;IACf,cAAc,EAAE,CAAC,kBAAkB,CAAC;IACpC,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;KACnB;IACD,QAAQ,EAAE;QACR,IAAI,EAAE,EAAE,OAAO,EAAE,CAAC,YAAY,EAAE,UAAU,CAAC,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;KAC3E;CACM,CAAC;AAMV,MAAM,CAAC,MAAM,QAAQ,GAAwB,CAAC,IAAkB,EAAE,EAAE;IAClE,MAAM,CAAC,UAAU,EAAE,WAAW,CAAC,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC;IAEhD,MAAM,eAAe,GAAG,CAAC,EAAU,EAAE,EAAE;QACrC,WAAW,CAAC,EAAE,CAAC,CAAC;IAClB,CAAC,CAAC;IAEF,MAAM,IAAI,GAAG;QACX,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,GAAG,EAAE;QAC1B,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,GAAG,EAAE;QAC1B,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,GAAG,EAAE;QAC1B,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE;QAC1C,EAAE,IAAI,EAAE,OAAO,EAA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EAAE,CAAC,EAAE,CAAC,CACtB;QAAA,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,UAAU,CAAC,CAAC,eAAe,CAAC,CAAC,YAAY,CAAC,CAAC,UAAU,CAAC,EAC1E;MAAA,EAAE,IAAI,CACN;MAAA,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC,CAClD;QAAA,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,CACf,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,YAAY,CAAC,CAAC,UAAU,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAC7D;YAAA,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,IAAI,CAAE,QAAO,EAAE,GAAG,CAC9B;UAAA,EAAE,QAAQ,CAAC,CACZ,CAAC,CACJ;MAAA,EAAE,IAAI,CACR;IAAA,EAAE,aAAa,CAAC,CACjB,CAAC;AACJ,CAAC,CAAC;AAEF,gBAAgB,CAAC,IAAI,GAAG;IACtB,UAAU,EAAE,SAAS;CACtB,CAAC;AAEF,gBAAgB,CAAC,QAAQ,GAAG;IAC1B,UAAU,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE;IAC1C,IAAI,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;CACnC,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\nimport { useState } from 'react';\n\nimport { Configuration, Flex, TabPanel, Tabs, TabsProps } from '@pega/cosmos-react-core';\n\nexport default {\n title: 'Core/Tabs',\n component: Tabs,\n excludeStories: ['ConfigurableTabs'],\n args: {\n type: 'horizontal'\n },\n argTypes: {\n type: { options: ['horizontal', 'vertical'], control: { type: 'select' } }\n }\n} as Meta;\n\ninterface TabDemoProps {\n type: 'horizontal' | 'vertical';\n}\n\nexport const TabsDemo: Story<TabDemoProps> = (args: TabDemoProps) => {\n const [panelShown, changePanel] = useState('1');\n\n const handleTabChange = (id: string) => {\n changePanel(id);\n };\n\n const tabs = [\n { name: 'Tab 1', id: '1' },\n { name: 'Tab 2', id: '2' },\n { name: 'Tab 3', id: '3' },\n { name: 'Tab 4', id: '4', disabled: true },\n { name: 'Tab 5', id: '5' }\n ];\n\n return (\n <Flex container={{ direction: args.type === 'horizontal' ? 'column' : 'row' }}>\n <Flex item={{ grow: 1 }}>\n <Tabs tabs={tabs} type={args.type} onTabClick={handleTabChange} currentTabId={panelShown} />\n </Flex>\n <Flex container={{ pad: [1, 2] }} item={{ grow: 1 }}>\n {tabs.map(tab => (\n <TabPanel tabId={tab.id} currentTabId={panelShown} key={tab.id}>\n <div>{tab.name}</div>\n </TabPanel>\n ))}\n </Flex>\n </Flex>\n );\n};\n\nexport const TabsCountDemo: Story<TabDemoProps> = (args: TabDemoProps) => {\n const [panelShown, changePanel] = useState('1');\n\n const handleTabChange = (id: string) => {\n changePanel(id);\n };\n\n const tabs = [\n { name: 'Tab 1', id: '1', count: 5 },\n { name: 'Tab 2', id: '2', count: 14 },\n { name: 'Tab 3', id: '3', count: 0 },\n { name: 'Tab 4', id: '4', count: 56, disabled: true },\n { name: 'Tab 5', id: '5', count: 150 }\n ];\n\n return (\n <Flex container={{ direction: args.type === 'horizontal' ? 'column' : 'row' }}>\n <Flex item={{ grow: 1 }}>\n <Tabs tabs={tabs} type={args.type} onTabClick={handleTabChange} currentTabId={panelShown} />\n </Flex>\n <Flex container={{ pad: [1, 2] }} item={{ grow: 1 }}>\n {tabs.map(tab => (\n <TabPanel tabId={tab.id} currentTabId={panelShown} key={tab.id}>\n <div>{tab.name} content</div>\n </TabPanel>\n ))}\n </Flex>\n </Flex>\n );\n};\n\ninterface ConfigurableTabsProps {\n foreground?: string;\n type?: TabsProps['type'];\n}\n\nexport const ConfigurableTabs: Story<ConfigurableTabsProps> = (args: ConfigurableTabsProps) => {\n const [panelShown, changePanel] = useState('1');\n\n const handleTabChange = (id: string) => {\n changePanel(id);\n };\n\n const tabs = [\n { name: 'Tab 1', id: '1' },\n { name: 'Tab 2', id: '2' },\n { name: 'Tab 3', id: '3' },\n { name: 'Tab 4', id: '4', disabled: true },\n { name: 'Tab 5', id: '5' }\n ];\n\n return (\n <Configuration\n theme={{\n components: {\n tabs: {\n base: {\n foreground: args.foreground\n }\n }\n }\n }}\n >\n <Flex item={{ grow: 1 }}>\n <Tabs tabs={tabs} onTabClick={handleTabChange} currentTabId={panelShown} />\n </Flex>\n <Flex container={{ pad: [1, 2] }} item={{ grow: 1 }}>\n {tabs.map(tab => (\n <TabPanel tabId={tab.id} currentTabId={panelShown} key={tab.id}>\n <div>{tab.name} content</div>\n </TabPanel>\n ))}\n </Flex>\n </Configuration>\n );\n};\n\nConfigurableTabs.args = {\n foreground: '#076bc9'\n};\n\nConfigurableTabs.argTypes = {\n foreground: { control: { type: 'color' } },\n type: { table: { disable: true } }\n};\n"]}
1
+ {"version":3,"file":"Tabs.stories.jsx","sourceRoot":"","sources":["../../../src/core/Tabs/Tabs.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjC,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAE/D,eAAe;IACb,KAAK,EAAE,WAAW;IAClB,SAAS,EAAE,IAAI;IACf,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;KACnB;IACD,QAAQ,EAAE;QACR,IAAI,EAAE,EAAE,OAAO,EAAE,CAAC,YAAY,EAAE,UAAU,CAAC,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;KAC3E;CACM,CAAC;AAMV,MAAM,CAAC,MAAM,QAAQ,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QAAQ,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC,CAC5E;MAAA,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC,CACtB;QAAA,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,UAAU,CAAC,CAAC,eAAe,CAAC,CAAC,YAAY,CAAC,CAAC,UAAU,CAAC,EAC3F;MAAA,EAAE,IAAI,CACN;MAAA,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC,CAClD;QAAA,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,CACf,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,YAAY,CAAC,CAAC,UAAU,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAC7D;YAAA,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,IAAI,CAAE,QAAO,EAAE,GAAG,CAC9B;UAAA,EAAE,QAAQ,CAAC,CACZ,CAAC,CACJ;MAAA,EAAE,IAAI,CACR;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\nimport { useState } from 'react';\n\nimport { Flex, TabPanel, Tabs } from '@pega/cosmos-react-core';\n\nexport default {\n title: 'Core/Tabs',\n component: Tabs,\n args: {\n type: 'horizontal'\n },\n argTypes: {\n type: { options: ['horizontal', 'vertical'], control: { type: 'select' } }\n }\n} as Meta;\n\ninterface TabDemoProps {\n type: 'horizontal' | 'vertical';\n}\n\nexport const TabsDemo: Story<TabDemoProps> = (args: TabDemoProps) => {\n const [panelShown, changePanel] = useState('1');\n\n const handleTabChange = (id: string) => {\n changePanel(id);\n };\n\n const tabs = [\n { name: 'Tab 1', id: '1' },\n { name: 'Tab 2', id: '2' },\n { name: 'Tab 3', id: '3' },\n { name: 'Tab 4', id: '4', disabled: true },\n { name: 'Tab 5', id: '5' }\n ];\n\n return (\n <Flex container={{ direction: args.type === 'horizontal' ? 'column' : 'row' }}>\n <Flex item={{ grow: 1 }}>\n <Tabs tabs={tabs} type={args.type} onTabClick={handleTabChange} currentTabId={panelShown} />\n </Flex>\n <Flex container={{ pad: [1, 2] }} item={{ grow: 1 }}>\n {tabs.map(tab => (\n <TabPanel tabId={tab.id} currentTabId={panelShown} key={tab.id}>\n <div>{tab.name}</div>\n </TabPanel>\n ))}\n </Flex>\n </Flex>\n );\n};\n\nexport const TabsCountDemo: Story<TabDemoProps> = (args: TabDemoProps) => {\n const [panelShown, changePanel] = useState('1');\n\n const handleTabChange = (id: string) => {\n changePanel(id);\n };\n\n const tabs = [\n { name: 'Tab 1', id: '1', count: 5 },\n { name: 'Tab 2', id: '2', count: 14 },\n { name: 'Tab 3', id: '3', count: 0 },\n { name: 'Tab 4', id: '4', count: 56, disabled: true },\n { name: 'Tab 5', id: '5', count: 150 }\n ];\n\n return (\n <Flex container={{ direction: args.type === 'horizontal' ? 'column' : 'row' }}>\n <Flex item={{ grow: 1 }}>\n <Tabs tabs={tabs} type={args.type} onTabClick={handleTabChange} currentTabId={panelShown} />\n </Flex>\n <Flex container={{ pad: [1, 2] }} item={{ grow: 1 }}>\n {tabs.map(tab => (\n <TabPanel tabId={tab.id} currentTabId={panelShown} key={tab.id}>\n <div>{tab.name} content</div>\n </TabPanel>\n ))}\n </Flex>\n </Flex>\n );\n};\n"]}
@@ -1,6 +1,6 @@
1
1
  import { Meta, Story } from '@storybook/react';
2
2
  import { TextProps } from '@pega/cosmos-react-core';
3
- declare const _default: Meta<import("@storybook/react").Args>;
3
+ declare const _default: Meta;
4
4
  export default _default;
5
5
  export declare const TextDemo: Story<TextProps>;
6
6
  interface ConfigurableTextProps {
@@ -1,6 +1,6 @@
1
1
  import { Meta, Story } from '@storybook/react';
2
2
  import { TextAreaProps } from '@pega/cosmos-react-core';
3
- declare const _default: Meta<import("@storybook/react").Args>;
3
+ declare const _default: Meta;
4
4
  export default _default;
5
5
  interface TextAreaStoryProps extends TextAreaProps {
6
6
  showAdditionalInfo?: boolean;
@@ -20,7 +20,7 @@ TextAreaDemo.args = {
20
20
  displayCharCount: false,
21
21
  hardStop: true,
22
22
  resizable: false,
23
- autoResize: false,
23
+ autoResize: true,
24
24
  label: 'Text Area',
25
25
  labelHidden: false,
26
26
  info: 'Enter a large amount of text',
@@ -1 +1 @@
1
- {"version":3,"file":"TextArea.stories.jsx","sourceRoot":"","sources":["../../../src/core/TextArea/TextArea.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAe,MAAM,OAAO,CAAC;AAE9C,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAiB,MAAM,yBAAyB,CAAC;AAEjF,eAAe;IACb,KAAK,EAAE,eAAe;IACtB,SAAS,EAAE,QAAQ;IACnB,cAAc,EAAE,CAAC,sBAAsB,CAAC;CACjC,CAAC;AAMV,MAAM,CAAC,MAAM,YAAY,GAA8B,CAAC,IAAwB,EAAE,EAAE;IAClF,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC;IAEvC,OAAO,CACL,CAAC,QAAQ,CACP,cAAc,CAAC,CACb,IAAI,CAAC,kBAAkB;YACrB,CAAC,CAAC;gBACE,OAAO,EAAE,iBAAiB;gBAC1B,OAAO,EAAE,sBAAsB;aAChC;YACH,CAAC,CAAC,SAAS,CACd,CACD,EAAE,CAAC,WAAW,CACd,KAAK,CAAC,CAAC,KAAK,CAAC,CACb,QAAQ,CAAC,CAAC,CAAC,CAAmC,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAA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K,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC;IAEvC,OAAO,CACL,CAAC,aAAa,CACZ,KAAK,CAAC,CAAC;YACL,UAAU,EAAE;gBACV,WAAW,EAAE;oBACX,YAAY,EAAE,IAAI,CAAC,SAAS;oBAC5B,OAAO,EAAE,IAAI,CAAC,OAAO;iBACtB;aACF;SACF,CAAC,CAEF;MAAA,CAAC,QAAQ,CACP,KAAK,CAAC,CAAC,KAAK,CAAC,CACb,QAAQ,CAAC,CAAC,CAAC,CAAmC,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAC5E,SAAS,CACT,UAAU,CACV,KAAK,CAAC,wBAAwB,CAC9B,IAAI,CAAC,8BAA8B,CACnC,WAAW,CAAC,kBAAkB,EAElC;IAAA,EAAE,aAAa,CAAC,CACjB,CAAC;AACJ,CAAC,CAAC;AAEF,oBAAoB,CAAC,IAAI,GAAG;IAC1B,SAAS,EAAE,SAAS;IACpB,OAAO,EAAE,QAAQ;CAClB,CAAC;AAEF,oBAAoB,CAAC,QAAQ,GAAG;IAC9B,SAAS,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;IACxC,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;CACvC,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\nimport { useState, ChangeEvent } from 'react';\n\nimport { Configuration, TextArea, TextAreaProps } from '@pega/cosmos-react-core';\n\nexport default {\n title: 'Core/Textarea',\n component: TextArea,\n excludeStories: ['ConfigurableTextArea']\n} as Meta;\n\ninterface TextAreaStoryProps extends TextAreaProps {\n showAdditionalInfo?: boolean;\n}\n\nexport const TextAreaDemo: Story<TextAreaStoryProps> = (args: TextAreaStoryProps) => {\n const [value, setValue] = useState('');\n\n return (\n <TextArea\n additionalInfo={\n args.showAdditionalInfo\n ? {\n heading: 'Additional Info',\n content: 'Some additional info'\n }\n : undefined\n }\n id='text-area'\n value={value}\n onChange={(e: ChangeEvent<HTMLTextAreaElement>) => setValue(e.target.value)}\n minLength={args.minLength}\n maxLength={args.maxLength}\n displayCharCount={args.displayCharCount}\n hardStop={args.hardStop}\n resizable={args.resizable}\n autoResize={args.autoResize}\n label={args.label}\n labelHidden={args.labelHidden}\n info={args.info}\n placeholder={args.placeholder}\n status={args.status}\n required={args.required}\n disabled={args.disabled}\n readOnly={args.readOnly}\n />\n );\n};\n\nTextAreaDemo.args = {\n minLength: 0,\n maxLength: 300,\n displayCharCount: false,\n hardStop: true,\n resizable: false,\n autoResize: false,\n label: 'Text Area',\n labelHidden: false,\n info: 'Enter a large amount of text',\n placeholder: 'Tell us a story…',\n status: undefined,\n required: false,\n disabled: false,\n readOnly: false,\n showAdditionalInfo: true\n};\n\nTextAreaDemo.argTypes = {\n minLength: { control: { type: 'number' } },\n maxLength: { control: { type: 'number' } },\n displayCharCount: { control: { type: 'boolean' } },\n hardStop: { control: { type: 'boolean' } },\n resizable: { control: { type: 'boolean' } },\n autoResize: { control: { type: 'boolean' } },\n label: { control: { type: 'text' } },\n labelHidden: { control: { type: 'boolean' } },\n info: { control: { type: 'text' } },\n placeholder: { control: { type: 'text' } },\n status: { options: [undefined, 'success', 'warning', 'error'], control: { type: 'select' } },\n required: { control: { type: 'boolean' } },\n disabled: { control: { type: 'boolean' } },\n readOnly: { control: { type: 'boolean' } },\n showAdditionalInfo: { control: { type: 'boolean' } }\n};\n\ninterface ConfigurableTextAreaProps {\n minHeight?: string;\n padding?: string;\n}\n\nexport const ConfigurableTextArea: Story<ConfigurableTextAreaProps> = (\n args: ConfigurableTextAreaProps\n) => {\n const [value, setValue] = useState('');\n\n return (\n <Configuration\n theme={{\n components: {\n 'text-area': {\n 'min-height': args.minHeight,\n padding: args.padding\n }\n }\n }}\n >\n <TextArea\n value={value}\n onChange={(e: ChangeEvent<HTMLTextAreaElement>) => setValue(e.target.value)}\n resizable\n autoResize\n label='Configurable Text Area'\n info='Enter a large amount of text'\n placeholder='Tell us a story…'\n />\n </Configuration>\n );\n};\n\nConfigurableTextArea.args = {\n minHeight: '3.75rem',\n padding: '0.5rem'\n};\n\nConfigurableTextArea.argTypes = {\n minHeight: { control: { type: 'text' } },\n padding: { control: { type: 'text' } }\n};\n"]}
1
+ {"version":3,"file":"TextArea.stories.jsx","sourceRoot":"","sources":["../../../src/core/TextArea/TextArea.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAe,MAAM,OAAO,CAAC;AAE9C,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAiB,MAAM,yBAAyB,CAAC;AAEjF,eAAe;IACb,KAAK,EAAE,eAAe;IACtB,SAAS,EAAE,QAAQ;IACnB,cAAc,EAAE,CAAC,sBAAsB,CAAC;CACjC,CAAC;AAMV,MAAM,CAAC,MAAM,YAAY,GAA8B,CAAC,IAAwB,EAAE,EAAE;IAClF,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC;IAEvC,OAAO,CACL,CAAC,QAAQ,CACP,cAAc,CAAC,CACb,IAAI,CAAC,kBAAkB;YACrB,CAAC,CAAC;gBACE,OAAO,EAAE,iBAAiB;gBAC1B,OAAO,EAAE,sBAAsB;aAChC;YACH,CAAC,CAAC,SAAS,CACd,CACD,EAAE,CAAC,WAAW,CACd,KAAK,CAAC,CAAC,KAAK,CAAC,CACb,QAAQ,CAAC,CAAC,CAAC,CAAmC,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAC5E,SAAS,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAC1B,SAAS,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAC1B,gBAAgB,CAAC,CAAC,IAAI,CAAC,gBAAgB,CAAC,CACxC,QAAQ,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CACxB,SA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O;iBACtB;aACF;SACF,CAAC,CAEF;MAAA,CAAC,QAAQ,CACP,KAAK,CAAC,CAAC,KAAK,CAAC,CACb,QAAQ,CAAC,CAAC,CAAC,CAAmC,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAC5E,SAAS,CACT,UAAU,CACV,KAAK,CAAC,wBAAwB,CAC9B,IAAI,CAAC,8BAA8B,CACnC,WAAW,CAAC,kBAAkB,EAElC;IAAA,EAAE,aAAa,CAAC,CACjB,CAAC;AACJ,CAAC,CAAC;AAEF,oBAAoB,CAAC,IAAI,GAAG;IAC1B,SAAS,EAAE,SAAS;IACpB,OAAO,EAAE,QAAQ;CAClB,CAAC;AAEF,oBAAoB,CAAC,QAAQ,GAAG;IAC9B,SAAS,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;IACxC,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;CACvC,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\nimport { useState, ChangeEvent } from 'react';\n\nimport { Configuration, TextArea, TextAreaProps } from '@pega/cosmos-react-core';\n\nexport default {\n title: 'Core/Textarea',\n component: TextArea,\n excludeStories: ['ConfigurableTextArea']\n} as Meta;\n\ninterface TextAreaStoryProps extends TextAreaProps {\n showAdditionalInfo?: boolean;\n}\n\nexport const TextAreaDemo: Story<TextAreaStoryProps> = (args: TextAreaStoryProps) => {\n const [value, setValue] = useState('');\n\n return (\n <TextArea\n additionalInfo={\n args.showAdditionalInfo\n ? {\n heading: 'Additional Info',\n content: 'Some additional info'\n }\n : undefined\n }\n id='text-area'\n value={value}\n onChange={(e: ChangeEvent<HTMLTextAreaElement>) => setValue(e.target.value)}\n minLength={args.minLength}\n maxLength={args.maxLength}\n displayCharCount={args.displayCharCount}\n hardStop={args.hardStop}\n resizable={args.resizable}\n autoResize={args.autoResize}\n label={args.label}\n labelHidden={args.labelHidden}\n info={args.info}\n placeholder={args.placeholder}\n status={args.status}\n required={args.required}\n disabled={args.disabled}\n readOnly={args.readOnly}\n />\n );\n};\n\nTextAreaDemo.args = {\n minLength: 0,\n maxLength: 300,\n displayCharCount: false,\n hardStop: true,\n resizable: false,\n autoResize: true,\n label: 'Text Area',\n labelHidden: false,\n info: 'Enter a large amount of text',\n placeholder: 'Tell us a story…',\n status: undefined,\n required: false,\n disabled: false,\n readOnly: false,\n showAdditionalInfo: true\n};\n\nTextAreaDemo.argTypes = {\n minLength: { control: { type: 'number' } },\n maxLength: { control: { type: 'number' } },\n displayCharCount: { control: { type: 'boolean' } },\n hardStop: { control: { type: 'boolean' } },\n resizable: { control: { type: 'boolean' } },\n autoResize: { control: { type: 'boolean' } },\n label: { control: { type: 'text' } },\n labelHidden: { control: { type: 'boolean' } },\n info: { control: { type: 'text' } },\n placeholder: { control: { type: 'text' } },\n status: { options: [undefined, 'success', 'warning', 'error'], control: { type: 'select' } },\n required: { control: { type: 'boolean' } },\n disabled: { control: { type: 'boolean' } },\n readOnly: { control: { type: 'boolean' } },\n showAdditionalInfo: { control: { type: 'boolean' } }\n};\n\ninterface ConfigurableTextAreaProps {\n minHeight?: string;\n padding?: string;\n}\n\nexport const ConfigurableTextArea: Story<ConfigurableTextAreaProps> = (\n args: ConfigurableTextAreaProps\n) => {\n const [value, setValue] = useState('');\n\n return (\n <Configuration\n theme={{\n components: {\n 'text-area': {\n 'min-height': args.minHeight,\n padding: args.padding\n }\n }\n }}\n >\n <TextArea\n value={value}\n onChange={(e: ChangeEvent<HTMLTextAreaElement>) => setValue(e.target.value)}\n resizable\n autoResize\n label='Configurable Text Area'\n info='Enter a large amount of text'\n placeholder='Tell us a story…'\n />\n </Configuration>\n );\n};\n\nConfigurableTextArea.args = {\n minHeight: '3.75rem',\n padding: '0.5rem'\n};\n\nConfigurableTextArea.argTypes = {\n minHeight: { control: { type: 'text' } },\n padding: { control: { type: 'text' } }\n};\n"]}
@@ -1,5 +1,5 @@
1
1
  import { Meta, Story } from '@storybook/react';
2
- declare const _default: Meta<import("@storybook/react").Args>;
2
+ declare const _default: Meta;
3
3
  export default _default;
4
4
  export declare const ToasterDemo: Story;
5
5
  //# sourceMappingURL=Toaster.stories.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import { Meta, Story } from '@storybook/react';
2
- declare const _default: Meta<import("@storybook/react").Args>;
2
+ declare const _default: Meta;
3
3
  export default _default;
4
4
  export declare const TooltipDemo: Story;
5
5
  interface ConfigurableTooltipProps {
@@ -7,4 +7,5 @@ interface ConfigurableTooltipProps {
7
7
  backgroundColor?: string;
8
8
  }
9
9
  export declare const ConfigurableTooltip: Story<ConfigurableTooltipProps>;
10
+ export declare const SmartTooltip: Story;
10
11
  //# sourceMappingURL=Tooltip.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Tooltip.stories.d.ts","sourceRoot":"","sources":["../../../src/core/Tooltip/Tooltip.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;;AAI/C,wBAIU;AAEV,eAAO,MAAM,WAAW,EAAE,KAgBzB,CAAC;AAEF,UAAU,wBAAwB;IAChC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,wBAAwB,CA2B/D,CAAC"}
1
+ {"version":3,"file":"Tooltip.stories.d.ts","sourceRoot":"","sources":["../../../src/core/Tooltip/Tooltip.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;;AAM/C,wBAIU;AAEV,eAAO,MAAM,WAAW,EAAE,KAgBzB,CAAC;AAEF,UAAU,wBAAwB;IAChC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,wBAAwB,CA2B/D,CAAC;AAYF,eAAO,MAAM,YAAY,EAAE,KAyB1B,CAAC"}
@@ -1,4 +1,5 @@
1
- import { Button, Configuration, Tooltip, useElement } from '@pega/cosmos-react-core';
1
+ import { Button, Configuration, Flex, Tooltip, useElement } from '@pega/cosmos-react-core';
2
+ import { ResizeableEl } from './Tooltip.styles';
2
3
  export default {
3
4
  title: 'Core/Tooltip',
4
5
  component: Tooltip,
@@ -43,4 +44,23 @@ ConfigurableTooltip.argTypes = {
43
44
  foregroundColor: { control: { type: 'color' } },
44
45
  backgroundColor: { control: { type: 'color' } }
45
46
  };
47
+ export const SmartTooltip = () => {
48
+ const [el1, setEl1] = useElement();
49
+ const [el2, setEl2] = useElement();
50
+ const textContent1 = 'Resize me and hover: Lorem ipsum dolor sit amet';
51
+ const textContent2 = 'Hover or focus me: Lorem ipsum dolor sit amet';
52
+ return (<Flex container={{ direction: 'column', gap: 4 }}>
53
+ <ResizeableEl ref={setEl1}>{textContent1}</ResizeableEl>
54
+ {el1 && (<Tooltip target={el1} smart showDelay='none' hideDelay='none'>
55
+ {textContent1}
56
+ </Tooltip>)}
57
+
58
+ <Button as={ResizeableEl} variant='link' ref={setEl2}>
59
+ {textContent2}
60
+ </Button>
61
+ {el2 && (<Tooltip target={el2} smart showDelay='none' hideDelay='none'>
62
+ {textContent2}
63
+ </Tooltip>)}
64
+ </Flex>);
65
+ };
46
66
  //# sourceMappingURL=Tooltip.stories.jsx.map
@@ -1 +1 @@
1
- {"version":3,"file":"Tooltip.stories.jsx","sourceRoot":"","sources":["../../../src/core/Tooltip/Tooltip.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAErF,eAAe;IACb,KAAK,EAAE,cAAc;IACrB,SAAS,EAAE,OAAO;IAClB,cAAc,EAAE,CAAC,qBAAqB,CAAC;CAChC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AI,EAAE,OAAO,EAAE,EAAE;CAChD,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\n\nimport { Button, Configuration, Tooltip, useElement } from '@pega/cosmos-react-core';\n\nexport default {\n title: 'Core/Tooltip',\n component: Tooltip,\n excludeStories: ['ConfigurableTooltip']\n} as Meta;\n\nexport const TooltipDemo: Story = () => {\n const [el, setEl] = useElement();\n\n return (\n <>\n <Button ref={setEl}>Hover me</Button>\n\n {el && (\n <Tooltip target={el}>\n Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur finibus scelerisque\n viverra. Fusce consequat, justo at laoreet lobortis, mauris ipsum aliquet arcu, non\n convallis nisl elit id erat. Pellentesque posuere sagittis velit a molestie.\n </Tooltip>\n )}\n </>\n );\n};\n\ninterface ConfigurableTooltipProps {\n foregroundColor?: string;\n backgroundColor?: string;\n}\n\nexport const ConfigurableTooltip: Story<ConfigurableTooltipProps> = (\n args: ConfigurableTooltipProps\n) => {\n const [el, setEl] = useElement();\n\n return (\n <Configuration\n theme={{\n components: {\n tooltip: {\n 'foreground-color': args.foregroundColor,\n 'background-color': args.backgroundColor\n }\n }\n }}\n >\n <Button ref={setEl}>Hover me</Button>\n\n {el && (\n <Tooltip target={el}>\n Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur finibus scelerisque\n viverra. Fusce consequat, justo at laoreet lobortis, mauris ipsum aliquet arcu, non\n convallis nisl elit id erat. Pellentesque posuere sagittis velit a molestie.\n </Tooltip>\n )}\n </Configuration>\n );\n};\n\nConfigurableTooltip.args = {\n foregroundColor: '#f5f5f5',\n backgroundColor: '#3f3f3f'\n};\n\nConfigurableTooltip.argTypes = {\n foregroundColor: { control: { type: 'color' } },\n backgroundColor: { control: { type: 'color' } }\n};\n"]}
1
+ {"version":3,"file":"Tooltip.stories.jsx","sourceRoot":"","sources":["../../../src/core/Tooltip/Tooltip.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,IAAI,E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UAAA,CAAC,YAAY,CACf;QAAA,EAAE,OAAO,CAAC,CACX,CACH;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\n\nimport { Button, Configuration, Flex, Tooltip, useElement } from '@pega/cosmos-react-core';\n\nimport { ResizeableEl } from './Tooltip.styles';\n\nexport default {\n title: 'Core/Tooltip',\n component: Tooltip,\n excludeStories: ['ConfigurableTooltip']\n} as Meta;\n\nexport const TooltipDemo: Story = () => {\n const [el, setEl] = useElement();\n\n return (\n <>\n <Button ref={setEl}>Hover me</Button>\n\n {el && (\n <Tooltip target={el}>\n Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur finibus scelerisque\n viverra. Fusce consequat, justo at laoreet lobortis, mauris ipsum aliquet arcu, non\n convallis nisl elit id erat. Pellentesque posuere sagittis velit a molestie.\n </Tooltip>\n )}\n </>\n );\n};\n\ninterface ConfigurableTooltipProps {\n foregroundColor?: string;\n backgroundColor?: string;\n}\n\nexport const ConfigurableTooltip: Story<ConfigurableTooltipProps> = (\n args: ConfigurableTooltipProps\n) => {\n const [el, setEl] = useElement();\n\n return (\n <Configuration\n theme={{\n components: {\n tooltip: {\n 'foreground-color': args.foregroundColor,\n 'background-color': args.backgroundColor\n }\n }\n }}\n >\n <Button ref={setEl}>Hover me</Button>\n\n {el && (\n <Tooltip target={el}>\n Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur finibus scelerisque\n viverra. Fusce consequat, justo at laoreet lobortis, mauris ipsum aliquet arcu, non\n convallis nisl elit id erat. Pellentesque posuere sagittis velit a molestie.\n </Tooltip>\n )}\n </Configuration>\n );\n};\n\nConfigurableTooltip.args = {\n foregroundColor: '#f5f5f5',\n backgroundColor: '#3f3f3f'\n};\n\nConfigurableTooltip.argTypes = {\n foregroundColor: { control: { type: 'color' } },\n backgroundColor: { control: { type: 'color' } }\n};\n\nexport const SmartTooltip: Story = () => {\n const [el1, setEl1] = useElement();\n const [el2, setEl2] = useElement();\n const textContent1 = 'Resize me and hover: Lorem ipsum dolor sit amet';\n const textContent2 = 'Hover or focus me: Lorem ipsum dolor sit amet';\n\n return (\n <Flex container={{ direction: 'column', gap: 4 }}>\n <ResizeableEl ref={setEl1}>{textContent1}</ResizeableEl>\n {el1 && (\n <Tooltip target={el1} smart showDelay='none' hideDelay='none'>\n {textContent1}\n </Tooltip>\n )}\n\n <Button as={ResizeableEl} variant='link' ref={setEl2}>\n {textContent2}\n </Button>\n {el2 && (\n <Tooltip target={el2} smart showDelay='none' hideDelay='none'>\n {textContent2}\n </Tooltip>\n )}\n </Flex>\n );\n};\n"]}
@@ -0,0 +1,2 @@
1
+ export declare const ResizeableEl: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
2
+ //# sourceMappingURL=Tooltip.styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Tooltip.styles.d.ts","sourceRoot":"","sources":["../../../src/core/Tooltip/Tooltip.styles.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,YAAY,yGAkBvB,CAAC"}
@@ -0,0 +1,23 @@
1
+ import styled, { css } from 'styled-components';
2
+ import { defaultThemeProp } from '@pega/cosmos-react-core/lib/theme';
3
+ export const ResizeableEl = styled.div(({ theme }) => {
4
+ return css `
5
+ position: relative;
6
+ display: inline-block;
7
+ resize: horizontal;
8
+ width: 26ch;
9
+ overflow: hidden;
10
+ white-space: nowrap;
11
+ text-overflow: ellipsis;
12
+
13
+ &::after {
14
+ content: '';
15
+ display: block;
16
+ position: absolute;
17
+ inset: 0;
18
+ border: 0.0625rem dashed ${theme.base.palette['border-line']};
19
+ }
20
+ `;
21
+ });
22
+ ResizeableEl.defaultProps = defaultThemeProp;
23
+ //# sourceMappingURL=Tooltip.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Tooltip.styles.js","sourceRoot":"","sources":["../../../src/core/Tooltip/Tooltip.styles.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AAErE,MAAM,CAAC,MAAM,YAAY,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE;IACnD,OAAO,GAAG,CAAA;;;;;;;;;;;;;;iCAcqB,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC;;GAE/D,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,YAAY,CAAC,YAAY,GAAG,gBAAgB,CAAC","sourcesContent":["import styled, { css } from 'styled-components';\n\nimport { defaultThemeProp } from '@pega/cosmos-react-core/lib/theme';\n\nexport const ResizeableEl = styled.div(({ theme }) => {\n return css`\n position: relative;\n display: inline-block;\n resize: horizontal;\n width: 26ch;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n\n &::after {\n content: '';\n display: block;\n position: absolute;\n inset: 0;\n border: 0.0625rem dashed ${theme.base.palette['border-line']};\n }\n `;\n});\n\nResizeableEl.defaultProps = defaultThemeProp;\n"]}
@@ -1,7 +1,7 @@
1
1
  import { Meta, Story } from '@storybook/react';
2
2
  import { StandardTreeProps } from '@pega/cosmos-react-core';
3
- declare const _default: Meta<import("@storybook/react").Args>;
3
+ declare const _default: Meta;
4
4
  export default _default;
5
5
  export declare const BaseTree: Story;
6
- export declare const StandardTreeDemo: Story<Pick<StandardTreeProps, 'lined'>>;
6
+ export declare const StandardTreeDemo: Story<Pick<StandardTreeProps, 'lined' | 'selectableParents'>>;
7
7
  //# sourceMappingURL=Tree.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Tree.stories.d.ts","sourceRoot":"","sources":["../../../src/core/Tree/Tree.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAE/C,OAAO,EAGL,iBAAiB,EAMlB,MAAM,yBAAyB,CAAC;;AAKjC,wBAGU;AAEV,eAAO,MAAM,QAAQ,EAAE,KActB,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,IAAI,CAAC,iBAAiB,EAAE,OAAO,CAAC,CAyGpE,CAAC"}
1
+ {"version":3,"file":"Tree.stories.d.ts","sourceRoot":"","sources":["../../../src/core/Tree/Tree.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAE/C,OAAO,EAGL,iBAAiB,EAMlB,MAAM,yBAAyB,CAAC;;AAKjC,wBAGU;AAEV,eAAO,MAAM,QAAQ,EAAE,KActB,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,IAAI,CAAC,iBAAiB,EAAE,OAAO,GAAG,mBAAmB,CAAC,CA4F1F,CAAC"}
@@ -16,6 +16,7 @@ export const BaseTree = () => {
16
16
  }}/>);
17
17
  };
18
18
  export const StandardTreeDemo = (args) => {
19
+ const [currentNodeId, setCurrentNodeId] = useState();
19
20
  const getMockNodes = ({ length = 5, parent = true } = {}) => {
20
21
  return Array.from({ length }, (_, i) => {
21
22
  const isParent = parent && i !== 2;
@@ -34,11 +35,11 @@ export const StandardTreeDemo = (args) => {
34
35
  ? undefined
35
36
  : nodeId => {
36
37
  action(`Action for node: ${nodeId}`)();
37
- }
38
+ },
39
+ href: !args.selectableParents && isParent ? undefined : `#${id}`
38
40
  };
39
41
  });
40
42
  };
41
- const [currentNodeId, setCurrentNodeId] = useState();
42
43
  const [allNodes, setAllNodes] = useState(() => {
43
44
  return getMockNodes({ length: 10 });
44
45
  });
@@ -61,20 +62,9 @@ export const StandardTreeDemo = (args) => {
61
62
  });
62
63
  };
63
64
  return (<>
64
- <StandardTree lined={args.lined} currentNodeId={currentNodeId} nodes={allNodes} onNodeClick={id => {
65
- const clickedNode = treeHelpers.getNode(allNodes, id);
65
+ <StandardTree lined={args.lined} currentNodeId={currentNodeId} nodes={allNodes} onNodeClick={(id, e) => {
66
+ e.preventDefault();
66
67
  setCurrentNodeId(id);
67
- if (!clickedNode?.nodes)
68
- return;
69
- setAllNodes(tree => treeHelpers.mapNode(tree, id, node => {
70
- return {
71
- ...node,
72
- loading: node.nodes?.length === 0
73
- };
74
- }));
75
- if (clickedNode?.nodes?.length > 0)
76
- return;
77
- loadChildNodes(id);
78
68
  }} onNodeToggle={id => {
79
69
  const clickedNode = treeHelpers.getNode(allNodes, id);
80
70
  if (!clickedNode?.nodes)
@@ -89,15 +79,17 @@ export const StandardTreeDemo = (args) => {
89
79
  if (clickedNode?.nodes?.length > 0)
90
80
  return;
91
81
  loadChildNodes(id);
92
- }}/>
82
+ }} selectableParents={args.selectableParents}/>
93
83
  <Button onClick={() => expandTo('')}>Collapse All</Button>
94
84
  <Button onClick={() => expandTo(currentNodeId || '')}>Expand to active item</Button>
95
85
  </>);
96
86
  };
97
87
  StandardTreeDemo.args = {
98
- lined: false
88
+ lined: false,
89
+ selectableParents: true
99
90
  };
100
91
  StandardTreeDemo.argTypes = {
101
- lined: { control: { type: 'boolean' } }
92
+ lined: { control: { type: 'boolean' } },
93
+ selectableParents: { control: { type: 'boolean' } }
102
94
  };
103
95
  //# sourceMappingURL=Tree.stories.jsx.map
@@ -1 +1 @@
1
- {"version":3,"file":"Tree.stories.jsx","sourceRoot":"","sources":["../../../src/core/Tree/Tree.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAGlD,OAAO,EACL,MAAM,EACN,YAAY,EAEZ,IAAI,EAEJ,WAAW,EACX,SAAS,EACT,eAAe,EAChB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAE/C,eAAe;IACb,KAAK,EAAE,W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AE,KAAK,EAAE,MAAM,GAAG,CAAC;gBAAE,OAAO;YAE3C,cAAc,CAAC,EAAE,CAAC,CAAC;QACrB,CAAC,CAAC,EAEJ;MAAA,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,CAAC,YAAY,EAAE,MAAM,CACzD;MAAA,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC,aAAa,IAAI,EAAE,CAAC,CAAC,CAAC,qBAAqB,EAAE,MAAM,CACrF;IAAA,GAAG,CACJ,CAAC;AACJ,CAAC,CAAC;AAEF,gBAAgB,CAAC,IAAI,GAAG;IACtB,KAAK,EAAE,KAAK;CACb,CAAC;AAEF,gBAAgB,CAAC,QAAQ,GAAG;IAC1B,KAAK,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;CACxC,CAAC","sourcesContent":["import { useState } from 'react';\nimport { action } from '@storybook/addon-actions';\nimport { Meta, Story } from '@storybook/react';\n\nimport {\n Button,\n StandardTree,\n StandardTreeProps,\n Tree,\n TreeNode,\n treeHelpers,\n createUID,\n themeDefinition\n} from '@pega/cosmos-react-core';\n\nimport { themeToTree } from './Tree.mocks';\nimport { StyledBaseTree } from './Tree.styles';\n\nexport default {\n title: 'Core/Tree',\n component: Tree\n} as Meta;\n\nexport const BaseTree: Story = () => {\n return (\n <StyledBaseTree\n nodes={themeToTree(themeDefinition)}\n nodeRenderer={({ id, subTree }) => {\n return (\n <>\n <span>{id}</span>\n {subTree}\n </>\n );\n }}\n />\n );\n};\n\nexport const StandardTreeDemo: Story<Pick<StandardTreeProps, 'lined'>> = (\n args: Pick<StandardTreeProps, 'lined'>\n) => {\n const getMockNodes = ({\n length = 5,\n parent = true\n }: { length?: number; parent?: boolean } = {}): StandardTreeProps['nodes'] => {\n return Array.from({ length }, (_, i) => {\n const isParent = parent && i !== 2;\n const id = createUID();\n return {\n id,\n label: isParent ? 'Parent' : 'Leaf',\n icon: isParent ? 'folder-solid' : 'document-solid',\n secondary: 'This is secondary text',\n nodes: isParent ? [] : undefined,\n actions: [\n { id: 'star', text: 'Star', icon: 'star', onClick: action(`Star node: ${id}`) },\n { id: 'pin', text: 'Pin', icon: 'pin', onClick: action(`Pin node: ${id}`) }\n ],\n onClick: isParent\n ? undefined\n : nodeId => {\n action(`Action for node: ${nodeId}`)();\n }\n };\n });\n };\n\n const [currentNodeId, setCurrentNodeId] = useState<string | undefined>();\n const [allNodes, setAllNodes] = useState<StandardTreeProps['nodes']>(() => {\n return getMockNodes({ length: 10 });\n });\n\n const loadChildNodes = (id: string) => {\n setTimeout(() => {\n setAllNodes(tree => {\n return treeHelpers.mapNode(tree, id, node => {\n return {\n ...node,\n loading: false,\n nodes: [...(node.nodes ?? []), ...getMockNodes()]\n };\n });\n });\n }, 1000);\n };\n\n const expandTo = (id: TreeNode['id']) => {\n setAllNodes(tree => {\n return treeHelpers.expandTo(tree, id);\n });\n };\n\n return (\n <>\n <StandardTree\n lined={args.lined}\n currentNodeId={currentNodeId}\n nodes={allNodes}\n onNodeClick={id => {\n const clickedNode = treeHelpers.getNode(allNodes, id);\n setCurrentNodeId(id);\n // If a leaf node, just set to current\n if (!clickedNode?.nodes) return;\n\n setAllNodes(tree =>\n treeHelpers.mapNode(tree, id, node => {\n return {\n ...node,\n loading: node.nodes?.length === 0\n };\n })\n );\n\n // If a parent node with children already loaded, we're done.\n if (clickedNode?.nodes?.length > 0) return;\n\n loadChildNodes(id);\n }}\n onNodeToggle={id => {\n const clickedNode = treeHelpers.getNode(allNodes, id);\n // If a leaf node, just set to current\n if (!clickedNode?.nodes) return;\n\n setAllNodes(tree =>\n treeHelpers.mapNode(tree, id, node => {\n return {\n ...node,\n expanded: !node.expanded,\n loading: node.nodes?.length === 0\n };\n })\n );\n\n // If a parent node with children already loaded, we're done.\n if (clickedNode?.nodes?.length > 0) return;\n\n loadChildNodes(id);\n }}\n />\n <Button onClick={() => expandTo('')}>Collapse All</Button>\n <Button onClick={() => expandTo(currentNodeId || '')}>Expand to active item</Button>\n </>\n );\n};\n\nStandardTreeDemo.args = {\n lined: false\n};\n\nStandardTreeDemo.argTypes = {\n lined: { control: { type: 'boolean' } }\n};\n"]}
1
+ {"version":3,"file":"Tree.stories.jsx","sourceRoot":"","sources":["../../../src/core/Tree/Tree.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAGlD,OAAO,EACL,MAAM,EACN,YAAY,EAEZ,IAAI,EAEJ,WAAW,EACX,SAAS,EACT,eAAe,EAChB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAE/C,eAAe;IACb,KAAK,EAAE,WAAW;IAClB,SAAS,EAAE,IAAI;CACR,CAAC;AAEV,MAAM,CAAC,MAAM,QAAQ,GAAU,GAAG,EAAE;IAClC,OAAO,CACL,CAAC,cAAc,CACb,KAAK,CAAC,CAAC,WAAW,CAAC,eAAe,CAAC,CAAC,CACpC,YAAY,CAAC,CAAC,CAAC,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;YAChC,OAAO,CACL,EACE;YAAA,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,IAAI,CAChB;YAAA,CAAC,OAAO,CACV;UAAA,GAAG,CACJ,CAAC;QACJ,CAAC,CAAC,EACF,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAkE,CAC7F,IAA4D,EAC5D,EAAE;IACF,MAAM,CAAC,aAAa,EAAE,gBAAgB,CAAC,GAAG,QAAQ,EAAsB,CAAC;IAEzE,MAAM,YAAY,GAAG,CAAC,EACpB,MAAM,GAAG,CAAC,EACV,MAAM,G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C,WAAW,CAAC,IAAI,CAAC,EAAE,CACjB,WAAW,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,EAAE;gBACnC,OAAO;oBACL,GAAG,IAAI;oBACP,QAAQ,EAAE,CAAC,IAAI,CAAC,QAAQ;oBACxB,OAAO,EAAE,IAAI,CAAC,KAAK,EAAE,MAAM,KAAK,CAAC;iBAClC,CAAC;YACJ,CAAC,CAAC,CACH,CAAC;YAGF,IAAI,WAAW,EAAE,KAAK,EAAE,MAAM,GAAG,CAAC;gBAAE,OAAO;YAE3C,cAAc,CAAC,EAAE,CAAC,CAAC;QACrB,CAAC,CAAC,CACF,iBAAiB,CAAC,CAAC,IAAI,CAAC,iBAAiB,CAAC,EAE5C;MAAA,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,CAAC,YAAY,EAAE,MAAM,CACzD;MAAA,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC,aAAa,IAAI,EAAE,CAAC,CAAC,CAAC,qBAAqB,EAAE,MAAM,CACrF;IAAA,GAAG,CACJ,CAAC;AACJ,CAAC,CAAC;AAEF,gBAAgB,CAAC,IAAI,GAAG;IACtB,KAAK,EAAE,KAAK;IACZ,iBAAiB,EAAE,IAAI;CACxB,CAAC;AAEF,gBAAgB,CAAC,QAAQ,GAAG;IAC1B,KAAK,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IACvC,iBAAiB,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;CACpD,CAAC","sourcesContent":["import { useState } from 'react';\nimport { action } from '@storybook/addon-actions';\nimport { Meta, Story } from '@storybook/react';\n\nimport {\n Button,\n StandardTree,\n StandardTreeProps,\n Tree,\n TreeNode,\n treeHelpers,\n createUID,\n themeDefinition\n} from '@pega/cosmos-react-core';\n\nimport { themeToTree } from './Tree.mocks';\nimport { StyledBaseTree } from './Tree.styles';\n\nexport default {\n title: 'Core/Tree',\n component: Tree\n} as Meta;\n\nexport const BaseTree: Story = () => {\n return (\n <StyledBaseTree\n nodes={themeToTree(themeDefinition)}\n nodeRenderer={({ id, subTree }) => {\n return (\n <>\n <span>{id}</span>\n {subTree}\n </>\n );\n }}\n />\n );\n};\n\nexport const StandardTreeDemo: Story<Pick<StandardTreeProps, 'lined' | 'selectableParents'>> = (\n args: Pick<StandardTreeProps, 'lined' | 'selectableParents'>\n) => {\n const [currentNodeId, setCurrentNodeId] = useState<string | undefined>();\n\n const getMockNodes = ({\n length = 5,\n parent = true\n }: { length?: number; parent?: boolean } = {}): StandardTreeProps['nodes'] => {\n return Array.from({ length }, (_, i) => {\n const isParent = parent && i !== 2;\n const id = createUID();\n return {\n id,\n label: isParent ? 'Parent' : 'Leaf',\n icon: isParent ? 'folder-solid' : 'document-solid',\n secondary: 'This is secondary text',\n nodes: isParent ? [] : undefined,\n actions: [\n { id: 'star', text: 'Star', icon: 'star', onClick: action(`Star node: ${id}`) },\n { id: 'pin', text: 'Pin', icon: 'pin', onClick: action(`Pin node: ${id}`) }\n ],\n onClick: isParent\n ? undefined\n : nodeId => {\n action(`Action for node: ${nodeId}`)();\n },\n href: !args.selectableParents && isParent ? undefined : `#${id}`\n };\n });\n };\n\n const [allNodes, setAllNodes] = useState<StandardTreeProps['nodes']>(() => {\n return getMockNodes({ length: 10 });\n });\n\n const loadChildNodes = (id: string) => {\n setTimeout(() => {\n setAllNodes(tree => {\n return treeHelpers.mapNode(tree, id, node => {\n return {\n ...node,\n loading: false,\n nodes: [...(node.nodes ?? []), ...getMockNodes()]\n };\n });\n });\n }, 1000);\n };\n\n const expandTo = (id: TreeNode['id']) => {\n setAllNodes(tree => {\n return treeHelpers.expandTo(tree, id);\n });\n };\n\n return (\n <>\n <StandardTree\n lined={args.lined}\n currentNodeId={currentNodeId}\n nodes={allNodes}\n onNodeClick={(id, e) => {\n e.preventDefault();\n setCurrentNodeId(id);\n }}\n onNodeToggle={id => {\n const clickedNode = treeHelpers.getNode(allNodes, id);\n // If a leaf node, just set to current\n if (!clickedNode?.nodes) return;\n\n setAllNodes(tree =>\n treeHelpers.mapNode(tree, id, node => {\n return {\n ...node,\n expanded: !node.expanded,\n loading: node.nodes?.length === 0\n };\n })\n );\n\n // If a parent node with children already loaded, we're done.\n if (clickedNode?.nodes?.length > 0) return;\n\n loadChildNodes(id);\n }}\n selectableParents={args.selectableParents}\n />\n <Button onClick={() => expandTo('')}>Collapse All</Button>\n <Button onClick={() => expandTo(currentNodeId || '')}>Expand to active item</Button>\n </>\n );\n};\n\nStandardTreeDemo.args = {\n lined: false,\n selectableParents: true\n};\n\nStandardTreeDemo.argTypes = {\n lined: { control: { type: 'boolean' } },\n selectableParents: { control: { type: 'boolean' } }\n};\n"]}
@@ -1,6 +1,6 @@
1
1
  import { Meta, Story } from '@storybook/react';
2
2
  import { URLDisplayProps } from '@pega/cosmos-react-core';
3
- declare const _default: Meta<import("@storybook/react").Args>;
3
+ declare const _default: Meta;
4
4
  export default _default;
5
5
  export declare const URLDisplayDemo: Story<URLDisplayProps>;
6
6
  //# sourceMappingURL=URL.stories.d.ts.map
@@ -12,6 +12,6 @@ URLDisplayDemo.args = {
12
12
  URLDisplayDemo.argTypes = {
13
13
  value: { control: { type: 'text' } },
14
14
  displayText: { control: { type: 'text' } },
15
- variant: { options: ['link', 'text'], control: { type: 'select' } }
15
+ variant: { options: ['link', 'text', 'qrcode'], control: { type: 'select' } }
16
16
  };
17
17
  //# sourceMappingURL=URL.stories.jsx.map
@@ -1 +1 @@
1
- {"version":3,"file":"URL.stories.jsx","sourceRoot":"","sources":["../../../src/core/URL/URL.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAmB,MAAM,yBAAyB,CAAC;AAEtE,eAAe;IACb,KAAK,EAAE,UAAU;IACjB,SAAS,EAAE,UAAU;CACd,CAAC;AAEV,MAAM,CAAC,MAAM,cAAc,GAA2B,CAAC,IAAqB,EAAE,EAAE,CAAC,CAC/E,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,EAAG,CACxF,CAAC;AAEF,cAAc,CAAC,IAAI,GAAG;IACpB,KAAK,EAAE,yBAAyB;IAChC,WAAW,EAAE,aAAa;IAC1B,OAAO,EAAE,MAAM;CAChB,CAAC;AAEF,cAAc,CAAC,QAAQ,GAAG;IACxB,KAAK,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;IACpC,WAAW,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;IAC1C,OAAO,EAAE,EAAE,OAAO,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;CACpE,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\n\nimport { URLDisplay, URLDisplayProps } from '@pega/cosmos-react-core';\n\nexport default {\n title: 'Core/URL',\n component: URLDisplay\n} as Meta;\n\nexport const URLDisplayDemo: Story<URLDisplayProps> = (args: URLDisplayProps) => (\n <URLDisplay value={args.value} displayText={args.displayText} variant={args.variant} />\n);\n\nURLDisplayDemo.args = {\n value: 'https://www.google.com/',\n displayText: 'Example URL',\n variant: 'link'\n};\n\nURLDisplayDemo.argTypes = {\n value: { control: { type: 'text' } },\n displayText: { control: { type: 'text' } },\n variant: { options: ['link', 'text'], control: { type: 'select' } }\n};\n"]}
1
+ {"version":3,"file":"URL.stories.jsx","sourceRoot":"","sources":["../../../src/core/URL/URL.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAmB,MAAM,yBAAyB,CAAC;AAEtE,eAAe;IACb,KAAK,EAAE,UAAU;IACjB,SAAS,EAAE,UAAU;CACd,CAAC;AAEV,MAAM,CAAC,MAAM,cAAc,GAA2B,CAAC,IAAqB,EAAE,EAAE,CAAC,CAC/E,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,EAAG,CACxF,CAAC;AAEF,cAAc,CAAC,IAAI,GAAG;IACpB,KAAK,EAAE,yBAAyB;IAChC,WAAW,EAAE,aAAa;IAC1B,OAAO,EAAE,MAAM;CAChB,CAAC;AAEF,cAAc,CAAC,QAAQ,GAAG;IACxB,KAAK,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;IACpC,WAAW,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;IAC1C,OAAO,EAAE,EAAE,OAAO,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;CAC9E,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\n\nimport { URLDisplay, URLDisplayProps } from '@pega/cosmos-react-core';\n\nexport default {\n title: 'Core/URL',\n component: URLDisplay\n} as Meta;\n\nexport const URLDisplayDemo: Story<URLDisplayProps> = (args: URLDisplayProps) => (\n <URLDisplay value={args.value} displayText={args.displayText} variant={args.variant} />\n);\n\nURLDisplayDemo.args = {\n value: 'https://www.google.com/',\n displayText: 'Example URL',\n variant: 'link'\n};\n\nURLDisplayDemo.argTypes = {\n value: { control: { type: 'text' } },\n displayText: { control: { type: 'text' } },\n variant: { options: ['link', 'text', 'qrcode'], control: { type: 'select' } }\n};\n"]}
@@ -1,11 +1,11 @@
1
1
  export const ArticleMockData = {
2
2
  fullArticleContent: {
3
- header: '5 Tips for handling a Difficult customer',
4
- abstract: '5 Tips for handling a Difficult customer. This will give you clear guidelines to deal with a customer',
5
- content: "<p>Changing your monthly billing cycle can help you better manage your monthly bills and when you pay them. U+Comm offers 3 main billing cycles with due dates falling on the 1st, 15th, or the 28th of each month. This provides our customers with flexibility when choosing a billing cycle and corresponding due date that matches your personal finance planning.If you change an existing bill cycle, there will generally be a number of days prorated to compensate from the gap from the end of the previous bill cycle to when the new bill cycle is started. This proration will be included in your next (new) billing cycle statement, and will cause an increase in that month’s payment due. But rest assured, you’re not being charged ‘extra’, but paying for the days that were between the old and new billing cycle dates.</p><br/><div>Find more details from this article <a data-article-id='5' href='#'>How to sell a product</a></div><br/><div>Find some suggestions from this article <a data-article-id='8' href='#'>How to convince a customer</a></div><br/><div><b>Before you change your billing cycle, be aware that:</b> </div><br/><ul><li>Your billing cycle can't be changed if your account is in a delinquent status, or if the account will fall delinquent before the requested change date.</li><li>If you have a payment arrangement set up, the payment arrangement must be made before the billing cycle is changed.</li><li>If you have AutoPay, you may see two AutoPay drafts in one month due to the billing cycle change.</li><li>When a billing cycle change is made, prorated charges will occur.</li><li>Your billing cycle can't be changed if your account is in a delinquent status, or if the account will fall delinquent before the requested change date.</li><li>If you have a payment arrangement set up, the payment arrangement must be made before the billing cycle is changed.</li><li>If you have AutoPay, you may see two AutoPay drafts in one month due to the billing cycle change.</li><li>When a billing cycle change is made, prorated charges will occur.</li></ul><br/><p>If you change an existing bill cycle, there will generally be a number of days prorated to compensate from the gap from the end of the previous bill cycle to when the new bill cycle is started. This proration will be included in your next (new) billing cycle statement, and will cause an increase in that month’s payment due. But rest assured, you’re not being charged ‘extra’, but paying for the days that were between the old and new billing cycle dates.</p>",
3
+ header: 'How to change monthly billing cycle',
4
+ abstract: 'How to change monthly billing cycle. This will give you clear guidelines to change billing cycle',
5
+ content: "<p>Changing your monthly billing cycle can help you better manage your monthly bills and when you pay them. U+Comm offers 3 main billing cycles with due dates falling on the 1st, 15th, or the 28th of each month. This provides our customers with flexibility when choosing a billing cycle and corresponding due date that matches your personal finance planning.If you change an existing bill cycle, there will generally be a number of days prorated to compensate from the gap from the end of the previous bill cycle to when the new bill cycle is started. This proration will be included in your next (new) billing cycle statement, and will cause an increase in that month’s payment due. But rest assured, you’re not being charged ‘extra’, but paying for the days that were between the old and new billing cycle dates.</p><div>Find more details from this article <a data-article-id='5' href='#'>How to sell a product</a></div><div>Find some suggestions from this article <a data-article-id='8' href='#'>How to convince a customer</a></div><div><b>Before you change your billing cycle, be aware that:</b> </div><ul><li>Your billing cycle can't be changed if your account is in a delinquent status, or if the account will fall delinquent before the requested change date.</li><li>If you have a payment arrangement set up, the payment arrangement must be made before the billing cycle is changed.</li><li>If you have AutoPay, you may see two AutoPay drafts in one month due to the billing cycle change.</li><li>When a billing cycle change is made, prorated charges will occur.</li><li>Your billing cycle can't be changed if your account is in a delinquent status, or if the account will fall delinquent before the requested change date.</li><li>If you have a payment arrangement set up, the payment arrangement must be made before the billing cycle is changed.</li><li>If you have AutoPay, you may see two AutoPay drafts in one month due to the billing cycle change.</li><li>When a billing cycle change is made, prorated charges will occur.</li></ul><p>If you change an existing bill cycle, there will generally be a number of days prorated to compensate from the gap from the end of the previous bill cycle to when the new bill cycle is started. This proration will be included in your next (new) billing cycle statement, and will cause an increase in that month’s payment due. But rest assured, you’re not being charged ‘extra’, but paying for the days that were between the old and new billing cycle dates.</p>",
6
6
  meta: {
7
7
  category: 'Banking and Retail',
8
- publishedDate: '12/12/2019',
8
+ publishedDate: '2023-04-06',
9
9
  likes: 124,
10
10
  disLikes: 47
11
11
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Article.mocks.js","sourceRoot":"","sources":["../../../src/cs/Article/Article.mocks.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,kBAAkB,EAAE;QAClB,MAAM,EAAE,0CAA0C;QAClD,QAAQ,EACN,uGAAuG;QACzG,OAAO,EACL,2+EAA2+E;QAC7+E,IAAI,EAAE;YACJ,QAAQ,EAAE,oBAAoB;YAC9B,aAAa,EAAE,YAAY;YAC3B,KAAK,EAAE,GAAG;YACV,QAAQ,EAAE,EAAE;SACb;KACF;CACF,CAAC","sourcesContent":["export const ArticleMockData = {\n fullArticleContent: {\n header: '5 Tips for handling a Difficult customer',\n abstract:\n '5 Tips for handling a Difficult customer. This will give you clear guidelines to deal with a customer',\n content:\n \"<p>Changing your monthly billing cycle can help you better manage your monthly bills and when you pay them. U+Comm offers 3 main billing cycles with due dates falling on the 1st, 15th, or the 28th of each month. This provides our customers with flexibility when choosing a billing cycle and corresponding due date that matches your personal finance planning.If you change an existing bill cycle, there will generally be a number of days prorated to compensate from the gap from the end of the previous bill cycle to when the new bill cycle is started. This proration will be included in your next (new) billing cycle statement, and will cause an increase in that month’s payment due. But rest assured, you’re not being charged ‘extra’, but paying for the days that were between the old and new billing cycle dates.</p><br/><div>Find more details from this article <a data-article-id='5' href='#'>How to sell a product</a></div><br/><div>Find some suggestions from this article <a data-article-id='8' href='#'>How to convince a customer</a></div><br/><div><b>Before you change your billing cycle, be aware that:</b> </div><br/><ul><li>Your billing cycle can't be changed if your account is in a delinquent status, or if the account will fall delinquent before the requested change date.</li><li>If you have a payment arrangement set up, the payment arrangement must be made before the billing cycle is changed.</li><li>If you have AutoPay, you may see two AutoPay drafts in one month due to the billing cycle change.</li><li>When a billing cycle change is made, prorated charges will occur.</li><li>Your billing cycle can't be changed if your account is in a delinquent status, or if the account will fall delinquent before the requested change date.</li><li>If you have a payment arrangement set up, the payment arrangement must be made before the billing cycle is changed.</li><li>If you have AutoPay, you may see two AutoPay drafts in one month due to the billing cycle change.</li><li>When a billing cycle change is made, prorated charges will occur.</li></ul><br/><p>If you change an existing bill cycle, there will generally be a number of days prorated to compensate from the gap from the end of the previous bill cycle to when the new bill cycle is started. This proration will be included in your next (new) billing cycle statement, and will cause an increase in that month’s payment due. But rest assured, you’re not being charged ‘extra’, but paying for the days that were between the old and new billing cycle dates.</p>\",\n meta: {\n category: 'Banking and Retail',\n publishedDate: '12/12/2019',\n likes: 124,\n disLikes: 47\n }\n }\n};\n"]}
1
+ {"version":3,"file":"Article.mocks.js","sourceRoot":"","sources":["../../../src/cs/Article/Article.mocks.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,kBAAkB,EAAE;QAClB,MAAM,EAAE,qCAAqC;QAC7C,QAAQ,EACN,kGAAkG;QACpG,OAAO,EACL,k9EAAk9E;QACp9E,IAAI,EAAE;YACJ,QAAQ,EAAE,oBAAoB;YAC9B,aAAa,EAAE,YAAY;YAC3B,KAAK,EAAE,GAAG;YACV,QAAQ,EAAE,EAAE;SACb;KACF;CACF,CAAC","sourcesContent":["export const ArticleMockData = {\n fullArticleContent: {\n header: 'How to change monthly billing cycle',\n abstract:\n 'How to change monthly billing cycle. This will give you clear guidelines to change billing cycle',\n content:\n \"<p>Changing your monthly billing cycle can help you better manage your monthly bills and when you pay them. U+Comm offers 3 main billing cycles with due dates falling on the 1st, 15th, or the 28th of each month. This provides our customers with flexibility when choosing a billing cycle and corresponding due date that matches your personal finance planning.If you change an existing bill cycle, there will generally be a number of days prorated to compensate from the gap from the end of the previous bill cycle to when the new bill cycle is started. This proration will be included in your next (new) billing cycle statement, and will cause an increase in that month’s payment due. But rest assured, you’re not being charged ‘extra’, but paying for the days that were between the old and new billing cycle dates.</p><div>Find more details from this article <a data-article-id='5' href='#'>How to sell a product</a></div><div>Find some suggestions from this article <a data-article-id='8' href='#'>How to convince a customer</a></div><div><b>Before you change your billing cycle, be aware that:</b> </div><ul><li>Your billing cycle can't be changed if your account is in a delinquent status, or if the account will fall delinquent before the requested change date.</li><li>If you have a payment arrangement set up, the payment arrangement must be made before the billing cycle is changed.</li><li>If you have AutoPay, you may see two AutoPay drafts in one month due to the billing cycle change.</li><li>When a billing cycle change is made, prorated charges will occur.</li><li>Your billing cycle can't be changed if your account is in a delinquent status, or if the account will fall delinquent before the requested change date.</li><li>If you have a payment arrangement set up, the payment arrangement must be made before the billing cycle is changed.</li><li>If you have AutoPay, you may see two AutoPay drafts in one month due to the billing cycle change.</li><li>When a billing cycle change is made, prorated charges will occur.</li></ul><p>If you change an existing bill cycle, there will generally be a number of days prorated to compensate from the gap from the end of the previous bill cycle to when the new bill cycle is started. This proration will be included in your next (new) billing cycle statement, and will cause an increase in that month’s payment due. But rest assured, you’re not being charged ‘extra’, but paying for the days that were between the old and new billing cycle dates.</p>\",\n meta: {\n category: 'Banking and Retail',\n publishedDate: '2023-04-06',\n likes: 124,\n disLikes: 47\n }\n }\n};\n"]}