@pega/cosmos-react-demos 3.0.0-dev.2.1 → 3.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 (1304) hide show
  1. package/jsx/build/AppHeader/AppHeader.stories.d.ts +1 -1
  2. package/jsx/build/AppHeader/AppHeader.stories.d.ts.map +1 -1
  3. package/jsx/build/AppHeader/AppHeader.stories.jsx +102 -75
  4. package/jsx/build/AppHeader/AppHeader.stories.jsx.map +1 -1
  5. package/jsx/build/AppShell/AppShell.mocks.d.ts +19 -0
  6. package/jsx/build/AppShell/AppShell.mocks.d.ts.map +1 -1
  7. package/jsx/build/AppShell/{AppShell.mocks.js → AppShell.mocks.jsx} +33 -1
  8. package/jsx/build/AppShell/AppShell.mocks.jsx.map +1 -0
  9. package/jsx/build/AppShell/AppShell.stories.d.ts +2 -2
  10. package/jsx/build/AppShell/AppShell.stories.d.ts.map +1 -1
  11. package/jsx/build/AppShell/AppShell.stories.jsx +20 -45
  12. package/jsx/build/AppShell/AppShell.stories.jsx.map +1 -1
  13. package/jsx/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts +8 -0
  14. package/jsx/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts.map +1 -0
  15. package/jsx/build/DynamicContentEditor/DynamicContentEditor.stories.jsx +101 -0
  16. package/jsx/build/DynamicContentEditor/DynamicContentEditor.stories.jsx.map +1 -0
  17. package/jsx/build/DynamicContentEditor/FieldSelector.d.ts +11 -0
  18. package/jsx/build/DynamicContentEditor/FieldSelector.d.ts.map +1 -0
  19. package/jsx/build/DynamicContentEditor/FieldSelector.jsx +80 -0
  20. package/jsx/build/DynamicContentEditor/FieldSelector.jsx.map +1 -0
  21. package/jsx/build/FlowModeller/AddNodeUtils.mocks.d.ts +4 -4
  22. package/jsx/build/FlowModeller/AddNodeUtils.mocks.d.ts.map +1 -1
  23. package/jsx/build/FlowModeller/AddNodeUtils.mocks.js.map +1 -1
  24. package/jsx/build/FlowModeller/FlowModeller.mocks.d.ts +21 -2
  25. package/jsx/build/FlowModeller/FlowModeller.mocks.d.ts.map +1 -1
  26. package/jsx/build/FlowModeller/{FlowModeller.mocks.js → FlowModeller.mocks.jsx} +186 -34
  27. package/jsx/build/FlowModeller/FlowModeller.mocks.jsx.map +1 -0
  28. package/jsx/build/FlowModeller/FlowModeller.stories.d.ts +9 -10
  29. package/jsx/build/FlowModeller/FlowModeller.stories.d.ts.map +1 -1
  30. package/jsx/build/FlowModeller/FlowModeller.stories.jsx +265 -150
  31. package/jsx/build/FlowModeller/FlowModeller.stories.jsx.map +1 -1
  32. package/jsx/build/FlowModeller/FlowModeller.styles.d.ts +2 -0
  33. package/jsx/build/FlowModeller/FlowModeller.styles.d.ts.map +1 -0
  34. package/jsx/build/FlowModeller/FlowModeller.styles.js +8 -0
  35. package/jsx/build/FlowModeller/FlowModeller.styles.js.map +1 -0
  36. package/jsx/build/ItemLibrary/LibraryPicker.mocks.d.ts +1 -5
  37. package/jsx/build/ItemLibrary/LibraryPicker.mocks.d.ts.map +1 -1
  38. package/jsx/build/ItemLibrary/LibraryPicker.mocks.js +5 -10
  39. package/jsx/build/ItemLibrary/LibraryPicker.mocks.js.map +1 -1
  40. package/jsx/build/ItemLibrary/LibraryPicker.stories.d.ts +3 -7
  41. package/jsx/build/ItemLibrary/LibraryPicker.stories.d.ts.map +1 -1
  42. package/jsx/build/ItemLibrary/LibraryPicker.stories.jsx.map +1 -1
  43. package/jsx/build/LifeCycle/LifeCycle.mocks.d.ts +3 -0
  44. package/jsx/build/LifeCycle/LifeCycle.mocks.d.ts.map +1 -1
  45. package/jsx/build/LifeCycle/LifeCycle.mocks.js +146 -18
  46. package/jsx/build/LifeCycle/LifeCycle.mocks.js.map +1 -1
  47. package/jsx/build/LifeCycle/LifeCycle.stories.d.ts +6 -9
  48. package/jsx/build/LifeCycle/LifeCycle.stories.d.ts.map +1 -1
  49. package/jsx/build/LifeCycle/LifeCycle.stories.jsx +111 -27
  50. package/jsx/build/LifeCycle/LifeCycle.stories.jsx.map +1 -1
  51. package/jsx/build/LifeCycle/utils.d.ts.map +1 -1
  52. package/jsx/build/LifeCycle/utils.js +5 -4
  53. package/jsx/build/LifeCycle/utils.js.map +1 -1
  54. package/jsx/build/ObjectSelect/ObjectSelect.mocks.d.ts +63 -0
  55. package/jsx/build/ObjectSelect/ObjectSelect.mocks.d.ts.map +1 -0
  56. package/jsx/build/ObjectSelect/ObjectSelect.mocks.jsx +395 -0
  57. package/jsx/build/ObjectSelect/ObjectSelect.mocks.jsx.map +1 -0
  58. package/jsx/build/ObjectSelect/ObjectSelect.stories.d.ts +8 -0
  59. package/jsx/build/ObjectSelect/ObjectSelect.stories.d.ts.map +1 -0
  60. package/jsx/build/ObjectSelect/ObjectSelect.stories.jsx +244 -0
  61. package/jsx/build/ObjectSelect/ObjectSelect.stories.jsx.map +1 -0
  62. package/jsx/build/ObjectSelect/ObjectSelect.styles.d.ts +4 -0
  63. package/jsx/build/ObjectSelect/ObjectSelect.styles.d.ts.map +1 -0
  64. package/jsx/build/ObjectSelect/ObjectSelect.styles.js +27 -0
  65. package/jsx/build/ObjectSelect/ObjectSelect.styles.js.map +1 -0
  66. package/jsx/build/PageTemplates/GalleryPage.mocks.d.ts +46 -0
  67. package/jsx/build/PageTemplates/GalleryPage.mocks.d.ts.map +1 -0
  68. package/jsx/build/PageTemplates/GalleryPage.mocks.jsx +76 -0
  69. package/jsx/build/PageTemplates/GalleryPage.mocks.jsx.map +1 -0
  70. package/jsx/build/PageTemplates/GalleryPage.stories.d.ts.map +1 -1
  71. package/jsx/build/PageTemplates/GalleryPage.stories.jsx +14 -92
  72. package/jsx/build/PageTemplates/GalleryPage.stories.jsx.map +1 -1
  73. package/jsx/build/PageTemplates/PageTemplates.mocks.d.ts +18 -0
  74. package/jsx/build/PageTemplates/PageTemplates.mocks.d.ts.map +1 -0
  75. package/jsx/build/PageTemplates/PageTemplates.mocks.jsx +287 -0
  76. package/jsx/build/PageTemplates/PageTemplates.mocks.jsx.map +1 -0
  77. package/jsx/build/PageTemplates/PageTemplates.stories.d.ts +4 -9
  78. package/jsx/build/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
  79. package/jsx/build/PageTemplates/PageTemplates.stories.jsx +96 -270
  80. package/jsx/build/PageTemplates/PageTemplates.stories.jsx.map +1 -1
  81. package/jsx/build/Workbench/Workbench.stories.d.ts +1 -0
  82. package/jsx/build/Workbench/Workbench.stories.d.ts.map +1 -1
  83. package/jsx/build/Workbench/Workbench.stories.jsx +204 -18
  84. package/jsx/build/Workbench/Workbench.stories.jsx.map +1 -1
  85. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.mocks.d.ts +3 -0
  86. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.mocks.d.ts.map +1 -0
  87. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.mocks.js +15 -0
  88. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.mocks.js.map +1 -0
  89. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts +17 -8
  90. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts.map +1 -1
  91. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.jsx +99 -65
  92. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.jsx.map +1 -1
  93. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.styles.d.ts +5 -0
  94. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.styles.d.ts.map +1 -0
  95. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.styles.js +15 -0
  96. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.styles.js.map +1 -0
  97. package/jsx/condition-builder/ConditionBuilder/props.mock.d.ts.map +1 -1
  98. package/jsx/condition-builder/ConditionBuilder/props.mock.js +132 -31
  99. package/jsx/condition-builder/ConditionBuilder/props.mock.js.map +1 -1
  100. package/jsx/condition-builder/ConditionInput/ConditionInput.stories.d.ts +10 -0
  101. package/jsx/condition-builder/ConditionInput/ConditionInput.stories.d.ts.map +1 -0
  102. package/jsx/condition-builder/ConditionInput/ConditionInput.stories.jsx +40 -0
  103. package/jsx/condition-builder/ConditionInput/ConditionInput.stories.jsx.map +1 -0
  104. package/jsx/condition-builder/PromotedFilters/PromotedFilters.mocks.d.ts +4 -0
  105. package/jsx/condition-builder/PromotedFilters/PromotedFilters.mocks.d.ts.map +1 -0
  106. package/jsx/condition-builder/PromotedFilters/PromotedFilters.mocks.js +74 -0
  107. package/jsx/condition-builder/PromotedFilters/PromotedFilters.mocks.js.map +1 -0
  108. package/jsx/condition-builder/PromotedFilters/PromotedFilters.stories.d.ts +8 -0
  109. package/jsx/condition-builder/PromotedFilters/PromotedFilters.stories.d.ts.map +1 -0
  110. package/jsx/condition-builder/PromotedFilters/PromotedFilters.stories.jsx +31 -0
  111. package/jsx/condition-builder/PromotedFilters/PromotedFilters.stories.jsx.map +1 -0
  112. package/jsx/condition-builder/PromotedFilters/PromotedFilters.styles.d.ts +9 -0
  113. package/jsx/condition-builder/PromotedFilters/PromotedFilters.styles.d.ts.map +1 -0
  114. package/jsx/condition-builder/PromotedFilters/PromotedFilters.styles.js +35 -0
  115. package/jsx/condition-builder/PromotedFilters/PromotedFilters.styles.js.map +1 -0
  116. package/jsx/core/AppShell/AppShell.mocks.d.ts +1 -1
  117. package/jsx/core/AppShell/AppShell.mocks.jsx +5 -5
  118. package/jsx/core/AppShell/AppShell.mocks.jsx.map +1 -1
  119. package/jsx/core/AppShell/AppShell.stories.d.ts +2 -0
  120. package/jsx/core/AppShell/AppShell.stories.d.ts.map +1 -1
  121. package/jsx/core/AppShell/AppShell.stories.jsx +33 -6
  122. package/jsx/core/AppShell/AppShell.stories.jsx.map +1 -1
  123. package/jsx/core/Badges/Keyboard.stories.d.ts +6 -0
  124. package/jsx/core/Badges/Keyboard.stories.d.ts.map +1 -0
  125. package/jsx/core/Badges/Keyboard.stories.jsx +17 -0
  126. package/jsx/core/Badges/Keyboard.stories.jsx.map +1 -0
  127. package/jsx/core/Badges/Selection.stories.d.ts +2 -3
  128. package/jsx/core/Badges/Selection.stories.d.ts.map +1 -1
  129. package/jsx/core/Badges/Selection.stories.jsx.map +1 -1
  130. package/jsx/core/Badges/Tag.stories.d.ts +2 -3
  131. package/jsx/core/Badges/Tag.stories.d.ts.map +1 -1
  132. package/jsx/core/Badges/Tag.stories.jsx.map +1 -1
  133. package/jsx/core/Banner/Banner.stories.d.ts +7 -18
  134. package/jsx/core/Banner/Banner.stories.d.ts.map +1 -1
  135. package/jsx/core/Banner/Banner.stories.jsx.map +1 -1
  136. package/jsx/core/Breadcrumbs/Breadcrumbs.stories.d.ts +3 -4
  137. package/jsx/core/Breadcrumbs/Breadcrumbs.stories.d.ts.map +1 -1
  138. package/jsx/core/Breadcrumbs/Breadcrumbs.stories.jsx.map +1 -1
  139. package/jsx/core/Button/Button.stories.d.ts +2 -3
  140. package/jsx/core/Button/Button.stories.d.ts.map +1 -1
  141. package/jsx/core/Button/Button.stories.jsx +6 -6
  142. package/jsx/core/Button/Button.stories.jsx.map +1 -1
  143. package/jsx/core/Card/Card.stories.d.ts +1 -2
  144. package/jsx/core/Card/Card.stories.d.ts.map +1 -1
  145. package/jsx/core/Card/Card.stories.jsx +1 -1
  146. package/jsx/core/Card/Card.stories.jsx.map +1 -1
  147. package/jsx/core/Checkbox/Checkbox.stories.jsx +1 -1
  148. package/jsx/core/Checkbox/Checkbox.stories.jsx.map +1 -1
  149. package/jsx/core/CheckboxGroup/CheckboxGroup.stories.d.ts +3 -3
  150. package/jsx/core/CheckboxGroup/CheckboxGroup.stories.d.ts.map +1 -1
  151. package/jsx/core/CheckboxGroup/CheckboxGroup.stories.jsx.map +1 -1
  152. package/jsx/core/ColorPicker/ColorPicker.stories.d.ts +1 -2
  153. package/jsx/core/ColorPicker/ColorPicker.stories.d.ts.map +1 -1
  154. package/jsx/core/ColorPicker/ColorPicker.stories.jsx +2 -10
  155. package/jsx/core/ColorPicker/ColorPicker.stories.jsx.map +1 -1
  156. package/jsx/core/ColorPicker/ColorPicker.styles.d.ts +4 -0
  157. package/jsx/core/ColorPicker/ColorPicker.styles.d.ts.map +1 -0
  158. package/jsx/core/ColorPicker/ColorPicker.styles.js +11 -0
  159. package/jsx/core/ColorPicker/ColorPicker.styles.js.map +1 -0
  160. package/jsx/core/CompositeInput/CompositeInput.mocks.d.ts +8 -0
  161. package/jsx/core/CompositeInput/CompositeInput.mocks.d.ts.map +1 -0
  162. package/jsx/core/CompositeInput/CompositeInput.mocks.jsx +8 -0
  163. package/jsx/core/CompositeInput/CompositeInput.mocks.jsx.map +1 -0
  164. package/jsx/core/CompositeInput/CompositeInput.stories.d.ts +6 -0
  165. package/jsx/core/CompositeInput/CompositeInput.stories.d.ts.map +1 -0
  166. package/jsx/core/CompositeInput/CompositeInput.stories.jsx +50 -0
  167. package/jsx/core/CompositeInput/CompositeInput.stories.jsx.map +1 -0
  168. package/jsx/core/Configuration/Configuration.mocks.d.ts +7 -0
  169. package/jsx/core/Configuration/Configuration.mocks.d.ts.map +1 -0
  170. package/jsx/core/Configuration/Configuration.mocks.jsx +9 -0
  171. package/jsx/core/Configuration/Configuration.mocks.jsx.map +1 -0
  172. package/jsx/core/Configuration/Configuration.stories.d.ts +2 -3
  173. package/jsx/core/Configuration/Configuration.stories.d.ts.map +1 -1
  174. package/jsx/core/Configuration/Configuration.stories.jsx +2 -18
  175. package/jsx/core/Configuration/Configuration.stories.jsx.map +1 -1
  176. package/jsx/core/Configuration/Configuration.styles.d.ts +6 -0
  177. package/jsx/core/Configuration/Configuration.styles.d.ts.map +1 -0
  178. package/jsx/core/Configuration/Configuration.styles.js +12 -0
  179. package/jsx/core/Configuration/Configuration.styles.js.map +1 -0
  180. package/jsx/core/CreditCard/CreditCard.stories.d.ts +11 -0
  181. package/jsx/core/CreditCard/CreditCard.stories.d.ts.map +1 -0
  182. package/jsx/core/CreditCard/CreditCard.stories.jsx +45 -0
  183. package/jsx/core/CreditCard/CreditCard.stories.jsx.map +1 -0
  184. package/jsx/core/Currency/Currency.stories.d.ts +6 -3
  185. package/jsx/core/Currency/Currency.stories.d.ts.map +1 -1
  186. package/jsx/core/Currency/Currency.stories.jsx +49 -17
  187. package/jsx/core/Currency/Currency.stories.jsx.map +1 -1
  188. package/jsx/core/DateTime/DateTime.stories.d.ts.map +1 -1
  189. package/jsx/core/DateTime/DateTime.stories.jsx +76 -10
  190. package/jsx/core/DateTime/DateTime.stories.jsx.map +1 -1
  191. package/jsx/core/Dialog/Dialog.stories.d.ts +6 -0
  192. package/jsx/core/Dialog/Dialog.stories.d.ts.map +1 -0
  193. package/jsx/core/Dialog/Dialog.stories.jsx +79 -0
  194. package/jsx/core/Dialog/Dialog.stories.jsx.map +1 -0
  195. package/jsx/core/FieldGroup/FieldGroup.stories.d.ts +6 -4
  196. package/jsx/core/FieldGroup/FieldGroup.stories.d.ts.map +1 -1
  197. package/jsx/core/FieldGroup/FieldGroup.stories.jsx +8 -4
  198. package/jsx/core/FieldGroup/FieldGroup.stories.jsx.map +1 -1
  199. package/jsx/core/FieldGroup/FieldGroupList.mocks.d.ts +4 -0
  200. package/jsx/core/FieldGroup/FieldGroupList.mocks.d.ts.map +1 -1
  201. package/jsx/core/FieldGroup/FieldGroupList.mocks.jsx +70 -2
  202. package/jsx/core/FieldGroup/FieldGroupList.mocks.jsx.map +1 -1
  203. package/jsx/core/FieldGroup/FieldGroupList.stories.d.ts +9 -8
  204. package/jsx/core/FieldGroup/FieldGroupList.stories.d.ts.map +1 -1
  205. package/jsx/core/FieldGroup/FieldGroupList.stories.jsx +51 -88
  206. package/jsx/core/FieldGroup/FieldGroupList.stories.jsx.map +1 -1
  207. package/jsx/core/FieldValueList/FieldValueList.stories.d.ts +2 -2
  208. package/jsx/core/FieldValueList/FieldValueList.stories.d.ts.map +1 -1
  209. package/jsx/core/FieldValueList/FieldValueList.stories.jsx.map +1 -1
  210. package/jsx/core/File/FileDisplay.stories.d.ts.map +1 -1
  211. package/jsx/core/File/FileDisplay.stories.jsx +16 -38
  212. package/jsx/core/File/FileDisplay.stories.jsx.map +1 -1
  213. package/jsx/core/Flex/FlexContainer.stories.d.ts +1 -2
  214. package/jsx/core/Flex/FlexContainer.stories.d.ts.map +1 -1
  215. package/jsx/core/Flex/FlexContainer.stories.jsx.map +1 -1
  216. package/jsx/core/Form/Form.mocks.d.ts.map +1 -1
  217. package/jsx/core/Form/Form.mocks.jsx +2 -1
  218. package/jsx/core/Form/Form.mocks.jsx.map +1 -1
  219. package/jsx/core/Form/Form.stories.jsx +2 -2
  220. package/jsx/core/Form/Form.stories.jsx.map +1 -1
  221. package/jsx/core/Grid/GridContainer.stories.d.ts +4 -5
  222. package/jsx/core/Grid/GridContainer.stories.d.ts.map +1 -1
  223. package/jsx/core/Grid/GridContainer.stories.jsx.map +1 -1
  224. package/jsx/core/Grid/GridItem.stories.d.ts +1 -2
  225. package/jsx/core/Grid/GridItem.stories.d.ts.map +1 -1
  226. package/jsx/core/Grid/GridItem.stories.jsx.map +1 -1
  227. package/jsx/core/HTML/HTML.stories.d.ts +6 -0
  228. package/jsx/core/HTML/HTML.stories.d.ts.map +1 -0
  229. package/jsx/core/HTML/HTML.stories.jsx +13 -0
  230. package/jsx/core/HTML/HTML.stories.jsx.map +1 -0
  231. package/jsx/core/Icon/Icon.stories.d.ts +5 -6
  232. package/jsx/core/Icon/Icon.stories.d.ts.map +1 -1
  233. package/jsx/core/Icon/Icon.stories.jsx +5 -27
  234. package/jsx/core/Icon/Icon.stories.jsx.map +1 -1
  235. package/jsx/core/Icon/Icon.styles.d.ts +4 -0
  236. package/jsx/core/Icon/Icon.styles.d.ts.map +1 -0
  237. package/jsx/core/Icon/Icon.styles.js +25 -0
  238. package/jsx/core/Icon/Icon.styles.js.map +1 -0
  239. package/jsx/core/IconPicker/IconPicker.stories.jsx +1 -1
  240. package/jsx/core/IconPicker/IconPicker.stories.jsx.map +1 -1
  241. package/jsx/core/Image/Image.stories.d.ts +2 -3
  242. package/jsx/core/Image/Image.stories.d.ts.map +1 -1
  243. package/jsx/core/Image/Image.stories.jsx.map +1 -1
  244. package/jsx/core/Input/Input.stories.d.ts +1 -0
  245. package/jsx/core/Input/Input.stories.d.ts.map +1 -1
  246. package/jsx/core/Input/Input.stories.jsx +70 -1
  247. package/jsx/core/Input/Input.stories.jsx.map +1 -1
  248. package/jsx/core/Lightbox/Lightbox.stories.jsx +1 -1
  249. package/jsx/core/Lightbox/Lightbox.stories.jsx.map +1 -1
  250. package/jsx/core/Link/Link.stories.d.ts +1 -11
  251. package/jsx/core/Link/Link.stories.d.ts.map +1 -1
  252. package/jsx/core/Link/Link.stories.jsx.map +1 -1
  253. package/jsx/core/List/CommaSeparatedList.stories.d.ts +2 -2
  254. package/jsx/core/List/CommaSeparatedList.stories.d.ts.map +1 -1
  255. package/jsx/core/List/CommaSeparatedList.stories.jsx.map +1 -1
  256. package/jsx/core/ListToolbar/ListToolbar.mocks.d.ts +9 -0
  257. package/jsx/core/ListToolbar/ListToolbar.mocks.d.ts.map +1 -0
  258. package/jsx/core/ListToolbar/ListToolbar.mocks.jsx +71 -0
  259. package/jsx/core/ListToolbar/ListToolbar.mocks.jsx.map +1 -0
  260. package/jsx/core/ListToolbar/ListToolbar.stories.d.ts +10 -0
  261. package/jsx/core/ListToolbar/ListToolbar.stories.d.ts.map +1 -0
  262. package/jsx/core/ListToolbar/ListToolbar.stories.jsx +93 -0
  263. package/jsx/core/ListToolbar/ListToolbar.stories.jsx.map +1 -0
  264. package/jsx/core/Menu/Menu.stories.d.ts.map +1 -1
  265. package/jsx/core/Menu/Menu.stories.jsx +4 -3
  266. package/jsx/core/Menu/Menu.stories.jsx.map +1 -1
  267. package/jsx/core/MenuButton/MenuButton.stories.d.ts +6 -6
  268. package/jsx/core/MenuButton/MenuButton.stories.d.ts.map +1 -1
  269. package/jsx/core/MenuButton/MenuButton.stories.jsx.map +1 -1
  270. package/jsx/core/Modal/Modal.stories.d.ts +10 -5
  271. package/jsx/core/Modal/Modal.stories.d.ts.map +1 -1
  272. package/jsx/core/Modal/Modal.stories.jsx +34 -43
  273. package/jsx/core/Modal/Modal.stories.jsx.map +1 -1
  274. package/jsx/core/MultiStepForm/MultiStepForm.mocks.d.ts +34 -0
  275. package/jsx/core/MultiStepForm/MultiStepForm.mocks.d.ts.map +1 -0
  276. package/jsx/core/MultiStepForm/MultiStepForm.mocks.jsx +124 -0
  277. package/jsx/core/MultiStepForm/MultiStepForm.mocks.jsx.map +1 -0
  278. package/jsx/core/MultiStepForm/MultiStepForm.stories.d.ts +5 -0
  279. package/jsx/core/MultiStepForm/MultiStepForm.stories.d.ts.map +1 -0
  280. package/jsx/core/MultiStepForm/MultiStepForm.stories.jsx +208 -0
  281. package/jsx/core/MultiStepForm/MultiStepForm.stories.jsx.map +1 -0
  282. package/jsx/core/Number/Number.stories.d.ts +10 -6
  283. package/jsx/core/Number/Number.stories.d.ts.map +1 -1
  284. package/jsx/core/Number/Number.stories.jsx +124 -30
  285. package/jsx/core/Number/Number.stories.jsx.map +1 -1
  286. package/jsx/core/PageTemplates/PageTemplates.mocks.d.ts +1 -1
  287. package/jsx/core/PageTemplates/PageTemplates.mocks.d.ts.map +1 -1
  288. package/jsx/core/PageTemplates/PageTemplates.stories.d.ts +5 -3
  289. package/jsx/core/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
  290. package/jsx/core/PageTemplates/PageTemplates.stories.jsx +81 -27
  291. package/jsx/core/PageTemplates/PageTemplates.stories.jsx.map +1 -1
  292. package/jsx/core/PageTemplates/PageTemplates.styles.d.ts +1 -0
  293. package/jsx/core/PageTemplates/PageTemplates.styles.d.ts.map +1 -1
  294. package/jsx/core/PageTemplates/PageTemplates.styles.js +9 -0
  295. package/jsx/core/PageTemplates/PageTemplates.styles.js.map +1 -1
  296. package/jsx/core/Phone/Phone.stories.d.ts.map +1 -1
  297. package/jsx/core/Phone/Phone.stories.jsx +3 -1
  298. package/jsx/core/Phone/Phone.stories.jsx.map +1 -1
  299. package/jsx/core/Popover/Popover.stories.d.ts +1 -1
  300. package/jsx/core/Popover/Popover.stories.d.ts.map +1 -1
  301. package/jsx/core/Popover/Popover.stories.jsx.map +1 -1
  302. package/jsx/core/RadioButton/RadioButton.stories.jsx +1 -1
  303. package/jsx/core/RadioButton/RadioButton.stories.jsx.map +1 -1
  304. package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts +3 -3
  305. package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts.map +1 -1
  306. package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.jsx.map +1 -1
  307. package/jsx/core/Rating/Rating.stories.jsx +1 -1
  308. package/jsx/core/Rating/Rating.stories.jsx.map +1 -1
  309. package/jsx/core/SearchInput/SearchInput.mocks.d.ts +12 -0
  310. package/jsx/core/SearchInput/SearchInput.mocks.d.ts.map +1 -0
  311. package/jsx/core/SearchInput/SearchInput.mocks.js +25 -0
  312. package/jsx/core/SearchInput/SearchInput.mocks.js.map +1 -0
  313. package/jsx/core/SearchInput/SearchInput.stories.d.ts +1 -4
  314. package/jsx/core/SearchInput/SearchInput.stories.d.ts.map +1 -1
  315. package/jsx/core/SearchInput/SearchInput.stories.jsx +29 -17
  316. package/jsx/core/SearchInput/SearchInput.stories.jsx.map +1 -1
  317. package/jsx/core/Sentiment/Sentiment.stories.jsx +4 -4
  318. package/jsx/core/Sentiment/Sentiment.stories.jsx.map +1 -1
  319. package/jsx/core/Slider/Slider.stories.d.ts +4 -3
  320. package/jsx/core/Slider/Slider.stories.d.ts.map +1 -1
  321. package/jsx/core/Slider/Slider.stories.jsx +1 -1
  322. package/jsx/core/Slider/Slider.stories.jsx.map +1 -1
  323. package/jsx/core/SummaryItem/SummaryItem.stories.d.ts +5 -5
  324. package/jsx/core/SummaryItem/SummaryItem.stories.d.ts.map +1 -1
  325. package/jsx/core/SummaryItem/SummaryItem.stories.jsx.map +1 -1
  326. package/jsx/core/SummaryList/SummaryList.stories.d.ts +2 -2
  327. package/jsx/core/SummaryList/SummaryList.stories.d.ts.map +1 -1
  328. package/jsx/core/SummaryList/SummaryList.stories.jsx.map +1 -1
  329. package/jsx/core/Table/Table.mocks.d.ts +6 -0
  330. package/jsx/core/Table/Table.mocks.d.ts.map +1 -1
  331. package/jsx/core/Table/Table.mocks.jsx +134 -0
  332. package/jsx/core/Table/Table.mocks.jsx.map +1 -1
  333. package/jsx/core/Table/Table.stories.jsx +2 -2
  334. package/jsx/core/Table/Table.stories.jsx.map +1 -1
  335. package/jsx/core/Tabs/Tabs.stories.d.ts +5 -2
  336. package/jsx/core/Tabs/Tabs.stories.d.ts.map +1 -1
  337. package/jsx/core/Tabs/Tabs.stories.jsx.map +1 -1
  338. package/jsx/core/Toaster/Toaster.stories.d.ts +2 -3
  339. package/jsx/core/Toaster/Toaster.stories.d.ts.map +1 -1
  340. package/jsx/core/Toaster/Toaster.stories.jsx.map +1 -1
  341. package/jsx/core/Tooltip/Tooltip.stories.d.ts +3 -7
  342. package/jsx/core/Tooltip/Tooltip.stories.d.ts.map +1 -1
  343. package/jsx/core/Tooltip/Tooltip.stories.jsx.map +1 -1
  344. package/jsx/core/Tree/Tree.mocks.d.ts +1 -1
  345. package/jsx/core/Tree/Tree.mocks.d.ts.map +1 -1
  346. package/jsx/core/Tree/Tree.stories.d.ts +1 -2
  347. package/jsx/core/Tree/Tree.stories.d.ts.map +1 -1
  348. package/jsx/core/Tree/Tree.stories.jsx +2 -2
  349. package/jsx/core/Tree/Tree.stories.jsx.map +1 -1
  350. package/jsx/cs/Article/Article.stories.d.ts +4 -13
  351. package/jsx/cs/Article/Article.stories.d.ts.map +1 -1
  352. package/jsx/cs/Article/Article.stories.jsx.map +1 -1
  353. package/jsx/cs/ArticleList/ArticleList.stories.d.ts +4 -14
  354. package/jsx/cs/ArticleList/ArticleList.stories.d.ts.map +1 -1
  355. package/jsx/cs/ArticleList/ArticleList.stories.jsx +3 -2
  356. package/jsx/cs/ArticleList/ArticleList.stories.jsx.map +1 -1
  357. package/jsx/cs/CSCaseView/{CSCaseView.mocks.d.ts → CSAppShell.mocks.d.ts} +17 -1
  358. package/jsx/cs/CSCaseView/CSAppShell.mocks.d.ts.map +1 -0
  359. package/jsx/cs/CSCaseView/{CSCaseView.mocks.js → CSAppShell.mocks.jsx} +76 -1
  360. package/jsx/cs/CSCaseView/CSAppShell.mocks.jsx.map +1 -0
  361. package/jsx/cs/CSCaseView/CSAppShell.stories.d.ts +4 -36
  362. package/jsx/cs/CSCaseView/CSAppShell.stories.d.ts.map +1 -1
  363. package/jsx/cs/CSCaseView/CSAppShell.stories.jsx +21 -68
  364. package/jsx/cs/CSCaseView/CSAppShell.stories.jsx.map +1 -1
  365. package/jsx/cs/CallControlPanel/CallControlPanel.mocks.d.ts +6 -5
  366. package/jsx/cs/CallControlPanel/CallControlPanel.mocks.d.ts.map +1 -1
  367. package/jsx/cs/CallControlPanel/CallControlPanel.mocks.js +138 -10
  368. package/jsx/cs/CallControlPanel/CallControlPanel.mocks.js.map +1 -1
  369. package/jsx/cs/CallControlPanel/CallControlPanel.stories.d.ts +6 -3
  370. package/jsx/cs/CallControlPanel/CallControlPanel.stories.d.ts.map +1 -1
  371. package/jsx/cs/CallControlPanel/CallControlPanel.stories.jsx +142 -93
  372. package/jsx/cs/CallControlPanel/CallControlPanel.stories.jsx.map +1 -1
  373. package/jsx/cs/IntelligentGuidance/IntelligentGuidance.stories.d.ts +4 -11
  374. package/jsx/cs/IntelligentGuidance/IntelligentGuidance.stories.d.ts.map +1 -1
  375. package/jsx/cs/IntelligentGuidance/IntelligentGuidance.stories.jsx +3 -3
  376. package/jsx/cs/IntelligentGuidance/IntelligentGuidance.stories.jsx.map +1 -1
  377. package/jsx/cs/InteractionNotification/InteractionNotification.stories.d.ts +7 -6
  378. package/jsx/cs/InteractionNotification/InteractionNotification.stories.d.ts.map +1 -1
  379. package/jsx/cs/InteractionNotification/InteractionNotification.stories.jsx +13 -5
  380. package/jsx/cs/InteractionNotification/InteractionNotification.stories.jsx.map +1 -1
  381. package/jsx/cs/InteractionTimer/InteractionTimer.mocks.d.ts +11 -0
  382. package/jsx/cs/InteractionTimer/InteractionTimer.mocks.d.ts.map +1 -0
  383. package/jsx/cs/InteractionTimer/InteractionTimer.mocks.js +29 -0
  384. package/jsx/cs/InteractionTimer/InteractionTimer.mocks.js.map +1 -0
  385. package/jsx/cs/InteractionTimer/InteractionTimer.stories.d.ts +3 -7
  386. package/jsx/cs/InteractionTimer/InteractionTimer.stories.d.ts.map +1 -1
  387. package/jsx/cs/InteractionTimer/InteractionTimer.stories.jsx +38 -43
  388. package/jsx/cs/InteractionTimer/InteractionTimer.stories.jsx.map +1 -1
  389. package/jsx/cs/TaskManager/TaskManager.mocks.d.ts +18 -0
  390. package/jsx/cs/TaskManager/TaskManager.mocks.d.ts.map +1 -1
  391. package/jsx/cs/TaskManager/TaskManager.mocks.js +93 -0
  392. package/jsx/cs/TaskManager/TaskManager.mocks.js.map +1 -1
  393. package/jsx/cs/TaskManager/TaskManager.stories.d.ts +8 -6
  394. package/jsx/cs/TaskManager/TaskManager.stories.d.ts.map +1 -1
  395. package/jsx/cs/TaskManager/TaskManager.stories.jsx +115 -48
  396. package/jsx/cs/TaskManager/TaskManager.stories.jsx.map +1 -1
  397. package/jsx/cs/TaskManager/TaskManager.styles.d.ts +3 -0
  398. package/jsx/cs/TaskManager/TaskManager.styles.d.ts.map +1 -0
  399. package/jsx/cs/TaskManager/TaskManager.styles.js +9 -0
  400. package/jsx/cs/TaskManager/TaskManager.styles.js.map +1 -0
  401. package/jsx/dnd/DragDropList/DragDropList.mocks.d.ts +15 -0
  402. package/jsx/dnd/DragDropList/DragDropList.mocks.d.ts.map +1 -0
  403. package/jsx/dnd/DragDropList/DragDropList.mocks.jsx +33 -0
  404. package/jsx/dnd/DragDropList/DragDropList.mocks.jsx.map +1 -0
  405. package/jsx/dnd/DragDropList/DragDropList.stories.d.ts +8 -9
  406. package/jsx/dnd/DragDropList/DragDropList.stories.d.ts.map +1 -1
  407. package/jsx/dnd/DragDropList/DragDropList.stories.jsx +14 -78
  408. package/jsx/dnd/DragDropList/DragDropList.stories.jsx.map +1 -1
  409. package/jsx/dnd/DragDropList/DragDropList.styles.d.ts +6 -0
  410. package/jsx/dnd/DragDropList/DragDropList.styles.d.ts.map +1 -0
  411. package/jsx/dnd/DragDropList/DragDropList.styles.js +32 -0
  412. package/jsx/dnd/DragDropList/DragDropList.styles.js.map +1 -0
  413. package/jsx/dnd/StandardDragDropList/Demo.d.ts +7 -0
  414. package/jsx/dnd/StandardDragDropList/Demo.d.ts.map +1 -0
  415. package/jsx/dnd/StandardDragDropList/Demo.jsx +158 -0
  416. package/jsx/dnd/StandardDragDropList/Demo.jsx.map +1 -0
  417. package/jsx/dnd/StandardDragDropList/GroupConfig.d.ts +10 -0
  418. package/jsx/dnd/StandardDragDropList/GroupConfig.d.ts.map +1 -0
  419. package/jsx/dnd/StandardDragDropList/GroupConfig.jsx +26 -0
  420. package/jsx/dnd/StandardDragDropList/GroupConfig.jsx.map +1 -0
  421. package/jsx/dnd/StandardDragDropList/ItemConfig.d.ts +12 -0
  422. package/jsx/dnd/StandardDragDropList/ItemConfig.d.ts.map +1 -0
  423. package/jsx/dnd/StandardDragDropList/ItemConfig.jsx +21 -0
  424. package/jsx/dnd/StandardDragDropList/ItemConfig.jsx.map +1 -0
  425. package/jsx/dnd/StandardDragDropList/Popover.d.ts +14 -0
  426. package/jsx/dnd/StandardDragDropList/Popover.d.ts.map +1 -0
  427. package/jsx/dnd/StandardDragDropList/Popover.jsx +51 -0
  428. package/jsx/dnd/StandardDragDropList/Popover.jsx.map +1 -0
  429. package/jsx/dnd/StandardDragDropList/SelectionMenu.d.ts +16 -0
  430. package/jsx/dnd/StandardDragDropList/SelectionMenu.d.ts.map +1 -0
  431. package/jsx/dnd/StandardDragDropList/SelectionMenu.jsx +104 -0
  432. package/jsx/dnd/StandardDragDropList/SelectionMenu.jsx.map +1 -0
  433. package/jsx/dnd/StandardDragDropList/StandardDragDropList.stories.d.ts +5 -0
  434. package/jsx/dnd/StandardDragDropList/StandardDragDropList.stories.d.ts.map +1 -0
  435. package/jsx/dnd/StandardDragDropList/StandardDragDropList.stories.jsx +15 -0
  436. package/jsx/dnd/StandardDragDropList/StandardDragDropList.stories.jsx.map +1 -0
  437. package/jsx/dnd/StandardDragDropList/mockData.d.ts +26 -0
  438. package/jsx/dnd/StandardDragDropList/mockData.d.ts.map +1 -0
  439. package/jsx/dnd/StandardDragDropList/mockData.js +77 -0
  440. package/jsx/dnd/StandardDragDropList/mockData.js.map +1 -0
  441. package/jsx/rte/Editor/Editor.mocks.d.ts +309 -0
  442. package/jsx/rte/Editor/Editor.mocks.d.ts.map +1 -0
  443. package/jsx/rte/Editor/Editor.mocks.jsx +23 -0
  444. package/jsx/rte/Editor/Editor.mocks.jsx.map +1 -0
  445. package/jsx/rte/Editor/Editor.stories.d.ts +7 -8
  446. package/jsx/rte/Editor/Editor.stories.d.ts.map +1 -1
  447. package/jsx/rte/Editor/Editor.stories.jsx +3 -21
  448. package/jsx/rte/Editor/Editor.stories.jsx.map +1 -1
  449. package/jsx/rte/RichTextEditor/RichTextEditor.mocks.jsx.map +1 -1
  450. package/jsx/rte/RichTextEditor/RichTextEditor.stories.d.ts +2 -3
  451. package/jsx/rte/RichTextEditor/RichTextEditor.stories.d.ts.map +1 -1
  452. package/jsx/rte/RichTextEditor/RichTextEditor.stories.jsx +1 -1
  453. package/jsx/rte/RichTextEditor/RichTextEditor.stories.jsx.map +1 -1
  454. package/jsx/rte/RichTextEditor/RichTextViewer.stories.d.ts +5 -5
  455. package/jsx/rte/RichTextEditor/RichTextViewer.stories.d.ts.map +1 -1
  456. package/jsx/rte/RichTextEditor/RichTextViewer.stories.jsx +19 -2
  457. package/jsx/rte/RichTextEditor/RichTextViewer.stories.jsx.map +1 -1
  458. package/jsx/social/Chat/Chat.stories.d.ts +6 -7
  459. package/jsx/social/Chat/Chat.stories.d.ts.map +1 -1
  460. package/jsx/social/Chat/Chat.stories.jsx +7 -5
  461. package/jsx/social/Chat/Chat.stories.jsx.map +1 -1
  462. package/jsx/social/Chat/RepeatingView.mocks.d.ts +14 -0
  463. package/jsx/social/Chat/RepeatingView.mocks.d.ts.map +1 -0
  464. package/jsx/social/Chat/RepeatingView.mocks.js +11 -0
  465. package/jsx/social/Chat/RepeatingView.mocks.js.map +1 -0
  466. package/jsx/social/Chat/RepeatingView.stories.d.ts +6 -17
  467. package/jsx/social/Chat/RepeatingView.stories.d.ts.map +1 -1
  468. package/jsx/social/Chat/RepeatingView.stories.jsx +16 -46
  469. package/jsx/social/Chat/RepeatingView.stories.jsx.map +1 -1
  470. package/jsx/social/Chat/RepeatingView.styles.d.ts +2 -0
  471. package/jsx/social/Chat/RepeatingView.styles.d.ts.map +1 -0
  472. package/jsx/social/Chat/RepeatingView.styles.js +22 -0
  473. package/jsx/social/Chat/RepeatingView.styles.js.map +1 -0
  474. package/jsx/social/Email/Email.mocks.d.ts +186 -3
  475. package/jsx/social/Email/Email.mocks.d.ts.map +1 -1
  476. package/jsx/social/Email/Email.mocks.jsx +909 -0
  477. package/jsx/social/Email/Email.mocks.jsx.map +1 -0
  478. package/jsx/social/Email/Email.stories.d.ts +40 -26
  479. package/jsx/social/Email/Email.stories.d.ts.map +1 -1
  480. package/jsx/social/Email/Email.stories.jsx +540 -574
  481. package/jsx/social/Email/Email.stories.jsx.map +1 -1
  482. package/jsx/social/Email/Email.styles.d.ts +3 -0
  483. package/jsx/social/Email/Email.styles.d.ts.map +1 -0
  484. package/jsx/social/Email/Email.styles.js +11 -0
  485. package/jsx/social/Email/Email.styles.js.map +1 -0
  486. package/jsx/social/Feed/Feed.mocks.d.ts +13 -18
  487. package/jsx/social/Feed/Feed.mocks.d.ts.map +1 -1
  488. package/jsx/social/Feed/Feed.mocks.jsx +10 -5
  489. package/jsx/social/Feed/Feed.mocks.jsx.map +1 -1
  490. package/jsx/social/Feed/Feed.stories.d.ts +8 -12
  491. package/jsx/social/Feed/Feed.stories.d.ts.map +1 -1
  492. package/jsx/social/Feed/Feed.stories.jsx +28 -22
  493. package/jsx/social/Feed/Feed.stories.jsx.map +1 -1
  494. package/jsx/social/Feed/FeedNewPost.stories.d.ts +7 -14
  495. package/jsx/social/Feed/FeedNewPost.stories.d.ts.map +1 -1
  496. package/jsx/social/Feed/FeedNewPost.stories.jsx +3 -2
  497. package/jsx/social/Feed/FeedNewPost.stories.jsx.map +1 -1
  498. package/jsx/social/Feed/FeedPost.stories.d.ts +4 -5
  499. package/jsx/social/Feed/FeedPost.stories.d.ts.map +1 -1
  500. package/jsx/social/Feed/FeedPost.stories.jsx +40 -29
  501. package/jsx/social/Feed/FeedPost.stories.jsx.map +1 -1
  502. package/jsx/social/Feed/FeedReply.stories.d.ts +10 -10
  503. package/jsx/social/Feed/FeedReply.stories.d.ts.map +1 -1
  504. package/jsx/social/Feed/FeedReply.stories.jsx +27 -22
  505. package/jsx/social/Feed/FeedReply.stories.jsx.map +1 -1
  506. package/jsx/social/Feed/FeedReplyInput.stories.d.ts +7 -12
  507. package/jsx/social/Feed/FeedReplyInput.stories.d.ts.map +1 -1
  508. package/jsx/social/Feed/FeedReplyInput.stories.jsx +3 -2
  509. package/jsx/social/Feed/FeedReplyInput.stories.jsx.map +1 -1
  510. package/jsx/work/AppAnnouncement/AppAnnouncement.stories.d.ts.map +1 -1
  511. package/jsx/work/AppAnnouncement/AppAnnouncement.stories.jsx +3 -1
  512. package/jsx/work/AppAnnouncement/AppAnnouncement.stories.jsx.map +1 -1
  513. package/jsx/work/CaseView/CaseView.stories.d.ts +4 -11
  514. package/jsx/work/CaseView/CaseView.stories.d.ts.map +1 -1
  515. package/jsx/work/CaseView/CaseView.stories.jsx +11 -3
  516. package/jsx/work/CaseView/CaseView.stories.jsx.map +1 -1
  517. package/jsx/work/CaseView/MobileCaseView.stories.d.ts +3 -9
  518. package/jsx/work/CaseView/MobileCaseView.stories.d.ts.map +1 -1
  519. package/jsx/work/CaseView/MobileCaseView.stories.jsx.map +1 -1
  520. package/jsx/work/CaseView/Pulse.mocks.d.ts +4 -3
  521. package/jsx/work/CaseView/Pulse.mocks.d.ts.map +1 -1
  522. package/jsx/work/CaseView/Pulse.mocks.jsx +2 -2
  523. package/jsx/work/CaseView/Pulse.mocks.jsx.map +1 -1
  524. package/jsx/work/ConfigurableLayout/ConfigurableLayout.mocks.d.ts +45 -0
  525. package/jsx/work/ConfigurableLayout/ConfigurableLayout.mocks.d.ts.map +1 -0
  526. package/jsx/work/ConfigurableLayout/ConfigurableLayout.mocks.jsx +166 -0
  527. package/jsx/work/ConfigurableLayout/ConfigurableLayout.mocks.jsx.map +1 -0
  528. package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts +3 -8
  529. package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts.map +1 -1
  530. package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.jsx +3 -174
  531. package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.jsx.map +1 -1
  532. package/jsx/work/ConfigurableLayout/ConfigurableLayout.styles.d.ts +4 -0
  533. package/jsx/work/ConfigurableLayout/ConfigurableLayout.styles.d.ts.map +1 -0
  534. package/jsx/work/ConfigurableLayout/ConfigurableLayout.styles.js +11 -0
  535. package/jsx/work/ConfigurableLayout/ConfigurableLayout.styles.js.map +1 -0
  536. package/jsx/work/Confirmation/Confirmation.stories.d.ts +3 -0
  537. package/jsx/work/Confirmation/Confirmation.stories.d.ts.map +1 -1
  538. package/jsx/work/Confirmation/Confirmation.stories.jsx +12 -8
  539. package/jsx/work/Confirmation/Confirmation.stories.jsx.map +1 -1
  540. package/jsx/work/Details/Details.stories.d.ts.map +1 -1
  541. package/jsx/work/Details/Details.stories.jsx +53 -64
  542. package/jsx/work/Details/Details.stories.jsx.map +1 -1
  543. package/jsx/work/Glimpse/Glimpse.stories.d.ts.map +1 -1
  544. package/jsx/work/Glimpse/Glimpse.stories.jsx.map +1 -1
  545. package/jsx/work/SearchResults/SearchResults.stories.d.ts +1 -0
  546. package/jsx/work/SearchResults/SearchResults.stories.d.ts.map +1 -1
  547. package/jsx/work/SearchResults/SearchResults.stories.jsx +10 -8
  548. package/jsx/work/SearchResults/SearchResults.stories.jsx.map +1 -1
  549. package/jsx/work/Stages/Stages.mocks.d.ts +14 -0
  550. package/jsx/work/Stages/Stages.mocks.d.ts.map +1 -0
  551. package/jsx/work/Stages/Stages.mocks.jsx +40 -0
  552. package/jsx/work/Stages/Stages.mocks.jsx.map +1 -0
  553. package/jsx/work/Stages/Stages.stories.d.ts +1 -1
  554. package/jsx/work/Stages/Stages.stories.d.ts.map +1 -1
  555. package/jsx/work/Stages/Stages.stories.jsx +12 -46
  556. package/jsx/work/Stages/Stages.stories.jsx.map +1 -1
  557. package/jsx/work/Stakeholders/Stakeholders.mocks.jsx +1 -1
  558. package/jsx/work/Stakeholders/Stakeholders.mocks.jsx.map +1 -1
  559. package/jsx/work/Stakeholders/Stakeholders.stories.d.ts +2 -3
  560. package/jsx/work/Stakeholders/Stakeholders.stories.d.ts.map +1 -1
  561. package/jsx/work/Stakeholders/Stakeholders.stories.jsx +1 -0
  562. package/jsx/work/Stakeholders/Stakeholders.stories.jsx.map +1 -1
  563. package/jsx/work/Tasks/TaskList.stories.d.ts.map +1 -1
  564. package/jsx/work/Tasks/TaskList.stories.jsx +3 -1
  565. package/jsx/work/Tasks/TaskList.stories.jsx.map +1 -1
  566. package/jsx/work/Tasks/Tasks.stories.d.ts +4 -0
  567. package/jsx/work/Tasks/Tasks.stories.d.ts.map +1 -1
  568. package/jsx/work/Tasks/Tasks.stories.jsx +21 -11
  569. package/jsx/work/Tasks/Tasks.stories.jsx.map +1 -1
  570. package/jsx/work/Timeline/Timeline.stories.d.ts +1 -0
  571. package/jsx/work/Timeline/Timeline.stories.d.ts.map +1 -1
  572. package/jsx/work/Timeline/Timeline.stories.jsx +29 -1
  573. package/jsx/work/Timeline/Timeline.stories.jsx.map +1 -1
  574. package/jsx/wss/AppShell/AppShell.mocks.d.ts +24 -0
  575. package/jsx/wss/AppShell/AppShell.mocks.d.ts.map +1 -0
  576. package/jsx/wss/AppShell/AppShell.mocks.jsx +64 -0
  577. package/jsx/wss/AppShell/AppShell.mocks.jsx.map +1 -0
  578. package/jsx/wss/AppShell/AppShell.stories.d.ts +17 -0
  579. package/jsx/wss/AppShell/AppShell.stories.d.ts.map +1 -0
  580. package/jsx/wss/AppShell/AppShell.stories.jsx +76 -0
  581. package/jsx/wss/AppShell/AppShell.stories.jsx.map +1 -0
  582. package/jsx/wss/AppShell/AppShell.styles.d.ts +2 -0
  583. package/jsx/wss/AppShell/AppShell.styles.d.ts.map +1 -0
  584. package/jsx/wss/AppShell/AppShell.styles.js +5 -0
  585. package/jsx/wss/AppShell/AppShell.styles.js.map +1 -0
  586. package/jsx/wss/QuickCreate/QuickCreate.stories.d.ts +10 -0
  587. package/jsx/wss/QuickCreate/QuickCreate.stories.d.ts.map +1 -0
  588. package/jsx/wss/QuickCreate/QuickCreate.stories.jsx +37 -0
  589. package/jsx/wss/QuickCreate/QuickCreate.stories.jsx.map +1 -0
  590. package/lib/build/AppHeader/AppHeader.stories.d.ts +1 -1
  591. package/lib/build/AppHeader/AppHeader.stories.d.ts.map +1 -1
  592. package/lib/build/AppHeader/AppHeader.stories.js +100 -75
  593. package/lib/build/AppHeader/AppHeader.stories.js.map +1 -1
  594. package/lib/build/AppShell/AppShell.mocks.d.ts +19 -0
  595. package/lib/build/AppShell/AppShell.mocks.d.ts.map +1 -1
  596. package/lib/build/AppShell/AppShell.mocks.js +32 -0
  597. package/lib/build/AppShell/AppShell.mocks.js.map +1 -1
  598. package/lib/build/AppShell/AppShell.stories.d.ts +2 -2
  599. package/lib/build/AppShell/AppShell.stories.d.ts.map +1 -1
  600. package/lib/build/AppShell/AppShell.stories.js +22 -45
  601. package/lib/build/AppShell/AppShell.stories.js.map +1 -1
  602. package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts +8 -0
  603. package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts.map +1 -0
  604. package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.js +85 -0
  605. package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.js.map +1 -0
  606. package/lib/build/DynamicContentEditor/FieldSelector.d.ts +14 -0
  607. package/lib/build/DynamicContentEditor/FieldSelector.d.ts.map +1 -0
  608. package/lib/build/DynamicContentEditor/FieldSelector.js +81 -0
  609. package/lib/build/DynamicContentEditor/FieldSelector.js.map +1 -0
  610. package/lib/build/FlowModeller/AddNodeUtils.mocks.d.ts +4 -4
  611. package/lib/build/FlowModeller/AddNodeUtils.mocks.d.ts.map +1 -1
  612. package/lib/build/FlowModeller/AddNodeUtils.mocks.js.map +1 -1
  613. package/lib/build/FlowModeller/FlowModeller.mocks.d.ts +21 -2
  614. package/lib/build/FlowModeller/FlowModeller.mocks.d.ts.map +1 -1
  615. package/lib/build/FlowModeller/FlowModeller.mocks.js +158 -33
  616. package/lib/build/FlowModeller/FlowModeller.mocks.js.map +1 -1
  617. package/lib/build/FlowModeller/FlowModeller.stories.d.ts +9 -10
  618. package/lib/build/FlowModeller/FlowModeller.stories.d.ts.map +1 -1
  619. package/lib/build/FlowModeller/FlowModeller.stories.js +254 -135
  620. package/lib/build/FlowModeller/FlowModeller.stories.js.map +1 -1
  621. package/lib/build/FlowModeller/FlowModeller.styles.d.ts +2 -0
  622. package/lib/build/FlowModeller/FlowModeller.styles.d.ts.map +1 -0
  623. package/lib/build/FlowModeller/FlowModeller.styles.js +8 -0
  624. package/lib/build/FlowModeller/FlowModeller.styles.js.map +1 -0
  625. package/lib/build/ItemLibrary/LibraryPicker.mocks.d.ts +1 -5
  626. package/lib/build/ItemLibrary/LibraryPicker.mocks.d.ts.map +1 -1
  627. package/lib/build/ItemLibrary/LibraryPicker.mocks.js +5 -10
  628. package/lib/build/ItemLibrary/LibraryPicker.mocks.js.map +1 -1
  629. package/lib/build/ItemLibrary/LibraryPicker.stories.d.ts +3 -7
  630. package/lib/build/ItemLibrary/LibraryPicker.stories.d.ts.map +1 -1
  631. package/lib/build/ItemLibrary/LibraryPicker.stories.js +1 -1
  632. package/lib/build/ItemLibrary/LibraryPicker.stories.js.map +1 -1
  633. package/lib/build/LifeCycle/LifeCycle.mocks.d.ts +3 -0
  634. package/lib/build/LifeCycle/LifeCycle.mocks.d.ts.map +1 -1
  635. package/lib/build/LifeCycle/LifeCycle.mocks.js +146 -18
  636. package/lib/build/LifeCycle/LifeCycle.mocks.js.map +1 -1
  637. package/lib/build/LifeCycle/LifeCycle.stories.d.ts +6 -9
  638. package/lib/build/LifeCycle/LifeCycle.stories.d.ts.map +1 -1
  639. package/lib/build/LifeCycle/LifeCycle.stories.js +115 -31
  640. package/lib/build/LifeCycle/LifeCycle.stories.js.map +1 -1
  641. package/lib/build/LifeCycle/utils.d.ts.map +1 -1
  642. package/lib/build/LifeCycle/utils.js +5 -4
  643. package/lib/build/LifeCycle/utils.js.map +1 -1
  644. package/lib/build/ObjectSelect/ObjectSelect.mocks.d.ts +63 -0
  645. package/lib/build/ObjectSelect/ObjectSelect.mocks.d.ts.map +1 -0
  646. package/lib/build/ObjectSelect/ObjectSelect.mocks.js +368 -0
  647. package/lib/build/ObjectSelect/ObjectSelect.mocks.js.map +1 -0
  648. package/lib/build/ObjectSelect/ObjectSelect.stories.d.ts +8 -0
  649. package/lib/build/ObjectSelect/ObjectSelect.stories.d.ts.map +1 -0
  650. package/lib/build/ObjectSelect/ObjectSelect.stories.js +228 -0
  651. package/lib/build/ObjectSelect/ObjectSelect.stories.js.map +1 -0
  652. package/lib/build/ObjectSelect/ObjectSelect.styles.d.ts +4 -0
  653. package/lib/build/ObjectSelect/ObjectSelect.styles.d.ts.map +1 -0
  654. package/lib/build/ObjectSelect/ObjectSelect.styles.js +27 -0
  655. package/lib/build/ObjectSelect/ObjectSelect.styles.js.map +1 -0
  656. package/lib/build/PageTemplates/GalleryPage.mocks.d.ts +46 -0
  657. package/lib/build/PageTemplates/GalleryPage.mocks.d.ts.map +1 -0
  658. package/lib/build/PageTemplates/GalleryPage.mocks.js +77 -0
  659. package/lib/build/PageTemplates/GalleryPage.mocks.js.map +1 -0
  660. package/lib/build/PageTemplates/GalleryPage.stories.d.ts.map +1 -1
  661. package/lib/build/PageTemplates/GalleryPage.stories.js +14 -92
  662. package/lib/build/PageTemplates/GalleryPage.stories.js.map +1 -1
  663. package/lib/build/PageTemplates/PageTemplates.mocks.d.ts +18 -0
  664. package/lib/build/PageTemplates/PageTemplates.mocks.d.ts.map +1 -0
  665. package/lib/build/PageTemplates/PageTemplates.mocks.js +248 -0
  666. package/lib/build/PageTemplates/PageTemplates.mocks.js.map +1 -0
  667. package/lib/build/PageTemplates/PageTemplates.stories.d.ts +4 -9
  668. package/lib/build/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
  669. package/lib/build/PageTemplates/PageTemplates.stories.js +113 -251
  670. package/lib/build/PageTemplates/PageTemplates.stories.js.map +1 -1
  671. package/lib/build/Workbench/Workbench.stories.d.ts +1 -0
  672. package/lib/build/Workbench/Workbench.stories.d.ts.map +1 -1
  673. package/lib/build/Workbench/Workbench.stories.js +210 -29
  674. package/lib/build/Workbench/Workbench.stories.js.map +1 -1
  675. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.mocks.d.ts +3 -0
  676. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.mocks.d.ts.map +1 -0
  677. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.mocks.js +15 -0
  678. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.mocks.js.map +1 -0
  679. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts +17 -8
  680. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts.map +1 -1
  681. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.js +78 -62
  682. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.js.map +1 -1
  683. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.styles.d.ts +5 -0
  684. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.styles.d.ts.map +1 -0
  685. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.styles.js +15 -0
  686. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.styles.js.map +1 -0
  687. package/lib/condition-builder/ConditionBuilder/props.mock.d.ts.map +1 -1
  688. package/lib/condition-builder/ConditionBuilder/props.mock.js +132 -31
  689. package/lib/condition-builder/ConditionBuilder/props.mock.js.map +1 -1
  690. package/lib/condition-builder/ConditionInput/ConditionInput.stories.d.ts +10 -0
  691. package/lib/condition-builder/ConditionInput/ConditionInput.stories.d.ts.map +1 -0
  692. package/lib/condition-builder/ConditionInput/ConditionInput.stories.js +41 -0
  693. package/lib/condition-builder/ConditionInput/ConditionInput.stories.js.map +1 -0
  694. package/lib/condition-builder/PromotedFilters/PromotedFilters.mocks.d.ts +4 -0
  695. package/lib/condition-builder/PromotedFilters/PromotedFilters.mocks.d.ts.map +1 -0
  696. package/lib/condition-builder/PromotedFilters/PromotedFilters.mocks.js +74 -0
  697. package/lib/condition-builder/PromotedFilters/PromotedFilters.mocks.js.map +1 -0
  698. package/lib/condition-builder/PromotedFilters/PromotedFilters.stories.d.ts +8 -0
  699. package/lib/condition-builder/PromotedFilters/PromotedFilters.stories.d.ts.map +1 -0
  700. package/lib/condition-builder/PromotedFilters/PromotedFilters.stories.js +24 -0
  701. package/lib/condition-builder/PromotedFilters/PromotedFilters.stories.js.map +1 -0
  702. package/lib/condition-builder/PromotedFilters/PromotedFilters.styles.d.ts +9 -0
  703. package/lib/condition-builder/PromotedFilters/PromotedFilters.styles.d.ts.map +1 -0
  704. package/lib/condition-builder/PromotedFilters/PromotedFilters.styles.js +35 -0
  705. package/lib/condition-builder/PromotedFilters/PromotedFilters.styles.js.map +1 -0
  706. package/lib/core/AppShell/AppShell.mocks.d.ts +1 -1
  707. package/lib/core/AppShell/AppShell.mocks.js +10 -10
  708. package/lib/core/AppShell/AppShell.mocks.js.map +1 -1
  709. package/lib/core/AppShell/AppShell.stories.d.ts +2 -0
  710. package/lib/core/AppShell/AppShell.stories.d.ts.map +1 -1
  711. package/lib/core/AppShell/AppShell.stories.js +41 -14
  712. package/lib/core/AppShell/AppShell.stories.js.map +1 -1
  713. package/lib/core/Avatar/Avatar.stories.js +6 -6
  714. package/lib/core/Avatar/Avatar.stories.js.map +1 -1
  715. package/lib/core/Backdrop/Backdrop.stories.js +2 -2
  716. package/lib/core/Backdrop/Backdrop.stories.js.map +1 -1
  717. package/lib/core/Badges/Alert.stories.js +1 -1
  718. package/lib/core/Badges/Alert.stories.js.map +1 -1
  719. package/lib/core/Badges/Count.stories.js +1 -1
  720. package/lib/core/Badges/Count.stories.js.map +1 -1
  721. package/lib/core/Badges/Keyboard.stories.d.ts +6 -0
  722. package/lib/core/Badges/Keyboard.stories.d.ts.map +1 -0
  723. package/lib/core/Badges/Keyboard.stories.js +16 -0
  724. package/lib/core/Badges/Keyboard.stories.js.map +1 -0
  725. package/lib/core/Badges/Selection.stories.d.ts +2 -3
  726. package/lib/core/Badges/Selection.stories.d.ts.map +1 -1
  727. package/lib/core/Badges/Selection.stories.js +1 -1
  728. package/lib/core/Badges/Selection.stories.js.map +1 -1
  729. package/lib/core/Badges/Status.stories.js +2 -2
  730. package/lib/core/Badges/Status.stories.js.map +1 -1
  731. package/lib/core/Badges/Tag.stories.d.ts +2 -3
  732. package/lib/core/Badges/Tag.stories.d.ts.map +1 -1
  733. package/lib/core/Badges/Tag.stories.js +1 -1
  734. package/lib/core/Badges/Tag.stories.js.map +1 -1
  735. package/lib/core/Banner/Banner.mocks.js +1 -1
  736. package/lib/core/Banner/Banner.mocks.js.map +1 -1
  737. package/lib/core/Banner/Banner.stories.d.ts +7 -18
  738. package/lib/core/Banner/Banner.stories.d.ts.map +1 -1
  739. package/lib/core/Banner/Banner.stories.js +11 -11
  740. package/lib/core/Banner/Banner.stories.js.map +1 -1
  741. package/lib/core/Boolean/BooleanDisplay.stories.js +1 -1
  742. package/lib/core/Boolean/BooleanDisplay.stories.js.map +1 -1
  743. package/lib/core/Breadcrumbs/Breadcrumbs.stories.d.ts +3 -4
  744. package/lib/core/Breadcrumbs/Breadcrumbs.stories.d.ts.map +1 -1
  745. package/lib/core/Breadcrumbs/Breadcrumbs.stories.js +2 -2
  746. package/lib/core/Breadcrumbs/Breadcrumbs.stories.js.map +1 -1
  747. package/lib/core/Button/Button.stories.d.ts +2 -3
  748. package/lib/core/Button/Button.stories.d.ts.map +1 -1
  749. package/lib/core/Button/Button.stories.js +8 -8
  750. package/lib/core/Button/Button.stories.js.map +1 -1
  751. package/lib/core/Card/Card.stories.d.ts +1 -2
  752. package/lib/core/Card/Card.stories.d.ts.map +1 -1
  753. package/lib/core/Card/Card.stories.js +5 -5
  754. package/lib/core/Card/Card.stories.js.map +1 -1
  755. package/lib/core/Checkbox/Checkbox.stories.js +4 -4
  756. package/lib/core/Checkbox/Checkbox.stories.js.map +1 -1
  757. package/lib/core/CheckboxGroup/CheckboxGroup.stories.d.ts +3 -3
  758. package/lib/core/CheckboxGroup/CheckboxGroup.stories.d.ts.map +1 -1
  759. package/lib/core/CheckboxGroup/CheckboxGroup.stories.js +3 -3
  760. package/lib/core/CheckboxGroup/CheckboxGroup.stories.js.map +1 -1
  761. package/lib/core/ColorPicker/ColorPicker.stories.d.ts +1 -2
  762. package/lib/core/ColorPicker/ColorPicker.stories.d.ts.map +1 -1
  763. package/lib/core/ColorPicker/ColorPicker.stories.js +7 -15
  764. package/lib/core/ColorPicker/ColorPicker.stories.js.map +1 -1
  765. package/lib/core/ColorPicker/ColorPicker.styles.d.ts +4 -0
  766. package/lib/core/ColorPicker/ColorPicker.styles.d.ts.map +1 -0
  767. package/lib/core/ColorPicker/ColorPicker.styles.js +11 -0
  768. package/lib/core/ColorPicker/ColorPicker.styles.js.map +1 -0
  769. package/lib/core/ComboBox/ComboBox.stories.js +6 -6
  770. package/lib/core/ComboBox/ComboBox.stories.js.map +1 -1
  771. package/lib/core/CompositeInput/CompositeInput.mocks.d.ts +8 -0
  772. package/lib/core/CompositeInput/CompositeInput.mocks.d.ts.map +1 -0
  773. package/lib/core/CompositeInput/CompositeInput.mocks.js +6 -0
  774. package/lib/core/CompositeInput/CompositeInput.mocks.js.map +1 -0
  775. package/lib/core/CompositeInput/CompositeInput.stories.d.ts +6 -0
  776. package/lib/core/CompositeInput/CompositeInput.stories.d.ts.map +1 -0
  777. package/lib/core/CompositeInput/CompositeInput.stories.js +51 -0
  778. package/lib/core/CompositeInput/CompositeInput.stories.js.map +1 -0
  779. package/lib/core/Configuration/Configuration.mocks.d.ts +7 -0
  780. package/lib/core/Configuration/Configuration.mocks.d.ts.map +1 -0
  781. package/lib/core/Configuration/Configuration.mocks.js +6 -0
  782. package/lib/core/Configuration/Configuration.mocks.js.map +1 -0
  783. package/lib/core/Configuration/Configuration.stories.d.ts +2 -3
  784. package/lib/core/Configuration/Configuration.stories.d.ts.map +1 -1
  785. package/lib/core/Configuration/Configuration.stories.js +13 -25
  786. package/lib/core/Configuration/Configuration.stories.js.map +1 -1
  787. package/lib/core/Configuration/Configuration.styles.d.ts +6 -0
  788. package/lib/core/Configuration/Configuration.styles.d.ts.map +1 -0
  789. package/lib/core/Configuration/Configuration.styles.js +12 -0
  790. package/lib/core/Configuration/Configuration.styles.js.map +1 -0
  791. package/lib/core/CreditCard/CreditCard.stories.d.ts +11 -0
  792. package/lib/core/CreditCard/CreditCard.stories.d.ts.map +1 -0
  793. package/lib/core/CreditCard/CreditCard.stories.js +46 -0
  794. package/lib/core/CreditCard/CreditCard.stories.js.map +1 -0
  795. package/lib/core/Currency/Currency.stories.d.ts +6 -3
  796. package/lib/core/Currency/Currency.stories.d.ts.map +1 -1
  797. package/lib/core/Currency/Currency.stories.js +50 -18
  798. package/lib/core/Currency/Currency.stories.js.map +1 -1
  799. package/lib/core/DateTime/DateTime.stories.d.ts.map +1 -1
  800. package/lib/core/DateTime/DateTime.stories.js +79 -12
  801. package/lib/core/DateTime/DateTime.stories.js.map +1 -1
  802. package/lib/core/DateTime/DateTimeDisplay.stories.js +2 -2
  803. package/lib/core/DateTime/DateTimeDisplay.stories.js.map +1 -1
  804. package/lib/core/DateTime/DateTimePicker.stories.js +2 -2
  805. package/lib/core/DateTime/DateTimePicker.stories.js.map +1 -1
  806. package/lib/core/Dialog/Dialog.stories.d.ts +6 -0
  807. package/lib/core/Dialog/Dialog.stories.d.ts.map +1 -0
  808. package/lib/core/Dialog/Dialog.stories.js +47 -0
  809. package/lib/core/Dialog/Dialog.stories.js.map +1 -0
  810. package/lib/core/Drawer/Drawer.stories.js +4 -4
  811. package/lib/core/Drawer/Drawer.stories.js.map +1 -1
  812. package/lib/core/Email/EmailDisplay.stories.js +1 -1
  813. package/lib/core/Email/EmailDisplay.stories.js.map +1 -1
  814. package/lib/core/EmojiPicker/EmojiPicker.stories.js +3 -3
  815. package/lib/core/EmojiPicker/EmojiPicker.stories.js.map +1 -1
  816. package/lib/core/EmptyState/EmptyState.stories.js +1 -1
  817. package/lib/core/EmptyState/EmptyState.stories.js.map +1 -1
  818. package/lib/core/ErrorState/ErrorState.stories.js +1 -1
  819. package/lib/core/ErrorState/ErrorState.stories.js.map +1 -1
  820. package/lib/core/ExpandCollapse/ExpandCollapse.stories.js +2 -2
  821. package/lib/core/ExpandCollapse/ExpandCollapse.stories.js.map +1 -1
  822. package/lib/core/FieldGroup/FieldGroup.stories.d.ts +6 -4
  823. package/lib/core/FieldGroup/FieldGroup.stories.d.ts.map +1 -1
  824. package/lib/core/FieldGroup/FieldGroup.stories.js +7 -3
  825. package/lib/core/FieldGroup/FieldGroup.stories.js.map +1 -1
  826. package/lib/core/FieldGroup/FieldGroupList.mocks.d.ts +4 -0
  827. package/lib/core/FieldGroup/FieldGroupList.mocks.d.ts.map +1 -1
  828. package/lib/core/FieldGroup/FieldGroupList.mocks.js +47 -3
  829. package/lib/core/FieldGroup/FieldGroupList.mocks.js.map +1 -1
  830. package/lib/core/FieldGroup/FieldGroupList.stories.d.ts +9 -8
  831. package/lib/core/FieldGroup/FieldGroupList.stories.d.ts.map +1 -1
  832. package/lib/core/FieldGroup/FieldGroupList.stories.js +54 -67
  833. package/lib/core/FieldGroup/FieldGroupList.stories.js.map +1 -1
  834. package/lib/core/FieldValueList/FieldValueList.stories.d.ts +2 -2
  835. package/lib/core/FieldValueList/FieldValueList.stories.d.ts.map +1 -1
  836. package/lib/core/FieldValueList/FieldValueList.stories.js +4 -4
  837. package/lib/core/FieldValueList/FieldValueList.stories.js.map +1 -1
  838. package/lib/core/File/FileDisplay.stories.d.ts.map +1 -1
  839. package/lib/core/File/FileDisplay.stories.js +25 -37
  840. package/lib/core/File/FileDisplay.stories.js.map +1 -1
  841. package/lib/core/File/FileInput.stories.js +2 -2
  842. package/lib/core/File/FileInput.stories.js.map +1 -1
  843. package/lib/core/Flex/FlexContainer.stories.d.ts +1 -2
  844. package/lib/core/Flex/FlexContainer.stories.d.ts.map +1 -1
  845. package/lib/core/Flex/FlexContainer.stories.js +7 -7
  846. package/lib/core/Flex/FlexContainer.stories.js.map +1 -1
  847. package/lib/core/Flex/FlexItem.stories.js +3 -3
  848. package/lib/core/Flex/FlexItem.stories.js.map +1 -1
  849. package/lib/core/Form/Form.mocks.d.ts.map +1 -1
  850. package/lib/core/Form/Form.mocks.js +3 -3
  851. package/lib/core/Form/Form.mocks.js.map +1 -1
  852. package/lib/core/Form/Form.stories.js +10 -10
  853. package/lib/core/Form/Form.stories.js.map +1 -1
  854. package/lib/core/Grid/GridContainer.stories.d.ts +4 -5
  855. package/lib/core/Grid/GridContainer.stories.d.ts.map +1 -1
  856. package/lib/core/Grid/GridContainer.stories.js +9 -9
  857. package/lib/core/Grid/GridContainer.stories.js.map +1 -1
  858. package/lib/core/Grid/GridItem.stories.d.ts +1 -2
  859. package/lib/core/Grid/GridItem.stories.d.ts.map +1 -1
  860. package/lib/core/Grid/GridItem.stories.js +3 -3
  861. package/lib/core/Grid/GridItem.stories.js.map +1 -1
  862. package/lib/core/HTML/HTML.stories.d.ts +6 -0
  863. package/lib/core/HTML/HTML.stories.d.ts.map +1 -0
  864. package/lib/core/HTML/HTML.stories.js +14 -0
  865. package/lib/core/HTML/HTML.stories.js.map +1 -0
  866. package/lib/core/Icon/Icon.mocks.js +1 -1
  867. package/lib/core/Icon/Icon.mocks.js.map +1 -1
  868. package/lib/core/Icon/Icon.stories.d.ts +5 -6
  869. package/lib/core/Icon/Icon.stories.d.ts.map +1 -1
  870. package/lib/core/Icon/Icon.stories.js +12 -35
  871. package/lib/core/Icon/Icon.stories.js.map +1 -1
  872. package/lib/core/Icon/Icon.styles.d.ts +4 -0
  873. package/lib/core/Icon/Icon.styles.d.ts.map +1 -0
  874. package/lib/core/Icon/Icon.styles.js +25 -0
  875. package/lib/core/Icon/Icon.styles.js.map +1 -0
  876. package/lib/core/IconPicker/IconPicker.stories.js +2 -2
  877. package/lib/core/IconPicker/IconPicker.stories.js.map +1 -1
  878. package/lib/core/Image/Image.stories.d.ts +2 -3
  879. package/lib/core/Image/Image.stories.d.ts.map +1 -1
  880. package/lib/core/Image/Image.stories.js +1 -1
  881. package/lib/core/Image/Image.stories.js.map +1 -1
  882. package/lib/core/Input/Input.stories.d.ts +1 -0
  883. package/lib/core/Input/Input.stories.d.ts.map +1 -1
  884. package/lib/core/Input/Input.stories.js +72 -3
  885. package/lib/core/Input/Input.stories.js.map +1 -1
  886. package/lib/core/Label/Label.stories.js +2 -2
  887. package/lib/core/Label/Label.stories.js.map +1 -1
  888. package/lib/core/Lightbox/Lightbox.stories.js +3 -3
  889. package/lib/core/Lightbox/Lightbox.stories.js.map +1 -1
  890. package/lib/core/Link/Link.stories.d.ts +1 -11
  891. package/lib/core/Link/Link.stories.d.ts.map +1 -1
  892. package/lib/core/Link/Link.stories.js +3 -3
  893. package/lib/core/Link/Link.stories.js.map +1 -1
  894. package/lib/core/List/CommaSeparatedList.stories.d.ts +2 -2
  895. package/lib/core/List/CommaSeparatedList.stories.d.ts.map +1 -1
  896. package/lib/core/List/CommaSeparatedList.stories.js +1 -1
  897. package/lib/core/List/CommaSeparatedList.stories.js.map +1 -1
  898. package/lib/core/List/OrderedList.stories.js +1 -1
  899. package/lib/core/List/OrderedList.stories.js.map +1 -1
  900. package/lib/core/List/UnorderedList.stories.js +1 -1
  901. package/lib/core/List/UnorderedList.stories.js.map +1 -1
  902. package/lib/core/ListToolbar/ListToolbar.mocks.d.ts +9 -0
  903. package/lib/core/ListToolbar/ListToolbar.mocks.d.ts.map +1 -0
  904. package/lib/core/ListToolbar/ListToolbar.mocks.js +50 -0
  905. package/lib/core/ListToolbar/ListToolbar.mocks.js.map +1 -0
  906. package/lib/core/ListToolbar/ListToolbar.stories.d.ts +10 -0
  907. package/lib/core/ListToolbar/ListToolbar.stories.d.ts.map +1 -0
  908. package/lib/core/ListToolbar/ListToolbar.stories.js +85 -0
  909. package/lib/core/ListToolbar/ListToolbar.stories.js.map +1 -0
  910. package/lib/core/Location/Location.stories.js +4 -4
  911. package/lib/core/Location/Location.stories.js.map +1 -1
  912. package/lib/core/Menu/Menu.stories.d.ts.map +1 -1
  913. package/lib/core/Menu/Menu.stories.js +7 -6
  914. package/lib/core/Menu/Menu.stories.js.map +1 -1
  915. package/lib/core/MenuButton/MenuButton.stories.d.ts +6 -6
  916. package/lib/core/MenuButton/MenuButton.stories.d.ts.map +1 -1
  917. package/lib/core/MenuButton/MenuButton.stories.js +9 -9
  918. package/lib/core/MenuButton/MenuButton.stories.js.map +1 -1
  919. package/lib/core/MetaList/MetaList.stories.js +3 -3
  920. package/lib/core/MetaList/MetaList.stories.js.map +1 -1
  921. package/lib/core/Modal/Modal.mocks.js +8 -8
  922. package/lib/core/Modal/Modal.mocks.js.map +1 -1
  923. package/lib/core/Modal/Modal.stories.d.ts +10 -5
  924. package/lib/core/Modal/Modal.stories.d.ts.map +1 -1
  925. package/lib/core/Modal/Modal.stories.js +40 -35
  926. package/lib/core/Modal/Modal.stories.js.map +1 -1
  927. package/lib/core/MultiStepForm/MultiStepForm.mocks.d.ts +34 -0
  928. package/lib/core/MultiStepForm/MultiStepForm.mocks.d.ts.map +1 -0
  929. package/lib/core/MultiStepForm/MultiStepForm.mocks.js +75 -0
  930. package/lib/core/MultiStepForm/MultiStepForm.mocks.js.map +1 -0
  931. package/lib/core/MultiStepForm/MultiStepForm.stories.d.ts +5 -0
  932. package/lib/core/MultiStepForm/MultiStepForm.stories.d.ts.map +1 -0
  933. package/lib/core/MultiStepForm/MultiStepForm.stories.js +187 -0
  934. package/lib/core/MultiStepForm/MultiStepForm.stories.js.map +1 -0
  935. package/lib/core/Number/Number.stories.d.ts +10 -6
  936. package/lib/core/Number/Number.stories.d.ts.map +1 -1
  937. package/lib/core/Number/Number.stories.js +125 -31
  938. package/lib/core/Number/Number.stories.js.map +1 -1
  939. package/lib/core/PageTemplates/PageTemplates.mocks.d.ts +1 -1
  940. package/lib/core/PageTemplates/PageTemplates.mocks.d.ts.map +1 -1
  941. package/lib/core/PageTemplates/PageTemplates.stories.d.ts +5 -3
  942. package/lib/core/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
  943. package/lib/core/PageTemplates/PageTemplates.stories.js +84 -38
  944. package/lib/core/PageTemplates/PageTemplates.stories.js.map +1 -1
  945. package/lib/core/PageTemplates/PageTemplates.styles.d.ts +1 -0
  946. package/lib/core/PageTemplates/PageTemplates.styles.d.ts.map +1 -1
  947. package/lib/core/PageTemplates/PageTemplates.styles.js +9 -0
  948. package/lib/core/PageTemplates/PageTemplates.styles.js.map +1 -1
  949. package/lib/core/Pagination/Pagination.stories.js +1 -1
  950. package/lib/core/Pagination/Pagination.stories.js.map +1 -1
  951. package/lib/core/Paragraph/ParagraphDisplay.stories.js +1 -1
  952. package/lib/core/Paragraph/ParagraphDisplay.stories.js.map +1 -1
  953. package/lib/core/Phone/Phone.stories.d.ts.map +1 -1
  954. package/lib/core/Phone/Phone.stories.js +4 -2
  955. package/lib/core/Phone/Phone.stories.js.map +1 -1
  956. package/lib/core/Popover/Popover.stories.d.ts +1 -1
  957. package/lib/core/Popover/Popover.stories.d.ts.map +1 -1
  958. package/lib/core/Popover/Popover.stories.js +2 -2
  959. package/lib/core/Popover/Popover.stories.js.map +1 -1
  960. package/lib/core/Progress/Progress.stories.js +3 -3
  961. package/lib/core/Progress/Progress.stories.js.map +1 -1
  962. package/lib/core/RadioButton/RadioButton.stories.js +4 -4
  963. package/lib/core/RadioButton/RadioButton.stories.js.map +1 -1
  964. package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts +3 -3
  965. package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts.map +1 -1
  966. package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.js +3 -3
  967. package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.js.map +1 -1
  968. package/lib/core/Rating/Rating.stories.js +3 -3
  969. package/lib/core/Rating/Rating.stories.js.map +1 -1
  970. package/lib/core/SearchInput/SearchInput.mocks.d.ts +12 -0
  971. package/lib/core/SearchInput/SearchInput.mocks.d.ts.map +1 -0
  972. package/lib/core/SearchInput/SearchInput.mocks.js +25 -0
  973. package/lib/core/SearchInput/SearchInput.mocks.js.map +1 -0
  974. package/lib/core/SearchInput/SearchInput.stories.d.ts +1 -4
  975. package/lib/core/SearchInput/SearchInput.stories.d.ts.map +1 -1
  976. package/lib/core/SearchInput/SearchInput.stories.js +29 -15
  977. package/lib/core/SearchInput/SearchInput.stories.js.map +1 -1
  978. package/lib/core/Select/Select.stories.js +2 -2
  979. package/lib/core/Select/Select.stories.js.map +1 -1
  980. package/lib/core/Sentiment/Sentiment.stories.js +3 -3
  981. package/lib/core/Sentiment/Sentiment.stories.js.map +1 -1
  982. package/lib/core/Slider/Slider.stories.d.ts +4 -3
  983. package/lib/core/Slider/Slider.stories.d.ts.map +1 -1
  984. package/lib/core/Slider/Slider.stories.js +2 -2
  985. package/lib/core/Slider/Slider.stories.js.map +1 -1
  986. package/lib/core/SummaryItem/SummaryItem.stories.d.ts +5 -5
  987. package/lib/core/SummaryItem/SummaryItem.stories.d.ts.map +1 -1
  988. package/lib/core/SummaryItem/SummaryItem.stories.js +4 -4
  989. package/lib/core/SummaryItem/SummaryItem.stories.js.map +1 -1
  990. package/lib/core/SummaryList/SummaryList.mocks.js +2 -2
  991. package/lib/core/SummaryList/SummaryList.mocks.js.map +1 -1
  992. package/lib/core/SummaryList/SummaryList.stories.d.ts +2 -2
  993. package/lib/core/SummaryList/SummaryList.stories.d.ts.map +1 -1
  994. package/lib/core/SummaryList/SummaryList.stories.js +5 -5
  995. package/lib/core/SummaryList/SummaryList.stories.js.map +1 -1
  996. package/lib/core/Switch/Switch.stories.js +3 -3
  997. package/lib/core/Switch/Switch.stories.js.map +1 -1
  998. package/lib/core/Table/Table.mocks.d.ts +6 -0
  999. package/lib/core/Table/Table.mocks.d.ts.map +1 -1
  1000. package/lib/core/Table/Table.mocks.js +135 -1
  1001. package/lib/core/Table/Table.mocks.js.map +1 -1
  1002. package/lib/core/Table/Table.stories.js +11 -11
  1003. package/lib/core/Table/Table.stories.js.map +1 -1
  1004. package/lib/core/Tabs/Tabs.stories.d.ts +5 -2
  1005. package/lib/core/Tabs/Tabs.stories.d.ts.map +1 -1
  1006. package/lib/core/Tabs/Tabs.stories.js +3 -3
  1007. package/lib/core/Tabs/Tabs.stories.js.map +1 -1
  1008. package/lib/core/Text/Text.stories.js +2 -2
  1009. package/lib/core/Text/Text.stories.js.map +1 -1
  1010. package/lib/core/TextArea/TextArea.stories.js +2 -2
  1011. package/lib/core/TextArea/TextArea.stories.js.map +1 -1
  1012. package/lib/core/Toaster/Toaster.stories.d.ts +2 -3
  1013. package/lib/core/Toaster/Toaster.stories.d.ts.map +1 -1
  1014. package/lib/core/Toaster/Toaster.stories.js +2 -2
  1015. package/lib/core/Toaster/Toaster.stories.js.map +1 -1
  1016. package/lib/core/Tooltip/Tooltip.stories.d.ts +3 -7
  1017. package/lib/core/Tooltip/Tooltip.stories.d.ts.map +1 -1
  1018. package/lib/core/Tooltip/Tooltip.stories.js +2 -2
  1019. package/lib/core/Tooltip/Tooltip.stories.js.map +1 -1
  1020. package/lib/core/Tree/Tree.mocks.d.ts +1 -1
  1021. package/lib/core/Tree/Tree.mocks.d.ts.map +1 -1
  1022. package/lib/core/Tree/Tree.stories.d.ts +1 -2
  1023. package/lib/core/Tree/Tree.stories.d.ts.map +1 -1
  1024. package/lib/core/Tree/Tree.stories.js +5 -5
  1025. package/lib/core/Tree/Tree.stories.js.map +1 -1
  1026. package/lib/core/URL/URL.stories.js +1 -1
  1027. package/lib/core/URL/URL.stories.js.map +1 -1
  1028. package/lib/cs/Article/Article.stories.d.ts +4 -13
  1029. package/lib/cs/Article/Article.stories.d.ts.map +1 -1
  1030. package/lib/cs/Article/Article.stories.js +9 -9
  1031. package/lib/cs/Article/Article.stories.js.map +1 -1
  1032. package/lib/cs/ArticleList/ArticleList.stories.d.ts +4 -14
  1033. package/lib/cs/ArticleList/ArticleList.stories.d.ts.map +1 -1
  1034. package/lib/cs/ArticleList/ArticleList.stories.js +12 -11
  1035. package/lib/cs/ArticleList/ArticleList.stories.js.map +1 -1
  1036. package/lib/cs/CSCaseView/{CSCaseView.mocks.d.ts → CSAppShell.mocks.d.ts} +17 -1
  1037. package/lib/cs/CSCaseView/CSAppShell.mocks.d.ts.map +1 -0
  1038. package/lib/cs/CSCaseView/{CSCaseView.mocks.js → CSAppShell.mocks.js} +57 -1
  1039. package/lib/cs/CSCaseView/CSAppShell.mocks.js.map +1 -0
  1040. package/lib/cs/CSCaseView/CSAppShell.stories.d.ts +4 -36
  1041. package/lib/cs/CSCaseView/CSAppShell.stories.d.ts.map +1 -1
  1042. package/lib/cs/CSCaseView/CSAppShell.stories.js +31 -61
  1043. package/lib/cs/CSCaseView/CSAppShell.stories.js.map +1 -1
  1044. package/lib/cs/CallControlPanel/CallControlPanel.mocks.d.ts +6 -5
  1045. package/lib/cs/CallControlPanel/CallControlPanel.mocks.d.ts.map +1 -1
  1046. package/lib/cs/CallControlPanel/CallControlPanel.mocks.js +138 -10
  1047. package/lib/cs/CallControlPanel/CallControlPanel.mocks.js.map +1 -1
  1048. package/lib/cs/CallControlPanel/CallControlPanel.stories.d.ts +6 -3
  1049. package/lib/cs/CallControlPanel/CallControlPanel.stories.d.ts.map +1 -1
  1050. package/lib/cs/CallControlPanel/CallControlPanel.stories.js +143 -98
  1051. package/lib/cs/CallControlPanel/CallControlPanel.stories.js.map +1 -1
  1052. package/lib/cs/DialPad/DialPad.stories.js +1 -1
  1053. package/lib/cs/DialPad/DialPad.stories.js.map +1 -1
  1054. package/lib/cs/IntelligentGuidance/IntelligentGuidance.stories.d.ts +4 -11
  1055. package/lib/cs/IntelligentGuidance/IntelligentGuidance.stories.d.ts.map +1 -1
  1056. package/lib/cs/IntelligentGuidance/IntelligentGuidance.stories.js +18 -18
  1057. package/lib/cs/IntelligentGuidance/IntelligentGuidance.stories.js.map +1 -1
  1058. package/lib/cs/InteractionNotification/InteractionNotification.stories.d.ts +7 -6
  1059. package/lib/cs/InteractionNotification/InteractionNotification.stories.d.ts.map +1 -1
  1060. package/lib/cs/InteractionNotification/InteractionNotification.stories.js +13 -5
  1061. package/lib/cs/InteractionNotification/InteractionNotification.stories.js.map +1 -1
  1062. package/lib/cs/InteractionTimer/InteractionTimer.mocks.d.ts +11 -0
  1063. package/lib/cs/InteractionTimer/InteractionTimer.mocks.d.ts.map +1 -0
  1064. package/lib/cs/InteractionTimer/InteractionTimer.mocks.js +29 -0
  1065. package/lib/cs/InteractionTimer/InteractionTimer.mocks.js.map +1 -0
  1066. package/lib/cs/InteractionTimer/InteractionTimer.stories.d.ts +3 -7
  1067. package/lib/cs/InteractionTimer/InteractionTimer.stories.d.ts.map +1 -1
  1068. package/lib/cs/InteractionTimer/InteractionTimer.stories.js +38 -43
  1069. package/lib/cs/InteractionTimer/InteractionTimer.stories.js.map +1 -1
  1070. package/lib/cs/TaskManager/TaskManager.mocks.d.ts +18 -0
  1071. package/lib/cs/TaskManager/TaskManager.mocks.d.ts.map +1 -1
  1072. package/lib/cs/TaskManager/TaskManager.mocks.js +93 -0
  1073. package/lib/cs/TaskManager/TaskManager.mocks.js.map +1 -1
  1074. package/lib/cs/TaskManager/TaskManager.stories.d.ts +8 -6
  1075. package/lib/cs/TaskManager/TaskManager.stories.d.ts.map +1 -1
  1076. package/lib/cs/TaskManager/TaskManager.stories.js +123 -56
  1077. package/lib/cs/TaskManager/TaskManager.stories.js.map +1 -1
  1078. package/lib/cs/TaskManager/TaskManager.styles.d.ts +3 -0
  1079. package/lib/cs/TaskManager/TaskManager.styles.d.ts.map +1 -0
  1080. package/lib/cs/TaskManager/TaskManager.styles.js +9 -0
  1081. package/lib/cs/TaskManager/TaskManager.styles.js.map +1 -0
  1082. package/lib/dnd/DragDropList/DragDropList.mocks.d.ts +15 -0
  1083. package/lib/dnd/DragDropList/DragDropList.mocks.d.ts.map +1 -0
  1084. package/lib/dnd/DragDropList/DragDropList.mocks.js +32 -0
  1085. package/lib/dnd/DragDropList/DragDropList.mocks.js.map +1 -0
  1086. package/lib/dnd/DragDropList/DragDropList.stories.d.ts +8 -9
  1087. package/lib/dnd/DragDropList/DragDropList.stories.d.ts.map +1 -1
  1088. package/lib/dnd/DragDropList/DragDropList.stories.js +16 -87
  1089. package/lib/dnd/DragDropList/DragDropList.stories.js.map +1 -1
  1090. package/lib/dnd/DragDropList/DragDropList.styles.d.ts +6 -0
  1091. package/lib/dnd/DragDropList/DragDropList.styles.d.ts.map +1 -0
  1092. package/lib/dnd/DragDropList/DragDropList.styles.js +32 -0
  1093. package/lib/dnd/DragDropList/DragDropList.styles.js.map +1 -0
  1094. package/lib/dnd/StandardDragDropList/Demo.d.ts +7 -0
  1095. package/lib/dnd/StandardDragDropList/Demo.d.ts.map +1 -0
  1096. package/lib/dnd/StandardDragDropList/Demo.js +151 -0
  1097. package/lib/dnd/StandardDragDropList/Demo.js.map +1 -0
  1098. package/lib/dnd/StandardDragDropList/GroupConfig.d.ts +10 -0
  1099. package/lib/dnd/StandardDragDropList/GroupConfig.d.ts.map +1 -0
  1100. package/lib/dnd/StandardDragDropList/GroupConfig.js +18 -0
  1101. package/lib/dnd/StandardDragDropList/GroupConfig.js.map +1 -0
  1102. package/lib/dnd/StandardDragDropList/ItemConfig.d.ts +12 -0
  1103. package/lib/dnd/StandardDragDropList/ItemConfig.d.ts.map +1 -0
  1104. package/lib/dnd/StandardDragDropList/ItemConfig.js +20 -0
  1105. package/lib/dnd/StandardDragDropList/ItemConfig.js.map +1 -0
  1106. package/lib/dnd/StandardDragDropList/Popover.d.ts +14 -0
  1107. package/lib/dnd/StandardDragDropList/Popover.d.ts.map +1 -0
  1108. package/lib/dnd/StandardDragDropList/Popover.js +33 -0
  1109. package/lib/dnd/StandardDragDropList/Popover.js.map +1 -0
  1110. package/lib/dnd/StandardDragDropList/SelectionMenu.d.ts +16 -0
  1111. package/lib/dnd/StandardDragDropList/SelectionMenu.d.ts.map +1 -0
  1112. package/lib/dnd/StandardDragDropList/SelectionMenu.js +100 -0
  1113. package/lib/dnd/StandardDragDropList/SelectionMenu.js.map +1 -0
  1114. package/lib/dnd/StandardDragDropList/StandardDragDropList.stories.d.ts +5 -0
  1115. package/lib/dnd/StandardDragDropList/StandardDragDropList.stories.d.ts.map +1 -0
  1116. package/lib/dnd/StandardDragDropList/StandardDragDropList.stories.js +13 -0
  1117. package/lib/dnd/StandardDragDropList/StandardDragDropList.stories.js.map +1 -0
  1118. package/lib/dnd/StandardDragDropList/mockData.d.ts +26 -0
  1119. package/lib/dnd/StandardDragDropList/mockData.d.ts.map +1 -0
  1120. package/lib/dnd/StandardDragDropList/mockData.js +78 -0
  1121. package/lib/dnd/StandardDragDropList/mockData.js.map +1 -0
  1122. package/lib/rte/Editor/Editor.mocks.d.ts +309 -0
  1123. package/lib/rte/Editor/Editor.mocks.d.ts.map +1 -0
  1124. package/lib/rte/Editor/Editor.mocks.js +26 -0
  1125. package/lib/rte/Editor/Editor.mocks.js.map +1 -0
  1126. package/lib/rte/Editor/Editor.stories.d.ts +7 -8
  1127. package/lib/rte/Editor/Editor.stories.d.ts.map +1 -1
  1128. package/lib/rte/Editor/Editor.stories.js +8 -28
  1129. package/lib/rte/Editor/Editor.stories.js.map +1 -1
  1130. package/lib/rte/RichTextEditor/RichTextEditor.mocks.js +5 -5
  1131. package/lib/rte/RichTextEditor/RichTextEditor.mocks.js.map +1 -1
  1132. package/lib/rte/RichTextEditor/RichTextEditor.stories.d.ts +2 -3
  1133. package/lib/rte/RichTextEditor/RichTextEditor.stories.d.ts.map +1 -1
  1134. package/lib/rte/RichTextEditor/RichTextEditor.stories.js +5 -5
  1135. package/lib/rte/RichTextEditor/RichTextEditor.stories.js.map +1 -1
  1136. package/lib/rte/RichTextEditor/RichTextViewer.stories.d.ts +5 -5
  1137. package/lib/rte/RichTextEditor/RichTextViewer.stories.d.ts.map +1 -1
  1138. package/lib/rte/RichTextEditor/RichTextViewer.stories.js +19 -6
  1139. package/lib/rte/RichTextEditor/RichTextViewer.stories.js.map +1 -1
  1140. package/lib/social/Chat/Chat.stories.d.ts +6 -7
  1141. package/lib/social/Chat/Chat.stories.d.ts.map +1 -1
  1142. package/lib/social/Chat/Chat.stories.js +31 -31
  1143. package/lib/social/Chat/Chat.stories.js.map +1 -1
  1144. package/lib/social/Chat/RepeatingView.mocks.d.ts +14 -0
  1145. package/lib/social/Chat/RepeatingView.mocks.d.ts.map +1 -0
  1146. package/lib/social/Chat/RepeatingView.mocks.js +11 -0
  1147. package/lib/social/Chat/RepeatingView.mocks.js.map +1 -0
  1148. package/lib/social/Chat/RepeatingView.stories.d.ts +6 -17
  1149. package/lib/social/Chat/RepeatingView.stories.d.ts.map +1 -1
  1150. package/lib/social/Chat/RepeatingView.stories.js +18 -48
  1151. package/lib/social/Chat/RepeatingView.stories.js.map +1 -1
  1152. package/lib/social/Chat/RepeatingView.styles.d.ts +2 -0
  1153. package/lib/social/Chat/RepeatingView.styles.d.ts.map +1 -0
  1154. package/lib/social/Chat/RepeatingView.styles.js +22 -0
  1155. package/lib/social/Chat/RepeatingView.styles.js.map +1 -0
  1156. package/lib/social/Email/Email.mocks.d.ts +186 -3
  1157. package/lib/social/Email/Email.mocks.d.ts.map +1 -1
  1158. package/lib/social/Email/Email.mocks.js +563 -1
  1159. package/lib/social/Email/Email.mocks.js.map +1 -1
  1160. package/lib/social/Email/Email.stories.d.ts +40 -26
  1161. package/lib/social/Email/Email.stories.d.ts.map +1 -1
  1162. package/lib/social/Email/Email.stories.js +551 -639
  1163. package/lib/social/Email/Email.stories.js.map +1 -1
  1164. package/lib/social/Email/Email.styles.d.ts +3 -0
  1165. package/lib/social/Email/Email.styles.d.ts.map +1 -0
  1166. package/lib/social/Email/Email.styles.js +11 -0
  1167. package/lib/social/Email/Email.styles.js.map +1 -0
  1168. package/lib/social/Feed/Feed.mocks.d.ts +13 -18
  1169. package/lib/social/Feed/Feed.mocks.d.ts.map +1 -1
  1170. package/lib/social/Feed/Feed.mocks.js +45 -40
  1171. package/lib/social/Feed/Feed.mocks.js.map +1 -1
  1172. package/lib/social/Feed/Feed.stories.d.ts +8 -12
  1173. package/lib/social/Feed/Feed.stories.d.ts.map +1 -1
  1174. package/lib/social/Feed/Feed.stories.js +34 -28
  1175. package/lib/social/Feed/Feed.stories.js.map +1 -1
  1176. package/lib/social/Feed/FeedNewPost.stories.d.ts +7 -14
  1177. package/lib/social/Feed/FeedNewPost.stories.d.ts.map +1 -1
  1178. package/lib/social/Feed/FeedNewPost.stories.js +5 -4
  1179. package/lib/social/Feed/FeedNewPost.stories.js.map +1 -1
  1180. package/lib/social/Feed/FeedPost.stories.d.ts +4 -5
  1181. package/lib/social/Feed/FeedPost.stories.d.ts.map +1 -1
  1182. package/lib/social/Feed/FeedPost.stories.js +47 -36
  1183. package/lib/social/Feed/FeedPost.stories.js.map +1 -1
  1184. package/lib/social/Feed/FeedReply.stories.d.ts +10 -10
  1185. package/lib/social/Feed/FeedReply.stories.d.ts.map +1 -1
  1186. package/lib/social/Feed/FeedReply.stories.js +31 -26
  1187. package/lib/social/Feed/FeedReply.stories.js.map +1 -1
  1188. package/lib/social/Feed/FeedReplyInput.stories.d.ts +7 -12
  1189. package/lib/social/Feed/FeedReplyInput.stories.d.ts.map +1 -1
  1190. package/lib/social/Feed/FeedReplyInput.stories.js +5 -4
  1191. package/lib/social/Feed/FeedReplyInput.stories.js.map +1 -1
  1192. package/lib/work/AppAnnouncement/AppAnnouncement.stories.d.ts.map +1 -1
  1193. package/lib/work/AppAnnouncement/AppAnnouncement.stories.js +3 -1
  1194. package/lib/work/AppAnnouncement/AppAnnouncement.stories.js.map +1 -1
  1195. package/lib/work/CaseView/Attachments.mocks.js +15 -15
  1196. package/lib/work/CaseView/Attachments.mocks.js.map +1 -1
  1197. package/lib/work/CaseView/CaseView.mocks.js +7 -7
  1198. package/lib/work/CaseView/CaseView.mocks.js.map +1 -1
  1199. package/lib/work/CaseView/CaseView.stories.d.ts +4 -11
  1200. package/lib/work/CaseView/CaseView.stories.d.ts.map +1 -1
  1201. package/lib/work/CaseView/CaseView.stories.js +29 -21
  1202. package/lib/work/CaseView/CaseView.stories.js.map +1 -1
  1203. package/lib/work/CaseView/Details.mocks.js +1 -1
  1204. package/lib/work/CaseView/Details.mocks.js.map +1 -1
  1205. package/lib/work/CaseView/FileService.mock.js +1 -1
  1206. package/lib/work/CaseView/FileService.mock.js.map +1 -1
  1207. package/lib/work/CaseView/MobileCaseView.stories.d.ts +3 -9
  1208. package/lib/work/CaseView/MobileCaseView.stories.d.ts.map +1 -1
  1209. package/lib/work/CaseView/MobileCaseView.stories.js +1 -1
  1210. package/lib/work/CaseView/MobileCaseView.stories.js.map +1 -1
  1211. package/lib/work/CaseView/Pulse.mocks.d.ts +4 -3
  1212. package/lib/work/CaseView/Pulse.mocks.d.ts.map +1 -1
  1213. package/lib/work/CaseView/Pulse.mocks.js +3 -3
  1214. package/lib/work/CaseView/Pulse.mocks.js.map +1 -1
  1215. package/lib/work/ConfigurableLayout/ConfigurableLayout.mocks.d.ts +45 -0
  1216. package/lib/work/ConfigurableLayout/ConfigurableLayout.mocks.d.ts.map +1 -0
  1217. package/lib/work/ConfigurableLayout/ConfigurableLayout.mocks.js +165 -0
  1218. package/lib/work/ConfigurableLayout/ConfigurableLayout.mocks.js.map +1 -0
  1219. package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts +3 -8
  1220. package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts.map +1 -1
  1221. package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.js +5 -174
  1222. package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.js.map +1 -1
  1223. package/lib/work/ConfigurableLayout/ConfigurableLayout.styles.d.ts +4 -0
  1224. package/lib/work/ConfigurableLayout/ConfigurableLayout.styles.d.ts.map +1 -0
  1225. package/lib/work/ConfigurableLayout/ConfigurableLayout.styles.js +11 -0
  1226. package/lib/work/ConfigurableLayout/ConfigurableLayout.styles.js.map +1 -0
  1227. package/lib/work/Confirmation/Confirmation.stories.d.ts +3 -0
  1228. package/lib/work/Confirmation/Confirmation.stories.d.ts.map +1 -1
  1229. package/lib/work/Confirmation/Confirmation.stories.js +12 -8
  1230. package/lib/work/Confirmation/Confirmation.stories.js.map +1 -1
  1231. package/lib/work/Details/Details.stories.d.ts.map +1 -1
  1232. package/lib/work/Details/Details.stories.js +14 -59
  1233. package/lib/work/Details/Details.stories.js.map +1 -1
  1234. package/lib/work/Glimpse/Glimpse.stories.d.ts.map +1 -1
  1235. package/lib/work/Glimpse/Glimpse.stories.js +3 -3
  1236. package/lib/work/Glimpse/Glimpse.stories.js.map +1 -1
  1237. package/lib/work/SearchResults/SearchResults.mocks.js +4 -4
  1238. package/lib/work/SearchResults/SearchResults.mocks.js.map +1 -1
  1239. package/lib/work/SearchResults/SearchResults.stories.d.ts +1 -0
  1240. package/lib/work/SearchResults/SearchResults.stories.d.ts.map +1 -1
  1241. package/lib/work/SearchResults/SearchResults.stories.js +19 -17
  1242. package/lib/work/SearchResults/SearchResults.stories.js.map +1 -1
  1243. package/lib/work/Stages/Stages.mocks.d.ts +14 -0
  1244. package/lib/work/Stages/Stages.mocks.d.ts.map +1 -0
  1245. package/lib/work/Stages/Stages.mocks.js +39 -0
  1246. package/lib/work/Stages/Stages.mocks.js.map +1 -0
  1247. package/lib/work/Stages/Stages.stories.d.ts +1 -1
  1248. package/lib/work/Stages/Stages.stories.d.ts.map +1 -1
  1249. package/lib/work/Stages/Stages.stories.js +12 -44
  1250. package/lib/work/Stages/Stages.stories.js.map +1 -1
  1251. package/lib/work/Stakeholders/Stakeholders.mocks.js +3 -3
  1252. package/lib/work/Stakeholders/Stakeholders.mocks.js.map +1 -1
  1253. package/lib/work/Stakeholders/Stakeholders.stories.d.ts +2 -3
  1254. package/lib/work/Stakeholders/Stakeholders.stories.d.ts.map +1 -1
  1255. package/lib/work/Stakeholders/Stakeholders.stories.js +2 -1
  1256. package/lib/work/Stakeholders/Stakeholders.stories.js.map +1 -1
  1257. package/lib/work/Tags/Tags.stories.js +1 -1
  1258. package/lib/work/Tags/Tags.stories.js.map +1 -1
  1259. package/lib/work/Tasks/TaskList.stories.d.ts.map +1 -1
  1260. package/lib/work/Tasks/TaskList.stories.js +6 -4
  1261. package/lib/work/Tasks/TaskList.stories.js.map +1 -1
  1262. package/lib/work/Tasks/Tasks.stories.d.ts +4 -0
  1263. package/lib/work/Tasks/Tasks.stories.d.ts.map +1 -1
  1264. package/lib/work/Tasks/Tasks.stories.js +29 -17
  1265. package/lib/work/Tasks/Tasks.stories.js.map +1 -1
  1266. package/lib/work/Timeline/Timeline.mocks.js +8 -8
  1267. package/lib/work/Timeline/Timeline.mocks.js.map +1 -1
  1268. package/lib/work/Timeline/Timeline.stories.d.ts +1 -0
  1269. package/lib/work/Timeline/Timeline.stories.d.ts.map +1 -1
  1270. package/lib/work/Timeline/Timeline.stories.js +24 -3
  1271. package/lib/work/Timeline/Timeline.stories.js.map +1 -1
  1272. package/lib/wss/AppShell/AppShell.mocks.d.ts +24 -0
  1273. package/lib/wss/AppShell/AppShell.mocks.d.ts.map +1 -0
  1274. package/lib/wss/AppShell/AppShell.mocks.js +59 -0
  1275. package/lib/wss/AppShell/AppShell.mocks.js.map +1 -0
  1276. package/lib/wss/AppShell/AppShell.stories.d.ts +17 -0
  1277. package/lib/wss/AppShell/AppShell.stories.d.ts.map +1 -0
  1278. package/lib/wss/AppShell/AppShell.stories.js +77 -0
  1279. package/lib/wss/AppShell/AppShell.stories.js.map +1 -0
  1280. package/lib/wss/AppShell/AppShell.styles.d.ts +2 -0
  1281. package/lib/wss/AppShell/AppShell.styles.d.ts.map +1 -0
  1282. package/lib/wss/AppShell/AppShell.styles.js +5 -0
  1283. package/lib/wss/AppShell/AppShell.styles.js.map +1 -0
  1284. package/lib/wss/QuickCreate/QuickCreate.stories.d.ts +10 -0
  1285. package/lib/wss/QuickCreate/QuickCreate.stories.d.ts.map +1 -0
  1286. package/lib/wss/QuickCreate/QuickCreate.stories.js +36 -0
  1287. package/lib/wss/QuickCreate/QuickCreate.stories.js.map +1 -0
  1288. package/package.json +22 -18
  1289. package/jsx/build/AppShell/AppShell.mocks.js.map +0 -1
  1290. package/jsx/build/FlowModeller/FlowModeller.mocks.js.map +0 -1
  1291. package/jsx/core/MultiStep/MultiStep.stories.d.ts +0 -6
  1292. package/jsx/core/MultiStep/MultiStep.stories.d.ts.map +0 -1
  1293. package/jsx/core/MultiStep/MultiStep.stories.jsx +0 -56
  1294. package/jsx/core/MultiStep/MultiStep.stories.jsx.map +0 -1
  1295. package/jsx/cs/CSCaseView/CSCaseView.mocks.d.ts.map +0 -1
  1296. package/jsx/cs/CSCaseView/CSCaseView.mocks.js.map +0 -1
  1297. package/jsx/social/Email/Email.mocks.js +0 -348
  1298. package/jsx/social/Email/Email.mocks.js.map +0 -1
  1299. package/lib/core/MultiStep/MultiStep.stories.d.ts +0 -6
  1300. package/lib/core/MultiStep/MultiStep.stories.d.ts.map +0 -1
  1301. package/lib/core/MultiStep/MultiStep.stories.js +0 -36
  1302. package/lib/core/MultiStep/MultiStep.stories.js.map +0 -1
  1303. package/lib/cs/CSCaseView/CSCaseView.mocks.d.ts.map +0 -1
  1304. package/lib/cs/CSCaseView/CSCaseView.mocks.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"Table.stories.js","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,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,MAAM,EAAE,EAAE;QAC7C,UAAU,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;KAC7C;CACM,CAAC;AAUV,MAAM,CAAC,MAAM,SAAS,GAA2B,CAAC,IAAqB,EAAE,EAAE;IACzE,MAAM,OAAO,GAA4C;QACvD,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE;QACnC,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,eAAe,EAAE;QAC3C,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE;QACzC,EAAE,QAAQ,EAAE,OAAO,EAAE,KA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E;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 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: '#f5f5f5',\n headerVerticalSpacing: 1,\n headerHorizontalSpacing: 2,\n headerBorderWidth: '0.0625rem',\n headerBorderColor: '#cfcfcf',\n bodyForegroundColor: '#000000',\n bodyBackgroundColor: '#ffffff',\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.js","sourceRoot":"","sources":["../../../src/core/Table/Table.stories.tsx"],"names":[],"mappings":";AAEA,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AAE;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 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"]}
@@ -2,8 +2,11 @@ import { Meta, Story } from '@storybook/react';
2
2
  import { TabsProps } from '@pega/cosmos-react-core';
3
3
  declare const _default: Meta<import("@storybook/react").Args>;
4
4
  export default _default;
5
- export declare const TabsDemo: Story<TabsProps>;
6
- export declare const TabsCountDemo: Story<TabsProps>;
5
+ interface TabDemoProps {
6
+ type: 'horizontal' | 'vertical';
7
+ }
8
+ export declare const TabsDemo: Story<TabDemoProps>;
9
+ export declare const TabsCountDemo: Story<TabDemoProps>;
7
10
  interface ConfigurableTabsProps {
8
11
  foreground?: string;
9
12
  type?: TabsProps['type'];
@@ -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,wBASU;AAEV,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,SAAS,CA6BrC,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,SAAS,CA6B1C,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;AAG/C,OAAO,EAAuC,SAAS,EAAE,MAAM,yBAAyB,CAAC;;AAEzF,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;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"}
@@ -23,7 +23,7 @@ export const TabsDemo = (args) => {
23
23
  { name: 'Tab 4', id: '4', disabled: true },
24
24
  { name: 'Tab 5', id: '5' }
25
25
  ];
26
- return (_jsxs(Flex, { container: { direction: args.type === 'horizontal' ? 'column' : 'row' }, children: [_jsx(Flex, { item: { grow: 1 }, children: _jsx(Tabs, { tabs: tabs, type: args.type, onTabClick: handleTabChange, currentTabId: panelShown }, void 0) }, void 0), _jsx(Flex, { container: { pad: [1, 2] }, item: { grow: 1 }, children: tabs.map(tab => (_jsx(TabPanel, { tabId: tab.id, currentTabId: panelShown, children: _jsxs("div", { children: [tab.name, " content"] }, void 0) }, tab.id))) }, void 0)] }, void 0));
26
+ return (_jsxs(Flex, { container: { direction: args.type === 'horizontal' ? 'column' : 'row' }, children: [_jsx(Flex, { item: { grow: 1 }, children: _jsx(Tabs, { tabs: tabs, type: args.type, onTabClick: handleTabChange, currentTabId: panelShown }) }), _jsx(Flex, { container: { pad: [1, 2] }, item: { grow: 1 }, children: tabs.map(tab => (_jsx(TabPanel, { tabId: tab.id, currentTabId: panelShown, children: _jsxs("div", { children: [tab.name, " content"] }) }, tab.id))) })] }));
27
27
  };
28
28
  export const TabsCountDemo = (args) => {
29
29
  const [panelShown, changePanel] = useState('1');
@@ -37,7 +37,7 @@ export const TabsCountDemo = (args) => {
37
37
  { name: 'Tab 4', id: '4', count: 56, disabled: true },
38
38
  { name: 'Tab 5', id: '5', count: 150 }
39
39
  ];
40
- return (_jsxs(Flex, { container: { direction: args.type === 'horizontal' ? 'column' : 'row' }, children: [_jsx(Flex, { item: { grow: 1 }, children: _jsx(Tabs, { tabs: tabs, type: args.type, onTabClick: handleTabChange, currentTabId: panelShown }, void 0) }, void 0), _jsx(Flex, { container: { pad: [1, 2] }, item: { grow: 1 }, children: tabs.map(tab => (_jsx(TabPanel, { tabId: tab.id, currentTabId: panelShown, children: _jsxs("div", { children: [tab.name, " content"] }, void 0) }, tab.id))) }, void 0)] }, void 0));
40
+ return (_jsxs(Flex, { container: { direction: args.type === 'horizontal' ? 'column' : 'row' }, children: [_jsx(Flex, { item: { grow: 1 }, children: _jsx(Tabs, { tabs: tabs, type: args.type, onTabClick: handleTabChange, currentTabId: panelShown }) }), _jsx(Flex, { container: { pad: [1, 2] }, item: { grow: 1 }, children: tabs.map(tab => (_jsx(TabPanel, { tabId: tab.id, currentTabId: panelShown, children: _jsxs("div", { children: [tab.name, " content"] }) }, tab.id))) })] }));
41
41
  };
42
42
  export const ConfigurableTabs = (args) => {
43
43
  const [panelShown, changePanel] = useState('1');
@@ -59,7 +59,7 @@ export const ConfigurableTabs = (args) => {
59
59
  }
60
60
  }
61
61
  }
62
- }, children: [_jsx(Flex, { item: { grow: 1 }, children: _jsx(Tabs, { tabs: tabs, onTabClick: handleTabChange, currentTabId: panelShown }, void 0) }, void 0), _jsx(Flex, { container: { pad: [1, 2] }, item: { grow: 1 }, children: tabs.map(tab => (_jsx(TabPanel, { tabId: tab.id, currentTabId: panelShown, children: _jsxs("div", { children: [tab.name, " content"] }, void 0) }, tab.id))) }, void 0)] }, void 0));
62
+ }, children: [_jsx(Flex, { item: { grow: 1 }, children: _jsx(Tabs, { tabs: tabs, onTabClick: handleTabChange, currentTabId: panelShown }) }), _jsx(Flex, { container: { pad: [1, 2] }, item: { grow: 1 }, children: tabs.map(tab => (_jsx(TabPanel, { tabId: tab.id, currentTabId: panelShown, children: _jsxs("div", { children: [tab.name, " content"] }) }, tab.id))) })] }));
63
63
  };
64
64
  ConfigurableTabs.args = {
65
65
  foreground: '#076bc9'
@@ -1 +1 @@
1
- {"version":3,"file":"Tabs.stories.js","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,yBAA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,GAAG,EAAE;KAC3B,CAAC;IAEF,OAAO,CACL,MAAC,aAAa,IACZ,KAAK,EAAE;YACL,UAAU,EAAE;gBACV,IAAI,EAAE;oBACJ,IAAI,EAAE;wBACJ,UAAU,EAAE,IAAI,CAAC,UAAU;qBAC5B;iBACF;aACF;SACF,aAED,KAAC,IAAI,IAAC,IAAI,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,YACrB,KAAC,IAAI,IAAC,IAAI,EAAE,IAAI,EAAE,UAAU,EAAE,eAAe,EAAE,YAAY,EAAE,UAAU,WAAI,WACtE,EACP,KAAC,IAAI,IAAC,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,YAChD,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,CACf,KAAC,QAAQ,IAAC,KAAK,EAAE,GAAG,CAAC,EAAE,EAAE,YAAY,EAAE,UAAU,YAC/C,0BAAM,GAAG,CAAC,IAAI,wBAAe,IADyB,GAAG,CAAC,EAAE,CAEnD,CACZ,CAAC,WACG,YACO,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 args: {\n type: 'horizontal'\n },\n argTypes: {\n type: { options: ['horizontal', 'vertical'], control: { type: 'select' } }\n }\n} as Meta;\n\nexport const TabsDemo: Story<TabsProps> = (args: TabsProps) => {\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} content</div>\n </TabPanel>\n ))}\n </Flex>\n </Flex>\n );\n};\n\nexport const TabsCountDemo: Story<TabsProps> = (args: TabsProps) => {\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.js","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,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,CAA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E,GAAG,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,YAChD,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,CACf,KAAC,QAAQ,IAAC,KAAK,EAAE,GAAG,CAAC,EAAE,EAAE,YAAY,EAAE,UAAU,YAC/C,0BAAM,GAAG,CAAC,IAAI,gBAAe,IADyB,GAAG,CAAC,EAAE,CAEnD,CACZ,CAAC,GACG,IACO,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 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} content</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"]}
@@ -5,7 +5,7 @@ export default {
5
5
  component: Text
6
6
  };
7
7
  export const TextDemo = (args) => {
8
- return (_jsx(Text, { variant: args.variant, status: args.status, children: "Pega Cosmos" }, void 0));
8
+ return (_jsx(Text, { variant: args.variant, status: args.status, children: "Pega Cosmos" }));
9
9
  };
10
10
  TextDemo.args = {
11
11
  variant: 'primary',
@@ -56,7 +56,7 @@ export const ConfigurableText = (args) => {
56
56
  }
57
57
  }
58
58
  }
59
- }, children: _jsxs(Flex, { container: { gap: 2, alignItems: 'end' }, children: [_jsx(Text, { variant: 'primary', children: "Primary" }, void 0), _jsx(Text, { variant: 'secondary', children: "Secondary" }, void 0), _jsx(Text, { variant: 'h1', children: "h1" }, void 0), _jsx(Text, { variant: 'h2', children: "h2" }, void 0), _jsx(Text, { variant: 'h3', children: "h3" }, void 0), _jsx(Text, { variant: 'h4', children: "h4" }, void 0), _jsx(Text, { variant: 'h5', children: "h5" }, void 0), _jsx(Text, { variant: 'h6', children: "h6" }, void 0)] }, void 0) }, void 0));
59
+ }, children: _jsxs(Flex, { container: { gap: 2, alignItems: 'end' }, children: [_jsx(Text, { variant: 'primary', children: "Primary" }), _jsx(Text, { variant: 'secondary', children: "Secondary" }), _jsx(Text, { variant: 'h1', children: "h1" }), _jsx(Text, { variant: 'h2', children: "h2" }), _jsx(Text, { variant: 'h3', children: "h3" }), _jsx(Text, { variant: 'h4', children: "h4" }), _jsx(Text, { variant: 'h5', children: "h5" }), _jsx(Text, { variant: 'h6', children: "h6" })] }) }));
60
60
  };
61
61
  ConfigurableText.args = {
62
62
  primaryFontSize: 's',
@@ -1 +1 @@
1
- {"version":3,"file":"Text.stories.js","sourceRoot":"","sources":["../../../src/core/Text/Text.stories.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,aAAa,EAAE,IAAI,EAAE,IAAI,EAAa,MAAM,yBAAyB,CAAC;AAE/E,eAAe;IACb,KAAK,EAAE,WAAW;IAClB,SAAS,EAAE,IAAI;CACR,CAAC;AAEV,MAAM,CAAC,MAAM,QAAQ,GAAqB,CAAC,IAAe,EAAE,EAAE;IAC5D,OAAO,CACL,KAAC,IAAI,IAAC,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,oCAEzC,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,QAAQ,CAAC,IAAI,GAAG;IACd,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,SAAS;CAClB,CAAC;AAEF,QAAQ,CAAC,QAAQ,GAAG;IAClB,OAAO,EAAE;QACP,OAAO,EAAE,CAAC,SAAS,EAAE,WAAW,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC;QACrE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;KAC5B;IACD,MAAM,EAAE,EAAE,OAAO,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,OAAO,CAAC,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;CAC7F,CAAC;AAqBF,MAAM,CAAC,MAAM,gBAAgB,GAAiC,CAAC,IAA2B,EAAE,EAAE;IAC5F,OAAO,CACL,KAAC,aAAa,IACZ,KAAK,EAAE;YACL,UAAU,EAAE;gBACV,IAAI,EAAE;oBACJ,OAAO,EAAE;wBACP,WAAW,EAAE,IAAI,CAAC,eAAe;wBACjC,aAAa,EAAE,IAAI,CAAC,iBAAiB;qBACtC;oBACD,SAAS,EAAE;wBACT,WAAW,EA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AAI,EAAE,MAAM,EAAE,EAAE;CAC5C,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\n\nimport { Configuration, Flex, Text, TextProps } from '@pega/cosmos-react-core';\n\nexport default {\n title: 'Core/Text',\n component: Text\n} as Meta;\n\nexport const TextDemo: Story<TextProps> = (args: TextProps) => {\n return (\n <Text variant={args.variant} status={args.status}>\n Pega Cosmos\n </Text>\n );\n};\n\nTextDemo.args = {\n variant: 'primary',\n status: undefined\n};\n\nTextDemo.argTypes = {\n variant: {\n options: ['primary', 'secondary', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6'],\n control: { type: 'select' }\n },\n status: { options: [undefined, 'success', 'warning', 'error'], control: { type: 'select' } }\n};\n\ninterface ConfigurableTextProps {\n primaryFontSize?: string;\n primaryFontWeight?: string;\n secondaryFontSize?: string;\n secondaryFontWeight?: string;\n h1FontSize?: string;\n h1FontWeight?: string;\n h2FontSize?: string;\n h2FontWeight?: string;\n h3FontSize?: string;\n h3FontWeight?: string;\n h4FontSize?: string;\n h4FontWeight?: string;\n h5FontSize?: string;\n h5FontWeight?: string;\n h6FontSize?: string;\n h6FontWeight?: string;\n}\n\nexport const ConfigurableText: Story<ConfigurableTextProps> = (args: ConfigurableTextProps) => {\n return (\n <Configuration\n theme={{\n components: {\n text: {\n primary: {\n 'font-size': args.primaryFontSize,\n 'font-weight': args.primaryFontWeight\n },\n secondary: {\n 'font-size': args.secondaryFontSize,\n 'font-weight': args.secondaryFontWeight\n },\n h1: {\n 'font-size': args.h1FontSize,\n 'font-weight': args.h1FontWeight\n },\n h2: {\n 'font-size': args.h2FontSize,\n 'font-weight': args.h2FontWeight\n },\n h3: {\n 'font-size': args.h3FontSize,\n 'font-weight': args.h3FontWeight\n },\n h4: {\n 'font-size': args.h4FontSize,\n 'font-weight': args.h4FontWeight\n },\n h5: {\n 'font-size': args.h5FontSize,\n 'font-weight': args.h5FontWeight\n },\n h6: {\n 'font-size': args.h6FontSize,\n 'font-weight': args.h6FontWeight\n }\n }\n }\n }}\n >\n <Flex container={{ gap: 2, alignItems: 'end' }}>\n <Text variant='primary'>Primary</Text>\n <Text variant='secondary'>Secondary</Text>\n <Text variant='h1'>h1</Text>\n <Text variant='h2'>h2</Text>\n <Text variant='h3'>h3</Text>\n <Text variant='h4'>h4</Text>\n <Text variant='h5'>h5</Text>\n <Text variant='h6'>h6</Text>\n </Flex>\n </Configuration>\n );\n};\n\nConfigurableText.args = {\n primaryFontSize: 's',\n primaryFontWeight: '400',\n secondaryFontSize: 'xs',\n secondaryFontWeight: '400',\n h1FontSize: 'xl',\n h1FontWeight: '600',\n h2FontSize: 'l',\n h2FontWeight: '600',\n h3FontSize: 'm',\n h3FontWeight: '600',\n h4FontSize: 's',\n h4FontWeight: '600',\n h5FontSize: 'xs',\n h5FontWeight: '600',\n h6FontSize: 'xxs',\n h6FontWeight: '600'\n};\n\nConfigurableText.argTypes = {\n primaryFontSize: {\n options: ['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl'],\n control: { type: 'select' }\n },\n primaryFontWeight: { control: { type: 'text' } },\n secondaryFontSize: {\n options: ['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl'],\n control: { type: 'select' }\n },\n secondaryFontWeight: { control: { type: 'text' } },\n h1FontSize: {\n options: ['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl'],\n control: { type: 'select' }\n },\n h1FontWeight: { control: { type: 'text' } },\n h2FontSize: {\n options: ['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl'],\n control: { type: 'select' }\n },\n h2FontWeight: { control: { type: 'text' } },\n h3FontSize: {\n options: ['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl'],\n control: { type: 'select' }\n },\n h3FontWeight: { control: { type: 'text' } },\n h4FontSize: {\n options: ['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl'],\n control: { type: 'select' }\n },\n h4FontWeight: { control: { type: 'text' } },\n h5FontSize: {\n options: ['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl'],\n control: { type: 'select' }\n },\n h5FontWeight: { control: { type: 'text' } },\n h6FontSize: {\n options: ['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl'],\n control: { type: 'select' }\n },\n h6FontWeight: { control: { type: 'text' } }\n};\n"]}
1
+ {"version":3,"file":"Text.stories.js","sourceRoot":"","sources":["../../../src/core/Text/Text.stories.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,aAAa,EAAE,IAAI,EAAE,IAAI,EAAa,MAAM,yBAAyB,CAAC;AAE/E,eAAe;IACb,KAAK,EAAE,WAAW;IAClB,SAAS,EAAE,IAAI;CACR,CAAC;AAEV,MAAM,CAAC,MAAM,QAAQ,GAAqB,CAAC,IAAe,EAAE,EAAE;IAC5D,OAAO,CACL,KAAC,IAAI,IAAC,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,4BAEzC,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,QAAQ,CAAC,IAAI,GAAG;IACd,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,SAAS;CAClB,CAAC;AAEF,QAAQ,CAAC,QAAQ,GAAG;IAClB,OAAO,EAAE;QACP,OAAO,EAAE,CAAC,SAAS,EAAE,WAAW,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC;QACrE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;KAC5B;IACD,MAAM,EAAE,EAAE,OAAO,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,OAAO,CAAC,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;CAC7F,CAAC;AAqBF,MAAM,CAAC,MAAM,gBAAgB,GAAiC,CAAC,IAA2B,EAAE,EAAE;IAC5F,OAAO,CACL,KAAC,aAAa,IACZ,KAAK,EAAE;YACL,UAAU,EAAE;gBACV,IAAI,EAAE;oBACJ,OAAO,EAAE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EAAE,KAAK,CAAC;QAClD,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;KAC5B;IACD,YAAY,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;CAC5C,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\n\nimport { Configuration, Flex, Text, TextProps } from '@pega/cosmos-react-core';\n\nexport default {\n title: 'Core/Text',\n component: Text\n} as Meta;\n\nexport const TextDemo: Story<TextProps> = (args: TextProps) => {\n return (\n <Text variant={args.variant} status={args.status}>\n Pega Cosmos\n </Text>\n );\n};\n\nTextDemo.args = {\n variant: 'primary',\n status: undefined\n};\n\nTextDemo.argTypes = {\n variant: {\n options: ['primary', 'secondary', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6'],\n control: { type: 'select' }\n },\n status: { options: [undefined, 'success', 'warning', 'error'], control: { type: 'select' } }\n};\n\ninterface ConfigurableTextProps {\n primaryFontSize?: string;\n primaryFontWeight?: string;\n secondaryFontSize?: string;\n secondaryFontWeight?: string;\n h1FontSize?: string;\n h1FontWeight?: string;\n h2FontSize?: string;\n h2FontWeight?: string;\n h3FontSize?: string;\n h3FontWeight?: string;\n h4FontSize?: string;\n h4FontWeight?: string;\n h5FontSize?: string;\n h5FontWeight?: string;\n h6FontSize?: string;\n h6FontWeight?: string;\n}\n\nexport const ConfigurableText: Story<ConfigurableTextProps> = (args: ConfigurableTextProps) => {\n return (\n <Configuration\n theme={{\n components: {\n text: {\n primary: {\n 'font-size': args.primaryFontSize,\n 'font-weight': args.primaryFontWeight\n },\n secondary: {\n 'font-size': args.secondaryFontSize,\n 'font-weight': args.secondaryFontWeight\n },\n h1: {\n 'font-size': args.h1FontSize,\n 'font-weight': args.h1FontWeight\n },\n h2: {\n 'font-size': args.h2FontSize,\n 'font-weight': args.h2FontWeight\n },\n h3: {\n 'font-size': args.h3FontSize,\n 'font-weight': args.h3FontWeight\n },\n h4: {\n 'font-size': args.h4FontSize,\n 'font-weight': args.h4FontWeight\n },\n h5: {\n 'font-size': args.h5FontSize,\n 'font-weight': args.h5FontWeight\n },\n h6: {\n 'font-size': args.h6FontSize,\n 'font-weight': args.h6FontWeight\n }\n }\n }\n }}\n >\n <Flex container={{ gap: 2, alignItems: 'end' }}>\n <Text variant='primary'>Primary</Text>\n <Text variant='secondary'>Secondary</Text>\n <Text variant='h1'>h1</Text>\n <Text variant='h2'>h2</Text>\n <Text variant='h3'>h3</Text>\n <Text variant='h4'>h4</Text>\n <Text variant='h5'>h5</Text>\n <Text variant='h6'>h6</Text>\n </Flex>\n </Configuration>\n );\n};\n\nConfigurableText.args = {\n primaryFontSize: 's',\n primaryFontWeight: '400',\n secondaryFontSize: 'xs',\n secondaryFontWeight: '400',\n h1FontSize: 'xl',\n h1FontWeight: '600',\n h2FontSize: 'l',\n h2FontWeight: '600',\n h3FontSize: 'm',\n h3FontWeight: '600',\n h4FontSize: 's',\n h4FontWeight: '600',\n h5FontSize: 'xs',\n h5FontWeight: '600',\n h6FontSize: 'xxs',\n h6FontWeight: '600'\n};\n\nConfigurableText.argTypes = {\n primaryFontSize: {\n options: ['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl'],\n control: { type: 'select' }\n },\n primaryFontWeight: { control: { type: 'text' } },\n secondaryFontSize: {\n options: ['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl'],\n control: { type: 'select' }\n },\n secondaryFontWeight: { control: { type: 'text' } },\n h1FontSize: {\n options: ['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl'],\n control: { type: 'select' }\n },\n h1FontWeight: { control: { type: 'text' } },\n h2FontSize: {\n options: ['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl'],\n control: { type: 'select' }\n },\n h2FontWeight: { control: { type: 'text' } },\n h3FontSize: {\n options: ['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl'],\n control: { type: 'select' }\n },\n h3FontWeight: { control: { type: 'text' } },\n h4FontSize: {\n options: ['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl'],\n control: { type: 'select' }\n },\n h4FontWeight: { control: { type: 'text' } },\n h5FontSize: {\n options: ['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl'],\n control: { type: 'select' }\n },\n h5FontWeight: { control: { type: 'text' } },\n h6FontSize: {\n options: ['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl'],\n control: { type: 'select' }\n },\n h6FontWeight: { control: { type: 'text' } }\n};\n"]}
@@ -7,7 +7,7 @@ export default {
7
7
  };
8
8
  export const TextAreaDemo = (args) => {
9
9
  const [value, setValue] = useState('');
10
- return (_jsx(TextArea, { id: 'text-area', value: value, onChange: (e) => setValue(e.target.value), minLength: args.minLength, maxLength: args.maxLength, displayCharCount: args.displayCharCount, hardStop: args.hardStop, resizable: args.resizable, autoResize: args.autoResize, label: args.label, labelHidden: args.labelHidden, info: args.info, placeholder: args.placeholder, status: args.status, required: args.required, disabled: args.disabled, readOnly: args.readOnly }, void 0));
10
+ return (_jsx(TextArea, { id: 'text-area', value: value, onChange: (e) => setValue(e.target.value), minLength: args.minLength, maxLength: args.maxLength, displayCharCount: args.displayCharCount, hardStop: args.hardStop, resizable: args.resizable, autoResize: args.autoResize, label: args.label, labelHidden: args.labelHidden, info: args.info, placeholder: args.placeholder, status: args.status, required: args.required, disabled: args.disabled, readOnly: args.readOnly }));
11
11
  };
12
12
  TextAreaDemo.args = {
13
13
  minLength: 0,
@@ -50,7 +50,7 @@ export const ConfigurableTextArea = (args) => {
50
50
  padding: args.padding
51
51
  }
52
52
  }
53
- }, children: _jsx(TextArea, { value: value, onChange: (e) => setValue(e.target.value), resizable: true, autoResize: true, label: 'Configurable Text Area', info: 'Enter a large amount of text', placeholder: 'Tell us a story\u2026' }, void 0) }, void 0));
53
+ }, children: _jsx(TextArea, { value: value, onChange: (e) => setValue(e.target.value), resizable: true, autoResize: true, label: 'Configurable Text Area', info: 'Enter a large amount of text', placeholder: 'Tell us a story\u2026' }) }));
54
54
  };
55
55
  ConfigurableText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ration, TextArea, TextAreaProps } from '@pega/cosmos-react-core';\n\nexport default {\n title: 'Core/Textarea',\n component: TextArea\n} as Meta;\n\nexport const TextAreaDemo: Story<TextAreaProps> = (args: TextAreaProps) => {\n const [value, setValue] = useState('');\n\n return (\n <TextArea\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};\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};\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.js","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;CACZ,CAAC;AAEV,MAAM,CAAC,MAAM,YAAY,GAAyB,CAAC,IAAmB,EAAE,EAAE;IACxE,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC;IAEvC,OAAO,CACL,KAAC,QAAQ,IACP,EAAE,EAAC,WAAW,EACd,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,CAAC,CAAmC,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAC3E,SAAS,EAAE,IAAI,CAAC,SAAS,EACzB,SAAS,EAAE,IAAI,CAAC,SAAS,EACzB,gBAAgB,EAAE,IAAI,CAAC,gBAAgB,EACvC,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,SAAS,EAAE,IAAI,CAAC,SAAS,EACzB,UAAU,EAAE,IAAI,CAAC,UAAU,EAC3B,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,WAAW,EAAE,IAAI,CAAC,WAAW,EAC7B,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,WA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AoB,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} as Meta;\n\nexport const TextAreaDemo: Story<TextAreaProps> = (args: TextAreaProps) => {\n const [value, setValue] = useState('');\n\n return (\n <TextArea\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};\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};\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,6 +1,5 @@
1
- /// <reference types="react" />
2
- import { Meta } from '@storybook/react';
1
+ import { Meta, Story } from '@storybook/react';
3
2
  declare const _default: Meta<import("@storybook/react").Args>;
4
3
  export default _default;
5
- export declare const ToasterDemo: () => JSX.Element;
4
+ export declare const ToasterDemo: Story;
6
5
  //# sourceMappingURL=Toaster.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Toaster.stories.d.ts","sourceRoot":"","sources":["../../../src/core/Toaster/Toaster.stories.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;;AAKxC,wBAGU;AAEV,eAAO,MAAM,WAAW,mBAyBvB,CAAC"}
1
+ {"version":3,"file":"Toaster.stories.d.ts","sourceRoot":"","sources":["../../../src/core/Toaster/Toaster.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;;AAK/C,wBAGU;AAEV,eAAO,MAAM,WAAW,EAAE,KAyBzB,CAAC"}
@@ -19,8 +19,8 @@ export const ToasterDemo = () => {
19
19
  content: messages[count % 2]
20
20
  });
21
21
  };
22
- return _jsx(Button, { onClick: pushToaster, children: "Make some Toast" }, void 0);
22
+ return _jsx(Button, { onClick: pushToaster, children: "Make some Toast" });
23
23
  };
24
- return (_jsx(Toaster, { dismissAfter: 5000, children: _jsx(MakeToastButton, {}, void 0) }, void 0));
24
+ return (_jsx(Toaster, { dismissAfter: 5000, children: _jsx(MakeToastButton, {}) }));
25
25
  };
26
26
  //# sourceMappingURL=Toaster.stories.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Toaster.stories.js","sourceRoot":"","sources":["../../../src/core/Toaster/Toaster.stories.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE7C,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAE1E,eAAe;IACb,KAAK,EAAE,cAAc;IACrB,SAAS,EAAE,OAAO;CACX,CAAC;AAEV,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,EAAE;IAC9B,MAAM,eAAe,GAAG,GAAG,EAAE;QAC3B,MAAM,EAAE,IAAI,EAAE,GAAG,UAAU,CAAC,cAAc,CAAC,CAAC;QAC5C,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;QAEtC,MAAM,QAAQ,GAAG;YACf,gCAAgC;YAChC,sIAAsI;SACvI,CAAC;QAEF,MAAM,WAAW,GAAG,GAAG,EAAE;YACvB,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC;YAC3B,IAAI,CAAC;gBACH,OAAO,EAAE,QAAQ,CAAC,KAAK,GAAG,CAAC,CAAC;aAC7B,CAAC,CAAC;QACL,CAAC,CAAC;QAEF,OAAO,KAAC,MAAM,IAAC,OAAO,EAAE,WAAW,wCAA0B,CAAC;IAChE,CAAC,CAAC;IAEF,OAAO,CACL,KAAC,OAAO,IAAC,YAAY,EAAE,IAAI,YACzB,KAAC,eAAe,aAAG,WACX,CACX,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { Meta } from '@storybook/react';\nimport { useContext, useState } from 'react';\n\nimport { Button, Toaster, ToasterContext } from '@pega/cosmos-react-core';\n\nexport default {\n title: 'Core/Toaster',\n component: Toaster\n} as Meta;\n\nexport const ToasterDemo = () => {\n const MakeToastButton = () => {\n const { push } = useContext(ToasterContext);\n const [count, setCount] = useState(0);\n\n const messages = [\n 'This is a short toast message!',\n 'This toast message is much longer and will need to be trimmed with an ellipsis in order to fit within the confines of the component.'\n ];\n\n const pushToaster = () => {\n setCount(curr => curr + 1);\n push({\n content: messages[count % 2]\n });\n };\n\n return <Button onClick={pushToaster}>Make some Toast</Button>;\n };\n\n return (\n <Toaster dismissAfter={5000}>\n <MakeToastButton />\n </Toaster>\n );\n};\n"]}
1
+ {"version":3,"file":"Toaster.stories.js","sourceRoot":"","sources":["../../../src/core/Toaster/Toaster.stories.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE7C,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAE1E,eAAe;IACb,KAAK,EAAE,cAAc;IACrB,SAAS,EAAE,OAAO;CACX,CAAC;AAEV,MAAM,CAAC,MAAM,WAAW,GAAU,GAAG,EAAE;IACrC,MAAM,eAAe,GAAG,GAAG,EAAE;QAC3B,MAAM,EAAE,IAAI,EAAE,GAAG,UAAU,CAAC,cAAc,CAAC,CAAC;QAC5C,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;QAEtC,MAAM,QAAQ,GAAG;YACf,gCAAgC;YAChC,sIAAsI;SACvI,CAAC;QAEF,MAAM,WAAW,GAAG,GAAG,EAAE;YACvB,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC;YAC3B,IAAI,CAAC;gBACH,OAAO,EAAE,QAAQ,CAAC,KAAK,GAAG,CAAC,CAAC;aAC7B,CAAC,CAAC;QACL,CAAC,CAAC;QAEF,OAAO,KAAC,MAAM,IAAC,OAAO,EAAE,WAAW,gCAA0B,CAAC;IAChE,CAAC,CAAC;IAEF,OAAO,CACL,KAAC,OAAO,IAAC,YAAY,EAAE,IAAI,YACzB,KAAC,eAAe,KAAG,GACX,CACX,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\nimport { useContext, useState } from 'react';\n\nimport { Button, Toaster, ToasterContext } from '@pega/cosmos-react-core';\n\nexport default {\n title: 'Core/Toaster',\n component: Toaster\n} as Meta;\n\nexport const ToasterDemo: Story = () => {\n const MakeToastButton = () => {\n const { push } = useContext(ToasterContext);\n const [count, setCount] = useState(0);\n\n const messages = [\n 'This is a short toast message!',\n 'This toast message is much longer and will need to be trimmed with an ellipsis in order to fit within the confines of the component.'\n ];\n\n const pushToaster = () => {\n setCount(curr => curr + 1);\n push({\n content: messages[count % 2]\n });\n };\n\n return <Button onClick={pushToaster}>Make some Toast</Button>;\n };\n\n return (\n <Toaster dismissAfter={5000}>\n <MakeToastButton />\n </Toaster>\n );\n};\n"]}
@@ -1,11 +1,7 @@
1
- /// <reference types="react" />
2
- import { Story } from '@storybook/react';
3
- declare const _default: {
4
- title: string;
5
- component: import("react").FunctionComponent<import("@pega/cosmos-react-core").TooltipProps & import("@pega/cosmos-react-core").ForwardProps>;
6
- };
1
+ import { Meta, Story } from '@storybook/react';
2
+ declare const _default: Meta<import("@storybook/react").Args>;
7
3
  export default _default;
8
- export declare const TooltipDemo: () => JSX.Element;
4
+ export declare const TooltipDemo: Story;
9
5
  interface ConfigurableTooltipProps {
10
6
  foregroundColor?: string;
11
7
  backgroundColor?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"Tooltip.stories.d.ts","sourceRoot":"","sources":["../../../src/core/Tooltip/Tooltip.stories.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;;;;;AAIzC,wBAGE;AAEF,eAAO,MAAM,WAAW,mBAgBvB,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;;AAI/C,wBAGU;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"}
@@ -6,7 +6,7 @@ export default {
6
6
  };
7
7
  export const TooltipDemo = () => {
8
8
  const [el, setEl] = useElement();
9
- return (_jsxs(_Fragment, { children: [_jsx(Button, { ref: setEl, children: "Hover me" }, void 0), el && (_jsx(Tooltip, { target: el, children: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur finibus scelerisque viverra. Fusce consequat, justo at laoreet lobortis, mauris ipsum aliquet arcu, non convallis nisl elit id erat. Pellentesque posuere sagittis velit a molestie." }, void 0))] }, void 0));
9
+ return (_jsxs(_Fragment, { children: [_jsx(Button, { ref: setEl, children: "Hover me" }), el && (_jsx(Tooltip, { target: el, children: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur finibus scelerisque viverra. Fusce consequat, justo at laoreet lobortis, mauris ipsum aliquet arcu, non convallis nisl elit id erat. Pellentesque posuere sagittis velit a molestie." }))] }));
10
10
  };
11
11
  export const ConfigurableTooltip = (args) => {
12
12
  const [el, setEl] = useElement();
@@ -17,7 +17,7 @@ export const ConfigurableTooltip = (args) => {
17
17
  'background-color': args.backgroundColor
18
18
  }
19
19
  }
20
- }, children: [_jsx(Button, { ref: setEl, children: "Hover me" }, void 0), el && (_jsx(Tooltip, { target: el, children: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur finibus scelerisque viverra. Fusce consequat, justo at laoreet lobortis, mauris ipsum aliquet arcu, non convallis nisl elit id erat. Pellentesque posuere sagittis velit a molestie." }, void 0))] }, void 0));
20
+ }, children: [_jsx(Button, { ref: setEl, children: "Hover me" }), el && (_jsx(Tooltip, { target: el, children: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur finibus scelerisque viverra. Fusce consequat, justo at laoreet lobortis, mauris ipsum aliquet arcu, non convallis nisl elit id erat. Pellentesque posuere sagittis velit a molestie." }))] }));
21
21
  };
22
22
  ConfigurableTooltip.args = {
23
23
  foregroundColor: '#f5f5f5',
@@ -1 +1 @@
1
- {"version":3,"file":"Tooltip.stories.js","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;CACnB,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,EAAE;IAC9B,MAAM,CAAC,EAAE,EAAE,KAAK,CAAC,GAAG,UAAU,EAAE,CAAC;IAEjC,OAAO,CACL,8BACE,KAAC,MAAM,IAAC,GAAG,EAAE,KAAK,iCAAmB,EAEpC,EAAE,IAAI,CACL,KAAC,OAAO,IAAC,MAAM,EAAE,EAAE,gRAIT,CACX,YACA,CACJ,CAAC;AACJ,CAAC,CAAC;AAOF,MAAM,CAAC,MAAM,mBAAmB,GAAoC,CAClE,IAA8B,EAC9B,EAAE;IACF,MAAM,CAAC,EAAE,EAAE,KAAK,CAAC,GAAG,UAAU,EAAE,CAAC;IAEjC,OAAO,CACL,MAAC,aAAa,IACZ,KAAK,EAAE;YACL,UAAU,EAAE;gBACV,OAAO,EAAE;oBACP,kBAAkB,EAAE,IAAI,CAAC,eAAe;oBACxC,kBAAkB,EAAE,IAAI,CAAC,eAAe;iBACzC;aACF;SACF,aAED,KAAC,MAAM,IAAC,GAAG,EAAE,KAAK,iCAAmB,EAEpC,EAAE,IAAI,CACL,KAAC,OAAO,IAAC,MAAM,EAAE,EAAE,gRAIT,CACX,YACa,CACjB,CAAC;AACJ,CAAC,CAAC;AAEF,mBAAmB,CAAC,IAAI,GAAG;IACzB,eAAe,EAAE,SAAS;IAC1B,eAAe,EAAE,SAAS;CAC3B,CAAC;AAEF,mBAAmB,CAAC,QAAQ,GAAG;IAC7B,eAAe,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE;IAC/C,eAAe,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE;CAChD,CAAC","sourcesContent":["import { 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};\n\nexport const TooltipDemo = () => {\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.js","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;CACX,CAAC;AAEV,MAAM,CAAC,MAAM,WAAW,GAAU,GAAG,EAAE;IACrC,MAAM,CAAC,EAAE,EAAE,KAAK,CAAC,GAAG,UAAU,EAAE,CAAC;IAEjC,OAAO,CACL,8BACE,KAAC,MAAM,IAAC,GAAG,EAAE,KAAK,yBAAmB,EAEpC,EAAE,IAAI,CACL,KAAC,OAAO,IAAC,MAAM,EAAE,EAAE,wQAIT,CACX,IACA,CACJ,CAAC;AACJ,CAAC,CAAC;AAOF,MAAM,CAAC,MAAM,mBAAmB,GAAoC,CAClE,IAA8B,EAC9B,EAAE;IACF,MAAM,CAAC,EAAE,EAAE,KAAK,CAAC,GAAG,UAAU,EAAE,CAAC;IAEjC,OAAO,CACL,MAAC,aAAa,IACZ,KAAK,EAAE;YACL,UAAU,EAAE;gBACV,OAAO,EAAE;oBACP,kBAAkB,EAAE,IAAI,CAAC,eAAe;oBACxC,kBAAkB,EAAE,IAAI,CAAC,eAAe;iBACzC;aACF;SACF,aAED,KAAC,MAAM,IAAC,GAAG,EAAE,KAAK,yBAAmB,EAEpC,EAAE,IAAI,CACL,KAAC,OAAO,IAAC,MAAM,EAAE,EAAE,wQAIT,CACX,IACa,CACjB,CAAC;AACJ,CAAC,CAAC;AAEF,mBAAmB,CAAC,IAAI,GAAG;IACzB,eAAe,EAAE,SAAS;IAC1B,eAAe,EAAE,SAAS;CAC3B,CAAC;AAEF,mBAAmB,CAAC,QAAQ,GAAG;IAC7B,eAAe,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE;IAC/C,eAAe,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,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} 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,2 +1,2 @@
1
- export declare const themeToTree: (themeNode: object, parentPath?: string | undefined) => import("@pega/cosmos-react-core").TreeNode[];
1
+ export declare const themeToTree: (themeNode: object, parentPath?: string) => import("@pega/cosmos-react-core").TreeNode[];
2
2
  //# sourceMappingURL=Tree.mocks.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Tree.mocks.d.ts","sourceRoot":"","sources":["../../../src/core/Tree/Tree.mocks.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW,cAAe,MAAM,kFAsB5C,CAAC"}
1
+ {"version":3,"file":"Tree.mocks.d.ts","sourceRoot":"","sources":["../../../src/core/Tree/Tree.mocks.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW,cAAe,MAAM,eAAe,MAAM,iDAsBjE,CAAC"}
@@ -1,8 +1,7 @@
1
- /// <reference types="react" />
2
1
  import { Meta, Story } from '@storybook/react';
3
2
  import { StandardTreeProps } from '@pega/cosmos-react-core';
4
3
  declare const _default: Meta<import("@storybook/react").Args>;
5
4
  export default _default;
6
- export declare const BaseTree: () => JSX.Element;
5
+ export declare const BaseTree: Story;
7
6
  export declare const StandardTreeDemo: Story<Pick<StandardTreeProps, 'lined'>>;
8
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,mBAcpB,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,IAAI,CAAC,iBAAiB,EAAE,OAAO,CAAC,CAmFpE,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,CAAC,CAqFpE,CAAC"}
@@ -10,10 +10,10 @@ export default {
10
10
  };
11
11
  export const BaseTree = () => {
12
12
  return (_jsx(StyledBaseTree, { nodes: themeToTree(themeDefinition), nodeRenderer: ({ id, subTree }) => {
13
- return (_jsxs(_Fragment, { children: [_jsx("span", { children: id }, void 0), subTree] }, void 0));
14
- } }, void 0));
13
+ return (_jsxs(_Fragment, { children: [_jsx("span", { children: id }), subTree] }));
14
+ } }));
15
15
  };
16
- export const StandardTreeDemo = ({ lined }) => {
16
+ export const StandardTreeDemo = (args) => {
17
17
  const getMockNodes = ({ length = 5, parent = true } = {}) => {
18
18
  return Array.from({ length }, (_, i) => {
19
19
  const isParent = parent && i !== 2;
@@ -57,7 +57,7 @@ export const StandardTreeDemo = ({ lined }) => {
57
57
  return treeHelpers.expandTo(tree, id);
58
58
  });
59
59
  };
60
- return (_jsxs(_Fragment, { children: [_jsx(StandardTree, { lined: lined, currentNodeId: currentNodeId, nodes: allNodes, onNodeClick: id => {
60
+ return (_jsxs(_Fragment, { children: [_jsx(StandardTree, { lined: args.lined, currentNodeId: currentNodeId, nodes: allNodes, onNodeClick: id => {
61
61
  const clickedNode = treeHelpers.getNode(allNodes, id);
62
62
  setCurrentNodeId(id);
63
63
  // If a leaf node, just set to current
@@ -74,7 +74,7 @@ export const StandardTreeDemo = ({ lined }) => {
74
74
  if (clickedNode?.nodes?.length > 0)
75
75
  return;
76
76
  loadChildNodes(id);
77
- } }, void 0), _jsx(Button, { onClick: () => expandTo(''), children: "Collapse All" }, void 0), _jsx(Button, { onClick: () => expandTo(currentNodeId || ''), children: "Expand to active item" }, void 0)] }, void 0));
77
+ } }), _jsx(Button, { onClick: () => expandTo(''), children: "Collapse All" }), _jsx(Button, { onClick: () => expandTo(currentNodeId || ''), children: "Expand to active item" })] }));
78
78
  };
79
79
  StandardTreeDemo.args = {
80
80
  lined: false
@@ -1 +1 @@
1
- {"version":3,"file":"Tree.stories.js","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,GAAG,GAAG,EAAE;IAC3B,OAAO,CACL,KAAC,cAAc,IACb,KAAK,EAAE,WAAW,CAAC,eAAe,CAAC,EACnC,YAAY,EAAE,CAAC,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;YAChC,OA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K;wBAAE,OAAO;oBAEhC,WAAW,CAAC,IAAI,CAAC,EAAE,CACjB,WAAW,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,EAAE;wBACnC,OAAO;4BACL,GAAG,IAAI;4BACP,QAAQ,EAAE,CAAC,IAAI,CAAC,QAAQ;4BACxB,OAAO,EAAE,IAAI,CAAC,KAAK,EAAE,MAAM,KAAK,CAAC;yBAClC,CAAC;oBACJ,CAAC,CAAC,CACH,CAAC;oBAEF,6DAA6D;oBAC7D,IAAI,WAAW,EAAE,KAAK,EAAE,MAAM,GAAG,CAAC;wBAAE,OAAO;oBAE3C,cAAc,CAAC,EAAE,CAAC,CAAC;gBACrB,CAAC,WACD,EACF,KAAC,MAAM,IAAC,OAAO,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,qCAAuB,EAC1D,KAAC,MAAM,IAAC,OAAO,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,aAAa,IAAI,EAAE,CAAC,8CAAgC,YACnF,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 = () => {\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'>> = ({ lined }) => {\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 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={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 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.js","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,KAAC,cAAc,IACb,KAAK,EAAE,WAAW,CAAC,eAAe,CAAC,EACnC,YAAY,EAAE,CAAC,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;YAChC,OAAO,CACL,8BACE,yBAAO,EAAE,GAAQ,EAChB,OAAO,IACP,CACJ,CAAC;QACJ,CAAC,GACD,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAA4C,CACvE,IAAsC,EACtC,EAAE;IACF,MAAM,YAAY,GAAG,CAAC,EACpB,MAAM,GAAG,CAAC,EACV,MAAM,GAAG,IAAI,KAC4B,EAAE,EAA8B,EAAE;QAC3E,OAAO,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;YACrC,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,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;gBACrB,CAAC,GACD,EACF,KAAC,MAAM,IAAC,OAAO,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,6BAAuB,EAC1D,KAAC,MAAM,IAAC,OAAO,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,aAAa,IAAI,EAAE,CAAC,sCAAgC,IACnF,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 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 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"]}
@@ -4,7 +4,7 @@ export default {
4
4
  title: 'Core/URL',
5
5
  component: URLDisplay
6
6
  };
7
- export const URLDisplayDemo = (args) => (_jsx(URLDisplay, { value: args.value, displayText: args.displayText, variant: args.variant }, void 0));
7
+ export const URLDisplayDemo = (args) => (_jsx(URLDisplay, { value: args.value, displayText: args.displayText, variant: args.variant }));
8
8
  URLDisplayDemo.args = {
9
9
  value: 'https://www.google.com/',
10
10
  displayText: 'Example URL',
@@ -1 +1 @@
1
- {"version":3,"file":"URL.stories.js","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,KAAC,UAAU,IAAC,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,WAAW,EAAE,IAAI,CAAC,WAAW,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,WAAI,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.js","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,KAAC,UAAU,IAAC,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,WAAW,EAAE,IAAI,CAAC,WAAW,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,GAAI,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,15 +1,6 @@
1
- /// <reference types="react" />
2
- declare const _default: {
3
- title: string;
4
- component: import("react").FunctionComponent<import("@pega/cosmos-react-cs").ArticleProps & import("@pega/cosmos-react-core").ForwardProps>;
5
- subcomponents: {
6
- ArticleFooter: import("react").FunctionComponent<import("@pega/cosmos-react-cs").ArticleFooterProps & import("@pega/cosmos-react-core").ForwardProps>;
7
- };
8
- parameters: {
9
- layout: string;
10
- };
11
- };
1
+ import { Meta, Story } from '@storybook/react';
2
+ declare const _default: Meta<import("@storybook/react").Args>;
12
3
  export default _default;
13
- export declare const ArticleStory: () => JSX.Element;
14
- export declare const ArticleStorySkeletonize: () => JSX.Element;
4
+ export declare const ArticleStory: Story;
5
+ export declare const ArticleStorySkeletonize: Story;
15
6
  //# sourceMappingURL=Article.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Article.stories.d.ts","sourceRoot":"","sources":["../../../src/cs/Article/Article.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;AAeA,wBAOE;AAEF,eAAO,MAAM,YAAY,mBA2GxB,CAAC;AAEF,eAAO,MAAM,uBAAuB,mBAwCnC,CAAC"}
1
+ {"version":3,"file":"Article.stories.d.ts","sourceRoot":"","sources":["../../../src/cs/Article/Article.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;;AAc/C,wBAOU;AAEV,eAAO,MAAM,YAAY,EAAE,KA2G1B,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,KAwCrC,CAAC"}