@pega/cosmos-react-demos 3.0.0-dev.1.0 → 3.0.0-dev.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1184) hide show
  1. package/jsx/build/AppHeader/AppHeader.stories.d.ts.map +1 -1
  2. package/jsx/build/AppHeader/AppHeader.stories.jsx +6 -1
  3. package/jsx/build/AppHeader/AppHeader.stories.jsx.map +1 -1
  4. package/jsx/build/AppShell/AppShell.mocks.d.ts +19 -0
  5. package/jsx/build/AppShell/AppShell.mocks.d.ts.map +1 -1
  6. package/jsx/build/AppShell/{AppShell.mocks.js → AppShell.mocks.jsx} +33 -1
  7. package/jsx/build/AppShell/AppShell.mocks.jsx.map +1 -0
  8. package/jsx/build/AppShell/AppShell.stories.d.ts +2 -2
  9. package/jsx/build/AppShell/AppShell.stories.d.ts.map +1 -1
  10. package/jsx/build/AppShell/AppShell.stories.jsx +20 -45
  11. package/jsx/build/AppShell/AppShell.stories.jsx.map +1 -1
  12. package/jsx/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts +8 -0
  13. package/jsx/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts.map +1 -0
  14. package/jsx/build/DynamicContentEditor/DynamicContentEditor.stories.jsx +101 -0
  15. package/jsx/build/DynamicContentEditor/DynamicContentEditor.stories.jsx.map +1 -0
  16. package/jsx/build/DynamicContentEditor/FieldSelector.d.ts +11 -0
  17. package/jsx/build/DynamicContentEditor/FieldSelector.d.ts.map +1 -0
  18. package/jsx/build/DynamicContentEditor/FieldSelector.jsx +80 -0
  19. package/jsx/build/DynamicContentEditor/FieldSelector.jsx.map +1 -0
  20. package/jsx/build/FlowModeller/FlowModeller.mocks.d.ts +19 -2
  21. package/jsx/build/FlowModeller/FlowModeller.mocks.d.ts.map +1 -1
  22. package/jsx/build/FlowModeller/{FlowModeller.mocks.js → FlowModeller.mocks.jsx} +110 -28
  23. package/jsx/build/FlowModeller/FlowModeller.mocks.jsx.map +1 -0
  24. package/jsx/build/FlowModeller/FlowModeller.stories.d.ts +8 -10
  25. package/jsx/build/FlowModeller/FlowModeller.stories.d.ts.map +1 -1
  26. package/jsx/build/FlowModeller/FlowModeller.stories.jsx +159 -154
  27. package/jsx/build/FlowModeller/FlowModeller.stories.jsx.map +1 -1
  28. package/jsx/build/FlowModeller/FlowModeller.styles.d.ts +2 -0
  29. package/jsx/build/FlowModeller/FlowModeller.styles.d.ts.map +1 -0
  30. package/jsx/build/FlowModeller/FlowModeller.styles.js +8 -0
  31. package/jsx/build/FlowModeller/FlowModeller.styles.js.map +1 -0
  32. package/jsx/build/ItemLibrary/LibraryPicker.mocks.d.ts +1 -5
  33. package/jsx/build/ItemLibrary/LibraryPicker.mocks.d.ts.map +1 -1
  34. package/jsx/build/ItemLibrary/LibraryPicker.mocks.js +5 -10
  35. package/jsx/build/ItemLibrary/LibraryPicker.mocks.js.map +1 -1
  36. package/jsx/build/ItemLibrary/LibraryPicker.stories.d.ts +3 -7
  37. package/jsx/build/ItemLibrary/LibraryPicker.stories.d.ts.map +1 -1
  38. package/jsx/build/ItemLibrary/LibraryPicker.stories.jsx.map +1 -1
  39. package/jsx/build/LifeCycle/LifeCycle.mocks.d.ts +3 -0
  40. package/jsx/build/LifeCycle/LifeCycle.mocks.d.ts.map +1 -1
  41. package/jsx/build/LifeCycle/LifeCycle.mocks.js +106 -18
  42. package/jsx/build/LifeCycle/LifeCycle.mocks.js.map +1 -1
  43. package/jsx/build/LifeCycle/LifeCycle.stories.d.ts +6 -9
  44. package/jsx/build/LifeCycle/LifeCycle.stories.d.ts.map +1 -1
  45. package/jsx/build/LifeCycle/LifeCycle.stories.jsx +111 -27
  46. package/jsx/build/LifeCycle/LifeCycle.stories.jsx.map +1 -1
  47. package/jsx/build/LifeCycle/utils.d.ts.map +1 -1
  48. package/jsx/build/LifeCycle/utils.js +5 -4
  49. package/jsx/build/LifeCycle/utils.js.map +1 -1
  50. package/jsx/build/ObjectSelect/ObjectSelect.mocks.d.ts +46 -0
  51. package/jsx/build/ObjectSelect/ObjectSelect.mocks.d.ts.map +1 -0
  52. package/jsx/build/ObjectSelect/ObjectSelect.mocks.jsx +333 -0
  53. package/jsx/build/ObjectSelect/ObjectSelect.mocks.jsx.map +1 -0
  54. package/jsx/build/ObjectSelect/ObjectSelect.stories.d.ts +8 -0
  55. package/jsx/build/ObjectSelect/ObjectSelect.stories.d.ts.map +1 -0
  56. package/jsx/build/ObjectSelect/ObjectSelect.stories.jsx +169 -0
  57. package/jsx/build/ObjectSelect/ObjectSelect.stories.jsx.map +1 -0
  58. package/jsx/build/ObjectSelect/ObjectSelect.styles.d.ts +4 -0
  59. package/jsx/build/ObjectSelect/ObjectSelect.styles.d.ts.map +1 -0
  60. package/jsx/build/ObjectSelect/ObjectSelect.styles.js +27 -0
  61. package/jsx/build/ObjectSelect/ObjectSelect.styles.js.map +1 -0
  62. package/jsx/build/PageTemplates/GalleryPage.mocks.d.ts +46 -0
  63. package/jsx/build/PageTemplates/GalleryPage.mocks.d.ts.map +1 -0
  64. package/jsx/build/PageTemplates/GalleryPage.mocks.jsx +76 -0
  65. package/jsx/build/PageTemplates/GalleryPage.mocks.jsx.map +1 -0
  66. package/jsx/build/PageTemplates/GalleryPage.stories.d.ts.map +1 -1
  67. package/jsx/build/PageTemplates/GalleryPage.stories.jsx +14 -92
  68. package/jsx/build/PageTemplates/GalleryPage.stories.jsx.map +1 -1
  69. package/jsx/build/PageTemplates/PageTemplates.mocks.d.ts +18 -0
  70. package/jsx/build/PageTemplates/PageTemplates.mocks.d.ts.map +1 -0
  71. package/jsx/build/PageTemplates/PageTemplates.mocks.jsx +287 -0
  72. package/jsx/build/PageTemplates/PageTemplates.mocks.jsx.map +1 -0
  73. package/jsx/build/PageTemplates/PageTemplates.stories.d.ts +4 -9
  74. package/jsx/build/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
  75. package/jsx/build/PageTemplates/PageTemplates.stories.jsx +99 -277
  76. package/jsx/build/PageTemplates/PageTemplates.stories.jsx.map +1 -1
  77. package/jsx/build/Workbench/Workbench.stories.d.ts.map +1 -1
  78. package/jsx/build/Workbench/Workbench.stories.jsx +14 -27
  79. package/jsx/build/Workbench/Workbench.stories.jsx.map +1 -1
  80. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.mocks.d.ts +3 -0
  81. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.mocks.d.ts.map +1 -0
  82. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.mocks.js +13 -0
  83. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.mocks.js.map +1 -0
  84. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts +16 -8
  85. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts.map +1 -1
  86. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.jsx +75 -61
  87. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.jsx.map +1 -1
  88. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.styles.d.ts +5 -0
  89. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.styles.d.ts.map +1 -0
  90. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.styles.js +15 -0
  91. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.styles.js.map +1 -0
  92. package/jsx/condition-builder/ConditionBuilder/props.mock.d.ts.map +1 -1
  93. package/jsx/condition-builder/ConditionBuilder/props.mock.js +17 -2
  94. package/jsx/condition-builder/ConditionBuilder/props.mock.js.map +1 -1
  95. package/jsx/core/AppShell/AppShell.stories.d.ts +6 -0
  96. package/jsx/core/AppShell/AppShell.stories.d.ts.map +1 -1
  97. package/jsx/core/AppShell/AppShell.stories.jsx +28 -2
  98. package/jsx/core/AppShell/AppShell.stories.jsx.map +1 -1
  99. package/jsx/core/Avatar/Avatar.stories.d.ts +5 -0
  100. package/jsx/core/Avatar/Avatar.stories.d.ts.map +1 -1
  101. package/jsx/core/Avatar/Avatar.stories.jsx +27 -2
  102. package/jsx/core/Avatar/Avatar.stories.jsx.map +1 -1
  103. package/jsx/core/Badges/Keyboard.stories.d.ts +6 -0
  104. package/jsx/core/Badges/Keyboard.stories.d.ts.map +1 -0
  105. package/jsx/core/Badges/Keyboard.stories.jsx +17 -0
  106. package/jsx/core/Badges/Keyboard.stories.jsx.map +1 -0
  107. package/jsx/core/Badges/Selection.stories.d.ts +2 -3
  108. package/jsx/core/Badges/Selection.stories.d.ts.map +1 -1
  109. package/jsx/core/Badges/Selection.stories.jsx.map +1 -1
  110. package/jsx/core/Badges/Status.stories.d.ts +5 -0
  111. package/jsx/core/Badges/Status.stories.d.ts.map +1 -1
  112. package/jsx/core/Badges/Status.stories.jsx +25 -1
  113. package/jsx/core/Badges/Status.stories.jsx.map +1 -1
  114. package/jsx/core/Badges/Tag.stories.d.ts +2 -3
  115. package/jsx/core/Badges/Tag.stories.d.ts.map +1 -1
  116. package/jsx/core/Badges/Tag.stories.jsx.map +1 -1
  117. package/jsx/core/Banner/Banner.stories.d.ts +12 -19
  118. package/jsx/core/Banner/Banner.stories.d.ts.map +1 -1
  119. package/jsx/core/Banner/Banner.stories.jsx +24 -3
  120. package/jsx/core/Banner/Banner.stories.jsx.map +1 -1
  121. package/jsx/core/Breadcrumbs/Breadcrumbs.stories.d.ts +3 -4
  122. package/jsx/core/Breadcrumbs/Breadcrumbs.stories.d.ts.map +1 -1
  123. package/jsx/core/Breadcrumbs/Breadcrumbs.stories.jsx.map +1 -1
  124. package/jsx/core/Button/Button.stories.d.ts +10 -3
  125. package/jsx/core/Button/Button.stories.d.ts.map +1 -1
  126. package/jsx/core/Button/Button.stories.jsx +36 -7
  127. package/jsx/core/Button/Button.stories.jsx.map +1 -1
  128. package/jsx/core/Card/Card.stories.d.ts +6 -2
  129. package/jsx/core/Card/Card.stories.d.ts.map +1 -1
  130. package/jsx/core/Card/Card.stories.jsx +30 -1
  131. package/jsx/core/Card/Card.stories.jsx.map +1 -1
  132. package/jsx/core/Checkbox/Checkbox.stories.d.ts +12 -0
  133. package/jsx/core/Checkbox/Checkbox.stories.d.ts.map +1 -1
  134. package/jsx/core/Checkbox/Checkbox.stories.jsx +54 -1
  135. package/jsx/core/Checkbox/Checkbox.stories.jsx.map +1 -1
  136. package/jsx/core/CheckboxGroup/CheckboxGroup.stories.d.ts +3 -3
  137. package/jsx/core/CheckboxGroup/CheckboxGroup.stories.d.ts.map +1 -1
  138. package/jsx/core/CheckboxGroup/CheckboxGroup.stories.jsx.map +1 -1
  139. package/jsx/core/ColorPicker/ColorPicker.stories.d.ts +1 -2
  140. package/jsx/core/ColorPicker/ColorPicker.stories.d.ts.map +1 -1
  141. package/jsx/core/ColorPicker/ColorPicker.stories.jsx +2 -10
  142. package/jsx/core/ColorPicker/ColorPicker.stories.jsx.map +1 -1
  143. package/jsx/core/ColorPicker/ColorPicker.styles.d.ts +4 -0
  144. package/jsx/core/ColorPicker/ColorPicker.styles.d.ts.map +1 -0
  145. package/jsx/core/ColorPicker/ColorPicker.styles.js +11 -0
  146. package/jsx/core/ColorPicker/ColorPicker.styles.js.map +1 -0
  147. package/jsx/core/Configuration/Configuration.mocks.d.ts +7 -0
  148. package/jsx/core/Configuration/Configuration.mocks.d.ts.map +1 -0
  149. package/jsx/core/Configuration/Configuration.mocks.jsx +9 -0
  150. package/jsx/core/Configuration/Configuration.mocks.jsx.map +1 -0
  151. package/jsx/core/Configuration/Configuration.stories.d.ts +19 -3
  152. package/jsx/core/Configuration/Configuration.stories.d.ts.map +1 -1
  153. package/jsx/core/Configuration/Configuration.stories.jsx +96 -21
  154. package/jsx/core/Configuration/Configuration.stories.jsx.map +1 -1
  155. package/jsx/core/Configuration/Configuration.styles.d.ts +6 -0
  156. package/jsx/core/Configuration/Configuration.styles.d.ts.map +1 -0
  157. package/jsx/core/Configuration/Configuration.styles.js +12 -0
  158. package/jsx/core/Configuration/Configuration.styles.js.map +1 -0
  159. package/jsx/core/CreditCard/CreditCard.stories.d.ts +11 -0
  160. package/jsx/core/CreditCard/CreditCard.stories.d.ts.map +1 -0
  161. package/jsx/core/CreditCard/CreditCard.stories.jsx +45 -0
  162. package/jsx/core/CreditCard/CreditCard.stories.jsx.map +1 -0
  163. package/jsx/core/Currency/Currency.stories.d.ts +6 -3
  164. package/jsx/core/Currency/Currency.stories.d.ts.map +1 -1
  165. package/jsx/core/Currency/Currency.stories.jsx +40 -15
  166. package/jsx/core/Currency/Currency.stories.jsx.map +1 -1
  167. package/jsx/core/DateTime/DateTime.stories.d.ts.map +1 -1
  168. package/jsx/core/DateTime/DateTime.stories.jsx +2 -1
  169. package/jsx/core/DateTime/DateTime.stories.jsx.map +1 -1
  170. package/jsx/core/FieldGroup/FieldGroup.stories.d.ts +6 -4
  171. package/jsx/core/FieldGroup/FieldGroup.stories.d.ts.map +1 -1
  172. package/jsx/core/FieldGroup/FieldGroup.stories.jsx +8 -4
  173. package/jsx/core/FieldGroup/FieldGroup.stories.jsx.map +1 -1
  174. package/jsx/core/FieldGroup/FieldGroupList.mocks.d.ts +4 -0
  175. package/jsx/core/FieldGroup/FieldGroupList.mocks.d.ts.map +1 -1
  176. package/jsx/core/FieldGroup/FieldGroupList.mocks.jsx +70 -2
  177. package/jsx/core/FieldGroup/FieldGroupList.mocks.jsx.map +1 -1
  178. package/jsx/core/FieldGroup/FieldGroupList.stories.d.ts +9 -8
  179. package/jsx/core/FieldGroup/FieldGroupList.stories.d.ts.map +1 -1
  180. package/jsx/core/FieldGroup/FieldGroupList.stories.jsx +51 -88
  181. package/jsx/core/FieldGroup/FieldGroupList.stories.jsx.map +1 -1
  182. package/jsx/core/FieldValueList/FieldValueList.stories.d.ts +2 -2
  183. package/jsx/core/FieldValueList/FieldValueList.stories.d.ts.map +1 -1
  184. package/jsx/core/FieldValueList/FieldValueList.stories.jsx.map +1 -1
  185. package/jsx/core/File/FileDisplay.stories.d.ts.map +1 -1
  186. package/jsx/core/File/FileDisplay.stories.jsx +16 -38
  187. package/jsx/core/File/FileDisplay.stories.jsx.map +1 -1
  188. package/jsx/core/File/FileInput.stories.d.ts.map +1 -1
  189. package/jsx/core/File/FileInput.stories.jsx +1 -1
  190. package/jsx/core/File/FileInput.stories.jsx.map +1 -1
  191. package/jsx/core/Flex/FlexContainer.stories.d.ts +1 -2
  192. package/jsx/core/Flex/FlexContainer.stories.d.ts.map +1 -1
  193. package/jsx/core/Flex/FlexContainer.stories.jsx.map +1 -1
  194. package/jsx/core/Form/Form.mocks.d.ts.map +1 -1
  195. package/jsx/core/Form/Form.mocks.jsx +2 -2
  196. package/jsx/core/Form/Form.mocks.jsx.map +1 -1
  197. package/jsx/core/Form/Form.stories.d.ts +10 -0
  198. package/jsx/core/Form/Form.stories.d.ts.map +1 -1
  199. package/jsx/core/Form/Form.stories.jsx +42 -2
  200. package/jsx/core/Form/Form.stories.jsx.map +1 -1
  201. package/jsx/core/Grid/GridContainer.stories.d.ts +4 -5
  202. package/jsx/core/Grid/GridContainer.stories.d.ts.map +1 -1
  203. package/jsx/core/Grid/GridContainer.stories.jsx.map +1 -1
  204. package/jsx/core/Grid/GridItem.stories.d.ts +1 -2
  205. package/jsx/core/Grid/GridItem.stories.d.ts.map +1 -1
  206. package/jsx/core/Grid/GridItem.stories.jsx.map +1 -1
  207. package/jsx/core/HTML/HTML.stories.d.ts +6 -0
  208. package/jsx/core/HTML/HTML.stories.d.ts.map +1 -0
  209. package/jsx/core/HTML/HTML.stories.jsx +13 -0
  210. package/jsx/core/HTML/HTML.stories.jsx.map +1 -0
  211. package/jsx/core/Icon/Icon.stories.d.ts +5 -6
  212. package/jsx/core/Icon/Icon.stories.d.ts.map +1 -1
  213. package/jsx/core/Icon/Icon.stories.jsx +5 -27
  214. package/jsx/core/Icon/Icon.stories.jsx.map +1 -1
  215. package/jsx/core/Icon/Icon.styles.d.ts +4 -0
  216. package/jsx/core/Icon/Icon.styles.d.ts.map +1 -0
  217. package/jsx/core/Icon/Icon.styles.js +25 -0
  218. package/jsx/core/Icon/Icon.styles.js.map +1 -0
  219. package/jsx/core/IconPicker/IconPicker.stories.jsx +1 -1
  220. package/jsx/core/IconPicker/IconPicker.stories.jsx.map +1 -1
  221. package/jsx/core/Image/Image.stories.d.ts +2 -3
  222. package/jsx/core/Image/Image.stories.d.ts.map +1 -1
  223. package/jsx/core/Image/Image.stories.jsx.map +1 -1
  224. package/jsx/core/Input/Input.stories.d.ts +9 -0
  225. package/jsx/core/Input/Input.stories.d.ts.map +1 -1
  226. package/jsx/core/Input/Input.stories.jsx +40 -1
  227. package/jsx/core/Input/Input.stories.jsx.map +1 -1
  228. package/jsx/core/Label/Label.stories.d.ts +4 -0
  229. package/jsx/core/Label/Label.stories.d.ts.map +1 -1
  230. package/jsx/core/Label/Label.stories.jsx +18 -1
  231. package/jsx/core/Label/Label.stories.jsx.map +1 -1
  232. package/jsx/core/Link/Link.stories.d.ts +1 -11
  233. package/jsx/core/Link/Link.stories.d.ts.map +1 -1
  234. package/jsx/core/Link/Link.stories.jsx.map +1 -1
  235. package/jsx/core/List/CommaSeparatedList.stories.d.ts +2 -2
  236. package/jsx/core/List/CommaSeparatedList.stories.d.ts.map +1 -1
  237. package/jsx/core/List/CommaSeparatedList.stories.jsx.map +1 -1
  238. package/jsx/core/ListToolbar/ListToolbar.mocks.d.ts +9 -0
  239. package/jsx/core/ListToolbar/ListToolbar.mocks.d.ts.map +1 -0
  240. package/jsx/core/ListToolbar/ListToolbar.mocks.jsx +71 -0
  241. package/jsx/core/ListToolbar/ListToolbar.mocks.jsx.map +1 -0
  242. package/jsx/core/ListToolbar/ListToolbar.stories.d.ts +6 -0
  243. package/jsx/core/ListToolbar/ListToolbar.stories.d.ts.map +1 -0
  244. package/jsx/core/ListToolbar/ListToolbar.stories.jsx +87 -0
  245. package/jsx/core/ListToolbar/ListToolbar.stories.jsx.map +1 -0
  246. package/jsx/core/MenuButton/MenuButton.stories.d.ts +6 -6
  247. package/jsx/core/MenuButton/MenuButton.stories.d.ts.map +1 -1
  248. package/jsx/core/MenuButton/MenuButton.stories.jsx.map +1 -1
  249. package/jsx/core/Modal/Modal.mocks.d.ts.map +1 -1
  250. package/jsx/core/Modal/Modal.mocks.jsx +3 -3
  251. package/jsx/core/Modal/Modal.mocks.jsx.map +1 -1
  252. package/jsx/core/Modal/Modal.stories.d.ts +10 -5
  253. package/jsx/core/Modal/Modal.stories.d.ts.map +1 -1
  254. package/jsx/core/Modal/Modal.stories.jsx +34 -43
  255. package/jsx/core/Modal/Modal.stories.jsx.map +1 -1
  256. package/jsx/core/MultiStep/MultiStep.stories.d.ts +2 -3
  257. package/jsx/core/MultiStep/MultiStep.stories.d.ts.map +1 -1
  258. package/jsx/core/MultiStep/MultiStep.stories.jsx.map +1 -1
  259. package/jsx/core/Number/Number.stories.d.ts +10 -6
  260. package/jsx/core/Number/Number.stories.d.ts.map +1 -1
  261. package/jsx/core/Number/Number.stories.jsx +82 -28
  262. package/jsx/core/Number/Number.stories.jsx.map +1 -1
  263. package/jsx/core/PageTemplates/PageTemplates.stories.d.ts +5 -3
  264. package/jsx/core/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
  265. package/jsx/core/PageTemplates/PageTemplates.stories.jsx +85 -31
  266. package/jsx/core/PageTemplates/PageTemplates.stories.jsx.map +1 -1
  267. package/jsx/core/PageTemplates/PageTemplates.styles.d.ts +1 -0
  268. package/jsx/core/PageTemplates/PageTemplates.styles.d.ts.map +1 -1
  269. package/jsx/core/PageTemplates/PageTemplates.styles.js +9 -0
  270. package/jsx/core/PageTemplates/PageTemplates.styles.js.map +1 -1
  271. package/jsx/core/Phone/Phone.stories.d.ts.map +1 -1
  272. package/jsx/core/Phone/Phone.stories.jsx +3 -1
  273. package/jsx/core/Phone/Phone.stories.jsx.map +1 -1
  274. package/jsx/core/Popover/Popover.stories.d.ts +1 -1
  275. package/jsx/core/Popover/Popover.stories.d.ts.map +1 -1
  276. package/jsx/core/Popover/Popover.stories.jsx.map +1 -1
  277. package/jsx/core/Progress/Progress.stories.d.ts +4 -0
  278. package/jsx/core/Progress/Progress.stories.d.ts.map +1 -1
  279. package/jsx/core/Progress/Progress.stories.jsx +22 -1
  280. package/jsx/core/Progress/Progress.stories.jsx.map +1 -1
  281. package/jsx/core/RadioButton/RadioButton.stories.d.ts +12 -0
  282. package/jsx/core/RadioButton/RadioButton.stories.d.ts.map +1 -1
  283. package/jsx/core/RadioButton/RadioButton.stories.jsx +53 -1
  284. package/jsx/core/RadioButton/RadioButton.stories.jsx.map +1 -1
  285. package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts +3 -3
  286. package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts.map +1 -1
  287. package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.jsx.map +1 -1
  288. package/jsx/core/Rating/Rating.stories.d.ts +4 -0
  289. package/jsx/core/Rating/Rating.stories.d.ts.map +1 -1
  290. package/jsx/core/Rating/Rating.stories.jsx +18 -1
  291. package/jsx/core/Rating/Rating.stories.jsx.map +1 -1
  292. package/jsx/core/SearchInput/SearchInput.mocks.d.ts +12 -0
  293. package/jsx/core/SearchInput/SearchInput.mocks.d.ts.map +1 -0
  294. package/jsx/core/SearchInput/SearchInput.mocks.js +25 -0
  295. package/jsx/core/SearchInput/SearchInput.mocks.js.map +1 -0
  296. package/jsx/core/SearchInput/SearchInput.stories.d.ts +1 -0
  297. package/jsx/core/SearchInput/SearchInput.stories.d.ts.map +1 -1
  298. package/jsx/core/SearchInput/SearchInput.stories.jsx +30 -1
  299. package/jsx/core/SearchInput/SearchInput.stories.jsx.map +1 -1
  300. package/jsx/core/Select/Select.stories.d.ts +8 -0
  301. package/jsx/core/Select/Select.stories.d.ts.map +1 -1
  302. package/jsx/core/Select/Select.stories.jsx +35 -1
  303. package/jsx/core/Select/Select.stories.jsx.map +1 -1
  304. package/jsx/core/Sentiment/Sentiment.stories.d.ts +6 -0
  305. package/jsx/core/Sentiment/Sentiment.stories.d.ts.map +1 -1
  306. package/jsx/core/Sentiment/Sentiment.stories.jsx +32 -1
  307. package/jsx/core/Sentiment/Sentiment.stories.jsx.map +1 -1
  308. package/jsx/core/Slider/Slider.stories.d.ts +4 -3
  309. package/jsx/core/Slider/Slider.stories.d.ts.map +1 -1
  310. package/jsx/core/Slider/Slider.stories.jsx +1 -1
  311. package/jsx/core/Slider/Slider.stories.jsx.map +1 -1
  312. package/jsx/core/SummaryItem/SummaryItem.stories.d.ts +5 -5
  313. package/jsx/core/SummaryItem/SummaryItem.stories.d.ts.map +1 -1
  314. package/jsx/core/SummaryItem/SummaryItem.stories.jsx.map +1 -1
  315. package/jsx/core/SummaryList/SummaryList.stories.d.ts +2 -2
  316. package/jsx/core/SummaryList/SummaryList.stories.d.ts.map +1 -1
  317. package/jsx/core/SummaryList/SummaryList.stories.jsx.map +1 -1
  318. package/jsx/core/Switch/Switch.stories.d.ts +7 -0
  319. package/jsx/core/Switch/Switch.stories.d.ts.map +1 -1
  320. package/jsx/core/Switch/Switch.stories.jsx +34 -1
  321. package/jsx/core/Switch/Switch.stories.jsx.map +1 -1
  322. package/jsx/core/Table/Table.mocks.d.ts +6 -0
  323. package/jsx/core/Table/Table.mocks.d.ts.map +1 -1
  324. package/jsx/core/Table/Table.mocks.jsx +134 -0
  325. package/jsx/core/Table/Table.mocks.jsx.map +1 -1
  326. package/jsx/core/Table/Table.stories.d.ts +25 -0
  327. package/jsx/core/Table/Table.stories.d.ts.map +1 -1
  328. package/jsx/core/Table/Table.stories.jsx +120 -1
  329. package/jsx/core/Table/Table.stories.jsx.map +1 -1
  330. package/jsx/core/Tabs/Tabs.stories.d.ts +10 -2
  331. package/jsx/core/Tabs/Tabs.stories.d.ts.map +1 -1
  332. package/jsx/core/Tabs/Tabs.stories.jsx +39 -1
  333. package/jsx/core/Tabs/Tabs.stories.jsx.map +1 -1
  334. package/jsx/core/Text/Text.stories.d.ts +19 -0
  335. package/jsx/core/Text/Text.stories.d.ts.map +1 -1
  336. package/jsx/core/Text/Text.stories.jsx +112 -1
  337. package/jsx/core/Text/Text.stories.jsx.map +1 -1
  338. package/jsx/core/TextArea/TextArea.stories.d.ts +5 -0
  339. package/jsx/core/TextArea/TextArea.stories.d.ts.map +1 -1
  340. package/jsx/core/TextArea/TextArea.stories.jsx +22 -1
  341. package/jsx/core/TextArea/TextArea.stories.jsx.map +1 -1
  342. package/jsx/core/Toaster/Toaster.stories.d.ts +2 -3
  343. package/jsx/core/Toaster/Toaster.stories.d.ts.map +1 -1
  344. package/jsx/core/Toaster/Toaster.stories.jsx +17 -12
  345. package/jsx/core/Toaster/Toaster.stories.jsx.map +1 -1
  346. package/jsx/core/Tooltip/Tooltip.stories.d.ts +8 -6
  347. package/jsx/core/Tooltip/Tooltip.stories.d.ts.map +1 -1
  348. package/jsx/core/Tooltip/Tooltip.stories.jsx +28 -1
  349. package/jsx/core/Tooltip/Tooltip.stories.jsx.map +1 -1
  350. package/jsx/core/Tree/Tree.stories.d.ts +1 -2
  351. package/jsx/core/Tree/Tree.stories.d.ts.map +1 -1
  352. package/jsx/core/Tree/Tree.stories.jsx +2 -2
  353. package/jsx/core/Tree/Tree.stories.jsx.map +1 -1
  354. package/jsx/cs/Article/Article.stories.d.ts +4 -13
  355. package/jsx/cs/Article/Article.stories.d.ts.map +1 -1
  356. package/jsx/cs/Article/Article.stories.jsx.map +1 -1
  357. package/jsx/cs/ArticleList/ArticleList.stories.d.ts +4 -14
  358. package/jsx/cs/ArticleList/ArticleList.stories.d.ts.map +1 -1
  359. package/jsx/cs/ArticleList/ArticleList.stories.jsx +2 -1
  360. package/jsx/cs/ArticleList/ArticleList.stories.jsx.map +1 -1
  361. package/jsx/cs/CSCaseView/CSAppShell.stories.d.ts +3 -37
  362. package/jsx/cs/CSCaseView/CSAppShell.stories.d.ts.map +1 -1
  363. package/jsx/cs/CSCaseView/CSAppShell.stories.jsx +15 -42
  364. package/jsx/cs/CSCaseView/CSAppShell.stories.jsx.map +1 -1
  365. package/jsx/cs/CSCaseView/CSCaseView.mocks.d.ts +9 -0
  366. package/jsx/cs/CSCaseView/CSCaseView.mocks.d.ts.map +1 -1
  367. package/jsx/cs/CSCaseView/{CSCaseView.mocks.js → CSCaseView.mocks.jsx} +30 -1
  368. package/jsx/cs/CSCaseView/CSCaseView.mocks.jsx.map +1 -0
  369. package/jsx/cs/CallControlPanel/CallControlPanel.stories.d.ts +3 -2
  370. package/jsx/cs/CallControlPanel/CallControlPanel.stories.d.ts.map +1 -1
  371. package/jsx/cs/CallControlPanel/CallControlPanel.stories.jsx +20 -5
  372. package/jsx/cs/CallControlPanel/CallControlPanel.stories.jsx.map +1 -1
  373. package/jsx/cs/IntelligentGuidance/IntelligentGuidance.stories.d.ts +4 -11
  374. package/jsx/cs/IntelligentGuidance/IntelligentGuidance.stories.d.ts.map +1 -1
  375. package/jsx/cs/IntelligentGuidance/IntelligentGuidance.stories.jsx +11 -11
  376. package/jsx/cs/IntelligentGuidance/IntelligentGuidance.stories.jsx.map +1 -1
  377. package/jsx/cs/InteractionNotification/InteractionNotification.stories.d.ts +7 -6
  378. package/jsx/cs/InteractionNotification/InteractionNotification.stories.d.ts.map +1 -1
  379. package/jsx/cs/InteractionNotification/InteractionNotification.stories.jsx +13 -5
  380. package/jsx/cs/InteractionNotification/InteractionNotification.stories.jsx.map +1 -1
  381. package/jsx/cs/InteractionTimer/InteractionTimer.mocks.d.ts +11 -0
  382. package/jsx/cs/InteractionTimer/InteractionTimer.mocks.d.ts.map +1 -0
  383. package/jsx/cs/InteractionTimer/InteractionTimer.mocks.js +29 -0
  384. package/jsx/cs/InteractionTimer/InteractionTimer.mocks.js.map +1 -0
  385. package/jsx/cs/InteractionTimer/InteractionTimer.stories.d.ts +3 -7
  386. package/jsx/cs/InteractionTimer/InteractionTimer.stories.d.ts.map +1 -1
  387. package/jsx/cs/InteractionTimer/InteractionTimer.stories.jsx +38 -43
  388. package/jsx/cs/InteractionTimer/InteractionTimer.stories.jsx.map +1 -1
  389. package/jsx/cs/TaskManager/TaskManager.mocks.d.ts +6 -0
  390. package/jsx/cs/TaskManager/TaskManager.mocks.d.ts.map +1 -1
  391. package/jsx/cs/TaskManager/TaskManager.mocks.js +7 -0
  392. package/jsx/cs/TaskManager/TaskManager.mocks.js.map +1 -1
  393. package/jsx/cs/TaskManager/TaskManager.stories.d.ts +8 -6
  394. package/jsx/cs/TaskManager/TaskManager.stories.d.ts.map +1 -1
  395. package/jsx/cs/TaskManager/TaskManager.stories.jsx +39 -33
  396. package/jsx/cs/TaskManager/TaskManager.stories.jsx.map +1 -1
  397. package/jsx/cs/TaskManager/TaskManager.styles.d.ts +3 -0
  398. package/jsx/cs/TaskManager/TaskManager.styles.d.ts.map +1 -0
  399. package/jsx/cs/TaskManager/TaskManager.styles.js +8 -0
  400. package/jsx/cs/TaskManager/TaskManager.styles.js.map +1 -0
  401. package/jsx/dnd/DragDropList/DragDropList.mocks.d.ts +15 -0
  402. package/jsx/dnd/DragDropList/DragDropList.mocks.d.ts.map +1 -0
  403. package/jsx/dnd/DragDropList/DragDropList.mocks.jsx +33 -0
  404. package/jsx/dnd/DragDropList/DragDropList.mocks.jsx.map +1 -0
  405. package/jsx/dnd/DragDropList/DragDropList.stories.d.ts +8 -9
  406. package/jsx/dnd/DragDropList/DragDropList.stories.d.ts.map +1 -1
  407. package/jsx/dnd/DragDropList/DragDropList.stories.jsx +14 -78
  408. package/jsx/dnd/DragDropList/DragDropList.stories.jsx.map +1 -1
  409. package/jsx/dnd/DragDropList/DragDropList.styles.d.ts +6 -0
  410. package/jsx/dnd/DragDropList/DragDropList.styles.d.ts.map +1 -0
  411. package/jsx/dnd/DragDropList/DragDropList.styles.js +32 -0
  412. package/jsx/dnd/DragDropList/DragDropList.styles.js.map +1 -0
  413. package/jsx/rte/Editor/Editor.mocks.d.ts +309 -0
  414. package/jsx/rte/Editor/Editor.mocks.d.ts.map +1 -0
  415. package/jsx/rte/Editor/Editor.mocks.jsx +23 -0
  416. package/jsx/rte/Editor/Editor.mocks.jsx.map +1 -0
  417. package/jsx/rte/Editor/Editor.stories.d.ts +7 -8
  418. package/jsx/rte/Editor/Editor.stories.d.ts.map +1 -1
  419. package/jsx/rte/Editor/Editor.stories.jsx +3 -21
  420. package/jsx/rte/Editor/Editor.stories.jsx.map +1 -1
  421. package/jsx/rte/RichTextEditor/RichTextEditor.mocks.jsx.map +1 -1
  422. package/jsx/rte/RichTextEditor/RichTextEditor.stories.d.ts +2 -3
  423. package/jsx/rte/RichTextEditor/RichTextEditor.stories.d.ts.map +1 -1
  424. package/jsx/rte/RichTextEditor/RichTextEditor.stories.jsx.map +1 -1
  425. package/jsx/rte/RichTextEditor/RichTextViewer.stories.d.ts +5 -5
  426. package/jsx/rte/RichTextEditor/RichTextViewer.stories.d.ts.map +1 -1
  427. package/jsx/rte/RichTextEditor/RichTextViewer.stories.jsx +18 -1
  428. package/jsx/rte/RichTextEditor/RichTextViewer.stories.jsx.map +1 -1
  429. package/jsx/social/Chat/Chat.stories.d.ts +6 -7
  430. package/jsx/social/Chat/Chat.stories.d.ts.map +1 -1
  431. package/jsx/social/Chat/Chat.stories.jsx +7 -5
  432. package/jsx/social/Chat/Chat.stories.jsx.map +1 -1
  433. package/jsx/social/Chat/RepeatingView.mocks.d.ts +14 -0
  434. package/jsx/social/Chat/RepeatingView.mocks.d.ts.map +1 -0
  435. package/jsx/social/Chat/RepeatingView.mocks.js +11 -0
  436. package/jsx/social/Chat/RepeatingView.mocks.js.map +1 -0
  437. package/jsx/social/Chat/RepeatingView.stories.d.ts +6 -17
  438. package/jsx/social/Chat/RepeatingView.stories.d.ts.map +1 -1
  439. package/jsx/social/Chat/RepeatingView.stories.jsx +16 -46
  440. package/jsx/social/Chat/RepeatingView.stories.jsx.map +1 -1
  441. package/jsx/social/Chat/RepeatingView.styles.d.ts +2 -0
  442. package/jsx/social/Chat/RepeatingView.styles.d.ts.map +1 -0
  443. package/jsx/social/Chat/RepeatingView.styles.js +22 -0
  444. package/jsx/social/Chat/RepeatingView.styles.js.map +1 -0
  445. package/jsx/social/Email/Email.mocks.d.ts +172 -2
  446. package/jsx/social/Email/Email.mocks.d.ts.map +1 -1
  447. package/jsx/social/Email/Email.mocks.jsx +766 -0
  448. package/jsx/social/Email/Email.mocks.jsx.map +1 -0
  449. package/jsx/social/Email/Email.stories.d.ts +19 -25
  450. package/jsx/social/Email/Email.stories.d.ts.map +1 -1
  451. package/jsx/social/Email/Email.stories.jsx +156 -418
  452. package/jsx/social/Email/Email.stories.jsx.map +1 -1
  453. package/jsx/social/Email/Email.styles.d.ts +4 -0
  454. package/jsx/social/Email/Email.styles.d.ts.map +1 -0
  455. package/jsx/social/Email/Email.styles.js +14 -0
  456. package/jsx/social/Email/Email.styles.js.map +1 -0
  457. package/jsx/social/Feed/Feed.mocks.d.ts.map +1 -1
  458. package/jsx/social/Feed/Feed.mocks.jsx.map +1 -1
  459. package/jsx/social/Feed/Feed.stories.d.ts +6 -11
  460. package/jsx/social/Feed/Feed.stories.d.ts.map +1 -1
  461. package/jsx/social/Feed/Feed.stories.jsx +24 -19
  462. package/jsx/social/Feed/Feed.stories.jsx.map +1 -1
  463. package/jsx/social/Feed/FeedNewPost.stories.d.ts +7 -14
  464. package/jsx/social/Feed/FeedNewPost.stories.d.ts.map +1 -1
  465. package/jsx/social/Feed/FeedNewPost.stories.jsx.map +1 -1
  466. package/jsx/social/Feed/FeedPost.stories.d.ts +4 -5
  467. package/jsx/social/Feed/FeedPost.stories.d.ts.map +1 -1
  468. package/jsx/social/Feed/FeedPost.stories.jsx +30 -20
  469. package/jsx/social/Feed/FeedPost.stories.jsx.map +1 -1
  470. package/jsx/social/Feed/FeedReply.stories.d.ts +10 -10
  471. package/jsx/social/Feed/FeedReply.stories.d.ts.map +1 -1
  472. package/jsx/social/Feed/FeedReply.stories.jsx +21 -16
  473. package/jsx/social/Feed/FeedReply.stories.jsx.map +1 -1
  474. package/jsx/social/Feed/FeedReplyInput.stories.d.ts +7 -12
  475. package/jsx/social/Feed/FeedReplyInput.stories.d.ts.map +1 -1
  476. package/jsx/social/Feed/FeedReplyInput.stories.jsx.map +1 -1
  477. package/jsx/work/CaseView/CaseView.mocks.d.ts.map +1 -1
  478. package/jsx/work/CaseView/CaseView.mocks.jsx +1 -1
  479. package/jsx/work/CaseView/CaseView.mocks.jsx.map +1 -1
  480. package/jsx/work/CaseView/CaseView.stories.d.ts +4 -11
  481. package/jsx/work/CaseView/CaseView.stories.d.ts.map +1 -1
  482. package/jsx/work/CaseView/CaseView.stories.jsx +7 -7
  483. package/jsx/work/CaseView/CaseView.stories.jsx.map +1 -1
  484. package/jsx/work/CaseView/Details.mocks.d.ts.map +1 -1
  485. package/jsx/work/CaseView/Details.mocks.jsx +1 -1
  486. package/jsx/work/CaseView/Details.mocks.jsx.map +1 -1
  487. package/jsx/work/CaseView/MobileCaseView.stories.d.ts +3 -9
  488. package/jsx/work/CaseView/MobileCaseView.stories.d.ts.map +1 -1
  489. package/jsx/work/CaseView/MobileCaseView.stories.jsx.map +1 -1
  490. package/jsx/work/CaseView/Pulse.mocks.d.ts.map +1 -1
  491. package/jsx/work/CaseView/Pulse.mocks.jsx +1 -1
  492. package/jsx/work/CaseView/Pulse.mocks.jsx.map +1 -1
  493. package/jsx/work/ConfigurableLayout/ConfigurableLayout.mocks.d.ts +45 -0
  494. package/jsx/work/ConfigurableLayout/ConfigurableLayout.mocks.d.ts.map +1 -0
  495. package/jsx/work/ConfigurableLayout/ConfigurableLayout.mocks.jsx +166 -0
  496. package/jsx/work/ConfigurableLayout/ConfigurableLayout.mocks.jsx.map +1 -0
  497. package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts +3 -8
  498. package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts.map +1 -1
  499. package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.jsx +3 -175
  500. package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.jsx.map +1 -1
  501. package/jsx/work/ConfigurableLayout/ConfigurableLayout.styles.d.ts +4 -0
  502. package/jsx/work/ConfigurableLayout/ConfigurableLayout.styles.d.ts.map +1 -0
  503. package/jsx/work/ConfigurableLayout/ConfigurableLayout.styles.js +11 -0
  504. package/jsx/work/ConfigurableLayout/ConfigurableLayout.styles.js.map +1 -0
  505. package/jsx/work/Confirmation/Confirmation.stories.d.ts.map +1 -1
  506. package/jsx/work/Confirmation/Confirmation.stories.jsx +3 -3
  507. package/jsx/work/Confirmation/Confirmation.stories.jsx.map +1 -1
  508. package/jsx/work/Details/Details.stories.d.ts.map +1 -1
  509. package/jsx/work/Details/Details.stories.jsx +21 -16
  510. package/jsx/work/Details/Details.stories.jsx.map +1 -1
  511. package/jsx/work/Glimpse/Glimpse.stories.d.ts.map +1 -1
  512. package/jsx/work/Glimpse/Glimpse.stories.jsx.map +1 -1
  513. package/jsx/work/SearchResults/SearchResults.stories.d.ts.map +1 -1
  514. package/jsx/work/SearchResults/SearchResults.stories.jsx +1 -1
  515. package/jsx/work/SearchResults/SearchResults.stories.jsx.map +1 -1
  516. package/jsx/work/Stakeholders/Stakeholders.mocks.d.ts.map +1 -1
  517. package/jsx/work/Stakeholders/Stakeholders.mocks.jsx +2 -2
  518. package/jsx/work/Stakeholders/Stakeholders.mocks.jsx.map +1 -1
  519. package/jsx/work/Stakeholders/Stakeholders.stories.d.ts +2 -3
  520. package/jsx/work/Stakeholders/Stakeholders.stories.d.ts.map +1 -1
  521. package/jsx/work/Stakeholders/Stakeholders.stories.jsx +1 -0
  522. package/jsx/work/Stakeholders/Stakeholders.stories.jsx.map +1 -1
  523. package/jsx/work/Tasks/Tasks.stories.jsx +1 -1
  524. package/jsx/work/Tasks/Tasks.stories.jsx.map +1 -1
  525. package/jsx/work/Timeline/Timeline.stories.d.ts +1 -0
  526. package/jsx/work/Timeline/Timeline.stories.d.ts.map +1 -1
  527. package/jsx/work/Timeline/Timeline.stories.jsx +29 -1
  528. package/jsx/work/Timeline/Timeline.stories.jsx.map +1 -1
  529. package/jsx/wss/AppShell/AppShell.mocks.d.ts +24 -0
  530. package/jsx/wss/AppShell/AppShell.mocks.d.ts.map +1 -0
  531. package/jsx/wss/AppShell/AppShell.mocks.jsx +64 -0
  532. package/jsx/wss/AppShell/AppShell.mocks.jsx.map +1 -0
  533. package/jsx/wss/AppShell/AppShell.stories.d.ts +17 -0
  534. package/jsx/wss/AppShell/AppShell.stories.d.ts.map +1 -0
  535. package/jsx/wss/AppShell/AppShell.stories.jsx +76 -0
  536. package/jsx/wss/AppShell/AppShell.stories.jsx.map +1 -0
  537. package/jsx/wss/AppShell/AppShell.styles.d.ts +2 -0
  538. package/jsx/wss/AppShell/AppShell.styles.d.ts.map +1 -0
  539. package/jsx/wss/AppShell/AppShell.styles.js +5 -0
  540. package/jsx/wss/AppShell/AppShell.styles.js.map +1 -0
  541. package/lib/build/AppHeader/AppHeader.stories.d.ts.map +1 -1
  542. package/lib/build/AppHeader/AppHeader.stories.js +7 -2
  543. package/lib/build/AppHeader/AppHeader.stories.js.map +1 -1
  544. package/lib/build/AppShell/AppShell.mocks.d.ts +19 -0
  545. package/lib/build/AppShell/AppShell.mocks.d.ts.map +1 -1
  546. package/lib/build/AppShell/AppShell.mocks.js +32 -0
  547. package/lib/build/AppShell/AppShell.mocks.js.map +1 -1
  548. package/lib/build/AppShell/AppShell.stories.d.ts +2 -2
  549. package/lib/build/AppShell/AppShell.stories.d.ts.map +1 -1
  550. package/lib/build/AppShell/AppShell.stories.js +22 -45
  551. package/lib/build/AppShell/AppShell.stories.js.map +1 -1
  552. package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts +8 -0
  553. package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts.map +1 -0
  554. package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.js +85 -0
  555. package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.js.map +1 -0
  556. package/lib/build/DynamicContentEditor/FieldSelector.d.ts +14 -0
  557. package/lib/build/DynamicContentEditor/FieldSelector.d.ts.map +1 -0
  558. package/lib/build/DynamicContentEditor/FieldSelector.js +81 -0
  559. package/lib/build/DynamicContentEditor/FieldSelector.js.map +1 -0
  560. package/lib/build/FlowModeller/FlowModeller.mocks.d.ts +19 -2
  561. package/lib/build/FlowModeller/FlowModeller.mocks.d.ts.map +1 -1
  562. package/lib/build/FlowModeller/FlowModeller.mocks.js +81 -27
  563. package/lib/build/FlowModeller/FlowModeller.mocks.js.map +1 -1
  564. package/lib/build/FlowModeller/FlowModeller.stories.d.ts +8 -10
  565. package/lib/build/FlowModeller/FlowModeller.stories.d.ts.map +1 -1
  566. package/lib/build/FlowModeller/FlowModeller.stories.js +147 -138
  567. package/lib/build/FlowModeller/FlowModeller.stories.js.map +1 -1
  568. package/lib/build/FlowModeller/FlowModeller.styles.d.ts +2 -0
  569. package/lib/build/FlowModeller/FlowModeller.styles.d.ts.map +1 -0
  570. package/lib/build/FlowModeller/FlowModeller.styles.js +8 -0
  571. package/lib/build/FlowModeller/FlowModeller.styles.js.map +1 -0
  572. package/lib/build/ItemLibrary/LibraryPicker.mocks.d.ts +1 -5
  573. package/lib/build/ItemLibrary/LibraryPicker.mocks.d.ts.map +1 -1
  574. package/lib/build/ItemLibrary/LibraryPicker.mocks.js +5 -10
  575. package/lib/build/ItemLibrary/LibraryPicker.mocks.js.map +1 -1
  576. package/lib/build/ItemLibrary/LibraryPicker.stories.d.ts +3 -7
  577. package/lib/build/ItemLibrary/LibraryPicker.stories.d.ts.map +1 -1
  578. package/lib/build/ItemLibrary/LibraryPicker.stories.js +1 -1
  579. package/lib/build/ItemLibrary/LibraryPicker.stories.js.map +1 -1
  580. package/lib/build/LifeCycle/LifeCycle.mocks.d.ts +3 -0
  581. package/lib/build/LifeCycle/LifeCycle.mocks.d.ts.map +1 -1
  582. package/lib/build/LifeCycle/LifeCycle.mocks.js +106 -18
  583. package/lib/build/LifeCycle/LifeCycle.mocks.js.map +1 -1
  584. package/lib/build/LifeCycle/LifeCycle.stories.d.ts +6 -9
  585. package/lib/build/LifeCycle/LifeCycle.stories.d.ts.map +1 -1
  586. package/lib/build/LifeCycle/LifeCycle.stories.js +115 -31
  587. package/lib/build/LifeCycle/LifeCycle.stories.js.map +1 -1
  588. package/lib/build/LifeCycle/utils.d.ts.map +1 -1
  589. package/lib/build/LifeCycle/utils.js +5 -4
  590. package/lib/build/LifeCycle/utils.js.map +1 -1
  591. package/lib/build/ObjectSelect/ObjectSelect.mocks.d.ts +46 -0
  592. package/lib/build/ObjectSelect/ObjectSelect.mocks.d.ts.map +1 -0
  593. package/lib/build/ObjectSelect/ObjectSelect.mocks.js +310 -0
  594. package/lib/build/ObjectSelect/ObjectSelect.mocks.js.map +1 -0
  595. package/lib/build/ObjectSelect/ObjectSelect.stories.d.ts +8 -0
  596. package/lib/build/ObjectSelect/ObjectSelect.stories.d.ts.map +1 -0
  597. package/lib/build/ObjectSelect/ObjectSelect.stories.js +151 -0
  598. package/lib/build/ObjectSelect/ObjectSelect.stories.js.map +1 -0
  599. package/lib/build/ObjectSelect/ObjectSelect.styles.d.ts +4 -0
  600. package/lib/build/ObjectSelect/ObjectSelect.styles.d.ts.map +1 -0
  601. package/lib/build/ObjectSelect/ObjectSelect.styles.js +27 -0
  602. package/lib/build/ObjectSelect/ObjectSelect.styles.js.map +1 -0
  603. package/lib/build/PageTemplates/GalleryPage.mocks.d.ts +46 -0
  604. package/lib/build/PageTemplates/GalleryPage.mocks.d.ts.map +1 -0
  605. package/lib/build/PageTemplates/GalleryPage.mocks.js +77 -0
  606. package/lib/build/PageTemplates/GalleryPage.mocks.js.map +1 -0
  607. package/lib/build/PageTemplates/GalleryPage.stories.d.ts.map +1 -1
  608. package/lib/build/PageTemplates/GalleryPage.stories.js +14 -92
  609. package/lib/build/PageTemplates/GalleryPage.stories.js.map +1 -1
  610. package/lib/build/PageTemplates/PageTemplates.mocks.d.ts +18 -0
  611. package/lib/build/PageTemplates/PageTemplates.mocks.d.ts.map +1 -0
  612. package/lib/build/PageTemplates/PageTemplates.mocks.js +248 -0
  613. package/lib/build/PageTemplates/PageTemplates.mocks.js.map +1 -0
  614. package/lib/build/PageTemplates/PageTemplates.stories.d.ts +4 -9
  615. package/lib/build/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
  616. package/lib/build/PageTemplates/PageTemplates.stories.js +115 -253
  617. package/lib/build/PageTemplates/PageTemplates.stories.js.map +1 -1
  618. package/lib/build/Workbench/Workbench.stories.d.ts.map +1 -1
  619. package/lib/build/Workbench/Workbench.stories.js +26 -39
  620. package/lib/build/Workbench/Workbench.stories.js.map +1 -1
  621. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.mocks.d.ts +3 -0
  622. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.mocks.d.ts.map +1 -0
  623. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.mocks.js +13 -0
  624. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.mocks.js.map +1 -0
  625. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts +16 -8
  626. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts.map +1 -1
  627. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.js +68 -60
  628. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.js.map +1 -1
  629. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.styles.d.ts +5 -0
  630. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.styles.d.ts.map +1 -0
  631. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.styles.js +15 -0
  632. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.styles.js.map +1 -0
  633. package/lib/condition-builder/ConditionBuilder/props.mock.d.ts.map +1 -1
  634. package/lib/condition-builder/ConditionBuilder/props.mock.js +17 -2
  635. package/lib/condition-builder/ConditionBuilder/props.mock.js.map +1 -1
  636. package/lib/core/AppShell/AppShell.mocks.js +5 -5
  637. package/lib/core/AppShell/AppShell.mocks.js.map +1 -1
  638. package/lib/core/AppShell/AppShell.stories.d.ts +6 -0
  639. package/lib/core/AppShell/AppShell.stories.d.ts.map +1 -1
  640. package/lib/core/AppShell/AppShell.stories.js +33 -9
  641. package/lib/core/AppShell/AppShell.stories.js.map +1 -1
  642. package/lib/core/Avatar/Avatar.stories.d.ts +5 -0
  643. package/lib/core/Avatar/Avatar.stories.d.ts.map +1 -1
  644. package/lib/core/Avatar/Avatar.stories.js +30 -7
  645. package/lib/core/Avatar/Avatar.stories.js.map +1 -1
  646. package/lib/core/Backdrop/Backdrop.stories.js +2 -2
  647. package/lib/core/Backdrop/Backdrop.stories.js.map +1 -1
  648. package/lib/core/Badges/Alert.stories.js +1 -1
  649. package/lib/core/Badges/Alert.stories.js.map +1 -1
  650. package/lib/core/Badges/Count.stories.js +1 -1
  651. package/lib/core/Badges/Count.stories.js.map +1 -1
  652. package/lib/core/Badges/Keyboard.stories.d.ts +6 -0
  653. package/lib/core/Badges/Keyboard.stories.d.ts.map +1 -0
  654. package/lib/core/Badges/Keyboard.stories.js +16 -0
  655. package/lib/core/Badges/Keyboard.stories.js.map +1 -0
  656. package/lib/core/Badges/Selection.stories.d.ts +2 -3
  657. package/lib/core/Badges/Selection.stories.d.ts.map +1 -1
  658. package/lib/core/Badges/Selection.stories.js +1 -1
  659. package/lib/core/Badges/Selection.stories.js.map +1 -1
  660. package/lib/core/Badges/Status.stories.d.ts +5 -0
  661. package/lib/core/Badges/Status.stories.d.ts.map +1 -1
  662. package/lib/core/Badges/Status.stories.js +24 -2
  663. package/lib/core/Badges/Status.stories.js.map +1 -1
  664. package/lib/core/Badges/Tag.stories.d.ts +2 -3
  665. package/lib/core/Badges/Tag.stories.d.ts.map +1 -1
  666. package/lib/core/Badges/Tag.stories.js +1 -1
  667. package/lib/core/Badges/Tag.stories.js.map +1 -1
  668. package/lib/core/Banner/Banner.mocks.js +1 -1
  669. package/lib/core/Banner/Banner.mocks.js.map +1 -1
  670. package/lib/core/Banner/Banner.stories.d.ts +12 -19
  671. package/lib/core/Banner/Banner.stories.d.ts.map +1 -1
  672. package/lib/core/Banner/Banner.stories.js +30 -13
  673. package/lib/core/Banner/Banner.stories.js.map +1 -1
  674. package/lib/core/Boolean/BooleanDisplay.stories.js +1 -1
  675. package/lib/core/Boolean/BooleanDisplay.stories.js.map +1 -1
  676. package/lib/core/Breadcrumbs/Breadcrumbs.stories.d.ts +3 -4
  677. package/lib/core/Breadcrumbs/Breadcrumbs.stories.d.ts.map +1 -1
  678. package/lib/core/Breadcrumbs/Breadcrumbs.stories.js +2 -2
  679. package/lib/core/Breadcrumbs/Breadcrumbs.stories.js.map +1 -1
  680. package/lib/core/Button/Button.stories.d.ts +10 -3
  681. package/lib/core/Button/Button.stories.d.ts.map +1 -1
  682. package/lib/core/Button/Button.stories.js +35 -8
  683. package/lib/core/Button/Button.stories.js.map +1 -1
  684. package/lib/core/Card/Card.stories.d.ts +6 -2
  685. package/lib/core/Card/Card.stories.d.ts.map +1 -1
  686. package/lib/core/Card/Card.stories.js +22 -4
  687. package/lib/core/Card/Card.stories.js.map +1 -1
  688. package/lib/core/Checkbox/Checkbox.stories.d.ts +12 -0
  689. package/lib/core/Checkbox/Checkbox.stories.d.ts.map +1 -1
  690. package/lib/core/Checkbox/Checkbox.stories.js +54 -3
  691. package/lib/core/Checkbox/Checkbox.stories.js.map +1 -1
  692. package/lib/core/CheckboxGroup/CheckboxGroup.stories.d.ts +3 -3
  693. package/lib/core/CheckboxGroup/CheckboxGroup.stories.d.ts.map +1 -1
  694. package/lib/core/CheckboxGroup/CheckboxGroup.stories.js +3 -3
  695. package/lib/core/CheckboxGroup/CheckboxGroup.stories.js.map +1 -1
  696. package/lib/core/ColorPicker/ColorPicker.stories.d.ts +1 -2
  697. package/lib/core/ColorPicker/ColorPicker.stories.d.ts.map +1 -1
  698. package/lib/core/ColorPicker/ColorPicker.stories.js +7 -15
  699. package/lib/core/ColorPicker/ColorPicker.stories.js.map +1 -1
  700. package/lib/core/ColorPicker/ColorPicker.styles.d.ts +4 -0
  701. package/lib/core/ColorPicker/ColorPicker.styles.d.ts.map +1 -0
  702. package/lib/core/ColorPicker/ColorPicker.styles.js +11 -0
  703. package/lib/core/ColorPicker/ColorPicker.styles.js.map +1 -0
  704. package/lib/core/ComboBox/ComboBox.stories.js +6 -6
  705. package/lib/core/ComboBox/ComboBox.stories.js.map +1 -1
  706. package/lib/core/Configuration/Configuration.mocks.d.ts +7 -0
  707. package/lib/core/Configuration/Configuration.mocks.d.ts.map +1 -0
  708. package/lib/core/Configuration/Configuration.mocks.js +6 -0
  709. package/lib/core/Configuration/Configuration.mocks.js.map +1 -0
  710. package/lib/core/Configuration/Configuration.stories.d.ts +19 -3
  711. package/lib/core/Configuration/Configuration.stories.d.ts.map +1 -1
  712. package/lib/core/Configuration/Configuration.stories.js +71 -24
  713. package/lib/core/Configuration/Configuration.stories.js.map +1 -1
  714. package/lib/core/Configuration/Configuration.styles.d.ts +6 -0
  715. package/lib/core/Configuration/Configuration.styles.d.ts.map +1 -0
  716. package/lib/core/Configuration/Configuration.styles.js +12 -0
  717. package/lib/core/Configuration/Configuration.styles.js.map +1 -0
  718. package/lib/core/CreditCard/CreditCard.stories.d.ts +11 -0
  719. package/lib/core/CreditCard/CreditCard.stories.d.ts.map +1 -0
  720. package/lib/core/CreditCard/CreditCard.stories.js +46 -0
  721. package/lib/core/CreditCard/CreditCard.stories.js.map +1 -0
  722. package/lib/core/Currency/Currency.stories.d.ts +6 -3
  723. package/lib/core/Currency/Currency.stories.d.ts.map +1 -1
  724. package/lib/core/Currency/Currency.stories.js +41 -16
  725. package/lib/core/Currency/Currency.stories.js.map +1 -1
  726. package/lib/core/DateTime/DateTime.stories.d.ts.map +1 -1
  727. package/lib/core/DateTime/DateTime.stories.js +12 -10
  728. package/lib/core/DateTime/DateTime.stories.js.map +1 -1
  729. package/lib/core/DateTime/DateTimeDisplay.stories.js +2 -2
  730. package/lib/core/DateTime/DateTimeDisplay.stories.js.map +1 -1
  731. package/lib/core/DateTime/DateTimePicker.stories.js +2 -2
  732. package/lib/core/DateTime/DateTimePicker.stories.js.map +1 -1
  733. package/lib/core/Drawer/Drawer.stories.js +4 -4
  734. package/lib/core/Drawer/Drawer.stories.js.map +1 -1
  735. package/lib/core/Email/EmailDisplay.stories.js +1 -1
  736. package/lib/core/Email/EmailDisplay.stories.js.map +1 -1
  737. package/lib/core/EmojiPicker/EmojiPicker.stories.js +3 -3
  738. package/lib/core/EmojiPicker/EmojiPicker.stories.js.map +1 -1
  739. package/lib/core/EmptyState/EmptyState.stories.js +1 -1
  740. package/lib/core/EmptyState/EmptyState.stories.js.map +1 -1
  741. package/lib/core/ErrorState/ErrorState.stories.js +1 -1
  742. package/lib/core/ErrorState/ErrorState.stories.js.map +1 -1
  743. package/lib/core/ExpandCollapse/ExpandCollapse.stories.js +2 -2
  744. package/lib/core/ExpandCollapse/ExpandCollapse.stories.js.map +1 -1
  745. package/lib/core/FieldGroup/FieldGroup.stories.d.ts +6 -4
  746. package/lib/core/FieldGroup/FieldGroup.stories.d.ts.map +1 -1
  747. package/lib/core/FieldGroup/FieldGroup.stories.js +7 -3
  748. package/lib/core/FieldGroup/FieldGroup.stories.js.map +1 -1
  749. package/lib/core/FieldGroup/FieldGroupList.mocks.d.ts +4 -0
  750. package/lib/core/FieldGroup/FieldGroupList.mocks.d.ts.map +1 -1
  751. package/lib/core/FieldGroup/FieldGroupList.mocks.js +47 -3
  752. package/lib/core/FieldGroup/FieldGroupList.mocks.js.map +1 -1
  753. package/lib/core/FieldGroup/FieldGroupList.stories.d.ts +9 -8
  754. package/lib/core/FieldGroup/FieldGroupList.stories.d.ts.map +1 -1
  755. package/lib/core/FieldGroup/FieldGroupList.stories.js +54 -67
  756. package/lib/core/FieldGroup/FieldGroupList.stories.js.map +1 -1
  757. package/lib/core/FieldValueList/FieldValueList.stories.d.ts +2 -2
  758. package/lib/core/FieldValueList/FieldValueList.stories.d.ts.map +1 -1
  759. package/lib/core/FieldValueList/FieldValueList.stories.js +4 -4
  760. package/lib/core/FieldValueList/FieldValueList.stories.js.map +1 -1
  761. package/lib/core/File/FileDisplay.stories.d.ts.map +1 -1
  762. package/lib/core/File/FileDisplay.stories.js +25 -37
  763. package/lib/core/File/FileDisplay.stories.js.map +1 -1
  764. package/lib/core/File/FileInput.stories.d.ts.map +1 -1
  765. package/lib/core/File/FileInput.stories.js +3 -3
  766. package/lib/core/File/FileInput.stories.js.map +1 -1
  767. package/lib/core/Flex/FlexContainer.stories.d.ts +1 -2
  768. package/lib/core/Flex/FlexContainer.stories.d.ts.map +1 -1
  769. package/lib/core/Flex/FlexContainer.stories.js +7 -7
  770. package/lib/core/Flex/FlexContainer.stories.js.map +1 -1
  771. package/lib/core/Flex/FlexItem.stories.js +3 -3
  772. package/lib/core/Flex/FlexItem.stories.js.map +1 -1
  773. package/lib/core/Form/Form.mocks.d.ts.map +1 -1
  774. package/lib/core/Form/Form.mocks.js +5 -5
  775. package/lib/core/Form/Form.mocks.js.map +1 -1
  776. package/lib/core/Form/Form.stories.d.ts +10 -0
  777. package/lib/core/Form/Form.stories.d.ts.map +1 -1
  778. package/lib/core/Form/Form.stories.js +47 -9
  779. package/lib/core/Form/Form.stories.js.map +1 -1
  780. package/lib/core/Grid/GridContainer.stories.d.ts +4 -5
  781. package/lib/core/Grid/GridContainer.stories.d.ts.map +1 -1
  782. package/lib/core/Grid/GridContainer.stories.js +9 -9
  783. package/lib/core/Grid/GridContainer.stories.js.map +1 -1
  784. package/lib/core/Grid/GridItem.stories.d.ts +1 -2
  785. package/lib/core/Grid/GridItem.stories.d.ts.map +1 -1
  786. package/lib/core/Grid/GridItem.stories.js +3 -3
  787. package/lib/core/Grid/GridItem.stories.js.map +1 -1
  788. package/lib/core/HTML/HTML.stories.d.ts +6 -0
  789. package/lib/core/HTML/HTML.stories.d.ts.map +1 -0
  790. package/lib/core/HTML/HTML.stories.js +14 -0
  791. package/lib/core/HTML/HTML.stories.js.map +1 -0
  792. package/lib/core/Icon/Icon.mocks.js +1 -1
  793. package/lib/core/Icon/Icon.mocks.js.map +1 -1
  794. package/lib/core/Icon/Icon.stories.d.ts +5 -6
  795. package/lib/core/Icon/Icon.stories.d.ts.map +1 -1
  796. package/lib/core/Icon/Icon.stories.js +12 -35
  797. package/lib/core/Icon/Icon.stories.js.map +1 -1
  798. package/lib/core/Icon/Icon.styles.d.ts +4 -0
  799. package/lib/core/Icon/Icon.styles.d.ts.map +1 -0
  800. package/lib/core/Icon/Icon.styles.js +25 -0
  801. package/lib/core/Icon/Icon.styles.js.map +1 -0
  802. package/lib/core/IconPicker/IconPicker.stories.js +2 -2
  803. package/lib/core/IconPicker/IconPicker.stories.js.map +1 -1
  804. package/lib/core/Image/Image.stories.d.ts +2 -3
  805. package/lib/core/Image/Image.stories.d.ts.map +1 -1
  806. package/lib/core/Image/Image.stories.js +1 -1
  807. package/lib/core/Image/Image.stories.js.map +1 -1
  808. package/lib/core/Input/Input.stories.d.ts +9 -0
  809. package/lib/core/Input/Input.stories.d.ts.map +1 -1
  810. package/lib/core/Input/Input.stories.js +39 -2
  811. package/lib/core/Input/Input.stories.js.map +1 -1
  812. package/lib/core/Label/Label.stories.d.ts +4 -0
  813. package/lib/core/Label/Label.stories.d.ts.map +1 -1
  814. package/lib/core/Label/Label.stories.js +17 -2
  815. package/lib/core/Label/Label.stories.js.map +1 -1
  816. package/lib/core/Lightbox/Lightbox.stories.js +3 -3
  817. package/lib/core/Lightbox/Lightbox.stories.js.map +1 -1
  818. package/lib/core/Link/Link.stories.d.ts +1 -11
  819. package/lib/core/Link/Link.stories.d.ts.map +1 -1
  820. package/lib/core/Link/Link.stories.js +3 -3
  821. package/lib/core/Link/Link.stories.js.map +1 -1
  822. package/lib/core/List/CommaSeparatedList.stories.d.ts +2 -2
  823. package/lib/core/List/CommaSeparatedList.stories.d.ts.map +1 -1
  824. package/lib/core/List/CommaSeparatedList.stories.js +1 -1
  825. package/lib/core/List/CommaSeparatedList.stories.js.map +1 -1
  826. package/lib/core/List/OrderedList.stories.js +1 -1
  827. package/lib/core/List/OrderedList.stories.js.map +1 -1
  828. package/lib/core/List/UnorderedList.stories.js +1 -1
  829. package/lib/core/List/UnorderedList.stories.js.map +1 -1
  830. package/lib/core/ListToolbar/ListToolbar.mocks.d.ts +9 -0
  831. package/lib/core/ListToolbar/ListToolbar.mocks.d.ts.map +1 -0
  832. package/lib/core/ListToolbar/ListToolbar.mocks.js +50 -0
  833. package/lib/core/ListToolbar/ListToolbar.mocks.js.map +1 -0
  834. package/lib/core/ListToolbar/ListToolbar.stories.d.ts +6 -0
  835. package/lib/core/ListToolbar/ListToolbar.stories.d.ts.map +1 -0
  836. package/lib/core/ListToolbar/ListToolbar.stories.js +79 -0
  837. package/lib/core/ListToolbar/ListToolbar.stories.js.map +1 -0
  838. package/lib/core/Location/Location.stories.js +4 -4
  839. package/lib/core/Location/Location.stories.js.map +1 -1
  840. package/lib/core/Menu/Menu.stories.js +5 -5
  841. package/lib/core/Menu/Menu.stories.js.map +1 -1
  842. package/lib/core/MenuButton/MenuButton.stories.d.ts +6 -6
  843. package/lib/core/MenuButton/MenuButton.stories.d.ts.map +1 -1
  844. package/lib/core/MenuButton/MenuButton.stories.js +9 -9
  845. package/lib/core/MenuButton/MenuButton.stories.js.map +1 -1
  846. package/lib/core/MetaList/MetaList.stories.js +3 -3
  847. package/lib/core/MetaList/MetaList.stories.js.map +1 -1
  848. package/lib/core/Modal/Modal.mocks.d.ts.map +1 -1
  849. package/lib/core/Modal/Modal.mocks.js +11 -11
  850. package/lib/core/Modal/Modal.mocks.js.map +1 -1
  851. package/lib/core/Modal/Modal.stories.d.ts +10 -5
  852. package/lib/core/Modal/Modal.stories.d.ts.map +1 -1
  853. package/lib/core/Modal/Modal.stories.js +40 -35
  854. package/lib/core/Modal/Modal.stories.js.map +1 -1
  855. package/lib/core/MultiStep/MultiStep.stories.d.ts +2 -3
  856. package/lib/core/MultiStep/MultiStep.stories.d.ts.map +1 -1
  857. package/lib/core/MultiStep/MultiStep.stories.js +3 -3
  858. package/lib/core/MultiStep/MultiStep.stories.js.map +1 -1
  859. package/lib/core/Number/Number.stories.d.ts +10 -6
  860. package/lib/core/Number/Number.stories.d.ts.map +1 -1
  861. package/lib/core/Number/Number.stories.js +83 -29
  862. package/lib/core/Number/Number.stories.js.map +1 -1
  863. package/lib/core/PageTemplates/PageTemplates.stories.d.ts +5 -3
  864. package/lib/core/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
  865. package/lib/core/PageTemplates/PageTemplates.stories.js +88 -42
  866. package/lib/core/PageTemplates/PageTemplates.stories.js.map +1 -1
  867. package/lib/core/PageTemplates/PageTemplates.styles.d.ts +1 -0
  868. package/lib/core/PageTemplates/PageTemplates.styles.d.ts.map +1 -1
  869. package/lib/core/PageTemplates/PageTemplates.styles.js +9 -0
  870. package/lib/core/PageTemplates/PageTemplates.styles.js.map +1 -1
  871. package/lib/core/Pagination/Pagination.stories.js +1 -1
  872. package/lib/core/Pagination/Pagination.stories.js.map +1 -1
  873. package/lib/core/Paragraph/ParagraphDisplay.stories.js +1 -1
  874. package/lib/core/Paragraph/ParagraphDisplay.stories.js.map +1 -1
  875. package/lib/core/Phone/Phone.stories.d.ts.map +1 -1
  876. package/lib/core/Phone/Phone.stories.js +4 -2
  877. package/lib/core/Phone/Phone.stories.js.map +1 -1
  878. package/lib/core/Popover/Popover.stories.d.ts +1 -1
  879. package/lib/core/Popover/Popover.stories.d.ts.map +1 -1
  880. package/lib/core/Popover/Popover.stories.js +2 -2
  881. package/lib/core/Popover/Popover.stories.js.map +1 -1
  882. package/lib/core/Progress/Progress.stories.d.ts +4 -0
  883. package/lib/core/Progress/Progress.stories.d.ts.map +1 -1
  884. package/lib/core/Progress/Progress.stories.js +20 -3
  885. package/lib/core/Progress/Progress.stories.js.map +1 -1
  886. package/lib/core/RadioButton/RadioButton.stories.d.ts +12 -0
  887. package/lib/core/RadioButton/RadioButton.stories.d.ts.map +1 -1
  888. package/lib/core/RadioButton/RadioButton.stories.js +53 -3
  889. package/lib/core/RadioButton/RadioButton.stories.js.map +1 -1
  890. package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts +3 -3
  891. package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts.map +1 -1
  892. package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.js +3 -3
  893. package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.js.map +1 -1
  894. package/lib/core/Rating/Rating.stories.d.ts +4 -0
  895. package/lib/core/Rating/Rating.stories.d.ts.map +1 -1
  896. package/lib/core/Rating/Rating.stories.js +17 -2
  897. package/lib/core/Rating/Rating.stories.js.map +1 -1
  898. package/lib/core/SearchInput/SearchInput.mocks.d.ts +12 -0
  899. package/lib/core/SearchInput/SearchInput.mocks.d.ts.map +1 -0
  900. package/lib/core/SearchInput/SearchInput.mocks.js +25 -0
  901. package/lib/core/SearchInput/SearchInput.mocks.js.map +1 -0
  902. package/lib/core/SearchInput/SearchInput.stories.d.ts +1 -0
  903. package/lib/core/SearchInput/SearchInput.stories.d.ts.map +1 -1
  904. package/lib/core/SearchInput/SearchInput.stories.js +30 -1
  905. package/lib/core/SearchInput/SearchInput.stories.js.map +1 -1
  906. package/lib/core/Select/Select.stories.d.ts +8 -0
  907. package/lib/core/Select/Select.stories.d.ts.map +1 -1
  908. package/lib/core/Select/Select.stories.js +29 -2
  909. package/lib/core/Select/Select.stories.js.map +1 -1
  910. package/lib/core/Sentiment/Sentiment.stories.d.ts +6 -0
  911. package/lib/core/Sentiment/Sentiment.stories.d.ts.map +1 -1
  912. package/lib/core/Sentiment/Sentiment.stories.js +30 -3
  913. package/lib/core/Sentiment/Sentiment.stories.js.map +1 -1
  914. package/lib/core/Slider/Slider.stories.d.ts +4 -3
  915. package/lib/core/Slider/Slider.stories.d.ts.map +1 -1
  916. package/lib/core/Slider/Slider.stories.js +2 -2
  917. package/lib/core/Slider/Slider.stories.js.map +1 -1
  918. package/lib/core/SummaryItem/SummaryItem.stories.d.ts +5 -5
  919. package/lib/core/SummaryItem/SummaryItem.stories.d.ts.map +1 -1
  920. package/lib/core/SummaryItem/SummaryItem.stories.js +4 -4
  921. package/lib/core/SummaryItem/SummaryItem.stories.js.map +1 -1
  922. package/lib/core/SummaryList/SummaryList.mocks.js +2 -2
  923. package/lib/core/SummaryList/SummaryList.mocks.js.map +1 -1
  924. package/lib/core/SummaryList/SummaryList.stories.d.ts +2 -2
  925. package/lib/core/SummaryList/SummaryList.stories.d.ts.map +1 -1
  926. package/lib/core/SummaryList/SummaryList.stories.js +5 -5
  927. package/lib/core/SummaryList/SummaryList.stories.js.map +1 -1
  928. package/lib/core/Switch/Switch.stories.d.ts +7 -0
  929. package/lib/core/Switch/Switch.stories.d.ts.map +1 -1
  930. package/lib/core/Switch/Switch.stories.js +34 -3
  931. package/lib/core/Switch/Switch.stories.js.map +1 -1
  932. package/lib/core/Table/Table.mocks.d.ts +6 -0
  933. package/lib/core/Table/Table.mocks.d.ts.map +1 -1
  934. package/lib/core/Table/Table.mocks.js +135 -1
  935. package/lib/core/Table/Table.mocks.js.map +1 -1
  936. package/lib/core/Table/Table.stories.d.ts +25 -0
  937. package/lib/core/Table/Table.stories.d.ts.map +1 -1
  938. package/lib/core/Table/Table.stories.js +118 -6
  939. package/lib/core/Table/Table.stories.js.map +1 -1
  940. package/lib/core/Tabs/Tabs.stories.d.ts +10 -2
  941. package/lib/core/Tabs/Tabs.stories.d.ts.map +1 -1
  942. package/lib/core/Tabs/Tabs.stories.js +32 -3
  943. package/lib/core/Tabs/Tabs.stories.js.map +1 -1
  944. package/lib/core/Text/Text.stories.d.ts +19 -0
  945. package/lib/core/Text/Text.stories.d.ts.map +1 -1
  946. package/lib/core/Text/Text.stories.js +103 -3
  947. package/lib/core/Text/Text.stories.js.map +1 -1
  948. package/lib/core/TextArea/TextArea.stories.d.ts +5 -0
  949. package/lib/core/TextArea/TextArea.stories.d.ts.map +1 -1
  950. package/lib/core/TextArea/TextArea.stories.js +21 -2
  951. package/lib/core/TextArea/TextArea.stories.js.map +1 -1
  952. package/lib/core/Toaster/Toaster.stories.d.ts +2 -3
  953. package/lib/core/Toaster/Toaster.stories.d.ts.map +1 -1
  954. package/lib/core/Toaster/Toaster.stories.js +15 -19
  955. package/lib/core/Toaster/Toaster.stories.js.map +1 -1
  956. package/lib/core/Tooltip/Tooltip.stories.d.ts +8 -6
  957. package/lib/core/Tooltip/Tooltip.stories.d.ts.map +1 -1
  958. package/lib/core/Tooltip/Tooltip.stories.js +21 -2
  959. package/lib/core/Tooltip/Tooltip.stories.js.map +1 -1
  960. package/lib/core/Tree/Tree.stories.d.ts +1 -2
  961. package/lib/core/Tree/Tree.stories.d.ts.map +1 -1
  962. package/lib/core/Tree/Tree.stories.js +5 -5
  963. package/lib/core/Tree/Tree.stories.js.map +1 -1
  964. package/lib/core/URL/URL.stories.js +1 -1
  965. package/lib/core/URL/URL.stories.js.map +1 -1
  966. package/lib/cs/Article/Article.stories.d.ts +4 -13
  967. package/lib/cs/Article/Article.stories.d.ts.map +1 -1
  968. package/lib/cs/Article/Article.stories.js +9 -9
  969. package/lib/cs/Article/Article.stories.js.map +1 -1
  970. package/lib/cs/ArticleList/ArticleList.stories.d.ts +4 -14
  971. package/lib/cs/ArticleList/ArticleList.stories.d.ts.map +1 -1
  972. package/lib/cs/ArticleList/ArticleList.stories.js +12 -11
  973. package/lib/cs/ArticleList/ArticleList.stories.js.map +1 -1
  974. package/lib/cs/CSCaseView/CSAppShell.stories.d.ts +3 -37
  975. package/lib/cs/CSCaseView/CSAppShell.stories.d.ts.map +1 -1
  976. package/lib/cs/CSCaseView/CSAppShell.stories.js +24 -37
  977. package/lib/cs/CSCaseView/CSAppShell.stories.js.map +1 -1
  978. package/lib/cs/CSCaseView/CSCaseView.mocks.d.ts +9 -0
  979. package/lib/cs/CSCaseView/CSCaseView.mocks.d.ts.map +1 -1
  980. package/lib/cs/CSCaseView/CSCaseView.mocks.js +16 -0
  981. package/lib/cs/CSCaseView/CSCaseView.mocks.js.map +1 -1
  982. package/lib/cs/CallControlPanel/CallControlPanel.stories.d.ts +3 -2
  983. package/lib/cs/CallControlPanel/CallControlPanel.stories.d.ts.map +1 -1
  984. package/lib/cs/CallControlPanel/CallControlPanel.stories.js +22 -7
  985. package/lib/cs/CallControlPanel/CallControlPanel.stories.js.map +1 -1
  986. package/lib/cs/DialPad/DialPad.stories.js +1 -1
  987. package/lib/cs/DialPad/DialPad.stories.js.map +1 -1
  988. package/lib/cs/IntelligentGuidance/IntelligentGuidance.stories.d.ts +4 -11
  989. package/lib/cs/IntelligentGuidance/IntelligentGuidance.stories.d.ts.map +1 -1
  990. package/lib/cs/IntelligentGuidance/IntelligentGuidance.stories.js +26 -26
  991. package/lib/cs/IntelligentGuidance/IntelligentGuidance.stories.js.map +1 -1
  992. package/lib/cs/InteractionNotification/InteractionNotification.stories.d.ts +7 -6
  993. package/lib/cs/InteractionNotification/InteractionNotification.stories.d.ts.map +1 -1
  994. package/lib/cs/InteractionNotification/InteractionNotification.stories.js +13 -5
  995. package/lib/cs/InteractionNotification/InteractionNotification.stories.js.map +1 -1
  996. package/lib/cs/InteractionTimer/InteractionTimer.mocks.d.ts +11 -0
  997. package/lib/cs/InteractionTimer/InteractionTimer.mocks.d.ts.map +1 -0
  998. package/lib/cs/InteractionTimer/InteractionTimer.mocks.js +29 -0
  999. package/lib/cs/InteractionTimer/InteractionTimer.mocks.js.map +1 -0
  1000. package/lib/cs/InteractionTimer/InteractionTimer.stories.d.ts +3 -7
  1001. package/lib/cs/InteractionTimer/InteractionTimer.stories.d.ts.map +1 -1
  1002. package/lib/cs/InteractionTimer/InteractionTimer.stories.js +38 -43
  1003. package/lib/cs/InteractionTimer/InteractionTimer.stories.js.map +1 -1
  1004. package/lib/cs/TaskManager/TaskManager.mocks.d.ts +6 -0
  1005. package/lib/cs/TaskManager/TaskManager.mocks.d.ts.map +1 -1
  1006. package/lib/cs/TaskManager/TaskManager.mocks.js +7 -0
  1007. package/lib/cs/TaskManager/TaskManager.mocks.js.map +1 -1
  1008. package/lib/cs/TaskManager/TaskManager.stories.d.ts +8 -6
  1009. package/lib/cs/TaskManager/TaskManager.stories.d.ts.map +1 -1
  1010. package/lib/cs/TaskManager/TaskManager.stories.js +47 -41
  1011. package/lib/cs/TaskManager/TaskManager.stories.js.map +1 -1
  1012. package/lib/cs/TaskManager/TaskManager.styles.d.ts +3 -0
  1013. package/lib/cs/TaskManager/TaskManager.styles.d.ts.map +1 -0
  1014. package/lib/cs/TaskManager/TaskManager.styles.js +8 -0
  1015. package/lib/cs/TaskManager/TaskManager.styles.js.map +1 -0
  1016. package/lib/dnd/DragDropList/DragDropList.mocks.d.ts +15 -0
  1017. package/lib/dnd/DragDropList/DragDropList.mocks.d.ts.map +1 -0
  1018. package/lib/dnd/DragDropList/DragDropList.mocks.js +32 -0
  1019. package/lib/dnd/DragDropList/DragDropList.mocks.js.map +1 -0
  1020. package/lib/dnd/DragDropList/DragDropList.stories.d.ts +8 -9
  1021. package/lib/dnd/DragDropList/DragDropList.stories.d.ts.map +1 -1
  1022. package/lib/dnd/DragDropList/DragDropList.stories.js +16 -87
  1023. package/lib/dnd/DragDropList/DragDropList.stories.js.map +1 -1
  1024. package/lib/dnd/DragDropList/DragDropList.styles.d.ts +6 -0
  1025. package/lib/dnd/DragDropList/DragDropList.styles.d.ts.map +1 -0
  1026. package/lib/dnd/DragDropList/DragDropList.styles.js +32 -0
  1027. package/lib/dnd/DragDropList/DragDropList.styles.js.map +1 -0
  1028. package/lib/rte/Editor/Editor.mocks.d.ts +309 -0
  1029. package/lib/rte/Editor/Editor.mocks.d.ts.map +1 -0
  1030. package/lib/rte/Editor/Editor.mocks.js +26 -0
  1031. package/lib/rte/Editor/Editor.mocks.js.map +1 -0
  1032. package/lib/rte/Editor/Editor.stories.d.ts +7 -8
  1033. package/lib/rte/Editor/Editor.stories.d.ts.map +1 -1
  1034. package/lib/rte/Editor/Editor.stories.js +8 -28
  1035. package/lib/rte/Editor/Editor.stories.js.map +1 -1
  1036. package/lib/rte/RichTextEditor/RichTextEditor.mocks.js +5 -5
  1037. package/lib/rte/RichTextEditor/RichTextEditor.mocks.js.map +1 -1
  1038. package/lib/rte/RichTextEditor/RichTextEditor.stories.d.ts +2 -3
  1039. package/lib/rte/RichTextEditor/RichTextEditor.stories.d.ts.map +1 -1
  1040. package/lib/rte/RichTextEditor/RichTextEditor.stories.js +5 -5
  1041. package/lib/rte/RichTextEditor/RichTextEditor.stories.js.map +1 -1
  1042. package/lib/rte/RichTextEditor/RichTextViewer.stories.d.ts +5 -5
  1043. package/lib/rte/RichTextEditor/RichTextViewer.stories.d.ts.map +1 -1
  1044. package/lib/rte/RichTextEditor/RichTextViewer.stories.js +19 -6
  1045. package/lib/rte/RichTextEditor/RichTextViewer.stories.js.map +1 -1
  1046. package/lib/social/Chat/Chat.stories.d.ts +6 -7
  1047. package/lib/social/Chat/Chat.stories.d.ts.map +1 -1
  1048. package/lib/social/Chat/Chat.stories.js +31 -31
  1049. package/lib/social/Chat/Chat.stories.js.map +1 -1
  1050. package/lib/social/Chat/RepeatingView.mocks.d.ts +14 -0
  1051. package/lib/social/Chat/RepeatingView.mocks.d.ts.map +1 -0
  1052. package/lib/social/Chat/RepeatingView.mocks.js +11 -0
  1053. package/lib/social/Chat/RepeatingView.mocks.js.map +1 -0
  1054. package/lib/social/Chat/RepeatingView.stories.d.ts +6 -17
  1055. package/lib/social/Chat/RepeatingView.stories.d.ts.map +1 -1
  1056. package/lib/social/Chat/RepeatingView.stories.js +18 -48
  1057. package/lib/social/Chat/RepeatingView.stories.js.map +1 -1
  1058. package/lib/social/Chat/RepeatingView.styles.d.ts +2 -0
  1059. package/lib/social/Chat/RepeatingView.styles.d.ts.map +1 -0
  1060. package/lib/social/Chat/RepeatingView.styles.js +22 -0
  1061. package/lib/social/Chat/RepeatingView.styles.js.map +1 -0
  1062. package/lib/social/Email/Email.mocks.d.ts +172 -2
  1063. package/lib/social/Email/Email.mocks.d.ts.map +1 -1
  1064. package/lib/social/Email/Email.mocks.js +420 -1
  1065. package/lib/social/Email/Email.mocks.js.map +1 -1
  1066. package/lib/social/Email/Email.stories.d.ts +19 -25
  1067. package/lib/social/Email/Email.stories.d.ts.map +1 -1
  1068. package/lib/social/Email/Email.stories.js +148 -440
  1069. package/lib/social/Email/Email.stories.js.map +1 -1
  1070. package/lib/social/Email/Email.styles.d.ts +4 -0
  1071. package/lib/social/Email/Email.styles.d.ts.map +1 -0
  1072. package/lib/social/Email/Email.styles.js +14 -0
  1073. package/lib/social/Email/Email.styles.js.map +1 -0
  1074. package/lib/social/Feed/Feed.mocks.d.ts.map +1 -1
  1075. package/lib/social/Feed/Feed.mocks.js +40 -40
  1076. package/lib/social/Feed/Feed.mocks.js.map +1 -1
  1077. package/lib/social/Feed/Feed.stories.d.ts +6 -11
  1078. package/lib/social/Feed/Feed.stories.d.ts.map +1 -1
  1079. package/lib/social/Feed/Feed.stories.js +30 -25
  1080. package/lib/social/Feed/Feed.stories.js.map +1 -1
  1081. package/lib/social/Feed/FeedNewPost.stories.d.ts +7 -14
  1082. package/lib/social/Feed/FeedNewPost.stories.d.ts.map +1 -1
  1083. package/lib/social/Feed/FeedNewPost.stories.js +2 -2
  1084. package/lib/social/Feed/FeedNewPost.stories.js.map +1 -1
  1085. package/lib/social/Feed/FeedPost.stories.d.ts +4 -5
  1086. package/lib/social/Feed/FeedPost.stories.d.ts.map +1 -1
  1087. package/lib/social/Feed/FeedPost.stories.js +37 -27
  1088. package/lib/social/Feed/FeedPost.stories.js.map +1 -1
  1089. package/lib/social/Feed/FeedReply.stories.d.ts +10 -10
  1090. package/lib/social/Feed/FeedReply.stories.d.ts.map +1 -1
  1091. package/lib/social/Feed/FeedReply.stories.js +25 -20
  1092. package/lib/social/Feed/FeedReply.stories.js.map +1 -1
  1093. package/lib/social/Feed/FeedReplyInput.stories.d.ts +7 -12
  1094. package/lib/social/Feed/FeedReplyInput.stories.d.ts.map +1 -1
  1095. package/lib/social/Feed/FeedReplyInput.stories.js +2 -2
  1096. package/lib/social/Feed/FeedReplyInput.stories.js.map +1 -1
  1097. package/lib/work/AppAnnouncement/AppAnnouncement.stories.js +1 -1
  1098. package/lib/work/AppAnnouncement/AppAnnouncement.stories.js.map +1 -1
  1099. package/lib/work/CaseView/Attachments.mocks.js +15 -15
  1100. package/lib/work/CaseView/Attachments.mocks.js.map +1 -1
  1101. package/lib/work/CaseView/CaseView.mocks.d.ts.map +1 -1
  1102. package/lib/work/CaseView/CaseView.mocks.js +8 -8
  1103. package/lib/work/CaseView/CaseView.mocks.js.map +1 -1
  1104. package/lib/work/CaseView/CaseView.stories.d.ts +4 -11
  1105. package/lib/work/CaseView/CaseView.stories.d.ts.map +1 -1
  1106. package/lib/work/CaseView/CaseView.stories.js +28 -28
  1107. package/lib/work/CaseView/CaseView.stories.js.map +1 -1
  1108. package/lib/work/CaseView/Details.mocks.d.ts.map +1 -1
  1109. package/lib/work/CaseView/Details.mocks.js +2 -2
  1110. package/lib/work/CaseView/Details.mocks.js.map +1 -1
  1111. package/lib/work/CaseView/FileService.mock.js +1 -1
  1112. package/lib/work/CaseView/FileService.mock.js.map +1 -1
  1113. package/lib/work/CaseView/MobileCaseView.stories.d.ts +3 -9
  1114. package/lib/work/CaseView/MobileCaseView.stories.d.ts.map +1 -1
  1115. package/lib/work/CaseView/MobileCaseView.stories.js +1 -1
  1116. package/lib/work/CaseView/MobileCaseView.stories.js.map +1 -1
  1117. package/lib/work/CaseView/Pulse.mocks.d.ts.map +1 -1
  1118. package/lib/work/CaseView/Pulse.mocks.js +3 -3
  1119. package/lib/work/CaseView/Pulse.mocks.js.map +1 -1
  1120. package/lib/work/ConfigurableLayout/ConfigurableLayout.mocks.d.ts +45 -0
  1121. package/lib/work/ConfigurableLayout/ConfigurableLayout.mocks.d.ts.map +1 -0
  1122. package/lib/work/ConfigurableLayout/ConfigurableLayout.mocks.js +165 -0
  1123. package/lib/work/ConfigurableLayout/ConfigurableLayout.mocks.js.map +1 -0
  1124. package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts +3 -8
  1125. package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts.map +1 -1
  1126. package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.js +5 -175
  1127. package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.js.map +1 -1
  1128. package/lib/work/ConfigurableLayout/ConfigurableLayout.styles.d.ts +4 -0
  1129. package/lib/work/ConfigurableLayout/ConfigurableLayout.styles.d.ts.map +1 -0
  1130. package/lib/work/ConfigurableLayout/ConfigurableLayout.styles.js +11 -0
  1131. package/lib/work/ConfigurableLayout/ConfigurableLayout.styles.js.map +1 -0
  1132. package/lib/work/Confirmation/Confirmation.stories.d.ts.map +1 -1
  1133. package/lib/work/Confirmation/Confirmation.stories.js +4 -4
  1134. package/lib/work/Confirmation/Confirmation.stories.js.map +1 -1
  1135. package/lib/work/Details/Details.stories.d.ts.map +1 -1
  1136. package/lib/work/Details/Details.stories.js +56 -53
  1137. package/lib/work/Details/Details.stories.js.map +1 -1
  1138. package/lib/work/Glimpse/Glimpse.stories.d.ts.map +1 -1
  1139. package/lib/work/Glimpse/Glimpse.stories.js +3 -3
  1140. package/lib/work/Glimpse/Glimpse.stories.js.map +1 -1
  1141. package/lib/work/SearchResults/SearchResults.mocks.js +4 -4
  1142. package/lib/work/SearchResults/SearchResults.mocks.js.map +1 -1
  1143. package/lib/work/SearchResults/SearchResults.stories.d.ts.map +1 -1
  1144. package/lib/work/SearchResults/SearchResults.stories.js +12 -12
  1145. package/lib/work/SearchResults/SearchResults.stories.js.map +1 -1
  1146. package/lib/work/Stages/Stages.stories.js +2 -2
  1147. package/lib/work/Stages/Stages.stories.js.map +1 -1
  1148. package/lib/work/Stakeholders/Stakeholders.mocks.d.ts.map +1 -1
  1149. package/lib/work/Stakeholders/Stakeholders.mocks.js +4 -4
  1150. package/lib/work/Stakeholders/Stakeholders.mocks.js.map +1 -1
  1151. package/lib/work/Stakeholders/Stakeholders.stories.d.ts +2 -3
  1152. package/lib/work/Stakeholders/Stakeholders.stories.d.ts.map +1 -1
  1153. package/lib/work/Stakeholders/Stakeholders.stories.js +2 -1
  1154. package/lib/work/Stakeholders/Stakeholders.stories.js.map +1 -1
  1155. package/lib/work/Tags/Tags.stories.js +1 -1
  1156. package/lib/work/Tags/Tags.stories.js.map +1 -1
  1157. package/lib/work/Tasks/TaskList.stories.js +3 -3
  1158. package/lib/work/Tasks/TaskList.stories.js.map +1 -1
  1159. package/lib/work/Tasks/Tasks.stories.js +11 -11
  1160. package/lib/work/Tasks/Tasks.stories.js.map +1 -1
  1161. package/lib/work/Timeline/Timeline.mocks.js +8 -8
  1162. package/lib/work/Timeline/Timeline.mocks.js.map +1 -1
  1163. package/lib/work/Timeline/Timeline.stories.d.ts +1 -0
  1164. package/lib/work/Timeline/Timeline.stories.d.ts.map +1 -1
  1165. package/lib/work/Timeline/Timeline.stories.js +24 -3
  1166. package/lib/work/Timeline/Timeline.stories.js.map +1 -1
  1167. package/lib/wss/AppShell/AppShell.mocks.d.ts +24 -0
  1168. package/lib/wss/AppShell/AppShell.mocks.d.ts.map +1 -0
  1169. package/lib/wss/AppShell/AppShell.mocks.js +59 -0
  1170. package/lib/wss/AppShell/AppShell.mocks.js.map +1 -0
  1171. package/lib/wss/AppShell/AppShell.stories.d.ts +17 -0
  1172. package/lib/wss/AppShell/AppShell.stories.d.ts.map +1 -0
  1173. package/lib/wss/AppShell/AppShell.stories.js +77 -0
  1174. package/lib/wss/AppShell/AppShell.stories.js.map +1 -0
  1175. package/lib/wss/AppShell/AppShell.styles.d.ts +2 -0
  1176. package/lib/wss/AppShell/AppShell.styles.d.ts.map +1 -0
  1177. package/lib/wss/AppShell/AppShell.styles.js +5 -0
  1178. package/lib/wss/AppShell/AppShell.styles.js.map +1 -0
  1179. package/package.json +22 -18
  1180. package/jsx/build/AppShell/AppShell.mocks.js.map +0 -1
  1181. package/jsx/build/FlowModeller/FlowModeller.mocks.js.map +0 -1
  1182. package/jsx/cs/CSCaseView/CSCaseView.mocks.js.map +0 -1
  1183. package/jsx/social/Email/Email.mocks.js +0 -348
  1184. package/jsx/social/Email/Email.mocks.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"Table.stories.jsx","sourceRoot":"","sources":["../../../src/core/Table/Table.stories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AAO,CACL,CAAC,aAAa,CAAC,eAAe,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAC3D;YAAA,CAAC,IAAI,CAAC,OAAO,CACf;UAAA,EAAE,aAAa,CAAC,CACjB,CAAC;YACJ,CAAC;YACD,KAAK,EAAE,iBAAiB;YACxB,KAAK,EAAE,OAAO;SACf;KACF,CAAC;IAEF,OAAO,CACL,CAAC,KAAK,CACJ,KAAK,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAClB,cAAc,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,CACpC,OAAO,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CACtB,cAAc,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,CACpC,IAAI,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,CACvC,OAAO,CAAC,CAAC,OAAO,CAAC,EACjB,CACH,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\n\nimport { Status, Table, ColumnProps, TableProps } 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"]}
1
+ {"version":3,"file":"Table.stories.jsx","sourceRoot":"","sources":["../../../src/core/Table/Table.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,KAAK,EAA2B,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAEhG,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAE/C,eAAe;IACb,KAAK,EAAE,YAAY;IACnB,SAAS,EAAE,KAAK;IAChB,IAAI,EAAE;QACJ,KAAK,EAAE,UAAU;QACjB,cAAc,EAAE,KAAK;QACrB,OAAO,EAAE,KAAK;QACd,c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sBAAsB,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IACxD,oBAAoB,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IACtD,oBAAoB,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IACtD,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;IACnC,cAAc,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;IAC5C,OAAO,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;IACrC,cAAc,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;IAC5C,UAAU,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;CACzC,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\n\nimport { Status, Table, ColumnProps, TableProps, Configuration } from '@pega/cosmos-react-core';\n\nimport { tableData } from './Table.mocks';\nimport { StyledBalance } from './Table.styles';\n\nexport default {\n title: 'Core/Table',\n component: Table,\n 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,6 +2,14 @@ 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>;
10
+ interface ConfigurableTabsProps {
11
+ foreground?: string;
12
+ type?: TabsProps['type'];
13
+ }
14
+ export declare const ConfigurableTabs: Story<ConfigurableTabsProps>;
7
15
  //# sourceMappingURL=Tabs.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Tabs.stories.d.ts","sourceRoot":"","sources":["../../../src/core/Tabs/Tabs.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAG/C,OAAO,EAAwB,SAAS,EAAE,MAAM,yBAAyB,CAAC;;AAE1E,wBASU;AAEV,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,SAAS,CA6BrC,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,SAAS,CA6B1C,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"}
@@ -1,5 +1,5 @@
1
1
  import { useState } from 'react';
2
- import { Flex, TabPanel, Tabs } from '@pega/cosmos-react-core';
2
+ import { Configuration, Flex, TabPanel, Tabs } from '@pega/cosmos-react-core';
3
3
  export default {
4
4
  title: 'Core/Tabs',
5
5
  component: Tabs,
@@ -56,4 +56,42 @@ export const TabsCountDemo = (args) => {
56
56
  </Flex>
57
57
  </Flex>);
58
58
  };
59
+ export const ConfigurableTabs = (args) => {
60
+ const [panelShown, changePanel] = useState('1');
61
+ const handleTabChange = (id) => {
62
+ changePanel(id);
63
+ };
64
+ const tabs = [
65
+ { name: 'Tab 1', id: '1' },
66
+ { name: 'Tab 2', id: '2' },
67
+ { name: 'Tab 3', id: '3' },
68
+ { name: 'Tab 4', id: '4', disabled: true },
69
+ { name: 'Tab 5', id: '5' }
70
+ ];
71
+ return (<Configuration theme={{
72
+ components: {
73
+ tabs: {
74
+ base: {
75
+ foreground: args.foreground
76
+ }
77
+ }
78
+ }
79
+ }}>
80
+ <Flex item={{ grow: 1 }}>
81
+ <Tabs tabs={tabs} onTabClick={handleTabChange} currentTabId={panelShown}/>
82
+ </Flex>
83
+ <Flex container={{ pad: [1, 2] }} item={{ grow: 1 }}>
84
+ {tabs.map(tab => (<TabPanel tabId={tab.id} currentTabId={panelShown} key={tab.id}>
85
+ <div>{tab.name} content</div>
86
+ </TabPanel>))}
87
+ </Flex>
88
+ </Configuration>);
89
+ };
90
+ ConfigurableTabs.args = {
91
+ foreground: '#076bc9'
92
+ };
93
+ ConfigurableTabs.argTypes = {
94
+ foreground: { control: { type: 'color' } },
95
+ type: { table: { disable: true } }
96
+ };
59
97
  //# sourceMappingURL=Tabs.stories.jsx.map
@@ -1 +1 @@
1
- {"version":3,"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A,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,IAAI,CAAE,QAAO,EAAE,GAAG,CAC9B;UAAA,EAAE,QAAQ,CAAC,CACZ,CAAC,CACJ;MAAA,EAAE,IAAI,CACR;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\nimport { useState } from 'react';\n\nimport { Flex, TabPanel, Tabs, 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"]}
1
+ {"version":3,"file":"Tabs.stories.jsx","sourceRoot":"","sources":["../../../src/core/Tabs/Tabs.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjC,OAAO,EAAE,aAAa,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAa,MAAM,yBAAyB,CAAC;AAEzF,eAAe;IACb,KAAK,EAAE,WAAW;IAClB,SAAS,EAAE,IAAI;IACf,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;KACnB;IACD,QAAQ,EAAE;QACR,IAAI,EAAE,EAAE,OAAO,EAAE,CAAC,YAAY,EAAE,UAAU,CAAC,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;KAC3E;CACM,CAAC;AAMV,MAAM,CAAC,MAAM,QAAQ,GAAwB,CAAC,IAAkB,EAAE,EAAE;IAClE,MAAM,CAAC,UAAU,EAAE,WAAW,CAAC,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC;IAEhD,MAAM,eAAe,GAAG,CAAC,EAAU,EAAE,EAAE;QACrC,WAAW,CAAC,EAAE,CAAC,CAAC;IAClB,CAAC,CAAC;IAEF,MAAM,IAAI,GAAG;QACX,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,GAAG,EAAE;QAC1B,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,GAAG,EAAE;QAC1B,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,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uration, 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"]}
@@ -3,4 +3,23 @@ import { TextProps } from '@pega/cosmos-react-core';
3
3
  declare const _default: Meta<import("@storybook/react").Args>;
4
4
  export default _default;
5
5
  export declare const TextDemo: Story<TextProps>;
6
+ interface ConfigurableTextProps {
7
+ primaryFontSize?: string;
8
+ primaryFontWeight?: string;
9
+ secondaryFontSize?: string;
10
+ secondaryFontWeight?: string;
11
+ h1FontSize?: string;
12
+ h1FontWeight?: string;
13
+ h2FontSize?: string;
14
+ h2FontWeight?: string;
15
+ h3FontSize?: string;
16
+ h3FontWeight?: string;
17
+ h4FontSize?: string;
18
+ h4FontWeight?: string;
19
+ h5FontSize?: string;
20
+ h5FontWeight?: string;
21
+ h6FontSize?: string;
22
+ h6FontWeight?: string;
23
+ }
24
+ export declare const ConfigurableText: Story<ConfigurableTextProps>;
6
25
  //# sourceMappingURL=Text.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Text.stories.d.ts","sourceRoot":"","sources":["../../../src/core/Text/Text.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAE/C,OAAO,EAAQ,SAAS,EAAE,MAAM,yBAAyB,CAAC;;AAE1D,wBAGU;AAEV,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,SAAS,CAMrC,CAAC"}
1
+ {"version":3,"file":"Text.stories.d.ts","sourceRoot":"","sources":["../../../src/core/Text/Text.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAE/C,OAAO,EAA6B,SAAS,EAAE,MAAM,yBAAyB,CAAC;;AAE/E,wBAGU;AAEV,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,SAAS,CAMrC,CAAC;AAeF,UAAU,qBAAqB;IAC7B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,qBAAqB,CAsDzD,CAAC"}
@@ -1,4 +1,4 @@
1
- import { Text } from '@pega/cosmos-react-core';
1
+ import { Configuration, Flex, Text } from '@pega/cosmos-react-core';
2
2
  export default {
3
3
  title: 'Core/Text',
4
4
  component: Text
@@ -19,4 +19,115 @@ TextDemo.argTypes = {
19
19
  },
20
20
  status: { options: [undefined, 'success', 'warning', 'error'], control: { type: 'select' } }
21
21
  };
22
+ export const ConfigurableText = (args) => {
23
+ return (<Configuration theme={{
24
+ components: {
25
+ text: {
26
+ primary: {
27
+ 'font-size': args.primaryFontSize,
28
+ 'font-weight': args.primaryFontWeight
29
+ },
30
+ secondary: {
31
+ 'font-size': args.secondaryFontSize,
32
+ 'font-weight': args.secondaryFontWeight
33
+ },
34
+ h1: {
35
+ 'font-size': args.h1FontSize,
36
+ 'font-weight': args.h1FontWeight
37
+ },
38
+ h2: {
39
+ 'font-size': args.h2FontSize,
40
+ 'font-weight': args.h2FontWeight
41
+ },
42
+ h3: {
43
+ 'font-size': args.h3FontSize,
44
+ 'font-weight': args.h3FontWeight
45
+ },
46
+ h4: {
47
+ 'font-size': args.h4FontSize,
48
+ 'font-weight': args.h4FontWeight
49
+ },
50
+ h5: {
51
+ 'font-size': args.h5FontSize,
52
+ 'font-weight': args.h5FontWeight
53
+ },
54
+ h6: {
55
+ 'font-size': args.h6FontSize,
56
+ 'font-weight': args.h6FontWeight
57
+ }
58
+ }
59
+ }
60
+ }}>
61
+ <Flex container={{ gap: 2, alignItems: 'end' }}>
62
+ <Text variant='primary'>Primary</Text>
63
+ <Text variant='secondary'>Secondary</Text>
64
+ <Text variant='h1'>h1</Text>
65
+ <Text variant='h2'>h2</Text>
66
+ <Text variant='h3'>h3</Text>
67
+ <Text variant='h4'>h4</Text>
68
+ <Text variant='h5'>h5</Text>
69
+ <Text variant='h6'>h6</Text>
70
+ </Flex>
71
+ </Configuration>);
72
+ };
73
+ ConfigurableText.args = {
74
+ primaryFontSize: 's',
75
+ primaryFontWeight: '400',
76
+ secondaryFontSize: 'xs',
77
+ secondaryFontWeight: '400',
78
+ h1FontSize: 'xl',
79
+ h1FontWeight: '600',
80
+ h2FontSize: 'l',
81
+ h2FontWeight: '600',
82
+ h3FontSize: 'm',
83
+ h3FontWeight: '600',
84
+ h4FontSize: 's',
85
+ h4FontWeight: '600',
86
+ h5FontSize: 'xs',
87
+ h5FontWeight: '600',
88
+ h6FontSize: 'xxs',
89
+ h6FontWeight: '600'
90
+ };
91
+ ConfigurableText.argTypes = {
92
+ primaryFontSize: {
93
+ options: ['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl'],
94
+ control: { type: 'select' }
95
+ },
96
+ primaryFontWeight: { control: { type: 'text' } },
97
+ secondaryFontSize: {
98
+ options: ['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl'],
99
+ control: { type: 'select' }
100
+ },
101
+ secondaryFontWeight: { control: { type: 'text' } },
102
+ h1FontSize: {
103
+ options: ['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl'],
104
+ control: { type: 'select' }
105
+ },
106
+ h1FontWeight: { control: { type: 'text' } },
107
+ h2FontSize: {
108
+ options: ['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl'],
109
+ control: { type: 'select' }
110
+ },
111
+ h2FontWeight: { control: { type: 'text' } },
112
+ h3FontSize: {
113
+ options: ['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl'],
114
+ control: { type: 'select' }
115
+ },
116
+ h3FontWeight: { control: { type: 'text' } },
117
+ h4FontSize: {
118
+ options: ['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl'],
119
+ control: { type: 'select' }
120
+ },
121
+ h4FontWeight: { control: { type: 'text' } },
122
+ h5FontSize: {
123
+ options: ['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl'],
124
+ control: { type: 'select' }
125
+ },
126
+ h5FontWeight: { control: { type: 'text' } },
127
+ h6FontSize: {
128
+ options: ['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl'],
129
+ control: { type: 'select' }
130
+ },
131
+ h6FontWeight: { control: { type: 'text' } }
132
+ };
22
133
  //# sourceMappingURL=Text.stories.jsx.map
@@ -1 +1 @@
1
- {"version":3,"file":"Text.stories.jsx","sourceRoot":"","sources":["../../../src/core/Text/Text.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAa,MAAM,yBAAyB,CAAC;AAE1D,eAAe;IACb,KAAK,EAAE,WAAW;IAClB,SAAS,EAAE,IAAI;CACR,CAAC;AAEV,MAAM,CAAC,MAAM,QAAQ,GAAqB,CAAC,IAAe,EAAE,EAAE;IAC5D,OAAO,CACL,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAC/C;;IACF,EAAE,IAAI,CAAC,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","sourcesContent":["import { Meta, Story } from '@storybook/react';\n\nimport { 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"]}
1
+ {"version":3,"file":"Text.stories.jsx","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,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAC/C;;IACF,EAAE,IAAI,CAAC,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,EA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AAE,IAAI,EAAE,QAAQ,EAAE;KAC5B;IACD,YAAY,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;IAC3C,UAAU,EAAE;QACV,OAAO,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,KAAK,CAAC;QAClD,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;KAC5B;IACD,YAAY,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;IAC3C,UAAU,EAAE;QACV,OAAO,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,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"]}
@@ -3,4 +3,9 @@ import { TextAreaProps } from '@pega/cosmos-react-core';
3
3
  declare const _default: Meta<import("@storybook/react").Args>;
4
4
  export default _default;
5
5
  export declare const TextAreaDemo: Story<TextAreaProps>;
6
+ interface ConfigurableTextAreaProps {
7
+ minHeight?: string;
8
+ padding?: string;
9
+ }
10
+ export declare const ConfigurableTextArea: Story<ConfigurableTextAreaProps>;
6
11
  //# sourceMappingURL=TextArea.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TextArea.stories.d.ts","sourceRoot":"","sources":["../../../src/core/TextArea/TextArea.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAG/C,OAAO,EAAY,aAAa,EAAE,MAAM,yBAAyB,CAAC;;AAElE,wBAGU;AAEV,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,aAAa,CAwB7C,CAAC"}
1
+ {"version":3,"file":"TextArea.stories.d.ts","sourceRoot":"","sources":["../../../src/core/TextArea/TextArea.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAG/C,OAAO,EAA2B,aAAa,EAAE,MAAM,yBAAyB,CAAC;;AAEjF,wBAGU;AAEV,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,aAAa,CAwB7C,CAAC;AAoCF,UAAU,yBAAyB;IACjC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,yBAAyB,CA2BjE,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { useState } from 'react';
2
- import { TextArea } from '@pega/cosmos-react-core';
2
+ import { Configuration, TextArea } from '@pega/cosmos-react-core';
3
3
  export default {
4
4
  title: 'Core/Textarea',
5
5
  component: TextArea
@@ -40,4 +40,25 @@ TextAreaDemo.argTypes = {
40
40
  disabled: { control: { type: 'boolean' } },
41
41
  readOnly: { control: { type: 'boolean' } }
42
42
  };
43
+ export const ConfigurableTextArea = (args) => {
44
+ const [value, setValue] = useState('');
45
+ return (<Configuration theme={{
46
+ components: {
47
+ 'text-area': {
48
+ 'min-height': args.minHeight,
49
+ padding: args.padding
50
+ }
51
+ }
52
+ }}>
53
+ <TextArea value={value} onChange={(e) => setValue(e.target.value)} resizable autoResize label='Configurable Text Area' info='Enter a large amount of text' placeholder='Tell us a story…'/>
54
+ </Configuration>);
55
+ };
56
+ ConfigurableTextArea.args = {
57
+ minHeight: '3.75rem',
58
+ padding: '0.5rem'
59
+ };
60
+ ConfigurableTextArea.argTypes = {
61
+ minHeight: { control: { type: 'text' } },
62
+ padding: { control: { type: 'text' } }
63
+ };
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EAAE;IACnC,WAAW,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;IAC1C,MAAM,EAAE,EAAE,OAAO,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,OAAO,CAAC,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;IAC5F,QAAQ,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IAC1C,QAAQ,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IAC1C,QAAQ,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;CAC3C,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\nimport { useState, ChangeEvent } from 'react';\n\nimport { 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"]}
1
+ {"version":3,"file":"TextArea.stories.jsx","sourceRoot":"","sources":["../../../src/core/TextArea/TextArea.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAe,MAAM,OAAO,CAAC;AAE9C,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAiB,MAAM,yBAAyB,CAAC;AAEjF,eAAe;IACb,KAAK,EAAE,eAAe;IACtB,SAAS,EAAE,QAAQ;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,CAAC,QAAQ,CACP,EAAE,CAAC,WAAW,CACd,KAAK,CAAC,CAAC,KAAK,CAAC,CACb,QAAQ,CAAC,CAAC,CAAC,CAAmC,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAC5E,SAAS,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAC1B,SAAS,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAC1B,gBAAgB,CAAC,CAAC,IAAI,CAAC,gBAAgB,CAAC,CACxC,QAAQ,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CACxB,SAAS,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAC1B,UAAU,CAAC,CAAC,IAAI,CAAC,UAAU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K,CAAC,CAAC,CAC5E,SAAS,CACT,UAAU,CACV,KAAK,CAAC,wBAAwB,CAC9B,IAAI,CAAC,8BAA8B,CACnC,WAAW,CAAC,kBAAkB,EAElC;IAAA,EAAE,aAAa,CAAC,CACjB,CAAC;AACJ,CAAC,CAAC;AAEF,oBAAoB,CAAC,IAAI,GAAG;IAC1B,SAAS,EAAE,SAAS;IACpB,OAAO,EAAE,QAAQ;CAClB,CAAC;AAEF,oBAAoB,CAAC,QAAQ,GAAG;IAC9B,SAAS,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;IACxC,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;CACvC,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\nimport { useState, ChangeEvent } from 'react';\n\nimport { Configuration, TextArea, TextAreaProps } from '@pega/cosmos-react-core';\n\nexport default {\n title: 'Core/Textarea',\n component: TextArea\n} 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"}
@@ -5,18 +5,23 @@ export default {
5
5
  component: Toaster
6
6
  };
7
7
  export const ToasterDemo = () => {
8
- const { push } = useContext(ToasterContext);
9
- const [count, setCount] = useState(0);
10
- const messages = [
11
- 'This is a short toast message!',
12
- '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.'
13
- ];
14
- const pushToaster = () => {
15
- setCount(curr => curr + 1);
16
- push({
17
- content: messages[count % 2]
18
- });
8
+ const MakeToastButton = () => {
9
+ const { push } = useContext(ToasterContext);
10
+ const [count, setCount] = useState(0);
11
+ const messages = [
12
+ 'This is a short toast message!',
13
+ '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.'
14
+ ];
15
+ const pushToaster = () => {
16
+ setCount(curr => curr + 1);
17
+ push({
18
+ content: messages[count % 2]
19
+ });
20
+ };
21
+ return <Button onClick={pushToaster}>Make some Toast</Button>;
19
22
  };
20
- return <Button onClick={pushToaster}>Make some Toast</Button>;
23
+ return (<Toaster dismissAfter={5000}>
24
+ <MakeToastButton />
25
+ </Toaster>);
21
26
  };
22
27
  //# sourceMappingURL=Toaster.stories.jsx.map
@@ -1 +1 @@
1
- {"version":3,"file":"Toaster.stories.jsx","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;IAS9B,MAAM,EAAE,IAAI,EAAE,GAAG,UAAU,CAAC,cAAc,CAAC,CAAC;IAC5C,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;IAEtC,MAAM,QAAQ,GAAG;QACf,gCAAgC;QAChC,sIAAsI;KACvI,CAAC;IAEF,MAAM,WAAW,GAAG,GAAG,EAAE;QACvB,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC;QAC3B,IAAI,CAAC;YACH,OAAO,EAAE,QAAQ,CAAC,KAAK,GAAG,CAAC,CAAC;SAC7B,CAAC,CAAC;IACL,CAAC,CAAC;IAEF,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,WAAW,CAAC,CAAC,eAAe,EAAE,MAAM,CAAC,CAAC;AAChE,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 /*\n * The <Toaster> component should be wrapped around the entire portion of an application that utilizes it.\n * For most apps that is once near the root of the app's React tree.\n * Descendant components can utilize the Toaster's push context method via a useContext hook, as demonstrated here.\n * This story component represents an component rendered somewhere in an app's tree.\n * Note, a Toaster provider is already rendered at the root of the Cosmos Storybook, allowing for the use of context here.\n */\n\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"]}
1
+ {"version":3,"file":"Toaster.stories.jsx","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,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,WAAW,CAAC,CAAC,eAAe,EAAE,MAAM,CAAC,CAAC;IAChE,CAAC,CAAC;IAEF,OAAO,CACL,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC,CAC1B;MAAA,CAAC,eAAe,CAAC,AAAD,EAClB;IAAA,EAAE,OAAO,CAAC,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,8 +1,10 @@
1
- /// <reference types="react" />
2
- declare const _default: {
3
- title: string;
4
- component: import("react").FunctionComponent<import("@pega/cosmos-react-core").TooltipProps & import("@pega/cosmos-react-core").ForwardProps>;
5
- };
1
+ import { Meta, Story } from '@storybook/react';
2
+ declare const _default: Meta<import("@storybook/react").Args>;
6
3
  export default _default;
7
- export declare const TooltipDemo: () => JSX.Element;
4
+ export declare const TooltipDemo: Story;
5
+ interface ConfigurableTooltipProps {
6
+ foregroundColor?: string;
7
+ backgroundColor?: string;
8
+ }
9
+ export declare const ConfigurableTooltip: Story<ConfigurableTooltipProps>;
8
10
  //# sourceMappingURL=Tooltip.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Tooltip.stories.d.ts","sourceRoot":"","sources":["../../../src/core/Tooltip/Tooltip.stories.tsx"],"names":[],"mappings":";;;;;AAEA,wBAGE;AAEF,eAAO,MAAM,WAAW,mBAgBvB,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"}
@@ -1,4 +1,4 @@
1
- import { Button, Tooltip, useElement } from '@pega/cosmos-react-core';
1
+ import { Button, Configuration, Tooltip, useElement } from '@pega/cosmos-react-core';
2
2
  export default {
3
3
  title: 'Core/Tooltip',
4
4
  component: Tooltip
@@ -15,4 +15,31 @@ export const TooltipDemo = () => {
15
15
  </Tooltip>)}
16
16
  </>);
17
17
  };
18
+ export const ConfigurableTooltip = (args) => {
19
+ const [el, setEl] = useElement();
20
+ return (<Configuration theme={{
21
+ components: {
22
+ tooltip: {
23
+ 'foreground-color': args.foregroundColor,
24
+ 'background-color': args.backgroundColor
25
+ }
26
+ }
27
+ }}>
28
+ <Button ref={setEl}>Hover me</Button>
29
+
30
+ {el && (<Tooltip target={el}>
31
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur finibus scelerisque
32
+ viverra. Fusce consequat, justo at laoreet lobortis, mauris ipsum aliquet arcu, non
33
+ convallis nisl elit id erat. Pellentesque posuere sagittis velit a molestie.
34
+ </Tooltip>)}
35
+ </Configuration>);
36
+ };
37
+ ConfigurableTooltip.args = {
38
+ foregroundColor: '#f5f5f5',
39
+ backgroundColor: '#3f3f3f'
40
+ };
41
+ ConfigurableTooltip.argTypes = {
42
+ foregroundColor: { control: { type: 'color' } },
43
+ backgroundColor: { control: { type: 'color' } }
44
+ };
18
45
  //# sourceMappingURL=Tooltip.stories.jsx.map
@@ -1 +1 @@
1
- {"version":3,"file":"Tooltip.stories.jsx","sourceRoot":"","sources":["../../../src/core/Tooltip/Tooltip.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAEtE,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,EACE;MAAA,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE,MAAM,CAEpC;;MAAA,CAAC,EAAE,IAAI,CACL,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAClB;;;;QAGF,EAAE,OAAO,CAAC,CACX,CACH;IAAA,GAAG,CACJ,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { Button, 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"]}
1
+ {"version":3,"file":"Tooltip.stories.jsx","sourceRoot":"","sources":["../../../src/core/Tooltip/Tooltip.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAErF,eAAe;IACb,KAAK,EAAE,cAAc;IACrB,SAAS,EAAE,OAAO;CACX,CAAC;AAEV,MAAM,CAAC,MAAM,WAAW,GAAU,GAAG,EAAE;IACrC,MAAM,CAAC,EAAE,EAAE,KAAK,CAAC,GAAG,UAAU,EAAE,CAAC;IAEjC,OAAO,CACL,EACE;MAAA,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE,MAAM,CAEpC;;MAAA,CAAC,EAAE,IAAI,CACL,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAClB;;;;QAGF,EAAE,OAAO,CAAC,CACX,CACH;IAAA,GAAG,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,CAAC,aAAa,CACZ,KAAK,CAAC,CAAC;YACL,UAAU,EAAE;gBACV,OAAO,EAAE;oBACP,kBAAkB,EAAE,IAAI,CAAC,eAAe;oBACxC,kBAAkB,EAAE,IAAI,CAAC,eAAe;iBACzC;aACF;SACF,CAAC,CAEF;MAAA,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE,MAAM,CAEpC;;MAAA,CAAC,EAAE,IAAI,CACL,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAClB;;;;QAGF,EAAE,OAAO,CAAC,CACX,CACH;IAAA,EAAE,aAAa,CAAC,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,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"}
@@ -15,7 +15,7 @@ export const BaseTree = () => {
15
15
  </>);
16
16
  }}/>);
17
17
  };
18
- export const StandardTreeDemo = ({ lined }) => {
18
+ export const StandardTreeDemo = (args) => {
19
19
  const getMockNodes = ({ length = 5, parent = true } = {}) => {
20
20
  return Array.from({ length }, (_, i) => {
21
21
  const isParent = parent && i !== 2;
@@ -60,7 +60,7 @@ export const StandardTreeDemo = ({ lined }) => {
60
60
  });
61
61
  };
62
62
  return (<>
63
- <StandardTree lined={lined} currentNodeId={currentNodeId} nodes={allNodes} onNodeClick={id => {
63
+ <StandardTree lined={args.lined} currentNodeId={currentNodeId} nodes={allNodes} onNodeClick={id => {
64
64
  const clickedNode = treeHelpers.getNode(allNodes, id);
65
65
  setCurrentNodeId(id);
66
66
  if (!clickedNode?.nodes)