@pega/cosmos-react-demos 2.0.0 → 2.1.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 (965) hide show
  1. package/jsx/build/AppHeader/AppHeader.stories.d.ts +8 -0
  2. package/jsx/build/AppHeader/AppHeader.stories.d.ts.map +1 -0
  3. package/{lib → jsx}/build/AppHeader/AppHeader.stories.jsx +0 -0
  4. package/{lib → jsx}/build/AppHeader/AppHeader.stories.jsx.map +0 -0
  5. package/jsx/build/AppShell/AppShell.mocks.d.ts +50 -0
  6. package/jsx/build/AppShell/AppShell.mocks.d.ts.map +1 -0
  7. package/jsx/build/AppShell/AppShell.mocks.js +503 -0
  8. package/jsx/build/AppShell/AppShell.mocks.js.map +1 -0
  9. package/jsx/build/AppShell/AppShell.stories.d.ts +12 -0
  10. package/jsx/build/AppShell/AppShell.stories.d.ts.map +1 -0
  11. package/{lib → jsx}/build/AppShell/AppShell.stories.jsx +0 -0
  12. package/{lib → jsx}/build/AppShell/AppShell.stories.jsx.map +0 -0
  13. package/jsx/build/FlowModeller/AddNodeUtils.mocks.d.ts +45 -0
  14. package/jsx/build/FlowModeller/AddNodeUtils.mocks.d.ts.map +1 -0
  15. package/jsx/build/FlowModeller/AddNodeUtils.mocks.js +291 -0
  16. package/jsx/build/FlowModeller/AddNodeUtils.mocks.js.map +1 -0
  17. package/jsx/build/FlowModeller/FlowModeller.mocks.d.ts +9 -0
  18. package/jsx/build/FlowModeller/FlowModeller.mocks.d.ts.map +1 -0
  19. package/jsx/build/FlowModeller/FlowModeller.mocks.js +411 -0
  20. package/jsx/build/FlowModeller/FlowModeller.mocks.js.map +1 -0
  21. package/jsx/build/FlowModeller/FlowModeller.stories.d.ts +12 -0
  22. package/jsx/build/FlowModeller/FlowModeller.stories.d.ts.map +1 -0
  23. package/{lib → jsx}/build/FlowModeller/FlowModeller.stories.jsx +0 -0
  24. package/{lib → jsx}/build/FlowModeller/FlowModeller.stories.jsx.map +0 -0
  25. package/jsx/build/LifeCycle/LifeCycle.mocks.d.ts +201 -0
  26. package/jsx/build/LifeCycle/LifeCycle.mocks.d.ts.map +1 -0
  27. package/jsx/build/LifeCycle/LifeCycle.mocks.js +1128 -0
  28. package/jsx/build/LifeCycle/LifeCycle.mocks.js.map +1 -0
  29. package/jsx/build/LifeCycle/LifeCycle.stories.d.ts +11 -0
  30. package/jsx/build/LifeCycle/LifeCycle.stories.d.ts.map +1 -0
  31. package/{lib → jsx}/build/LifeCycle/LifeCycle.stories.jsx +0 -0
  32. package/{lib → jsx}/build/LifeCycle/LifeCycle.stories.jsx.map +0 -0
  33. package/jsx/build/LifeCycle/utils.d.ts +65 -0
  34. package/jsx/build/LifeCycle/utils.d.ts.map +1 -0
  35. package/jsx/build/LifeCycle/utils.js +218 -0
  36. package/jsx/build/LifeCycle/utils.js.map +1 -0
  37. package/jsx/build/PageTemplates/GalleryPage.stories.d.ts +12 -0
  38. package/jsx/build/PageTemplates/GalleryPage.stories.d.ts.map +1 -0
  39. package/{lib → jsx}/build/PageTemplates/GalleryPage.stories.jsx +0 -0
  40. package/{lib → jsx}/build/PageTemplates/GalleryPage.stories.jsx.map +0 -0
  41. package/jsx/build/PageTemplates/PageTemplates.stories.d.ts +26 -0
  42. package/jsx/build/PageTemplates/PageTemplates.stories.d.ts.map +1 -0
  43. package/{lib → jsx}/build/PageTemplates/PageTemplates.stories.jsx +0 -0
  44. package/{lib → jsx}/build/PageTemplates/PageTemplates.stories.jsx.map +0 -0
  45. package/jsx/build/Workbench/Workbench.mocks.d.ts +9 -0
  46. package/jsx/build/Workbench/Workbench.mocks.d.ts.map +1 -0
  47. package/jsx/build/Workbench/Workbench.mocks.js +67 -0
  48. package/jsx/build/Workbench/Workbench.mocks.js.map +1 -0
  49. package/jsx/build/Workbench/Workbench.stories.d.ts +10 -0
  50. package/jsx/build/Workbench/Workbench.stories.d.ts.map +1 -0
  51. package/{lib → jsx}/build/Workbench/Workbench.stories.jsx +0 -0
  52. package/{lib → jsx}/build/Workbench/Workbench.stories.jsx.map +0 -0
  53. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts +10 -0
  54. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts.map +1 -0
  55. package/{lib → jsx}/condition-builder/ConditionBuilder/ConditionBuilder.stories.jsx +0 -0
  56. package/{lib → jsx}/condition-builder/ConditionBuilder/ConditionBuilder.stories.jsx.map +0 -0
  57. package/jsx/condition-builder/ConditionBuilder/props.mock.d.ts +6 -0
  58. package/jsx/condition-builder/ConditionBuilder/props.mock.d.ts.map +1 -0
  59. package/jsx/condition-builder/ConditionBuilder/props.mock.js +113 -0
  60. package/jsx/condition-builder/ConditionBuilder/props.mock.js.map +1 -0
  61. package/jsx/core/AppShell/AppShell.mocks.d.ts +15 -0
  62. package/jsx/core/AppShell/AppShell.mocks.d.ts.map +1 -0
  63. package/{lib → jsx}/core/AppShell/AppShell.mocks.jsx +0 -0
  64. package/{lib → jsx}/core/AppShell/AppShell.mocks.jsx.map +0 -0
  65. package/jsx/core/AppShell/AppShell.stories.d.ts +31 -0
  66. package/jsx/core/AppShell/AppShell.stories.d.ts.map +1 -0
  67. package/{lib → jsx}/core/AppShell/AppShell.stories.jsx +0 -0
  68. package/{lib → jsx}/core/AppShell/AppShell.stories.jsx.map +0 -0
  69. package/jsx/core/AppShell/AppShell.styles.d.ts +2 -0
  70. package/jsx/core/AppShell/AppShell.styles.d.ts.map +1 -0
  71. package/jsx/core/AppShell/AppShell.styles.js +5 -0
  72. package/jsx/core/AppShell/AppShell.styles.js.map +1 -0
  73. package/jsx/core/Avatar/Avatar.stories.d.ts +10 -0
  74. package/jsx/core/Avatar/Avatar.stories.d.ts.map +1 -0
  75. package/{lib → jsx}/core/Avatar/Avatar.stories.jsx +0 -0
  76. package/{lib → jsx}/core/Avatar/Avatar.stories.jsx.map +0 -0
  77. package/jsx/core/Backdrop/Backdrop.stories.d.ts +7 -0
  78. package/jsx/core/Backdrop/Backdrop.stories.d.ts.map +1 -0
  79. package/{lib → jsx}/core/Backdrop/Backdrop.stories.jsx +0 -0
  80. package/{lib → jsx}/core/Backdrop/Backdrop.stories.jsx.map +0 -0
  81. package/jsx/core/Badges/Alert.stories.d.ts +6 -0
  82. package/jsx/core/Badges/Alert.stories.d.ts.map +1 -0
  83. package/{lib → jsx}/core/Badges/Alert.stories.jsx +0 -0
  84. package/{lib → jsx}/core/Badges/Alert.stories.jsx.map +0 -0
  85. package/jsx/core/Badges/Count.stories.d.ts +6 -0
  86. package/jsx/core/Badges/Count.stories.d.ts.map +1 -0
  87. package/{lib → jsx}/core/Badges/Count.stories.jsx +0 -0
  88. package/{lib → jsx}/core/Badges/Count.stories.jsx.map +0 -0
  89. package/jsx/core/Badges/Selection.stories.d.ts +6 -0
  90. package/jsx/core/Badges/Selection.stories.d.ts.map +1 -0
  91. package/{lib → jsx}/core/Badges/Selection.stories.jsx +0 -0
  92. package/{lib → jsx}/core/Badges/Selection.stories.jsx.map +0 -0
  93. package/jsx/core/Badges/Status.stories.d.ts +6 -0
  94. package/jsx/core/Badges/Status.stories.d.ts.map +1 -0
  95. package/{lib → jsx}/core/Badges/Status.stories.jsx +0 -0
  96. package/{lib → jsx}/core/Badges/Status.stories.jsx.map +0 -0
  97. package/jsx/core/Badges/Tag.stories.d.ts +6 -0
  98. package/jsx/core/Badges/Tag.stories.d.ts.map +1 -0
  99. package/{lib → jsx}/core/Badges/Tag.stories.jsx +0 -0
  100. package/{lib → jsx}/core/Badges/Tag.stories.jsx.map +0 -0
  101. package/jsx/core/Banner/Banner.stories.d.ts +22 -0
  102. package/jsx/core/Banner/Banner.stories.d.ts.map +1 -0
  103. package/{lib → jsx}/core/Banner/Banner.stories.jsx +0 -0
  104. package/{lib → jsx}/core/Banner/Banner.stories.jsx.map +0 -0
  105. package/jsx/core/Boolean/BooleanDisplay.stories.d.ts +6 -0
  106. package/jsx/core/Boolean/BooleanDisplay.stories.d.ts.map +1 -0
  107. package/{lib → jsx}/core/Boolean/BooleanDisplay.stories.jsx +0 -0
  108. package/{lib → jsx}/core/Boolean/BooleanDisplay.stories.jsx.map +0 -0
  109. package/jsx/core/Breadcrumbs/Breadcrumbs.stories.d.ts +7 -0
  110. package/jsx/core/Breadcrumbs/Breadcrumbs.stories.d.ts.map +1 -0
  111. package/{lib → jsx}/core/Breadcrumbs/Breadcrumbs.stories.jsx +0 -0
  112. package/{lib → jsx}/core/Breadcrumbs/Breadcrumbs.stories.jsx.map +0 -0
  113. package/jsx/core/Breadcrumbs/Breadcrumbs.styles.d.ts +2 -0
  114. package/jsx/core/Breadcrumbs/Breadcrumbs.styles.d.ts.map +1 -0
  115. package/jsx/core/Breadcrumbs/Breadcrumbs.styles.js +12 -0
  116. package/jsx/core/Breadcrumbs/Breadcrumbs.styles.js.map +1 -0
  117. package/jsx/core/Button/Button.stories.d.ts +12 -0
  118. package/jsx/core/Button/Button.stories.d.ts.map +1 -0
  119. package/{lib → jsx}/core/Button/Button.stories.jsx +0 -0
  120. package/{lib → jsx}/core/Button/Button.stories.jsx.map +0 -0
  121. package/jsx/core/Card/Card.stories.d.ts +8 -0
  122. package/jsx/core/Card/Card.stories.d.ts.map +1 -0
  123. package/{lib → jsx}/core/Card/Card.stories.jsx +0 -0
  124. package/{lib → jsx}/core/Card/Card.stories.jsx.map +0 -0
  125. package/jsx/core/Card/Card.styles.d.ts +2 -0
  126. package/jsx/core/Card/Card.styles.d.ts.map +1 -0
  127. package/jsx/core/Card/Card.styles.js +5 -0
  128. package/jsx/core/Card/Card.styles.js.map +1 -0
  129. package/jsx/core/Checkbox/Checkbox.stories.d.ts +7 -0
  130. package/jsx/core/Checkbox/Checkbox.stories.d.ts.map +1 -0
  131. package/{lib → jsx}/core/Checkbox/Checkbox.stories.jsx +0 -0
  132. package/{lib → jsx}/core/Checkbox/Checkbox.stories.jsx.map +0 -0
  133. package/jsx/core/CheckboxGroup/CheckboxGroup.stories.d.ts +7 -0
  134. package/jsx/core/CheckboxGroup/CheckboxGroup.stories.d.ts.map +1 -0
  135. package/{lib → jsx}/core/CheckboxGroup/CheckboxGroup.stories.jsx +0 -0
  136. package/{lib → jsx}/core/CheckboxGroup/CheckboxGroup.stories.jsx.map +0 -0
  137. package/jsx/core/CheckboxGroup/CheckboxGroup.styles.d.ts +4 -0
  138. package/jsx/core/CheckboxGroup/CheckboxGroup.styles.d.ts.map +1 -0
  139. package/jsx/core/CheckboxGroup/CheckboxGroup.styles.js +9 -0
  140. package/jsx/core/CheckboxGroup/CheckboxGroup.styles.js.map +1 -0
  141. package/jsx/core/ColorPicker/ColorPicker.stories.d.ts +8 -0
  142. package/jsx/core/ColorPicker/ColorPicker.stories.d.ts.map +1 -0
  143. package/{lib → jsx}/core/ColorPicker/ColorPicker.stories.jsx +0 -0
  144. package/{lib → jsx}/core/ColorPicker/ColorPicker.stories.jsx.map +0 -0
  145. package/jsx/core/ComboBox/ComboBox.mocks.d.ts +24 -0
  146. package/jsx/core/ComboBox/ComboBox.mocks.d.ts.map +1 -0
  147. package/jsx/core/ComboBox/ComboBox.mocks.js +54 -0
  148. package/jsx/core/ComboBox/ComboBox.mocks.js.map +1 -0
  149. package/jsx/core/ComboBox/ComboBox.stories.d.ts +21 -0
  150. package/jsx/core/ComboBox/ComboBox.stories.d.ts.map +1 -0
  151. package/{lib → jsx}/core/ComboBox/ComboBox.stories.jsx +0 -0
  152. package/{lib → jsx}/core/ComboBox/ComboBox.stories.jsx.map +0 -0
  153. package/jsx/core/Configuration/Configuration.stories.d.ts +10 -0
  154. package/jsx/core/Configuration/Configuration.stories.d.ts.map +1 -0
  155. package/{lib → jsx}/core/Configuration/Configuration.stories.jsx +0 -0
  156. package/{lib → jsx}/core/Configuration/Configuration.stories.jsx.map +0 -0
  157. package/jsx/core/Currency/Currency.stories.d.ts +11 -0
  158. package/jsx/core/Currency/Currency.stories.d.ts.map +1 -0
  159. package/{lib → jsx}/core/Currency/Currency.stories.jsx +0 -0
  160. package/{lib → jsx}/core/Currency/Currency.stories.jsx.map +0 -0
  161. package/jsx/core/DateTime/DateTime.stories.d.ts +20 -0
  162. package/jsx/core/DateTime/DateTime.stories.d.ts.map +1 -0
  163. package/{lib → jsx}/core/DateTime/DateTime.stories.jsx +0 -0
  164. package/{lib → jsx}/core/DateTime/DateTime.stories.jsx.map +0 -0
  165. package/jsx/core/DateTime/DateTimeDisplay.stories.d.ts +7 -0
  166. package/jsx/core/DateTime/DateTimeDisplay.stories.d.ts.map +1 -0
  167. package/{lib → jsx}/core/DateTime/DateTimeDisplay.stories.jsx +0 -0
  168. package/{lib → jsx}/core/DateTime/DateTimeDisplay.stories.jsx.map +0 -0
  169. package/jsx/core/DateTime/DateTimePicker.stories.d.ts +7 -0
  170. package/jsx/core/DateTime/DateTimePicker.stories.d.ts.map +1 -0
  171. package/{lib → jsx}/core/DateTime/DateTimePicker.stories.jsx +0 -0
  172. package/{lib → jsx}/core/DateTime/DateTimePicker.stories.jsx.map +0 -0
  173. package/jsx/core/Drawer/Drawer.stories.d.ts +7 -0
  174. package/jsx/core/Drawer/Drawer.stories.d.ts.map +1 -0
  175. package/{lib → jsx}/core/Drawer/Drawer.stories.jsx +0 -0
  176. package/{lib → jsx}/core/Drawer/Drawer.stories.jsx.map +0 -0
  177. package/jsx/core/Drawer/Drawer.styles.d.ts +2 -0
  178. package/jsx/core/Drawer/Drawer.styles.d.ts.map +1 -0
  179. package/jsx/core/Drawer/Drawer.styles.js +11 -0
  180. package/jsx/core/Drawer/Drawer.styles.js.map +1 -0
  181. package/jsx/core/Email/EmailDisplay.stories.d.ts +6 -0
  182. package/jsx/core/Email/EmailDisplay.stories.d.ts.map +1 -0
  183. package/{lib → jsx}/core/Email/EmailDisplay.stories.jsx +0 -0
  184. package/{lib → jsx}/core/Email/EmailDisplay.stories.jsx.map +0 -0
  185. package/jsx/core/EmojiPicker/EmojiPicker.stories.d.ts +8 -0
  186. package/jsx/core/EmojiPicker/EmojiPicker.stories.d.ts.map +1 -0
  187. package/{lib → jsx}/core/EmojiPicker/EmojiPicker.stories.jsx +0 -0
  188. package/{lib → jsx}/core/EmojiPicker/EmojiPicker.stories.jsx.map +0 -0
  189. package/jsx/core/EmptyState/EmptyState.stories.d.ts +6 -0
  190. package/jsx/core/EmptyState/EmptyState.stories.d.ts.map +1 -0
  191. package/{lib → jsx}/core/EmptyState/EmptyState.stories.jsx +0 -0
  192. package/{lib → jsx}/core/EmptyState/EmptyState.stories.jsx.map +0 -0
  193. package/jsx/core/ErrorState/ErrorState.stories.d.ts +9 -0
  194. package/jsx/core/ErrorState/ErrorState.stories.d.ts.map +1 -0
  195. package/{lib → jsx}/core/ErrorState/ErrorState.stories.jsx +0 -0
  196. package/{lib → jsx}/core/ErrorState/ErrorState.stories.jsx.map +0 -0
  197. package/jsx/core/ExpandCollapse/ExpandCollapse.stories.d.ts +7 -0
  198. package/jsx/core/ExpandCollapse/ExpandCollapse.stories.d.ts.map +1 -0
  199. package/{lib → jsx}/core/ExpandCollapse/ExpandCollapse.stories.jsx +0 -0
  200. package/{lib → jsx}/core/ExpandCollapse/ExpandCollapse.stories.jsx.map +0 -0
  201. package/jsx/core/ExpandCollapse/ExpandCollapse.styles.d.ts +4 -0
  202. package/jsx/core/ExpandCollapse/ExpandCollapse.styles.d.ts.map +1 -0
  203. package/jsx/core/ExpandCollapse/ExpandCollapse.styles.js +12 -0
  204. package/jsx/core/ExpandCollapse/ExpandCollapse.styles.js.map +1 -0
  205. package/jsx/core/FieldGroup/FieldGroup.stories.d.ts +11 -0
  206. package/jsx/core/FieldGroup/FieldGroup.stories.d.ts.map +1 -0
  207. package/{lib → jsx}/core/FieldGroup/FieldGroup.stories.jsx +0 -0
  208. package/{lib → jsx}/core/FieldGroup/FieldGroup.stories.jsx.map +0 -0
  209. package/jsx/core/FieldGroup/FieldGroupList.stories.d.ts +10 -0
  210. package/jsx/core/FieldGroup/FieldGroupList.stories.d.ts.map +1 -0
  211. package/{lib → jsx}/core/FieldGroup/FieldGroupList.stories.jsx +0 -0
  212. package/{lib → jsx}/core/FieldGroup/FieldGroupList.stories.jsx.map +0 -0
  213. package/jsx/core/FieldValueList/FieldValueList.stories.d.ts +10 -0
  214. package/jsx/core/FieldValueList/FieldValueList.stories.d.ts.map +1 -0
  215. package/{lib → jsx}/core/FieldValueList/FieldValueList.stories.jsx +0 -0
  216. package/{lib → jsx}/core/FieldValueList/FieldValueList.stories.jsx.map +0 -0
  217. package/jsx/core/File/FileDisplay.stories.d.ts +13 -0
  218. package/jsx/core/File/FileDisplay.stories.d.ts.map +1 -0
  219. package/{lib → jsx}/core/File/FileDisplay.stories.jsx +0 -0
  220. package/{lib → jsx}/core/File/FileDisplay.stories.jsx.map +0 -0
  221. package/jsx/core/File/FileInput.stories.d.ts +9 -0
  222. package/jsx/core/File/FileInput.stories.d.ts.map +1 -0
  223. package/{lib → jsx}/core/File/FileInput.stories.jsx +0 -0
  224. package/{lib → jsx}/core/File/FileInput.stories.jsx.map +0 -0
  225. package/jsx/core/Flex/Flex.styles.d.ts +10 -0
  226. package/jsx/core/Flex/Flex.styles.d.ts.map +1 -0
  227. package/jsx/core/Flex/Flex.styles.js +41 -0
  228. package/jsx/core/Flex/Flex.styles.js.map +1 -0
  229. package/jsx/core/Flex/FlexContainer.stories.d.ts +20 -0
  230. package/jsx/core/Flex/FlexContainer.stories.d.ts.map +1 -0
  231. package/{lib → jsx}/core/Flex/FlexContainer.stories.jsx +0 -0
  232. package/{lib → jsx}/core/Flex/FlexContainer.stories.jsx.map +0 -0
  233. package/jsx/core/Flex/FlexItem.stories.d.ts +13 -0
  234. package/jsx/core/Flex/FlexItem.stories.d.ts.map +1 -0
  235. package/{lib → jsx}/core/Flex/FlexItem.stories.jsx +0 -0
  236. package/{lib → jsx}/core/Flex/FlexItem.stories.jsx.map +0 -0
  237. package/jsx/core/Form/Form.stories.d.ts +21 -0
  238. package/jsx/core/Form/Form.stories.d.ts.map +1 -0
  239. package/{lib → jsx}/core/Form/Form.stories.jsx +0 -0
  240. package/{lib → jsx}/core/Form/Form.stories.jsx.map +0 -0
  241. package/jsx/core/Grid/Grid.styles.d.ts +6 -0
  242. package/jsx/core/Grid/Grid.styles.d.ts.map +1 -0
  243. package/jsx/core/Grid/Grid.styles.js +36 -0
  244. package/jsx/core/Grid/Grid.styles.js.map +1 -0
  245. package/jsx/core/Grid/GridContainer.stories.d.ts +23 -0
  246. package/jsx/core/Grid/GridContainer.stories.d.ts.map +1 -0
  247. package/{lib → jsx}/core/Grid/GridContainer.stories.jsx +0 -0
  248. package/{lib → jsx}/core/Grid/GridContainer.stories.jsx.map +0 -0
  249. package/jsx/core/Grid/GridItem.stories.d.ts +13 -0
  250. package/jsx/core/Grid/GridItem.stories.d.ts.map +1 -0
  251. package/{lib → jsx}/core/Grid/GridItem.stories.jsx +0 -0
  252. package/{lib → jsx}/core/Grid/GridItem.stories.jsx.map +0 -0
  253. package/jsx/core/Icon/Icon.stories.d.ts +8 -0
  254. package/jsx/core/Icon/Icon.stories.d.ts.map +1 -0
  255. package/{lib → jsx}/core/Icon/Icon.stories.jsx +0 -0
  256. package/{lib → jsx}/core/Icon/Icon.stories.jsx.map +0 -0
  257. package/jsx/core/IconPicker/IconPicker.stories.d.ts +6 -0
  258. package/jsx/core/IconPicker/IconPicker.stories.d.ts.map +1 -0
  259. package/{lib → jsx}/core/IconPicker/IconPicker.stories.jsx +0 -0
  260. package/{lib → jsx}/core/IconPicker/IconPicker.stories.jsx.map +0 -0
  261. package/jsx/core/Image/Image.stories.d.ts +6 -0
  262. package/jsx/core/Image/Image.stories.d.ts.map +1 -0
  263. package/{lib → jsx}/core/Image/Image.stories.jsx +0 -0
  264. package/{lib → jsx}/core/Image/Image.stories.jsx.map +0 -0
  265. package/jsx/core/Input/Input.stories.d.ts +9 -0
  266. package/jsx/core/Input/Input.stories.d.ts.map +1 -0
  267. package/{lib → jsx}/core/Input/Input.stories.jsx +0 -0
  268. package/{lib → jsx}/core/Input/Input.stories.jsx.map +0 -0
  269. package/jsx/core/Label/Label.stories.d.ts +6 -0
  270. package/jsx/core/Label/Label.stories.d.ts.map +1 -0
  271. package/{lib → jsx}/core/Label/Label.stories.jsx +0 -0
  272. package/{lib → jsx}/core/Label/Label.stories.jsx.map +0 -0
  273. package/jsx/core/Lightbox/Lightbox.stories.d.ts +9 -0
  274. package/jsx/core/Lightbox/Lightbox.stories.d.ts.map +1 -0
  275. package/{lib → jsx}/core/Lightbox/Lightbox.stories.jsx +0 -0
  276. package/{lib → jsx}/core/Lightbox/Lightbox.stories.jsx.map +0 -0
  277. package/jsx/core/Link/Link.stories.d.ts +8 -0
  278. package/jsx/core/Link/Link.stories.d.ts.map +1 -0
  279. package/{lib → jsx}/core/Link/Link.stories.jsx +0 -0
  280. package/{lib → jsx}/core/Link/Link.stories.jsx.map +0 -0
  281. package/jsx/core/List/CommaSeparatedList.stories.d.ts +6 -0
  282. package/jsx/core/List/CommaSeparatedList.stories.d.ts.map +1 -0
  283. package/{lib → jsx}/core/List/CommaSeparatedList.stories.jsx +0 -0
  284. package/{lib → jsx}/core/List/CommaSeparatedList.stories.jsx.map +0 -0
  285. package/jsx/core/List/OrderedList.stories.d.ts +10 -0
  286. package/jsx/core/List/OrderedList.stories.d.ts.map +1 -0
  287. package/{lib → jsx}/core/List/OrderedList.stories.jsx +0 -0
  288. package/{lib → jsx}/core/List/OrderedList.stories.jsx.map +0 -0
  289. package/jsx/core/List/UnorderedList.stories.d.ts +10 -0
  290. package/jsx/core/List/UnorderedList.stories.d.ts.map +1 -0
  291. package/{lib → jsx}/core/List/UnorderedList.stories.jsx +0 -0
  292. package/{lib → jsx}/core/List/UnorderedList.stories.jsx.map +0 -0
  293. package/jsx/core/Location/Location.stories.d.ts +12 -0
  294. package/jsx/core/Location/Location.stories.d.ts.map +1 -0
  295. package/{lib → jsx}/core/Location/Location.stories.jsx +0 -0
  296. package/{lib → jsx}/core/Location/Location.stories.jsx.map +0 -0
  297. package/jsx/core/Menu/Menu.mocks.d.ts +4 -0
  298. package/jsx/core/Menu/Menu.mocks.d.ts.map +1 -0
  299. package/jsx/core/Menu/Menu.mocks.js +179 -0
  300. package/jsx/core/Menu/Menu.mocks.js.map +1 -0
  301. package/jsx/core/Menu/Menu.stories.d.ts +17 -0
  302. package/jsx/core/Menu/Menu.stories.d.ts.map +1 -0
  303. package/{lib → jsx}/core/Menu/Menu.stories.jsx +0 -0
  304. package/{lib → jsx}/core/Menu/Menu.stories.jsx.map +0 -0
  305. package/jsx/core/Menu/Menu.styles.d.ts +2 -0
  306. package/jsx/core/Menu/Menu.styles.d.ts.map +1 -0
  307. package/jsx/core/Menu/Menu.styles.js +6 -0
  308. package/jsx/core/Menu/Menu.styles.js.map +1 -0
  309. package/jsx/core/MenuButton/MenuButton.stories.d.ts +15 -0
  310. package/jsx/core/MenuButton/MenuButton.stories.d.ts.map +1 -0
  311. package/{lib → jsx}/core/MenuButton/MenuButton.stories.jsx +0 -0
  312. package/{lib → jsx}/core/MenuButton/MenuButton.stories.jsx.map +0 -0
  313. package/jsx/core/MetaList/MetaList.stories.d.ts +9 -0
  314. package/jsx/core/MetaList/MetaList.stories.d.ts.map +1 -0
  315. package/{lib → jsx}/core/MetaList/MetaList.stories.jsx +0 -0
  316. package/{lib → jsx}/core/MetaList/MetaList.stories.jsx.map +0 -0
  317. package/jsx/core/Modal/Modal.mocks.d.ts +4 -0
  318. package/jsx/core/Modal/Modal.mocks.d.ts.map +1 -0
  319. package/{lib → jsx}/core/Modal/Modal.mocks.jsx +0 -0
  320. package/{lib → jsx}/core/Modal/Modal.mocks.jsx.map +0 -0
  321. package/jsx/core/Modal/Modal.stories.d.ts +20 -0
  322. package/jsx/core/Modal/Modal.stories.d.ts.map +1 -0
  323. package/{lib → jsx}/core/Modal/Modal.stories.jsx +0 -0
  324. package/{lib → jsx}/core/Modal/Modal.stories.jsx.map +0 -0
  325. package/jsx/core/MultiStep/MultiStep.stories.d.ts +6 -0
  326. package/jsx/core/MultiStep/MultiStep.stories.d.ts.map +1 -0
  327. package/{lib → jsx}/core/MultiStep/MultiStep.stories.jsx +0 -0
  328. package/{lib → jsx}/core/MultiStep/MultiStep.stories.jsx.map +0 -0
  329. package/jsx/core/Number/Number.stories.d.ts +13 -0
  330. package/jsx/core/Number/Number.stories.d.ts.map +1 -0
  331. package/{lib → jsx}/core/Number/Number.stories.jsx +0 -0
  332. package/{lib → jsx}/core/Number/Number.stories.jsx.map +0 -0
  333. package/jsx/core/PageTemplates/PageTemplates.mocks.d.ts +3 -0
  334. package/jsx/core/PageTemplates/PageTemplates.mocks.d.ts.map +1 -0
  335. package/jsx/core/PageTemplates/PageTemplates.mocks.js +10 -0
  336. package/jsx/core/PageTemplates/PageTemplates.mocks.js.map +1 -0
  337. package/jsx/core/PageTemplates/PageTemplates.stories.d.ts +28 -0
  338. package/jsx/core/PageTemplates/PageTemplates.stories.d.ts.map +1 -0
  339. package/{lib → jsx}/core/PageTemplates/PageTemplates.stories.jsx +0 -0
  340. package/{lib → jsx}/core/PageTemplates/PageTemplates.stories.jsx.map +0 -0
  341. package/jsx/core/PageTemplates/PageTemplates.styles.d.ts +4 -0
  342. package/jsx/core/PageTemplates/PageTemplates.styles.d.ts.map +1 -0
  343. package/jsx/core/PageTemplates/PageTemplates.styles.js +31 -0
  344. package/jsx/core/PageTemplates/PageTemplates.styles.js.map +1 -0
  345. package/jsx/core/Pagination/Pagination.stories.d.ts +6 -0
  346. package/jsx/core/Pagination/Pagination.stories.d.ts.map +1 -0
  347. package/{lib → jsx}/core/Pagination/Pagination.stories.jsx +0 -0
  348. package/{lib → jsx}/core/Pagination/Pagination.stories.jsx.map +0 -0
  349. package/jsx/core/Paragraph/ParagraphDisplay.stories.d.ts +6 -0
  350. package/jsx/core/Paragraph/ParagraphDisplay.stories.d.ts.map +1 -0
  351. package/{lib → jsx}/core/Paragraph/ParagraphDisplay.stories.jsx +0 -0
  352. package/{lib → jsx}/core/Paragraph/ParagraphDisplay.stories.jsx.map +0 -0
  353. package/jsx/core/Phone/Phone.stories.d.ts +7 -0
  354. package/jsx/core/Phone/Phone.stories.d.ts.map +1 -0
  355. package/{lib → jsx}/core/Phone/Phone.stories.jsx +0 -0
  356. package/{lib → jsx}/core/Phone/Phone.stories.jsx.map +0 -0
  357. package/jsx/core/Popover/Popover.stories.d.ts +8 -0
  358. package/jsx/core/Popover/Popover.stories.d.ts.map +1 -0
  359. package/{lib → jsx}/core/Popover/Popover.stories.jsx +0 -0
  360. package/{lib → jsx}/core/Popover/Popover.stories.jsx.map +0 -0
  361. package/jsx/core/Progress/Progress.stories.d.ts +7 -0
  362. package/jsx/core/Progress/Progress.stories.d.ts.map +1 -0
  363. package/{lib → jsx}/core/Progress/Progress.stories.jsx +0 -0
  364. package/{lib → jsx}/core/Progress/Progress.stories.jsx.map +0 -0
  365. package/jsx/core/Progress/Progress.styles.d.ts +2 -0
  366. package/jsx/core/Progress/Progress.styles.d.ts.map +1 -0
  367. package/jsx/core/Progress/Progress.styles.js +13 -0
  368. package/jsx/core/Progress/Progress.styles.js.map +1 -0
  369. package/jsx/core/RadioButton/RadioButton.stories.d.ts +7 -0
  370. package/jsx/core/RadioButton/RadioButton.stories.d.ts.map +1 -0
  371. package/{lib → jsx}/core/RadioButton/RadioButton.stories.jsx +0 -0
  372. package/{lib → jsx}/core/RadioButton/RadioButton.stories.jsx.map +0 -0
  373. package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts +7 -0
  374. package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts.map +1 -0
  375. package/{lib → jsx}/core/RadioButtonGroup/RadioButtonGroup.stories.jsx +0 -0
  376. package/{lib → jsx}/core/RadioButtonGroup/RadioButtonGroup.stories.jsx.map +0 -0
  377. package/jsx/core/RadioButtonGroup/RadioButtonGroup.styles.d.ts +4 -0
  378. package/jsx/core/RadioButtonGroup/RadioButtonGroup.styles.d.ts.map +1 -0
  379. package/jsx/core/RadioButtonGroup/RadioButtonGroup.styles.js +9 -0
  380. package/jsx/core/RadioButtonGroup/RadioButtonGroup.styles.js.map +1 -0
  381. package/jsx/core/Rating/Rating.stories.d.ts +6 -0
  382. package/jsx/core/Rating/Rating.stories.d.ts.map +1 -0
  383. package/{lib → jsx}/core/Rating/Rating.stories.jsx +0 -0
  384. package/{lib → jsx}/core/Rating/Rating.stories.jsx.map +0 -0
  385. package/jsx/core/SearchInput/SearchInput.stories.d.ts +6 -0
  386. package/jsx/core/SearchInput/SearchInput.stories.d.ts.map +1 -0
  387. package/{lib → jsx}/core/SearchInput/SearchInput.stories.jsx +0 -0
  388. package/{lib → jsx}/core/SearchInput/SearchInput.stories.jsx.map +0 -0
  389. package/jsx/core/Select/Select.stories.d.ts +9 -0
  390. package/jsx/core/Select/Select.stories.d.ts.map +1 -0
  391. package/{lib → jsx}/core/Select/Select.stories.jsx +0 -0
  392. package/{lib → jsx}/core/Select/Select.stories.jsx.map +0 -0
  393. package/jsx/core/Sentiment/Sentiment.stories.d.ts +14 -0
  394. package/jsx/core/Sentiment/Sentiment.stories.d.ts.map +1 -0
  395. package/{lib → jsx}/core/Sentiment/Sentiment.stories.jsx +0 -0
  396. package/{lib → jsx}/core/Sentiment/Sentiment.stories.jsx.map +0 -0
  397. package/jsx/core/Slider/Slider.stories.d.ts +11 -0
  398. package/jsx/core/Slider/Slider.stories.d.ts.map +1 -0
  399. package/{lib → jsx}/core/Slider/Slider.stories.jsx +0 -0
  400. package/{lib → jsx}/core/Slider/Slider.stories.jsx.map +0 -0
  401. package/jsx/core/SummaryItem/SummaryItem.stories.d.ts +11 -0
  402. package/jsx/core/SummaryItem/SummaryItem.stories.d.ts.map +1 -0
  403. package/{lib → jsx}/core/SummaryItem/SummaryItem.stories.jsx +0 -0
  404. package/{lib → jsx}/core/SummaryItem/SummaryItem.stories.jsx.map +0 -0
  405. package/jsx/core/SummaryList/SummaryList.mocks.d.ts +32 -0
  406. package/jsx/core/SummaryList/SummaryList.mocks.d.ts.map +1 -0
  407. package/{lib → jsx}/core/SummaryList/SummaryList.mocks.jsx +0 -0
  408. package/{lib → jsx}/core/SummaryList/SummaryList.mocks.jsx.map +0 -0
  409. package/jsx/core/SummaryList/SummaryList.stories.d.ts +13 -0
  410. package/jsx/core/SummaryList/SummaryList.stories.d.ts.map +1 -0
  411. package/{lib → jsx}/core/SummaryList/SummaryList.stories.jsx +0 -0
  412. package/{lib → jsx}/core/SummaryList/SummaryList.stories.jsx.map +0 -0
  413. package/jsx/core/Switch/Switch.stories.d.ts +7 -0
  414. package/jsx/core/Switch/Switch.stories.d.ts.map +1 -0
  415. package/{lib → jsx}/core/Switch/Switch.stories.jsx +0 -0
  416. package/{lib → jsx}/core/Switch/Switch.stories.jsx.map +0 -0
  417. package/jsx/core/Switch/Switch.styles.d.ts +2 -0
  418. package/jsx/core/Switch/Switch.styles.d.ts.map +1 -0
  419. package/jsx/core/Switch/Switch.styles.js +13 -0
  420. package/jsx/core/Switch/Switch.styles.js.map +1 -0
  421. package/jsx/core/Table/Table.mocks.d.ts +19 -0
  422. package/jsx/core/Table/Table.mocks.d.ts.map +1 -0
  423. package/{lib → jsx}/core/Table/Table.mocks.jsx +0 -0
  424. package/{lib → jsx}/core/Table/Table.mocks.jsx.map +0 -0
  425. package/jsx/core/Table/Table.stories.d.ts +14 -0
  426. package/jsx/core/Table/Table.stories.d.ts.map +1 -0
  427. package/{lib → jsx}/core/Table/Table.stories.jsx +0 -0
  428. package/{lib → jsx}/core/Table/Table.stories.jsx.map +0 -0
  429. package/jsx/core/Table/Table.styles.d.ts +4 -0
  430. package/jsx/core/Table/Table.styles.d.ts.map +1 -0
  431. package/jsx/core/Table/Table.styles.js +9 -0
  432. package/jsx/core/Table/Table.styles.js.map +1 -0
  433. package/jsx/core/Tabs/Tabs.stories.d.ts +7 -0
  434. package/jsx/core/Tabs/Tabs.stories.d.ts.map +1 -0
  435. package/{lib → jsx}/core/Tabs/Tabs.stories.jsx +0 -0
  436. package/{lib → jsx}/core/Tabs/Tabs.stories.jsx.map +0 -0
  437. package/jsx/core/Text/Text.stories.d.ts +6 -0
  438. package/jsx/core/Text/Text.stories.d.ts.map +1 -0
  439. package/{lib → jsx}/core/Text/Text.stories.jsx +0 -0
  440. package/{lib → jsx}/core/Text/Text.stories.jsx.map +0 -0
  441. package/jsx/core/TextArea/TextArea.stories.d.ts +6 -0
  442. package/jsx/core/TextArea/TextArea.stories.d.ts.map +1 -0
  443. package/{lib → jsx}/core/TextArea/TextArea.stories.jsx +0 -0
  444. package/{lib → jsx}/core/TextArea/TextArea.stories.jsx.map +0 -0
  445. package/jsx/core/Toaster/Toaster.stories.d.ts +6 -0
  446. package/jsx/core/Toaster/Toaster.stories.d.ts.map +1 -0
  447. package/{lib → jsx}/core/Toaster/Toaster.stories.jsx +0 -0
  448. package/{lib → jsx}/core/Toaster/Toaster.stories.jsx.map +0 -0
  449. package/jsx/core/Tooltip/Tooltip.stories.d.ts +8 -0
  450. package/jsx/core/Tooltip/Tooltip.stories.d.ts.map +1 -0
  451. package/{lib → jsx}/core/Tooltip/Tooltip.stories.jsx +0 -0
  452. package/{lib → jsx}/core/Tooltip/Tooltip.stories.jsx.map +0 -0
  453. package/jsx/core/Tree/Tree.mocks.d.ts +2 -0
  454. package/jsx/core/Tree/Tree.mocks.d.ts.map +1 -0
  455. package/jsx/core/Tree/Tree.mocks.js +20 -0
  456. package/jsx/core/Tree/Tree.mocks.js.map +1 -0
  457. package/jsx/core/Tree/Tree.stories.d.ts +8 -0
  458. package/jsx/core/Tree/Tree.stories.d.ts.map +1 -0
  459. package/{lib → jsx}/core/Tree/Tree.stories.jsx +0 -0
  460. package/{lib → jsx}/core/Tree/Tree.stories.jsx.map +0 -0
  461. package/jsx/core/Tree/Tree.styles.d.ts +3 -0
  462. package/jsx/core/Tree/Tree.styles.d.ts.map +1 -0
  463. package/jsx/core/Tree/Tree.styles.js +10 -0
  464. package/jsx/core/Tree/Tree.styles.js.map +1 -0
  465. package/jsx/core/URL/URL.stories.d.ts +6 -0
  466. package/jsx/core/URL/URL.stories.d.ts.map +1 -0
  467. package/{lib → jsx}/core/URL/URL.stories.jsx +0 -0
  468. package/{lib → jsx}/core/URL/URL.stories.jsx.map +0 -0
  469. package/jsx/cs/Article/Article.mocks.d.ts +14 -0
  470. package/jsx/cs/Article/Article.mocks.d.ts.map +1 -0
  471. package/jsx/cs/Article/Article.mocks.js +14 -0
  472. package/jsx/cs/Article/Article.mocks.js.map +1 -0
  473. package/jsx/cs/Article/Article.stories.d.ts +15 -0
  474. package/jsx/cs/Article/Article.stories.d.ts.map +1 -0
  475. package/{lib → jsx}/cs/Article/Article.stories.jsx +0 -0
  476. package/{lib → jsx}/cs/Article/Article.stories.jsx.map +0 -0
  477. package/jsx/cs/ArticleList/ArticleList.mocks.d.ts +21 -0
  478. package/jsx/cs/ArticleList/ArticleList.mocks.d.ts.map +1 -0
  479. package/jsx/cs/ArticleList/ArticleList.mocks.js +102 -0
  480. package/jsx/cs/ArticleList/ArticleList.mocks.js.map +1 -0
  481. package/jsx/cs/ArticleList/ArticleList.stories.d.ts +16 -0
  482. package/jsx/cs/ArticleList/ArticleList.stories.d.ts.map +1 -0
  483. package/{lib → jsx}/cs/ArticleList/ArticleList.stories.jsx +0 -0
  484. package/{lib → jsx}/cs/ArticleList/ArticleList.stories.jsx.map +0 -0
  485. package/jsx/cs/CSCaseView/CSAppShell.stories.d.ts +45 -0
  486. package/jsx/cs/CSCaseView/CSAppShell.stories.d.ts.map +1 -0
  487. package/{lib → jsx}/cs/CSCaseView/CSAppShell.stories.jsx +0 -0
  488. package/{lib → jsx}/cs/CSCaseView/CSAppShell.stories.jsx.map +0 -0
  489. package/jsx/cs/CSCaseView/CSCaseView.mocks.d.ts +57 -0
  490. package/jsx/cs/CSCaseView/CSCaseView.mocks.d.ts.map +1 -0
  491. package/jsx/cs/CSCaseView/CSCaseView.mocks.js +224 -0
  492. package/jsx/cs/CSCaseView/CSCaseView.mocks.js.map +1 -0
  493. package/jsx/cs/CallControlPanel/CallControlPanel.mocks.d.ts +16 -0
  494. package/jsx/cs/CallControlPanel/CallControlPanel.mocks.d.ts.map +1 -0
  495. package/jsx/cs/CallControlPanel/CallControlPanel.mocks.js +110 -0
  496. package/jsx/cs/CallControlPanel/CallControlPanel.mocks.js.map +1 -0
  497. package/jsx/cs/CallControlPanel/CallControlPanel.stories.d.ts +13 -0
  498. package/jsx/cs/CallControlPanel/CallControlPanel.stories.d.ts.map +1 -0
  499. package/{lib → jsx}/cs/CallControlPanel/CallControlPanel.stories.jsx +0 -0
  500. package/{lib → jsx}/cs/CallControlPanel/CallControlPanel.stories.jsx.map +0 -0
  501. package/jsx/cs/DialPad/DialPad.stories.d.ts +9 -0
  502. package/jsx/cs/DialPad/DialPad.stories.d.ts.map +1 -0
  503. package/{lib → jsx}/cs/DialPad/DialPad.stories.jsx +0 -0
  504. package/{lib → jsx}/cs/DialPad/DialPad.stories.jsx.map +0 -0
  505. package/jsx/cs/DialPad/DialPadKeyboardData.mock.d.ts +11 -0
  506. package/jsx/cs/DialPad/DialPadKeyboardData.mock.d.ts.map +1 -0
  507. package/jsx/cs/DialPad/DialPadKeyboardData.mock.js +20 -0
  508. package/jsx/cs/DialPad/DialPadKeyboardData.mock.js.map +1 -0
  509. package/jsx/cs/IntelligentGuidance/IntelligentGuidance.stories.d.ts +13 -0
  510. package/jsx/cs/IntelligentGuidance/IntelligentGuidance.stories.d.ts.map +1 -0
  511. package/{lib → jsx}/cs/IntelligentGuidance/IntelligentGuidance.stories.jsx +0 -0
  512. package/{lib → jsx}/cs/IntelligentGuidance/IntelligentGuidance.stories.jsx.map +0 -0
  513. package/jsx/cs/InteractionNotification/InteractionNotification.stories.d.ts +8 -0
  514. package/jsx/cs/InteractionNotification/InteractionNotification.stories.d.ts.map +1 -0
  515. package/{lib → jsx}/cs/InteractionNotification/InteractionNotification.stories.jsx +0 -0
  516. package/{lib → jsx}/cs/InteractionNotification/InteractionNotification.stories.jsx.map +0 -0
  517. package/jsx/cs/InteractionTimer/InteractionTimer.stories.d.ts +14 -0
  518. package/jsx/cs/InteractionTimer/InteractionTimer.stories.d.ts.map +1 -0
  519. package/{lib → jsx}/cs/InteractionTimer/InteractionTimer.stories.jsx +0 -0
  520. package/{lib → jsx}/cs/InteractionTimer/InteractionTimer.stories.jsx.map +0 -0
  521. package/jsx/cs/TaskManager/TaskManager.mocks.d.ts +13 -0
  522. package/jsx/cs/TaskManager/TaskManager.mocks.d.ts.map +1 -0
  523. package/jsx/cs/TaskManager/TaskManager.mocks.js +140 -0
  524. package/jsx/cs/TaskManager/TaskManager.mocks.js.map +1 -0
  525. package/jsx/cs/TaskManager/TaskManager.stories.d.ts +8 -0
  526. package/jsx/cs/TaskManager/TaskManager.stories.d.ts.map +1 -0
  527. package/{lib → jsx}/cs/TaskManager/TaskManager.stories.jsx +0 -0
  528. package/{lib → jsx}/cs/TaskManager/TaskManager.stories.jsx.map +0 -0
  529. package/jsx/dnd/DragDropList/DragDropList.stories.d.ts +11 -0
  530. package/jsx/dnd/DragDropList/DragDropList.stories.d.ts.map +1 -0
  531. package/{lib → jsx}/dnd/DragDropList/DragDropList.stories.jsx +0 -0
  532. package/{lib → jsx}/dnd/DragDropList/DragDropList.stories.jsx.map +0 -0
  533. package/jsx/rte/Editor/Editor.stories.d.ts +11 -0
  534. package/jsx/rte/Editor/Editor.stories.d.ts.map +1 -0
  535. package/jsx/rte/Editor/Editor.stories.jsx +121 -0
  536. package/jsx/rte/Editor/Editor.stories.jsx.map +1 -0
  537. package/jsx/rte/RichTextEditor/RichTextEditor.mocks.d.ts +3 -0
  538. package/jsx/rte/RichTextEditor/RichTextEditor.mocks.d.ts.map +1 -0
  539. package/{lib → jsx}/rte/RichTextEditor/RichTextEditor.mocks.jsx +0 -0
  540. package/{lib → jsx}/rte/RichTextEditor/RichTextEditor.mocks.jsx.map +0 -0
  541. package/jsx/rte/RichTextEditor/RichTextEditor.stories.d.ts +10 -0
  542. package/jsx/rte/RichTextEditor/RichTextEditor.stories.d.ts.map +1 -0
  543. package/{lib → jsx}/rte/RichTextEditor/RichTextEditor.stories.jsx +0 -0
  544. package/{lib → jsx}/rte/RichTextEditor/RichTextEditor.stories.jsx.map +0 -0
  545. package/jsx/rte/RichTextEditor/RichTextViewer.stories.d.ts +7 -0
  546. package/jsx/rte/RichTextEditor/RichTextViewer.stories.d.ts.map +1 -0
  547. package/{lib → jsx}/rte/RichTextEditor/RichTextViewer.stories.jsx +0 -0
  548. package/{lib → jsx}/rte/RichTextEditor/RichTextViewer.stories.jsx.map +0 -0
  549. package/jsx/social/Chat/Chat.mocks.d.ts +385 -0
  550. package/jsx/social/Chat/Chat.mocks.d.ts.map +1 -0
  551. package/jsx/social/Chat/Chat.mocks.js +648 -0
  552. package/jsx/social/Chat/Chat.mocks.js.map +1 -0
  553. package/jsx/social/Chat/Chat.stories.d.ts +25 -0
  554. package/jsx/social/Chat/Chat.stories.d.ts.map +1 -0
  555. package/{lib → jsx}/social/Chat/Chat.stories.jsx +0 -0
  556. package/{lib → jsx}/social/Chat/Chat.stories.jsx.map +0 -0
  557. package/jsx/social/Chat/RepeatingView.stories.d.ts +20 -0
  558. package/jsx/social/Chat/RepeatingView.stories.d.ts.map +1 -0
  559. package/{lib → jsx}/social/Chat/RepeatingView.stories.jsx +0 -0
  560. package/{lib → jsx}/social/Chat/RepeatingView.stories.jsx.map +0 -0
  561. package/jsx/social/Email/Email.mocks.d.ts +87 -0
  562. package/jsx/social/Email/Email.mocks.d.ts.map +1 -0
  563. package/{lib → jsx}/social/Email/Email.mocks.jsx +0 -0
  564. package/{lib → jsx}/social/Email/Email.mocks.jsx.map +0 -0
  565. package/jsx/social/Email/Email.stories.d.ts +28 -0
  566. package/jsx/social/Email/Email.stories.d.ts.map +1 -0
  567. package/{lib → jsx}/social/Email/Email.stories.jsx +0 -0
  568. package/{lib → jsx}/social/Email/Email.stories.jsx.map +0 -0
  569. package/jsx/social/Feed/Feed.mocks.d.ts +52 -0
  570. package/jsx/social/Feed/Feed.mocks.d.ts.map +1 -0
  571. package/{lib → jsx}/social/Feed/Feed.mocks.jsx +0 -0
  572. package/{lib → jsx}/social/Feed/Feed.mocks.jsx.map +0 -0
  573. package/jsx/social/Feed/Feed.stories.d.ts +15 -0
  574. package/jsx/social/Feed/Feed.stories.d.ts.map +1 -0
  575. package/{lib → jsx}/social/Feed/Feed.stories.jsx +0 -0
  576. package/{lib → jsx}/social/Feed/Feed.stories.jsx.map +0 -0
  577. package/jsx/social/Feed/FeedNewPost.stories.d.ts +17 -0
  578. package/jsx/social/Feed/FeedNewPost.stories.d.ts.map +1 -0
  579. package/{lib → jsx}/social/Feed/FeedNewPost.stories.jsx +0 -0
  580. package/{lib → jsx}/social/Feed/FeedNewPost.stories.jsx.map +0 -0
  581. package/jsx/social/Feed/FeedPost.stories.d.ts +9 -0
  582. package/jsx/social/Feed/FeedPost.stories.d.ts.map +1 -0
  583. package/{lib → jsx}/social/Feed/FeedPost.stories.jsx +0 -0
  584. package/{lib → jsx}/social/Feed/FeedPost.stories.jsx.map +0 -0
  585. package/jsx/social/Feed/FeedReply.stories.d.ts +16 -0
  586. package/jsx/social/Feed/FeedReply.stories.d.ts.map +1 -0
  587. package/{lib → jsx}/social/Feed/FeedReply.stories.jsx +0 -0
  588. package/{lib → jsx}/social/Feed/FeedReply.stories.jsx.map +0 -0
  589. package/jsx/social/Feed/FeedReplyInput.stories.d.ts +15 -0
  590. package/jsx/social/Feed/FeedReplyInput.stories.d.ts.map +1 -0
  591. package/{lib → jsx}/social/Feed/FeedReplyInput.stories.jsx +0 -0
  592. package/{lib → jsx}/social/Feed/FeedReplyInput.stories.jsx.map +0 -0
  593. package/jsx/work/AppAnnouncement/AppAnnouncement.stories.d.ts +6 -0
  594. package/jsx/work/AppAnnouncement/AppAnnouncement.stories.d.ts.map +1 -0
  595. package/{lib → jsx}/work/AppAnnouncement/AppAnnouncement.stories.jsx +0 -0
  596. package/{lib → jsx}/work/AppAnnouncement/AppAnnouncement.stories.jsx.map +0 -0
  597. package/jsx/work/CaseView/Attachments.mocks.d.ts +3 -0
  598. package/jsx/work/CaseView/Attachments.mocks.d.ts.map +1 -0
  599. package/{lib → jsx}/work/CaseView/Attachments.mocks.jsx +0 -0
  600. package/{lib → jsx}/work/CaseView/Attachments.mocks.jsx.map +0 -0
  601. package/jsx/work/CaseView/CaseView.mocks.d.ts +11 -0
  602. package/jsx/work/CaseView/CaseView.mocks.d.ts.map +1 -0
  603. package/{lib → jsx}/work/CaseView/CaseView.mocks.jsx +0 -0
  604. package/{lib → jsx}/work/CaseView/CaseView.mocks.jsx.map +0 -0
  605. package/jsx/work/CaseView/CaseView.stories.d.ts +34 -0
  606. package/jsx/work/CaseView/CaseView.stories.d.ts.map +1 -0
  607. package/{lib → jsx}/work/CaseView/CaseView.stories.jsx +0 -0
  608. package/{lib → jsx}/work/CaseView/CaseView.stories.jsx.map +0 -0
  609. package/jsx/work/CaseView/Details.mocks.d.ts +3 -0
  610. package/jsx/work/CaseView/Details.mocks.d.ts.map +1 -0
  611. package/{lib → jsx}/work/CaseView/Details.mocks.jsx +0 -0
  612. package/{lib → jsx}/work/CaseView/Details.mocks.jsx.map +0 -0
  613. package/jsx/work/CaseView/FileService.mock.d.ts +28 -0
  614. package/jsx/work/CaseView/FileService.mock.d.ts.map +1 -0
  615. package/{lib → jsx}/work/CaseView/FileService.mock.jsx +0 -0
  616. package/{lib → jsx}/work/CaseView/FileService.mock.jsx.map +0 -0
  617. package/jsx/work/CaseView/MobileCaseView.stories.d.ts +11 -0
  618. package/jsx/work/CaseView/MobileCaseView.stories.d.ts.map +1 -0
  619. package/{lib → jsx}/work/CaseView/MobileCaseView.stories.jsx +0 -0
  620. package/{lib → jsx}/work/CaseView/MobileCaseView.stories.jsx.map +0 -0
  621. package/jsx/work/CaseView/Pulse.mocks.d.ts +6 -0
  622. package/jsx/work/CaseView/Pulse.mocks.d.ts.map +1 -0
  623. package/{lib → jsx}/work/CaseView/Pulse.mocks.jsx +0 -0
  624. package/{lib → jsx}/work/CaseView/Pulse.mocks.jsx.map +0 -0
  625. package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts +10 -0
  626. package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts.map +1 -0
  627. package/{lib → jsx}/work/ConfigurableLayout/ConfigurableLayout.stories.jsx +0 -0
  628. package/{lib → jsx}/work/ConfigurableLayout/ConfigurableLayout.stories.jsx.map +0 -0
  629. package/jsx/work/Confirmation/Confirmation.stories.d.ts +9 -0
  630. package/jsx/work/Confirmation/Confirmation.stories.d.ts.map +1 -0
  631. package/{lib → jsx}/work/Confirmation/Confirmation.stories.jsx +0 -0
  632. package/{lib → jsx}/work/Confirmation/Confirmation.stories.jsx.map +0 -0
  633. package/jsx/work/Details/Details.stories.d.ts +5 -0
  634. package/jsx/work/Details/Details.stories.d.ts.map +1 -0
  635. package/{lib → jsx}/work/Details/Details.stories.jsx +0 -0
  636. package/{lib → jsx}/work/Details/Details.stories.jsx.map +0 -0
  637. package/jsx/work/Glimpse/Glimpse.stories.d.ts +10 -0
  638. package/jsx/work/Glimpse/Glimpse.stories.d.ts.map +1 -0
  639. package/{lib → jsx}/work/Glimpse/Glimpse.stories.jsx +0 -0
  640. package/{lib → jsx}/work/Glimpse/Glimpse.stories.jsx.map +0 -0
  641. package/jsx/work/SearchResults/SearchResults.mocks.d.ts +8 -0
  642. package/jsx/work/SearchResults/SearchResults.mocks.d.ts.map +1 -0
  643. package/{lib → jsx}/work/SearchResults/SearchResults.mocks.jsx +0 -0
  644. package/{lib → jsx}/work/SearchResults/SearchResults.mocks.jsx.map +0 -0
  645. package/jsx/work/SearchResults/SearchResults.stories.d.ts +8 -0
  646. package/jsx/work/SearchResults/SearchResults.stories.d.ts.map +1 -0
  647. package/{lib → jsx}/work/SearchResults/SearchResults.stories.jsx +0 -0
  648. package/{lib → jsx}/work/SearchResults/SearchResults.stories.jsx.map +0 -0
  649. package/jsx/work/Stages/Stages.stories.d.ts +11 -0
  650. package/jsx/work/Stages/Stages.stories.d.ts.map +1 -0
  651. package/{lib → jsx}/work/Stages/Stages.stories.jsx +0 -0
  652. package/{lib → jsx}/work/Stages/Stages.stories.jsx.map +0 -0
  653. package/jsx/work/Stakeholders/Stakeholders.stories.d.ts +9 -0
  654. package/jsx/work/Stakeholders/Stakeholders.stories.d.ts.map +1 -0
  655. package/{lib → jsx}/work/Stakeholders/Stakeholders.stories.jsx +0 -0
  656. package/{lib → jsx}/work/Stakeholders/Stakeholders.stories.jsx.map +0 -0
  657. package/jsx/work/Tags/Tags.mocks.d.ts +3 -0
  658. package/jsx/work/Tags/Tags.mocks.d.ts.map +1 -0
  659. package/jsx/work/Tags/Tags.mocks.js +76 -0
  660. package/jsx/work/Tags/Tags.mocks.js.map +1 -0
  661. package/jsx/work/Tags/Tags.stories.d.ts +10 -0
  662. package/jsx/work/Tags/Tags.stories.d.ts.map +1 -0
  663. package/{lib → jsx}/work/Tags/Tags.stories.jsx +0 -0
  664. package/{lib → jsx}/work/Tags/Tags.stories.jsx.map +0 -0
  665. package/jsx/work/Tasks/TaskList.stories.d.ts +5 -0
  666. package/jsx/work/Tasks/TaskList.stories.d.ts.map +1 -0
  667. package/{lib → jsx}/work/Tasks/TaskList.stories.jsx +0 -0
  668. package/{lib → jsx}/work/Tasks/TaskList.stories.jsx.map +0 -0
  669. package/jsx/work/Tasks/Tasks.stories.d.ts +9 -0
  670. package/jsx/work/Tasks/Tasks.stories.d.ts.map +1 -0
  671. package/{lib → jsx}/work/Tasks/Tasks.stories.jsx +0 -0
  672. package/{lib → jsx}/work/Tasks/Tasks.stories.jsx.map +0 -0
  673. package/jsx/work/Timeline/Timeline.mocks.d.ts +3 -0
  674. package/jsx/work/Timeline/Timeline.mocks.d.ts.map +1 -0
  675. package/{lib → jsx}/work/Timeline/Timeline.mocks.jsx +0 -0
  676. package/{lib → jsx}/work/Timeline/Timeline.mocks.jsx.map +0 -0
  677. package/jsx/work/Timeline/Timeline.stories.d.ts +7 -0
  678. package/jsx/work/Timeline/Timeline.stories.d.ts.map +1 -0
  679. package/{lib → jsx}/work/Timeline/Timeline.stories.jsx +0 -0
  680. package/{lib → jsx}/work/Timeline/Timeline.stories.jsx.map +0 -0
  681. package/lib/build/AppHeader/AppHeader.stories.js +66 -0
  682. package/lib/build/AppHeader/AppHeader.stories.js.map +1 -0
  683. package/lib/build/AppShell/AppShell.stories.js +192 -0
  684. package/lib/build/AppShell/AppShell.stories.js.map +1 -0
  685. package/lib/build/FlowModeller/AddNodeUtils.mocks.js +1 -1
  686. package/lib/build/FlowModeller/AddNodeUtils.mocks.js.map +1 -1
  687. package/lib/build/FlowModeller/FlowModeller.stories.js +197 -0
  688. package/lib/build/FlowModeller/FlowModeller.stories.js.map +1 -0
  689. package/lib/build/LifeCycle/LifeCycle.stories.js +511 -0
  690. package/lib/build/LifeCycle/LifeCycle.stories.js.map +1 -0
  691. package/lib/build/PageTemplates/GalleryPage.stories.js +127 -0
  692. package/lib/build/PageTemplates/GalleryPage.stories.js.map +1 -0
  693. package/lib/build/PageTemplates/PageTemplates.stories.js +388 -0
  694. package/lib/build/PageTemplates/PageTemplates.stories.js.map +1 -0
  695. package/lib/build/Workbench/Workbench.stories.js +114 -0
  696. package/lib/build/Workbench/Workbench.stories.js.map +1 -0
  697. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.js +166 -0
  698. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.js.map +1 -0
  699. package/lib/core/AppShell/AppShell.mocks.js +142 -0
  700. package/lib/core/AppShell/AppShell.mocks.js.map +1 -0
  701. package/lib/core/AppShell/AppShell.stories.d.ts +2 -0
  702. package/lib/core/AppShell/AppShell.stories.d.ts.map +1 -1
  703. package/lib/core/AppShell/AppShell.stories.js +191 -0
  704. package/lib/core/AppShell/AppShell.stories.js.map +1 -0
  705. package/lib/core/Avatar/Avatar.stories.js +51 -0
  706. package/lib/core/Avatar/Avatar.stories.js.map +1 -0
  707. package/lib/core/Backdrop/Backdrop.stories.js +26 -0
  708. package/lib/core/Backdrop/Backdrop.stories.js.map +1 -0
  709. package/lib/core/Badges/Alert.stories.js +16 -0
  710. package/lib/core/Badges/Alert.stories.js.map +1 -0
  711. package/lib/core/Badges/Count.stories.js +21 -0
  712. package/lib/core/Badges/Count.stories.js.map +1 -0
  713. package/lib/core/Badges/Selection.stories.js +10 -0
  714. package/lib/core/Badges/Selection.stories.js.map +1 -0
  715. package/lib/core/Badges/Status.stories.js +19 -0
  716. package/lib/core/Badges/Status.stories.js.map +1 -0
  717. package/lib/core/Badges/Tag.stories.js +10 -0
  718. package/lib/core/Badges/Tag.stories.js.map +1 -0
  719. package/lib/core/Banner/Banner.stories.js +110 -0
  720. package/lib/core/Banner/Banner.stories.js.map +1 -0
  721. package/lib/core/Boolean/BooleanDisplay.stories.js +20 -0
  722. package/lib/core/Boolean/BooleanDisplay.stories.js.map +1 -0
  723. package/lib/core/Breadcrumbs/Breadcrumbs.stories.js +28 -0
  724. package/lib/core/Breadcrumbs/Breadcrumbs.stories.js.map +1 -0
  725. package/lib/core/Button/Button.stories.js +64 -0
  726. package/lib/core/Button/Button.stories.js.map +1 -0
  727. package/lib/core/Card/Card.stories.js +32 -0
  728. package/lib/core/Card/Card.stories.js.map +1 -0
  729. package/lib/core/Checkbox/Checkbox.stories.js +29 -0
  730. package/lib/core/Checkbox/Checkbox.stories.js.map +1 -0
  731. package/lib/core/CheckboxGroup/CheckboxGroup.stories.js +32 -0
  732. package/lib/core/CheckboxGroup/CheckboxGroup.stories.js.map +1 -0
  733. package/lib/core/ColorPicker/ColorPicker.stories.js +76 -0
  734. package/lib/core/ColorPicker/ColorPicker.stories.js.map +1 -0
  735. package/lib/core/ComboBox/ComboBox.stories.d.ts +10 -0
  736. package/lib/core/ComboBox/ComboBox.stories.d.ts.map +1 -1
  737. package/lib/core/ComboBox/ComboBox.stories.js +376 -0
  738. package/lib/core/ComboBox/ComboBox.stories.js.map +1 -0
  739. package/lib/core/Configuration/Configuration.stories.js +75 -0
  740. package/lib/core/Configuration/Configuration.stories.js.map +1 -0
  741. package/lib/core/Currency/Currency.stories.js +66 -0
  742. package/lib/core/Currency/Currency.stories.js.map +1 -0
  743. package/lib/core/DateTime/DateTime.stories.js +128 -0
  744. package/lib/core/DateTime/DateTime.stories.js.map +1 -0
  745. package/lib/core/DateTime/DateTimeDisplay.stories.js +47 -0
  746. package/lib/core/DateTime/DateTimeDisplay.stories.js.map +1 -0
  747. package/lib/core/DateTime/DateTimePicker.stories.js +35 -0
  748. package/lib/core/DateTime/DateTimePicker.stories.js.map +1 -0
  749. package/lib/core/Drawer/Drawer.stories.js +71 -0
  750. package/lib/core/Drawer/Drawer.stories.js.map +1 -0
  751. package/lib/core/Email/EmailDisplay.stories.js +20 -0
  752. package/lib/core/Email/EmailDisplay.stories.js.map +1 -0
  753. package/lib/core/EmojiPicker/EmojiPicker.stories.js +42 -0
  754. package/lib/core/EmojiPicker/EmojiPicker.stories.js.map +1 -0
  755. package/lib/core/EmptyState/EmptyState.stories.js +19 -0
  756. package/lib/core/EmptyState/EmptyState.stories.js.map +1 -0
  757. package/lib/core/ErrorState/ErrorState.stories.js +21 -0
  758. package/lib/core/ErrorState/ErrorState.stories.js.map +1 -0
  759. package/lib/core/ExpandCollapse/ExpandCollapse.stories.js +28 -0
  760. package/lib/core/ExpandCollapse/ExpandCollapse.stories.js.map +1 -0
  761. package/lib/core/FieldGroup/FieldGroup.stories.js +22 -0
  762. package/lib/core/FieldGroup/FieldGroup.stories.js.map +1 -0
  763. package/lib/core/FieldGroup/FieldGroupList.stories.js +140 -0
  764. package/lib/core/FieldGroup/FieldGroupList.stories.js.map +1 -0
  765. package/lib/core/FieldValueList/FieldValueList.stories.js +51 -0
  766. package/lib/core/FieldValueList/FieldValueList.stories.js.map +1 -0
  767. package/lib/core/File/FileDisplay.stories.js +96 -0
  768. package/lib/core/File/FileDisplay.stories.js.map +1 -0
  769. package/lib/core/File/FileInput.stories.js +78 -0
  770. package/lib/core/File/FileInput.stories.js.map +1 -0
  771. package/lib/core/Flex/FlexContainer.stories.js +79 -0
  772. package/lib/core/Flex/FlexContainer.stories.js.map +1 -0
  773. package/lib/core/Flex/FlexItem.stories.js +41 -0
  774. package/lib/core/Flex/FlexItem.stories.js.map +1 -0
  775. package/lib/core/Form/Form.stories.js +144 -0
  776. package/lib/core/Form/Form.stories.js.map +1 -0
  777. package/lib/core/Grid/GridContainer.stories.js +112 -0
  778. package/lib/core/Grid/GridContainer.stories.js.map +1 -0
  779. package/lib/core/Grid/GridItem.stories.js +36 -0
  780. package/lib/core/Grid/GridItem.stories.js.map +1 -0
  781. package/lib/core/Icon/Icon.stories.js +76 -0
  782. package/lib/core/Icon/Icon.stories.js.map +1 -0
  783. package/lib/core/IconPicker/IconPicker.stories.js +40 -0
  784. package/lib/core/IconPicker/IconPicker.stories.js.map +1 -0
  785. package/lib/core/Image/Image.stories.js +10 -0
  786. package/lib/core/Image/Image.stories.js.map +1 -0
  787. package/lib/core/Input/Input.stories.js +45 -0
  788. package/lib/core/Input/Input.stories.js.map +1 -0
  789. package/lib/core/Label/Label.stories.js +16 -0
  790. package/lib/core/Label/Label.stories.js.map +1 -0
  791. package/lib/core/Lightbox/Lightbox.stories.js +110 -0
  792. package/lib/core/Lightbox/Lightbox.stories.js.map +1 -0
  793. package/lib/core/Link/Link.stories.js +27 -0
  794. package/lib/core/Link/Link.stories.js.map +1 -0
  795. package/lib/core/List/CommaSeparatedList.stories.js +32 -0
  796. package/lib/core/List/CommaSeparatedList.stories.js.map +1 -0
  797. package/lib/core/List/OrderedList.stories.js +39 -0
  798. package/lib/core/List/OrderedList.stories.js.map +1 -0
  799. package/lib/core/List/UnorderedList.stories.js +39 -0
  800. package/lib/core/List/UnorderedList.stories.js.map +1 -0
  801. package/lib/core/Location/Location.stories.js +123 -0
  802. package/lib/core/Location/Location.stories.js.map +1 -0
  803. package/lib/core/Menu/Menu.stories.js +150 -0
  804. package/lib/core/Menu/Menu.stories.js.map +1 -0
  805. package/lib/core/MenuButton/MenuButton.stories.js +185 -0
  806. package/lib/core/MenuButton/MenuButton.stories.js.map +1 -0
  807. package/lib/core/MetaList/MetaList.stories.js +20 -0
  808. package/lib/core/MetaList/MetaList.stories.js.map +1 -0
  809. package/lib/core/Modal/Modal.mocks.js +36 -0
  810. package/lib/core/Modal/Modal.mocks.js.map +1 -0
  811. package/lib/core/Modal/Modal.stories.js +232 -0
  812. package/lib/core/Modal/Modal.stories.js.map +1 -0
  813. package/lib/core/MultiStep/MultiStep.stories.js +36 -0
  814. package/lib/core/MultiStep/MultiStep.stories.js.map +1 -0
  815. package/lib/core/Number/Number.stories.js +111 -0
  816. package/lib/core/Number/Number.stories.js.map +1 -0
  817. package/lib/core/PageTemplates/PageTemplates.stories.js +226 -0
  818. package/lib/core/PageTemplates/PageTemplates.stories.js.map +1 -0
  819. package/lib/core/Pagination/Pagination.stories.js +20 -0
  820. package/lib/core/Pagination/Pagination.stories.js.map +1 -0
  821. package/lib/core/Paragraph/ParagraphDisplay.stories.js +13 -0
  822. package/lib/core/Paragraph/ParagraphDisplay.stories.js.map +1 -0
  823. package/lib/core/Phone/Phone.stories.js +43 -0
  824. package/lib/core/Phone/Phone.stories.js.map +1 -0
  825. package/lib/core/Popover/Popover.stories.js +96 -0
  826. package/lib/core/Popover/Popover.stories.js.map +1 -0
  827. package/lib/core/Progress/Progress.stories.js +64 -0
  828. package/lib/core/Progress/Progress.stories.js.map +1 -0
  829. package/lib/core/RadioButton/RadioButton.stories.js +27 -0
  830. package/lib/core/RadioButton/RadioButton.stories.js.map +1 -0
  831. package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.js +34 -0
  832. package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.js.map +1 -0
  833. package/lib/core/Rating/Rating.stories.js +22 -0
  834. package/lib/core/Rating/Rating.stories.js.map +1 -0
  835. package/lib/core/SearchInput/SearchInput.stories.js +16 -0
  836. package/lib/core/SearchInput/SearchInput.stories.js.map +1 -0
  837. package/lib/core/Select/Select.stories.js +38 -0
  838. package/lib/core/Select/Select.stories.js.map +1 -0
  839. package/lib/core/Sentiment/Sentiment.stories.js +40 -0
  840. package/lib/core/Sentiment/Sentiment.stories.js.map +1 -0
  841. package/lib/core/Slider/Slider.stories.js +59 -0
  842. package/lib/core/Slider/Slider.stories.js.map +1 -0
  843. package/lib/core/SummaryItem/SummaryItem.stories.js +32 -0
  844. package/lib/core/SummaryItem/SummaryItem.stories.js.map +1 -0
  845. package/lib/core/SummaryList/SummaryList.mocks.js +34 -0
  846. package/lib/core/SummaryList/SummaryList.mocks.js.map +1 -0
  847. package/lib/core/SummaryList/SummaryList.stories.js +126 -0
  848. package/lib/core/SummaryList/SummaryList.stories.js.map +1 -0
  849. package/lib/core/Switch/Switch.stories.js +25 -0
  850. package/lib/core/Switch/Switch.stories.js.map +1 -0
  851. package/lib/core/Table/Table.mocks.js +30 -0
  852. package/lib/core/Table/Table.mocks.js.map +1 -0
  853. package/lib/core/Table/Table.stories.js +54 -0
  854. package/lib/core/Table/Table.stories.js.map +1 -0
  855. package/lib/core/Tabs/Tabs.stories.js +42 -0
  856. package/lib/core/Tabs/Tabs.stories.js.map +1 -0
  857. package/lib/core/Text/Text.stories.js +21 -0
  858. package/lib/core/Text/Text.stories.js.map +1 -0
  859. package/lib/core/TextArea/TextArea.stories.js +44 -0
  860. package/lib/core/TextArea/TextArea.stories.js.map +1 -0
  861. package/lib/core/Toaster/Toaster.stories.js +25 -0
  862. package/lib/core/Toaster/Toaster.stories.js.map +1 -0
  863. package/lib/core/Tooltip/Tooltip.stories.js +11 -0
  864. package/lib/core/Tooltip/Tooltip.stories.js.map +1 -0
  865. package/lib/core/Tree/Tree.mocks.js +2 -0
  866. package/lib/core/Tree/Tree.mocks.js.map +1 -1
  867. package/lib/core/Tree/Tree.stories.js +85 -0
  868. package/lib/core/Tree/Tree.stories.js.map +1 -0
  869. package/lib/core/URL/URL.stories.js +18 -0
  870. package/lib/core/URL/URL.stories.js.map +1 -0
  871. package/lib/cs/Article/Article.stories.js +85 -0
  872. package/lib/cs/Article/Article.stories.js.map +1 -0
  873. package/lib/cs/ArticleList/ArticleList.stories.js +83 -0
  874. package/lib/cs/ArticleList/ArticleList.stories.js.map +1 -0
  875. package/lib/cs/CSCaseView/CSAppShell.stories.js +240 -0
  876. package/lib/cs/CSCaseView/CSAppShell.stories.js.map +1 -0
  877. package/lib/cs/CallControlPanel/CallControlPanel.stories.js +193 -0
  878. package/lib/cs/CallControlPanel/CallControlPanel.stories.js.map +1 -0
  879. package/lib/cs/DialPad/DialPad.stories.js +17 -0
  880. package/lib/cs/DialPad/DialPad.stories.js.map +1 -0
  881. package/lib/cs/IntelligentGuidance/IntelligentGuidance.stories.js +335 -0
  882. package/lib/cs/IntelligentGuidance/IntelligentGuidance.stories.js.map +1 -0
  883. package/lib/cs/InteractionNotification/InteractionNotification.stories.js +31 -0
  884. package/lib/cs/InteractionNotification/InteractionNotification.stories.js.map +1 -0
  885. package/lib/cs/InteractionTimer/InteractionTimer.stories.js +86 -0
  886. package/lib/cs/InteractionTimer/InteractionTimer.stories.js.map +1 -0
  887. package/lib/cs/TaskManager/TaskManager.stories.js +299 -0
  888. package/lib/cs/TaskManager/TaskManager.stories.js.map +1 -0
  889. package/lib/dnd/DragDropList/DragDropList.stories.js +113 -0
  890. package/lib/dnd/DragDropList/DragDropList.stories.js.map +1 -0
  891. package/lib/rte/Editor/Editor.stories.d.ts +11 -0
  892. package/lib/rte/Editor/Editor.stories.d.ts.map +1 -0
  893. package/lib/rte/Editor/Editor.stories.js +102 -0
  894. package/lib/rte/Editor/Editor.stories.js.map +1 -0
  895. package/lib/rte/RichTextEditor/RichTextEditor.mocks.js +36 -0
  896. package/lib/rte/RichTextEditor/RichTextEditor.mocks.js.map +1 -0
  897. package/lib/rte/RichTextEditor/RichTextEditor.stories.js +114 -0
  898. package/lib/rte/RichTextEditor/RichTextEditor.stories.js.map +1 -0
  899. package/lib/rte/RichTextEditor/RichTextViewer.stories.js +53 -0
  900. package/lib/rte/RichTextEditor/RichTextViewer.stories.js.map +1 -0
  901. package/lib/social/Chat/Chat.stories.d.ts +18 -0
  902. package/lib/social/Chat/Chat.stories.d.ts.map +1 -1
  903. package/lib/social/Chat/Chat.stories.js +491 -0
  904. package/lib/social/Chat/Chat.stories.js.map +1 -0
  905. package/lib/social/Chat/RepeatingView.stories.js +89 -0
  906. package/lib/social/Chat/RepeatingView.stories.js.map +1 -0
  907. package/lib/social/Email/Email.mocks.js +350 -0
  908. package/lib/social/Email/Email.mocks.js.map +1 -0
  909. package/lib/social/Email/Email.stories.js +845 -0
  910. package/lib/social/Email/Email.stories.js.map +1 -0
  911. package/lib/social/Feed/Feed.mocks.js +307 -0
  912. package/lib/social/Feed/Feed.mocks.js.map +1 -0
  913. package/lib/social/Feed/Feed.stories.js +145 -0
  914. package/lib/social/Feed/Feed.stories.js.map +1 -0
  915. package/lib/social/Feed/FeedNewPost.stories.js +82 -0
  916. package/lib/social/Feed/FeedNewPost.stories.js.map +1 -0
  917. package/lib/social/Feed/FeedPost.stories.js +239 -0
  918. package/lib/social/Feed/FeedPost.stories.js.map +1 -0
  919. package/lib/social/Feed/FeedReply.stories.js +95 -0
  920. package/lib/social/Feed/FeedReply.stories.js.map +1 -0
  921. package/lib/social/Feed/FeedReplyInput.stories.js +60 -0
  922. package/lib/social/Feed/FeedReplyInput.stories.js.map +1 -0
  923. package/lib/work/AppAnnouncement/AppAnnouncement.stories.js +31 -0
  924. package/lib/work/AppAnnouncement/AppAnnouncement.stories.js.map +1 -0
  925. package/lib/work/CaseView/Attachments.mocks.js +373 -0
  926. package/lib/work/CaseView/Attachments.mocks.js.map +1 -0
  927. package/lib/work/CaseView/CaseView.mocks.js +116 -0
  928. package/lib/work/CaseView/CaseView.mocks.js.map +1 -0
  929. package/lib/work/CaseView/CaseView.stories.js +276 -0
  930. package/lib/work/CaseView/CaseView.stories.js.map +1 -0
  931. package/lib/work/CaseView/Details.mocks.js +7 -0
  932. package/lib/work/CaseView/Details.mocks.js.map +1 -0
  933. package/lib/work/CaseView/FileService.mock.js +158 -0
  934. package/lib/work/CaseView/FileService.mock.js.map +1 -0
  935. package/lib/work/CaseView/MobileCaseView.stories.js +28 -0
  936. package/lib/work/CaseView/MobileCaseView.stories.js.map +1 -0
  937. package/lib/work/CaseView/Pulse.mocks.js +25 -0
  938. package/lib/work/CaseView/Pulse.mocks.js.map +1 -0
  939. package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.js +194 -0
  940. package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.js.map +1 -0
  941. package/lib/work/Confirmation/Confirmation.stories.js +18 -0
  942. package/lib/work/Confirmation/Confirmation.stories.js.map +1 -0
  943. package/lib/work/Details/Details.stories.js +62 -0
  944. package/lib/work/Details/Details.stories.js.map +1 -0
  945. package/lib/work/Glimpse/Glimpse.stories.js +40 -0
  946. package/lib/work/Glimpse/Glimpse.stories.js.map +1 -0
  947. package/lib/work/SearchResults/SearchResults.mocks.js +97 -0
  948. package/lib/work/SearchResults/SearchResults.mocks.js.map +1 -0
  949. package/lib/work/SearchResults/SearchResults.stories.js +198 -0
  950. package/lib/work/SearchResults/SearchResults.stories.js.map +1 -0
  951. package/lib/work/Stages/Stages.stories.js +64 -0
  952. package/lib/work/Stages/Stages.stories.js.map +1 -0
  953. package/lib/work/Stakeholders/Stakeholders.stories.js +142 -0
  954. package/lib/work/Stakeholders/Stakeholders.stories.js.map +1 -0
  955. package/lib/work/Tags/Tags.stories.js +62 -0
  956. package/lib/work/Tags/Tags.stories.js.map +1 -0
  957. package/lib/work/Tasks/TaskList.stories.js +18 -0
  958. package/lib/work/Tasks/TaskList.stories.js.map +1 -0
  959. package/lib/work/Tasks/Tasks.stories.js +80 -0
  960. package/lib/work/Tasks/Tasks.stories.js.map +1 -0
  961. package/lib/work/Timeline/Timeline.mocks.js +117 -0
  962. package/lib/work/Timeline/Timeline.mocks.js.map +1 -0
  963. package/lib/work/Timeline/Timeline.stories.js +44 -0
  964. package/lib/work/Timeline/Timeline.stories.js.map +1 -0
  965. package/package.json +13 -11
@@ -0,0 +1,96 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useState } from 'react';
3
+ import { Button, Card, CardContent, Flex, Link, Popover, Text, Tooltip, useElement } from '@pega/cosmos-react-core';
4
+ export default {
5
+ title: 'Core/Popover',
6
+ component: Popover,
7
+ args: {
8
+ arrow: false,
9
+ showDelay: 'none',
10
+ hideDelay: 'none',
11
+ placement: 'bottom'
12
+ },
13
+ argTypes: {
14
+ arrow: { control: { type: 'boolean' } },
15
+ showDelay: { options: ['none', 'short', 'long'], control: { type: 'select' } },
16
+ hideDelay: { options: ['none', 'short', 'long'], control: { type: 'select' } },
17
+ placement: {
18
+ options: [
19
+ 'bottom',
20
+ 'bottom-start',
21
+ 'bottom-end',
22
+ 'top',
23
+ 'top-start',
24
+ 'top-end',
25
+ 'left',
26
+ 'left-start',
27
+ 'left-end',
28
+ 'right',
29
+ 'right-start',
30
+ 'right-end',
31
+ 'auto',
32
+ 'auto-start',
33
+ 'auto-end'
34
+ ],
35
+ control: { type: 'select' }
36
+ }
37
+ }
38
+ };
39
+ export const HoverPopover = (args) => {
40
+ const [mountPopover, setMountPopover] = useState(false);
41
+ const setPopoverEl = useElement()[1];
42
+ const [textEl, setTextEl] = useElement();
43
+ const togglePopover = ({ type, key }) => {
44
+ if (type === 'keydown') {
45
+ if (key === 'Escape')
46
+ setMountPopover(false);
47
+ return;
48
+ }
49
+ setMountPopover(type === 'mouseover' || type === 'focus');
50
+ };
51
+ const mountingHandlers = {
52
+ onMouseOver: togglePopover,
53
+ onMouseOut: togglePopover,
54
+ onFocus: togglePopover,
55
+ onBlur: togglePopover
56
+ };
57
+ return (_jsxs(Flex, { container: { justify: 'center', pad: 4 }, children: [_jsx(Text, { ref: setTextEl, variant: 'h1', ...mountingHandlers, children: "Hover Over Me" }, void 0), _jsx(Popover, { ref: setPopoverEl, show: mountPopover, target: textEl, arrow: args.arrow, showDelay: args.showDelay, hideDelay: args.hideDelay, placement: args.placement, ...mountingHandlers, children: _jsx(Card, { children: _jsx(CardContent, { children: _jsx(Text, { children: "This Popover appears on hover!" }, void 0) }, void 0) }, void 0) }, void 0)] }, void 0));
58
+ };
59
+ export const ClickPopover = (args) => {
60
+ const [mountPopover, setMountPopover] = useState(false);
61
+ const setPopoverEl = useElement()[1];
62
+ const [buttonEl, setButtonEl] = useElement();
63
+ const togglePopover = ({ type, key }) => {
64
+ if (type === 'keydown') {
65
+ if (key === 'Escape')
66
+ setMountPopover(false);
67
+ return;
68
+ }
69
+ setMountPopover(type === 'click' || type === 'focus');
70
+ };
71
+ const mountingHandlers = {
72
+ onClick: togglePopover,
73
+ onFocus: togglePopover,
74
+ onBlur: togglePopover
75
+ };
76
+ return (_jsxs(Flex, { container: { justify: 'center', pad: 4 }, children: [_jsx(Button, { ref: setButtonEl, ...mountingHandlers, children: "Click Me" }, void 0), _jsx(Popover, { ref: setPopoverEl, show: mountPopover, target: buttonEl, arrow: args.arrow, showDelay: args.showDelay, hideDelay: args.hideDelay, placement: args.placement, ...mountingHandlers, children: _jsx(Card, { children: _jsx(CardContent, { children: _jsx(Text, { children: "This Popover appears on hover!" }, void 0) }, void 0) }, void 0) }, void 0)] }, void 0));
77
+ };
78
+ export const PopoverGroups = () => {
79
+ const [firstTooltipButton, setFirstTooltipButton] = useElement();
80
+ const [secondTooltipButton, setSecondTooltipButton] = useElement();
81
+ const [thirdTooltipButton, setThirdTooltipButton] = useElement();
82
+ const [firstPopoverButton, setFirstPopoverButton] = useElement();
83
+ const [secondPopoverButton, setSecondPopoverButton] = useElement();
84
+ const [thirdPopoverButton, setThirdPopoverButton] = useElement();
85
+ const [showFirstPopover, setShowFirstPopover] = useState(false);
86
+ const [showSecondPopover, setShowSecondPopover] = useState(false);
87
+ const [showThirdPopover, setShowThirdPopover] = useState(false);
88
+ return (_jsxs(Flex, { container: { direction: 'column', gap: 4 }, children: [_jsx(Text, { variant: 'h2', children: "groupId: link_preview" }, void 0), _jsxs(Flex, { children: [_jsx(Link, { href: 'http://www.google.com', previewable: true, children: "Previewable Link" }, void 0), _jsx(Link, { href: 'http://www.google.com', previewable: true, children: "Previewable Link" }, void 0), _jsx(Link, { href: 'http://www.google.com', previewable: true, children: "Previewable Link" }, void 0)] }, void 0), _jsx(Text, { variant: 'h2', children: "groupId: tooltip" }, void 0), _jsxs(Flex, { children: [_jsx(Button, { ref: setFirstTooltipButton, "aria-describedby": 'first-tooltip', children: "Hover me" }, void 0), _jsx(Tooltip, { target: firstTooltipButton, id: 'first-tooltip', children: "This is a tooltip for the first button." }, void 0), _jsx(Button, { ref: setSecondTooltipButton, "aria-describedby": 'second-tooltip', children: "Hover me" }, void 0), _jsx(Tooltip, { target: secondTooltipButton, id: 'second-tooltip', children: "This is a tooltip for the second button." }, void 0), _jsx(Button, { ref: setThirdTooltipButton, "aria-describedby": 'third-tooltip', children: "Hover me" }, void 0), _jsx(Tooltip, { target: thirdTooltipButton, id: 'third-tooltip', children: "This is a tooltip for the third button." }, void 0)] }, void 0), _jsx(Text, { variant: 'h2', children: "No groupId" }, void 0), _jsxs(Flex, { children: [_jsx(Button, { ref: setFirstPopoverButton, onClick: () => setShowFirstPopover(curr => !curr), children: "Click me" }, void 0), _jsx(Popover, { show: showFirstPopover, target: firstPopoverButton, children: _jsx(Card, { children: _jsx(CardContent, { children: _jsx(Text, { children: "Popover #1" }, void 0) }, void 0) }, void 0) }, void 0), _jsx(Button, { ref: setSecondPopoverButton, onClick: () => setShowSecondPopover(curr => !curr), children: "Click me" }, void 0), _jsx(Popover, { show: showSecondPopover, target: secondPopoverButton, children: _jsx(Card, { children: _jsx(CardContent, { children: _jsx(Text, { children: "Popover #2" }, void 0) }, void 0) }, void 0) }, void 0), _jsx(Button, { ref: setThirdPopoverButton, onClick: () => setShowThirdPopover(curr => !curr), children: "Click me" }, void 0), _jsx(Popover, { show: showThirdPopover, target: thirdPopoverButton, children: _jsx(Card, { children: _jsx(CardContent, { children: _jsx(Text, { children: "Popover #3" }, void 0) }, void 0) }, void 0) }, void 0)] }, void 0)] }, void 0));
89
+ };
90
+ PopoverGroups.argTypes = {
91
+ arrow: { table: { disable: true } },
92
+ showDelay: { table: { disable: true } },
93
+ hideDelay: { table: { disable: true } },
94
+ placement: { table: { disable: true } }
95
+ };
96
+ //# sourceMappingURL=Popover.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Popover.stories.js","sourceRoot":"","sources":["../../../src/core/Popover/Popover.stories.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjC,OAAO,EACL,MAAM,EACN,IAAI,EACJ,WAAW,EACX,IAAI,EACJ,IAAI,EACJ,OAAO,EAEP,IAAI,EACJ,OAAO,EACP,UAAU,EACX,MAAM,yBAAyB,CAAC;AAEjC,eAAe;IACb,KAAK,EAAE,cAAc;IACrB,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE;QACJ,KAAK,EAAE,KAAK;QACZ,SAAS,EAAE,MAAM;QACjB,SAAS,EAAE,MAAM;QACjB,SAAS,EAAE,QAAQ;KACpB;IACD,QAAQ,EAAE;QACR,KAAK,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;QACvC,SAAS,EAAE,EAAE,OAAO,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;QAC9E,SAAS,EAAE,EAAE,OAAO,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;QAC9E,SAAS,EAAE;YACT,OAAO,EAAE;gBACP,QAAQ;gBACR,cAAc;gBACd,YAAY;gBACZ,KAAK;gBACL,WAAW;gBACX,SAAS;gBACT,MAAM;gBACN,YAAY;gBACZ,UAAU;gBACV,OAAO;gBACP,aAAa;gBACb,WAAW;gBACX,MAAM;gBACN,YAAY;gBACZ,UAAU;aACX;YACD,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;SAC5B;KACF;CACM,CAAC;AAEV,MAAM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,WAAW,cACV,KAAC,IAAI,qCAAkB,WACX,WACT,WACC,YACL,YACF,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,aAAa,CAAC,QAAQ,GAAG;IACvB,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;IACnC,SAAS,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;IACvC,SAAS,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;IACvC,SAAS,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;CACxC,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\nimport { useState } from 'react';\n\nimport {\n Button,\n Card,\n CardContent,\n Flex,\n Link,\n Popover,\n PopoverProps,\n Text,\n Tooltip,\n useElement\n} from '@pega/cosmos-react-core';\n\nexport default {\n title: 'Core/Popover',\n component: Popover,\n args: {\n arrow: false,\n showDelay: 'none',\n hideDelay: 'none',\n placement: 'bottom'\n },\n argTypes: {\n arrow: { control: { type: 'boolean' } },\n showDelay: { options: ['none', 'short', 'long'], control: { type: 'select' } },\n hideDelay: { options: ['none', 'short', 'long'], control: { type: 'select' } },\n placement: {\n options: [\n 'bottom',\n 'bottom-start',\n 'bottom-end',\n 'top',\n 'top-start',\n 'top-end',\n 'left',\n 'left-start',\n 'left-end',\n 'right',\n 'right-start',\n 'right-end',\n 'auto',\n 'auto-start',\n 'auto-end'\n ],\n control: { type: 'select' }\n }\n }\n} as Meta;\n\nexport const HoverPopover: Story<PopoverProps> = (args: PopoverProps) => {\n const [mountPopover, setMountPopover] = useState(false);\n const setPopoverEl = useElement<HTMLDivElement>()[1];\n const [textEl, setTextEl] = useElement<HTMLDivElement>();\n\n const togglePopover = ({ type, key }: { type: string; key: string }) => {\n if (type === 'keydown') {\n if (key === 'Escape') setMountPopover(false);\n return;\n }\n setMountPopover(type === 'mouseover' || type === 'focus');\n };\n\n const mountingHandlers = {\n onMouseOver: togglePopover,\n onMouseOut: togglePopover,\n onFocus: togglePopover,\n onBlur: togglePopover\n };\n\n return (\n <Flex container={{ justify: 'center', pad: 4 }}>\n <Text ref={setTextEl} variant='h1' {...mountingHandlers}>\n Hover Over Me\n </Text>\n <Popover\n ref={setPopoverEl}\n show={mountPopover}\n target={textEl}\n arrow={args.arrow}\n showDelay={args.showDelay}\n hideDelay={args.hideDelay}\n placement={args.placement}\n {...mountingHandlers}\n >\n <Card>\n <CardContent>\n <Text>This Popover appears on hover!</Text>\n </CardContent>\n </Card>\n </Popover>\n </Flex>\n );\n};\n\nexport const ClickPopover: Story<PopoverProps> = (args: PopoverProps) => {\n const [mountPopover, setMountPopover] = useState(false);\n const setPopoverEl = useElement<HTMLDivElement>()[1];\n const [buttonEl, setButtonEl] = useElement<HTMLButtonElement>();\n\n const togglePopover = ({ type, key }: { type: string; key: string }) => {\n if (type === 'keydown') {\n if (key === 'Escape') setMountPopover(false);\n return;\n }\n setMountPopover(type === 'click' || type === 'focus');\n };\n\n const mountingHandlers = {\n onClick: togglePopover,\n onFocus: togglePopover,\n onBlur: togglePopover\n };\n\n return (\n <Flex container={{ justify: 'center', pad: 4 }}>\n <Button ref={setButtonEl} {...mountingHandlers}>\n Click Me\n </Button>\n <Popover\n ref={setPopoverEl}\n show={mountPopover}\n target={buttonEl}\n arrow={args.arrow}\n showDelay={args.showDelay}\n hideDelay={args.hideDelay}\n placement={args.placement}\n {...mountingHandlers}\n >\n <Card>\n <CardContent>\n <Text>This Popover appears on hover!</Text>\n </CardContent>\n </Card>\n </Popover>\n </Flex>\n );\n};\n\nexport const PopoverGroups: Story = () => {\n const [firstTooltipButton, setFirstTooltipButton] = useElement<HTMLButtonElement>();\n const [secondTooltipButton, setSecondTooltipButton] = useElement<HTMLButtonElement>();\n const [thirdTooltipButton, setThirdTooltipButton] = useElement<HTMLButtonElement>();\n\n const [firstPopoverButton, setFirstPopoverButton] = useElement<HTMLButtonElement>();\n const [secondPopoverButton, setSecondPopoverButton] = useElement<HTMLButtonElement>();\n const [thirdPopoverButton, setThirdPopoverButton] = useElement<HTMLButtonElement>();\n\n const [showFirstPopover, setShowFirstPopover] = useState(false);\n const [showSecondPopover, setShowSecondPopover] = useState(false);\n const [showThirdPopover, setShowThirdPopover] = useState(false);\n\n return (\n <Flex container={{ direction: 'column', gap: 4 }}>\n <Text variant='h2'>groupId: link_preview</Text>\n <Flex>\n <Link href='http://www.google.com' previewable>\n Previewable Link\n </Link>\n <Link href='http://www.google.com' previewable>\n Previewable Link\n </Link>\n <Link href='http://www.google.com' previewable>\n Previewable Link\n </Link>\n </Flex>\n <Text variant='h2'>groupId: tooltip</Text>\n <Flex>\n <Button ref={setFirstTooltipButton} aria-describedby='first-tooltip'>\n Hover me\n </Button>\n <Tooltip target={firstTooltipButton} id='first-tooltip'>\n This is a tooltip for the first button.\n </Tooltip>\n <Button ref={setSecondTooltipButton} aria-describedby='second-tooltip'>\n Hover me\n </Button>\n <Tooltip target={secondTooltipButton} id='second-tooltip'>\n This is a tooltip for the second button.\n </Tooltip>\n <Button ref={setThirdTooltipButton} aria-describedby='third-tooltip'>\n Hover me\n </Button>\n <Tooltip target={thirdTooltipButton} id='third-tooltip'>\n This is a tooltip for the third button.\n </Tooltip>\n </Flex>\n <Text variant='h2'>No groupId</Text>\n <Flex>\n <Button ref={setFirstPopoverButton} onClick={() => setShowFirstPopover(curr => !curr)}>\n Click me\n </Button>\n <Popover show={showFirstPopover} target={firstPopoverButton}>\n <Card>\n <CardContent>\n <Text>Popover #1</Text>\n </CardContent>\n </Card>\n </Popover>\n <Button ref={setSecondPopoverButton} onClick={() => setShowSecondPopover(curr => !curr)}>\n Click me\n </Button>\n <Popover show={showSecondPopover} target={secondPopoverButton}>\n <Card>\n <CardContent>\n <Text>Popover #2</Text>\n </CardContent>\n </Card>\n </Popover>\n <Button ref={setThirdPopoverButton} onClick={() => setShowThirdPopover(curr => !curr)}>\n Click me\n </Button>\n <Popover show={showThirdPopover} target={thirdPopoverButton}>\n <Card>\n <CardContent>\n <Text>Popover #3</Text>\n </CardContent>\n </Card>\n </Popover>\n </Flex>\n </Flex>\n );\n};\n\nPopoverGroups.argTypes = {\n arrow: { table: { disable: true } },\n showDelay: { table: { disable: true } },\n hideDelay: { table: { disable: true } },\n placement: { table: { disable: true } }\n};\n"]}
@@ -0,0 +1,64 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useEffect, useState } from 'react';
3
+ import { Button, Flex, Progress, Text } from '@pega/cosmos-react-core';
4
+ import { StyledDemoWrap } from './Progress.styles';
5
+ export default {
6
+ title: 'Core/Progress',
7
+ component: Progress,
8
+ args: {
9
+ variant: 'ring',
10
+ placement: 'local',
11
+ message: ''
12
+ },
13
+ argTypes: {
14
+ variant: { options: ['ring', 'bar', 'ellipsis'], control: { type: 'select' } },
15
+ placement: { options: ['local', 'global', 'inline'], control: { type: 'select' } },
16
+ message: { control: { type: 'text' } }
17
+ }
18
+ };
19
+ export const IndeterminateProgress = (args) => {
20
+ const [loading, setLoading] = useState(false);
21
+ const handleClick = () => {
22
+ setLoading(true);
23
+ setTimeout(() => {
24
+ setLoading(false);
25
+ }, 2000);
26
+ };
27
+ useEffect(() => {
28
+ if (args.placement === 'global') {
29
+ setLoading(false);
30
+ }
31
+ else {
32
+ setLoading(true);
33
+ }
34
+ }, [args.placement]);
35
+ return (_jsxs(Flex, { container: { justify: 'center', alignItems: 'center' }, as: StyledDemoWrap, children: [args.placement === 'global' && _jsx(Button, { onClick: handleClick, children: "Start loading" }, void 0), args.placement === 'inline' && _jsx(Text, { children: "Progress demo" }, void 0), _jsx(Progress, { variant: args.variant, placement: args.placement, message: args.message, visible: loading }, void 0)] }, void 0));
36
+ };
37
+ IndeterminateProgress.args = {
38
+ message: 'Loading'
39
+ };
40
+ export const DeterminateProgress = (args) => {
41
+ const [loading, setLoading] = useState(false);
42
+ const handleClick = () => {
43
+ setLoading(true);
44
+ setTimeout(() => {
45
+ setLoading(false);
46
+ }, 2000);
47
+ };
48
+ useEffect(() => {
49
+ if (args.placement === 'global') {
50
+ setLoading(false);
51
+ }
52
+ else {
53
+ setLoading(true);
54
+ }
55
+ }, [args.placement]);
56
+ return (_jsxs(Flex, { container: { justify: 'center', alignItems: 'center' }, as: StyledDemoWrap, children: [args.placement === 'global' && _jsx(Button, { onClick: handleClick, children: "Start loading" }, void 0), args.placement === 'inline' && _jsx(Text, { children: "Progress demo" }, void 0), _jsx(Progress, { value: args.value, variant: args.variant, placement: args.placement, message: args.message || `${args.value}%`, visible: loading }, void 0)] }, void 0));
57
+ };
58
+ DeterminateProgress.args = {
59
+ value: 67
60
+ };
61
+ DeterminateProgress.argTypes = {
62
+ value: { control: { type: 'number' } }
63
+ };
64
+ //# sourceMappingURL=Progress.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Progress.stories.js","sourceRoot":"","sources":["../../../src/core/Progress/Progress.stories.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE5C,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAiB,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAEtF,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,eAAe;IACb,KAAK,EAAE,eAAe;IACtB,SAAS,EAAE,QAAQ;IACnB,IAAI,EAAE;QACJ,OAAO,EAAE,MAAM;QACf,SAAS,EAAE,OAAO;QAClB,OAAO,EAAE,EAAE;KACZ;IACD,QAAQ,EAAE;QACR,OAAO,EAAE,EAAE,OAAO,EAAE,CAAC,MAAM,EAAE,KAAK,EAAE,UAAU,CAAC,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;QAC9E,SAAS,EAAE,EAAE,OAAO,EAAE,CAAC,OAAO,EAAE,QAAQ,EAAE,QAAQ,CAAC,EAAE,OAAO,EAAE,EAAE,IA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,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;CACvC,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\nimport { useEffect, useState } from 'react';\n\nimport { Button, Flex, Progress, ProgressProps, Text } from '@pega/cosmos-react-core';\n\nimport { StyledDemoWrap } from './Progress.styles';\n\nexport default {\n title: 'Core/Progress',\n component: Progress,\n args: {\n variant: 'ring',\n placement: 'local',\n message: ''\n },\n argTypes: {\n variant: { options: ['ring', 'bar', 'ellipsis'], control: { type: 'select' } },\n placement: { options: ['local', 'global', 'inline'], control: { type: 'select' } },\n message: { control: { type: 'text' } }\n }\n} as Meta;\n\nexport const IndeterminateProgress: Story<ProgressProps> = (args: ProgressProps) => {\n const [loading, setLoading] = useState(false);\n\n const handleClick = () => {\n setLoading(true);\n\n setTimeout(() => {\n setLoading(false);\n }, 2000);\n };\n\n useEffect(() => {\n if (args.placement === 'global') {\n setLoading(false);\n } else {\n setLoading(true);\n }\n }, [args.placement]);\n\n return (\n <Flex container={{ justify: 'center', alignItems: 'center' }} as={StyledDemoWrap}>\n {args.placement === 'global' && <Button onClick={handleClick}>Start loading</Button>}\n {args.placement === 'inline' && <Text>Progress demo</Text>}\n <Progress\n variant={args.variant}\n placement={args.placement}\n message={args.message}\n visible={loading}\n />\n </Flex>\n );\n};\n\nIndeterminateProgress.args = {\n message: 'Loading'\n};\n\nexport const DeterminateProgress: Story<ProgressProps> = (args: ProgressProps) => {\n const [loading, setLoading] = useState(false);\n\n const handleClick = () => {\n setLoading(true);\n\n setTimeout(() => {\n setLoading(false);\n }, 2000);\n };\n\n useEffect(() => {\n if (args.placement === 'global') {\n setLoading(false);\n } else {\n setLoading(true);\n }\n }, [args.placement]);\n\n return (\n <Flex container={{ justify: 'center', alignItems: 'center' }} as={StyledDemoWrap}>\n {args.placement === 'global' && <Button onClick={handleClick}>Start loading</Button>}\n {args.placement === 'inline' && <Text>Progress demo</Text>}\n <Progress\n value={args.value}\n variant={args.variant}\n placement={args.placement}\n message={args.message || `${args.value}%`}\n visible={loading}\n />\n </Flex>\n );\n};\n\nDeterminateProgress.args = {\n value: 67\n};\n\nDeterminateProgress.argTypes = {\n value: { control: { type: 'number' } }\n};\n"]}
@@ -0,0 +1,27 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { RadioButton } from '@pega/cosmos-react-core';
3
+ export default {
4
+ title: 'Core/RadioButton',
5
+ component: RadioButton,
6
+ args: {
7
+ status: undefined,
8
+ label: 'Choose me',
9
+ required: false,
10
+ disabled: false,
11
+ readOnly: false
12
+ },
13
+ argTypes: {
14
+ status: { options: [undefined, 'success', 'warning', 'error'], control: { type: 'select' } },
15
+ label: { control: { type: 'text' } },
16
+ required: { control: { type: 'boolean' } },
17
+ disabled: { control: { type: 'boolean' } },
18
+ readOnly: { control: { type: 'boolean' } }
19
+ }
20
+ };
21
+ export const DefaultRadioButton = (args) => {
22
+ return (_jsx(RadioButton, { status: args.status, label: args.label, required: args.required, disabled: args.disabled, readOnly: args.readOnly }, void 0));
23
+ };
24
+ export const RadioButtonCard = (args) => {
25
+ return (_jsx(RadioButton, { variant: 'card', status: args.status, label: args.label, required: args.required, disabled: args.disabled, readOnly: args.readOnly }, void 0));
26
+ };
27
+ //# sourceMappingURL=RadioButton.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RadioButton.stories.js","sourceRoot":"","sources":["../../../src/core/RadioButton/RadioButton.stories.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,WAAW,EAAmB,MAAM,yBAAyB,CAAC;AAEvE,eAAe;IACb,KAAK,EAAE,kBAAkB;IACzB,SAAS,EAAE,WAAW;IACtB,IAAI,EAAE;QACJ,MAAM,EAAE,SAAS;QACjB,KAAK,EAAE,WAAW;QAClB,QAAQ,EAAE,KAAK;QACf,QAAQ,EAAE,KAAK;QACf,QAAQ,EAAE,KAAK;KAChB;IACD,QAAQ,EAAE;QACR,MAAM,EAAE,EAAE,OAAO,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,OAAO,CAAC,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;QAC5F,KAAK,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;QACpC,QAAQ,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;QAC1C,QAAQ,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;QAC1C,QAAQ,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;KAC3C;CACM,CAAC;AAEV,MAAM,CAAC,MAAM,kBAAkB,GAA2B,CAAC,IAAqB,EAAE,EAAE;IAClF,OAAO,CACL,KAAC,WAAW,IACV,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,QAAQ,EAAE,IAAI,CAAC,QAAQ,WACvB,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAA2B,CAAC,IAAqB,EAAE,EAAE;IAC/E,OAAO,CACL,KAAC,WAAW,IACV,OAAO,EAAC,MAAM,EACd,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,QAAQ,EAAE,IAAI,CAAC,QAAQ,WACvB,CACH,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\n\nimport { RadioButton, RadioCheckProps } from '@pega/cosmos-react-core';\n\nexport default {\n title: 'Core/RadioButton',\n component: RadioButton,\n args: {\n status: undefined,\n label: 'Choose me',\n required: false,\n disabled: false,\n readOnly: false\n },\n argTypes: {\n status: { options: [undefined, 'success', 'warning', 'error'], control: { type: 'select' } },\n label: { control: { type: 'text' } },\n required: { control: { type: 'boolean' } },\n disabled: { control: { type: 'boolean' } },\n readOnly: { control: { type: 'boolean' } }\n }\n} as Meta;\n\nexport const DefaultRadioButton: Story<RadioCheckProps> = (args: RadioCheckProps) => {\n return (\n <RadioButton\n status={args.status}\n label={args.label}\n required={args.required}\n disabled={args.disabled}\n readOnly={args.readOnly}\n />\n );\n};\n\nexport const RadioButtonCard: Story<RadioCheckProps> = (args: RadioCheckProps) => {\n return (\n <RadioButton\n variant='card'\n status={args.status}\n label={args.label}\n required={args.required}\n disabled={args.disabled}\n readOnly={args.readOnly}\n />\n );\n};\n"]}
@@ -0,0 +1,34 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { FieldGroup, FieldValueList, Flex, RadioButton, RadioButtonGroup, Text } from '@pega/cosmos-react-core';
3
+ import { Paragraph, StyledImage } from './RadioButtonGroup.styles';
4
+ export default {
5
+ title: 'Core/RadioButtonGroup',
6
+ component: RadioButtonGroup,
7
+ args: {
8
+ labelHidden: false,
9
+ inline: false,
10
+ autoStack: true,
11
+ required: false,
12
+ disabled: false,
13
+ readOnly: false
14
+ },
15
+ argTypes: {
16
+ labelHidden: { control: { type: 'boolean' } },
17
+ inline: { control: { type: 'boolean' } },
18
+ autoStack: { control: { type: 'boolean' } },
19
+ required: { control: { type: 'boolean' } },
20
+ disabled: { control: { type: 'boolean' } },
21
+ readOnly: { control: { type: 'boolean' } }
22
+ }
23
+ };
24
+ export const RadioButtonGroupDemo = (args) => {
25
+ return (_jsxs(RadioButtonGroup, { label: 'What do you want to eat?', name: 'Fruit', labelHidden: args.labelHidden, inline: args.inline, autoStack: args.autoStack, required: args.required, disabled: args.disabled, readOnly: args.readOnly, children: [_jsx(RadioButton, { label: 'Banana', id: 'Banana', defaultChecked: true }, void 0), _jsx(RadioButton, { label: 'Apple', id: 'Apple' }, void 0), _jsx(RadioButton, { label: 'Mango', id: 'Mango' }, void 0), _jsx(RadioButton, { label: 'Orange', id: 'Orange' }, void 0)] }, void 0));
26
+ };
27
+ export const RadioButtonCardGroup = (args) => {
28
+ return (_jsxs(RadioButtonGroup, { variant: 'card', label: 'Which visuals appear satisfying?', labelHidden: args.labelHidden, inline: args.inline, autoStack: args.autoStack, required: args.required, disabled: args.disabled, readOnly: args.readOnly, children: [_jsx(RadioButton, { label: _jsxs(Flex, { container: { direction: 'column', gap: 1 }, children: [_jsx(Text, { variant: 'h4', children: "A paragraph" }, void 0), _jsx(Paragraph, { children: "This is a paragraph of text. It is meant to appear visually satisfying amongst the other options in this group." }, void 0)] }, void 0), id: 'paragraph', defaultChecked: true }, void 0), _jsx(RadioButton, { label: _jsxs(Flex, { container: { direction: 'column', gap: 1 }, children: [_jsx(Text, { variant: 'h4', children: "Space" }, void 0), _jsx(StyledImage, { src: 'https://thumbor.forbes.com/thumbor/960x0/https%3A%2F%2Fspecials-images.forbesimg.com%2Fdam%2Fimageserve%2F765877054%2F960x0.jpg%3Ffit%3Dscale', alt: 'space' }, void 0)] }, void 0), id: 'space-photo' }, void 0), _jsx(RadioButton, { label: _jsxs(Flex, { container: { gap: 1, alignItems: 'start' }, children: [_jsx(StyledImage, { src: 'https://thumbor.forbes.com/thumbor/960x0/https%3A%2F%2Fspecials-images.forbesimg.com%2Fdam%2Fimageserve%2F765877054%2F960x0.jpg%3Ffit%3Dscale', alt: 'space' }, void 0), _jsxs(Flex, { container: { direction: 'column', gap: 1 }, children: [_jsx(Text, { variant: 'h4', children: "Space" }, void 0), _jsx(Paragraph, { children: "Space is the final frontier. There is so much to discover within Cosmos!" }, void 0)] }, void 0)] }, void 0), id: 'cosmos' }, void 0), _jsx(RadioButton, { label: _jsx(FieldGroup, { name: 'Gold service plan', children: _jsx(FieldValueList, { fields: [
29
+ { id: 'service', name: 'Service length', value: '1 year' },
30
+ { id: 'monthly-cost', name: 'Monthly cost', value: '$180.00' },
31
+ { id: 'total-cost', name: 'Total cost', value: '$2,160.00' }
32
+ ] }, void 0) }, void 0), id: 'phone-plan' }, void 0)] }, void 0));
33
+ };
34
+ //# sourceMappingURL=RadioButtonGroup.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RadioButtonGroup.stories.js","sourceRoot":"","sources":["../../../src/core/RadioButtonGroup/RadioButtonGroup.stories.tsx"],"names":[],"mappings":";AAEA,OAAO,EACL,UAAU,EACV,cAAc,EACd,IAAI,EACJ,WAAW,EACX,gBAAgB,EAEhB,IAAI,EACL,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAEnE,eAAe;IACb,KAAK,EAAE,uBAAuB;IAC9B,SAAS,EAAE,gBAAgB;IAC3B,IAAI,EAAE;QACJ,WAAW,EAAE,KAAK;QAClB,MAAM,EAAE,KAAK;QACb,SAAS,EAAE,IAAI;QACf,QAAQ,EAAE,KAAK;QACf,QAAQ,EAAE,KAAK;QACf,QAAQ,EAAE,KAAK;KAChB;IACD,QAAQ,EAAE;QACR,WAAW,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;QAC7C,MAAM,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;QACxC,SAAS,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;QAC3C,QAAQ,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;QAC1C,QAAQ,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;QAC1C,QAAQ,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;KAC3C;CACM,CAAC;AAEV,MAAM,CAAC,MAAM,oBAAoB,GAAgC,CAAC,IAA0B,EAAE,EAAE;IAC9F,OAAO,CACL,MAAC,gBAAgB,IACf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KAAC,WAAW,IACV,KAAK,EACH,MAAC,IAAI,IAAC,SAAS,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,EAAE,aAC9C,KAAC,IAAI,IAAC,OAAO,EAAC,IAAI,8BAAa,EAC/B,KAAC,WAAW,IACV,GAAG,EAAC,+IAA+I,EACnJ,GAAG,EAAC,OAAO,WACX,YACG,EAET,EAAE,EAAC,aAAa,WAChB,EACF,KAAC,WAAW,IACV,KAAK,EACH,MAAC,IAAI,IAAC,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,UAAU,EAAE,OAAO,EAAE,aAC9C,KAAC,WAAW,IACV,GAAG,EAAC,+IAA+I,EACnJ,GAAG,EAAC,OAAO,WACX,EACF,MAAC,IAAI,IAAC,SAAS,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,EAAE,aAC9C,KAAC,IAAI,IAAC,OAAO,EAAC,IAAI,8BAAa,EAC/B,KAAC,SAAS,mGAEE,YACP,YACF,EAET,EAAE,EAAC,QAAQ,WACX,EACF,KAAC,WAAW,IACV,KAAK,EACH,KAAC,UAAU,IAAC,IAAI,EAAC,mBAAmB,YAClC,KAAC,cAAc,IACb,MAAM,EAAE;4BACN,EAAE,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,gBAAgB,EAAE,KAAK,EAAE,QAAQ,EAAE;4BAC1D,EAAE,EAAE,EAAE,cAAc,EAAE,IAAI,EAAE,cAAc,EAAE,KAAK,EAAE,SAAS,EAAE;4BAC9D,EAAE,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,WAAW,EAAE;yBAC7D,WACD,WACS,EAEf,EAAE,EAAC,YAAY,WACf,YACe,CACpB,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\n\nimport {\n FieldGroup,\n FieldValueList,\n Flex,\n RadioButton,\n RadioButtonGroup,\n RadioCheckGroupProps,\n Text\n} from '@pega/cosmos-react-core';\n\nimport { Paragraph, StyledImage } from './RadioButtonGroup.styles';\n\nexport default {\n title: 'Core/RadioButtonGroup',\n component: RadioButtonGroup,\n args: {\n labelHidden: false,\n inline: false,\n autoStack: true,\n required: false,\n disabled: false,\n readOnly: false\n },\n argTypes: {\n labelHidden: { control: { type: 'boolean' } },\n inline: { control: { type: 'boolean' } },\n autoStack: { control: { type: 'boolean' } },\n required: { control: { type: 'boolean' } },\n disabled: { control: { type: 'boolean' } },\n readOnly: { control: { type: 'boolean' } }\n }\n} as Meta;\n\nexport const RadioButtonGroupDemo: Story<RadioCheckGroupProps> = (args: RadioCheckGroupProps) => {\n return (\n <RadioButtonGroup\n label='What do you want to eat?'\n name='Fruit'\n labelHidden={args.labelHidden}\n inline={args.inline}\n autoStack={args.autoStack}\n required={args.required}\n disabled={args.disabled}\n readOnly={args.readOnly}\n >\n <RadioButton label='Banana' id='Banana' defaultChecked />\n <RadioButton label='Apple' id='Apple' />\n <RadioButton label='Mango' id='Mango' />\n <RadioButton label='Orange' id='Orange' />\n </RadioButtonGroup>\n );\n};\n\nexport const RadioButtonCardGroup: Story<RadioCheckGroupProps> = (args: RadioCheckGroupProps) => {\n return (\n <RadioButtonGroup\n variant='card'\n label='Which visuals appear satisfying?'\n labelHidden={args.labelHidden}\n inline={args.inline}\n autoStack={args.autoStack}\n required={args.required}\n disabled={args.disabled}\n readOnly={args.readOnly}\n >\n <RadioButton\n label={\n <Flex container={{ direction: 'column', gap: 1 }}>\n <Text variant='h4'>A paragraph</Text>\n <Paragraph>\n This is a paragraph of text. It is meant to appear visually satisfying amongst the\n other options in this group.\n </Paragraph>\n </Flex>\n }\n id='paragraph'\n defaultChecked\n />\n <RadioButton\n label={\n <Flex container={{ direction: 'column', gap: 1 }}>\n <Text variant='h4'>Space</Text>\n <StyledImage\n src='https://thumbor.forbes.com/thumbor/960x0/https%3A%2F%2Fspecials-images.forbesimg.com%2Fdam%2Fimageserve%2F765877054%2F960x0.jpg%3Ffit%3Dscale'\n alt='space'\n />\n </Flex>\n }\n id='space-photo'\n />\n <RadioButton\n label={\n <Flex container={{ gap: 1, alignItems: 'start' }}>\n <StyledImage\n src='https://thumbor.forbes.com/thumbor/960x0/https%3A%2F%2Fspecials-images.forbesimg.com%2Fdam%2Fimageserve%2F765877054%2F960x0.jpg%3Ffit%3Dscale'\n alt='space'\n />\n <Flex container={{ direction: 'column', gap: 1 }}>\n <Text variant='h4'>Space</Text>\n <Paragraph>\n Space is the final frontier. There is so much to discover within Cosmos!\n </Paragraph>\n </Flex>\n </Flex>\n }\n id='cosmos'\n />\n <RadioButton\n label={\n <FieldGroup name='Gold service plan'>\n <FieldValueList\n fields={[\n { id: 'service', name: 'Service length', value: '1 year' },\n { id: 'monthly-cost', name: 'Monthly cost', value: '$180.00' },\n { id: 'total-cost', name: 'Total cost', value: '$2,160.00' }\n ]}\n />\n </FieldGroup>\n }\n id='phone-plan'\n />\n </RadioButtonGroup>\n );\n};\n"]}
@@ -0,0 +1,22 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { Rating } from '@pega/cosmos-react-core';
3
+ export default {
4
+ title: 'Core/Rating',
5
+ component: Rating
6
+ };
7
+ export const RatingDemo = (args) => {
8
+ return (_jsx(Rating, { ...args, maxRating: args.maxRating, value: args.value, metaInfo: args.metaInfo, "aria-label": args['aria-label'] }, void 0));
9
+ };
10
+ RatingDemo.args = {
11
+ maxRating: 5,
12
+ value: 3.6,
13
+ metaInfo: '52 reviews',
14
+ 'aria-label': '3.6 out of 5 stars based on 52 reviews'
15
+ };
16
+ RatingDemo.argTypes = {
17
+ maxRating: { control: { type: 'number' } },
18
+ value: { control: { type: 'number' } },
19
+ metaInfo: { control: { type: 'text' } },
20
+ 'aria-label': { control: { type: 'text' } }
21
+ };
22
+ //# sourceMappingURL=Rating.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Rating.stories.js","sourceRoot":"","sources":["../../../src/core/Rating/Rating.stories.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,MAAM,EAAe,MAAM,yBAAyB,CAAC;AAE9D,eAAe;IACb,KAAK,EAAE,aAAa;IACpB,SAAS,EAAE,MAAM;CACV,CAAC;AAEV,MAAM,CAAC,MAAM,UAAU,GAAuB,CAAC,IAAiB,EAAE,EAAE;IAClE,OAAO,CACL,KAAC,MAAM,OACD,IAAI,EACR,SAAS,EAAE,IAAI,CAAC,SAAS,EACzB,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,QAAQ,EAAE,IAAI,CAAC,QAAQ,gBACX,IAAI,CAAC,YAAY,CAAC,WAC9B,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,UAAU,CAAC,IAAI,GAAG;IAChB,SAAS,EAAE,CAAC;IACZ,KAAK,EAAE,GAAG;IACV,QAAQ,EAAE,YAAY;IACtB,YAAY,EAAE,wCAAwC;CACvD,CAAC;AAEF,UAAU,CAAC,QAAQ,GAAG;IACpB,SAAS,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;IAC1C,KAAK,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;IACtC,QAAQ,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;IACvC,YAAY,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;CAC5C,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\n\nimport { Rating, RatingProps } from '@pega/cosmos-react-core';\n\nexport default {\n title: 'Core/Rating',\n component: Rating\n} as Meta;\n\nexport const RatingDemo: Story<RatingProps> = (args: RatingProps) => {\n return (\n <Rating\n {...args}\n maxRating={args.maxRating}\n value={args.value}\n metaInfo={args.metaInfo}\n aria-label={args['aria-label']}\n />\n );\n};\n\nRatingDemo.args = {\n maxRating: 5,\n value: 3.6,\n metaInfo: '52 reviews',\n 'aria-label': '3.6 out of 5 stars based on 52 reviews'\n};\n\nRatingDemo.argTypes = {\n maxRating: { control: { type: 'number' } },\n value: { control: { type: 'number' } },\n metaInfo: { control: { type: 'text' } },\n 'aria-label': { control: { type: 'text' } }\n};\n"]}
@@ -0,0 +1,16 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { SearchInput } from '@pega/cosmos-react-core';
3
+ export default {
4
+ title: 'Core/SearchInput',
5
+ component: SearchInput
6
+ };
7
+ export const SearchInputDemo = (args) => {
8
+ return _jsx(SearchInput, { ...args, placeholder: args.placeholder }, void 0);
9
+ };
10
+ SearchInputDemo.args = {
11
+ placeholder: 'Search…'
12
+ };
13
+ SearchInputDemo.argTypes = {
14
+ placeholder: { control: { type: 'text' } }
15
+ };
16
+ //# sourceMappingURL=SearchInput.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SearchInput.stories.js","sourceRoot":"","sources":["../../../src/core/SearchInput/SearchInput.stories.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,WAAW,EAAoB,MAAM,yBAAyB,CAAC;AAExE,eAAe;IACb,KAAK,EAAE,kBAAkB;IACzB,SAAS,EAAE,WAAW;CACf,CAAC;AAEV,MAAM,CAAC,MAAM,eAAe,GAA4B,CAAC,IAAsB,EAAE,EAAE;IACjF,OAAO,KAAC,WAAW,OAAK,IAAI,EAAE,WAAW,EAAE,IAAI,CAAC,WAAW,WAAI,CAAC;AAClE,CAAC,CAAC;AAEF,eAAe,CAAC,IAAI,GAAG;IACrB,WAAW,EAAE,SAAS;CACvB,CAAC;AAEF,eAAe,CAAC,QAAQ,GAAG;IACzB,WAAW,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;CAC3C,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\n\nimport { SearchInput, SearchInputProps } from '@pega/cosmos-react-core';\n\nexport default {\n title: 'Core/SearchInput',\n component: SearchInput\n} as Meta;\n\nexport const SearchInputDemo: Story<SearchInputProps> = (args: SearchInputProps) => {\n return <SearchInput {...args} placeholder={args.placeholder} />;\n};\n\nSearchInputDemo.args = {\n placeholder: 'Search…'\n};\n\nSearchInputDemo.argTypes = {\n placeholder: { control: { type: 'text' } }\n};\n"]}
@@ -0,0 +1,38 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Select, Option } from '@pega/cosmos-react-core';
3
+ export default {
4
+ title: 'Core/Select',
5
+ component: Select
6
+ };
7
+ export const SelectDemo = (args) => {
8
+ return (_jsxs(Select, { id: 'select-demo', label: args.label, labelHidden: args.labelHidden, info: args.info, status: args.status, required: args.required, disabled: args.disabled, readOnly: args.readOnly, actions: args.showAction
9
+ ? [
10
+ {
11
+ id: 'config',
12
+ text: 'Configure',
13
+ icon: 'gear'
14
+ }
15
+ ]
16
+ : undefined, children: [_jsx(Option, { children: "Choose an option\u2026" }, void 0), _jsx(Option, { children: "Option 1" }, void 0), _jsx(Option, { children: "Option 2" }, void 0), _jsx(Option, { children: "Option 3" }, void 0)] }, void 0));
17
+ };
18
+ SelectDemo.args = {
19
+ showAction: false,
20
+ label: 'Select input',
21
+ labelHidden: false,
22
+ info: 'Choose a value',
23
+ status: undefined,
24
+ required: false,
25
+ disabled: false,
26
+ readOnly: false
27
+ };
28
+ SelectDemo.argTypes = {
29
+ showAction: { control: { type: 'boolean' } },
30
+ label: { control: { type: 'text' } },
31
+ labelHidden: { control: { type: 'boolean' } },
32
+ info: { control: { type: 'text' } },
33
+ status: { options: [undefined, 'success', 'warning', 'error'], control: { type: 'select' } },
34
+ required: { control: { type: 'boolean' } },
35
+ disabled: { control: { type: 'boolean' } },
36
+ readOnly: { control: { type: 'boolean' } }
37
+ };
38
+ //# sourceMappingURL=Select.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Select.stories.js","sourceRoot":"","sources":["../../../src/core/Select/Select.stories.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,MAAM,EAAe,MAAM,EAAE,MAAM,yBAAyB,CAAC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AAE,EAAE;IAC7C,IAAI,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;IACnC,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';\n\nimport { Select, SelectProps, Option } from '@pega/cosmos-react-core';\n\nexport default {\n title: 'Core/Select',\n component: Select\n} as Meta;\n\ninterface SelectStoryProps extends SelectProps {\n showAction: boolean;\n}\n\nexport const SelectDemo: Story<SelectStoryProps> = (args: SelectStoryProps) => {\n return (\n <Select\n id='select-demo'\n label={args.label}\n labelHidden={args.labelHidden}\n info={args.info}\n status={args.status}\n required={args.required}\n disabled={args.disabled}\n readOnly={args.readOnly}\n actions={\n args.showAction\n ? [\n {\n id: 'config',\n text: 'Configure',\n icon: 'gear'\n }\n ]\n : undefined\n }\n >\n <Option>Choose an option…</Option>\n <Option>Option 1</Option>\n <Option>Option 2</Option>\n <Option>Option 3</Option>\n </Select>\n );\n};\n\nSelectDemo.args = {\n showAction: false,\n label: 'Select input',\n labelHidden: false,\n info: 'Choose a value',\n status: undefined,\n required: false,\n disabled: false,\n readOnly: false\n};\n\nSelectDemo.argTypes = {\n showAction: { control: { type: 'boolean' } },\n label: { control: { type: 'text' } },\n labelHidden: { control: { type: 'boolean' } },\n info: { control: { type: 'text' } },\n status: { options: [undefined, 'success', 'warning', 'error'], control: { type: 'select' } },\n required: { control: { type: 'boolean' } },\n disabled: { control: { type: 'boolean' } },\n readOnly: { control: { type: 'boolean' } }\n};\n"]}
@@ -0,0 +1,40 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { Sentiment } from '@pega/cosmos-react-core';
3
+ export default {
4
+ title: 'Core/Sentiment',
5
+ component: Sentiment
6
+ };
7
+ export const SentimentDemo = (args) => {
8
+ const icons = {
9
+ positive: args.positiveIcon,
10
+ neutral: args.neutralIcon,
11
+ negative: args.negativeIcon
12
+ };
13
+ const labels = {
14
+ positive: args.positiveLabel,
15
+ neutral: args.neutralLabel,
16
+ negative: args.negativeLabel
17
+ };
18
+ return (_jsx(Sentiment, { variant: args.variant, labelHidden: args.labelHidden, icons: icons, labels: labels }, void 0));
19
+ };
20
+ SentimentDemo.args = {
21
+ variant: 'positive',
22
+ labelHidden: false,
23
+ positiveLabel: 'Yay!',
24
+ positiveIcon: 'face-happy-solid',
25
+ neutralLabel: 'Hm…',
26
+ neutralIcon: 'face-blank-solid',
27
+ negativeLabel: 'Uh-oh!',
28
+ negativeIcon: 'face-sad-solid'
29
+ };
30
+ SentimentDemo.argTypes = {
31
+ variant: { options: ['positive', 'neutral', 'negative'], control: { type: 'select' } },
32
+ labelHidden: { control: { type: 'boolean' } },
33
+ positiveLabel: { control: { type: 'text' } },
34
+ positiveIcon: { control: { type: 'text' } },
35
+ neutralLabel: { control: { type: 'text' } },
36
+ neutralIcon: { control: { type: 'text' } },
37
+ negativeLabel: { control: { type: 'text' } },
38
+ negativeIcon: { control: { type: 'text' } }
39
+ };
40
+ //# sourceMappingURL=Sentiment.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Sentiment.stories.js","sourceRoot":"","sources":["../../../src/core/Sentiment/Sentiment.stories.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,SAAS,EAAkB,MAAM,yBAAyB,CAAC;AAEpE,eAAe;IACb,KAAK,EAAE,gBAAgB;IACvB,SAAS,EAAE,SAAS;CACb,CAAC;AAWV,MAAM,CAAC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C3C,WAAW,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;IAC1C,aAAa,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;IAC5C,YAAY,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;CAC5C,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\n\nimport { Sentiment, SentimentProps } from '@pega/cosmos-react-core';\n\nexport default {\n title: 'Core/Sentiment',\n component: Sentiment\n} as Meta;\n\ninterface SentimentStoryProps extends SentimentProps {\n positiveLabel: string;\n neutralLabel: string;\n negativeLabel: string;\n positiveIcon: string;\n neutralIcon: string;\n negativeIcon: string;\n}\n\nexport const SentimentDemo: Story<SentimentStoryProps> = (args: SentimentStoryProps) => {\n const icons = {\n positive: args.positiveIcon,\n neutral: args.neutralIcon,\n negative: args.negativeIcon\n };\n\n const labels = {\n positive: args.positiveLabel,\n neutral: args.neutralLabel,\n negative: args.negativeLabel\n };\n\n return (\n <Sentiment\n variant={args.variant}\n labelHidden={args.labelHidden}\n icons={icons}\n labels={labels}\n />\n );\n};\n\nSentimentDemo.args = {\n variant: 'positive',\n labelHidden: false,\n positiveLabel: 'Yay!',\n positiveIcon: 'face-happy-solid',\n neutralLabel: 'Hm…',\n neutralIcon: 'face-blank-solid',\n negativeLabel: 'Uh-oh!',\n negativeIcon: 'face-sad-solid'\n};\n\nSentimentDemo.argTypes = {\n variant: { options: ['positive', 'neutral', 'negative'], control: { type: 'select' } },\n labelHidden: { control: { type: 'boolean' } },\n positiveLabel: { control: { type: 'text' } },\n positiveIcon: { control: { type: 'text' } },\n neutralLabel: { control: { type: 'text' } },\n neutralIcon: { control: { type: 'text' } },\n negativeLabel: { control: { type: 'text' } },\n negativeIcon: { control: { type: 'text' } }\n};\n"]}
@@ -0,0 +1,59 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { useState } from 'react';
3
+ import { Slider } from '@pega/cosmos-react-core';
4
+ export default {
5
+ title: 'Core/Slider',
6
+ component: Slider
7
+ };
8
+ export const SliderDemo = (args) => {
9
+ const [value, setValue] = useState(args.value);
10
+ let ticksObject = args.ticks;
11
+ if (args.max > args.min && !ticksObject) {
12
+ ticksObject = {};
13
+ const numTicks = Math.floor((args.max - args.min) / (args.step || 1)) + 1;
14
+ Array(numTicks)
15
+ .fill(0)
16
+ .map((_, index) => args.min + index * args.step)
17
+ .forEach(tick => {
18
+ ticksObject[tick] = tick.toString();
19
+ });
20
+ }
21
+ return (_jsx(Slider, { orientation: args.orientation, step: args.step, min: args.min, max: args.max, ticks: ticksObject, showProgress: args.showProgress, preview: args.preview, showInput: args.showInput, label: args.label, labelHidden: args.labelHidden, info: args.info, status: args.status, required: args.required, disabled: args.disabled, readOnly: args.readOnly, value: value, onChange: (changeValue) => setValue(changeValue) }, void 0));
22
+ };
23
+ SliderDemo.args = {
24
+ orientation: 'vertical',
25
+ step: 1,
26
+ min: 0,
27
+ max: 10,
28
+ value: 5,
29
+ ticks: undefined,
30
+ showProgress: true,
31
+ preview: false,
32
+ showInput: true,
33
+ label: 'Slider input',
34
+ labelHidden: false,
35
+ info: 'Pick a value',
36
+ status: undefined,
37
+ required: false,
38
+ disabled: false,
39
+ readOnly: false
40
+ };
41
+ SliderDemo.argTypes = {
42
+ orientation: { options: ['vertical', 'horizontal'], control: { type: 'inline-radio' } },
43
+ step: { control: { type: 'number' } },
44
+ min: { control: { type: 'number' } },
45
+ max: { control: { type: 'number' } },
46
+ value: { control: { type: 'number' } },
47
+ ticks: { control: { type: 'object' } },
48
+ showProgress: { control: { type: 'boolean' } },
49
+ preview: { control: { type: 'boolean' } },
50
+ showInput: { control: { type: 'boolean' } },
51
+ label: { control: { type: 'text' } },
52
+ labelHidden: { control: { type: 'boolean' } },
53
+ info: { control: { type: 'text' } },
54
+ status: { options: [undefined, 'success', 'warning', 'error'], control: { type: 'select' } },
55
+ required: { control: { type: 'boolean' } },
56
+ disabled: { control: { type: 'boolean' } },
57
+ readOnly: { control: { type: 'boolean' } }
58
+ };
59
+ //# sourceMappingURL=Slider.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Slider.stories.js","sourceRoot":"","sources":["../../../src/core/Slider/Slider.stories.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjC,OAAO,EAAE,MAAM,EAAe,MAAM,yBAAyB,CAAC;AAE9D,eAAe;IACb,KAAK,EAAE,aAAa;IACpB,SAAS,EAAE,MAAM;CACV,CAAC;AASV,MAAM,CAAC,MAAM,UAAU,GAA4B,CAAC,IAAsB,EAAE,EAAE;IAC5E,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAC/C,IAAI,WAAW,GAAyB,IAAI,CAAC,KAAK,CAAC;IAEnD,IAAI,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,IAAI,CAAC,WAAW,EAAE;QACvC,WAAW,GAAG,EAAE,CAAC;QACjB,MAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;QAC1E,KAAK,CAAC,QAAQ,CAAC;aACZ,IAAI,CAAC,CAAC,CAAC;aACP,GAAG,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,GAAG,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC;aAC/C,OAAO,CAAC,IAAI,CAAC,EAAE;YACd,WAAY,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAC;QACvC,CAAC,CAAC,CAAC;KACN;IAED,OAAO,CACL,KAAC,MAAM,IACL,WAAW,EAAE,IAAI,CAAC,WAAW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@pega/cosmos-react-core';\n\nexport default {\n title: 'Core/Slider',\n component: Slider\n} as Meta;\n\n// Necessary to prevent linting undefined errors since these will never be undefined in the demo\ninterface SliderStoryProps extends SliderProps {\n min: number;\n max: number;\n step: number;\n}\n\nexport const SliderDemo: Story<SliderStoryProps> = (args: SliderStoryProps) => {\n const [value, setValue] = useState(args.value);\n let ticksObject: SliderProps['ticks'] = args.ticks;\n\n if (args.max > args.min && !ticksObject) {\n ticksObject = {};\n const numTicks = Math.floor((args.max - args.min) / (args.step || 1)) + 1;\n Array(numTicks)\n .fill(0)\n .map((_, index) => args.min + index * args.step)\n .forEach(tick => {\n ticksObject![tick] = tick.toString();\n });\n }\n\n return (\n <Slider\n orientation={args.orientation}\n step={args.step}\n min={args.min}\n max={args.max}\n ticks={ticksObject}\n showProgress={args.showProgress}\n preview={args.preview}\n showInput={args.showInput}\n label={args.label}\n labelHidden={args.labelHidden}\n info={args.info}\n status={args.status}\n required={args.required}\n disabled={args.disabled}\n readOnly={args.readOnly}\n value={value}\n onChange={(changeValue: number) => setValue(changeValue)}\n />\n );\n};\n\nSliderDemo.args = {\n orientation: 'vertical',\n step: 1,\n min: 0,\n max: 10,\n value: 5,\n ticks: undefined,\n showProgress: true,\n preview: false,\n showInput: true,\n label: 'Slider input',\n labelHidden: false,\n info: 'Pick a value',\n status: undefined,\n required: false,\n disabled: false,\n readOnly: false\n};\n\nSliderDemo.argTypes = {\n orientation: { options: ['vertical', 'horizontal'], control: { type: 'inline-radio' } },\n step: { control: { type: 'number' } },\n min: { control: { type: 'number' } },\n max: { control: { type: 'number' } },\n value: { control: { type: 'number' } },\n ticks: { control: { type: 'object' } },\n showProgress: { control: { type: 'boolean' } },\n preview: { control: { type: 'boolean' } },\n showInput: { control: { type: 'boolean' } },\n label: { control: { type: 'text' } },\n labelHidden: { control: { type: 'boolean' } },\n info: { control: { type: 'text' } },\n status: { options: [undefined, 'success', 'warning', 'error'], control: { type: 'select' } },\n required: { control: { type: 'boolean' } },\n disabled: { control: { type: 'boolean' } },\n readOnly: { control: { type: 'boolean' } }\n};\n"]}
@@ -0,0 +1,32 @@
1
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Avatar, Link, MenuButton, MetaList, Status, SummaryItem } from '@pega/cosmos-react-core';
3
+ export default {
4
+ title: 'Core/SummaryItem',
5
+ component: SummaryItem,
6
+ parameters: {
7
+ layout: 'centered'
8
+ }
9
+ };
10
+ export const SummaryItemDemo = (args) => {
11
+ return (_jsx(SummaryItem, { primary: 'This is the primary info', secondary: args.showSecondary ? (_jsx(MetaList, { items: [
12
+ 'email@example.com',
13
+ _jsx(Status, { variant: 'success', children: "Verified" }, void 0),
14
+ _jsxs(_Fragment, { children: ["Go to", ' ', _jsx(Link, { href: 'https://www.pega.com', target: '_blank', children: "Pega.com" }, void 0)] }, void 0)
15
+ ] }, void 0)) : undefined, visual: args.showVisual ? (_jsx(Avatar, { size: 'l', name: 'Random Man', imageSrc: 'https://randomuser.me/api/portraits/men/41.jpg' }, void 0)) : undefined, actions: args.showActions ? (_jsx(MenuButton, { text: 'Options', variant: 'simple', icon: 'more', iconOnly: true, menu: {
16
+ items: ['Option Number 1', 'Option Number 2', 'Option Number 3'].map(name => ({
17
+ id: name,
18
+ primary: name
19
+ }))
20
+ } }, void 0)) : undefined }, void 0));
21
+ };
22
+ SummaryItemDemo.args = {
23
+ showSecondary: true,
24
+ showVisual: true,
25
+ showActions: true
26
+ };
27
+ SummaryItemDemo.argTypes = {
28
+ showSecondary: { control: { type: 'boolean' } },
29
+ showVisual: { control: { type: 'boolean' } },
30
+ showActions: { control: { type: 'boolean' } }
31
+ };
32
+ //# sourceMappingURL=SummaryItem.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SummaryItem.stories.js","sourceRoot":"","sources":["../../../src/core/SummaryItem/SummaryItem.stories.tsx"],"names":[],"mappings":";AAEA,OAAO,EACL,MAAM,EACN,IAAI,EACJ,UAAU,EACV,Q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;IACrB,aAAa,EAAE,IAAI;IACnB,UAAU,EAAE,IAAI;IAChB,WAAW,EAAE,IAAI;CAClB,CAAC;AAEF,eAAe,CAAC,QAAQ,GAAG;IACzB,aAAa,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IAC/C,UAAU,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IAC5C,WAAW,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;CAC9C,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\n\nimport {\n Avatar,\n Link,\n MenuButton,\n MetaList,\n Status,\n SummaryItem,\n SummaryItemProps\n} from '@pega/cosmos-react-core';\n\nexport default {\n title: 'Core/SummaryItem',\n component: SummaryItem,\n parameters: {\n layout: 'centered'\n }\n} as Meta;\n\ninterface SummaryItemStoryProps extends SummaryItemProps {\n showSecondary: boolean;\n showVisual: boolean;\n showActions: boolean;\n}\n\nexport const SummaryItemDemo: Story<SummaryItemStoryProps> = (args: SummaryItemStoryProps) => {\n return (\n <SummaryItem\n primary='This is the primary info'\n secondary={\n args.showSecondary ? (\n <MetaList\n items={[\n 'email@example.com',\n <Status variant='success'>Verified</Status>,\n <>\n Go to{' '}\n <Link href='https://www.pega.com' target='_blank'>\n Pega.com\n </Link>\n </>\n ]}\n />\n ) : undefined\n }\n visual={\n args.showVisual ? (\n <Avatar\n size='l'\n name='Random Man'\n imageSrc='https://randomuser.me/api/portraits/men/41.jpg'\n />\n ) : undefined\n }\n actions={\n args.showActions ? (\n <MenuButton\n text='Options'\n variant='simple'\n icon='more'\n iconOnly\n menu={{\n items: ['Option Number 1', 'Option Number 2', 'Option Number 3'].map(name => ({\n id: name,\n primary: name\n }))\n }}\n />\n ) : undefined\n }\n />\n );\n};\n\nSummaryItemDemo.args = {\n showSecondary: true,\n showVisual: true,\n showActions: true\n};\n\nSummaryItemDemo.argTypes = {\n showSecondary: { control: { type: 'boolean' } },\n showVisual: { control: { type: 'boolean' } },\n showActions: { control: { type: 'boolean' } }\n};\n"]}
@@ -0,0 +1,34 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { useEffect, useState } from 'react';
3
+ import { Avatar, EmailDisplay, useAfterInitialEffect } from '@pega/cosmos-react-core';
4
+ export const getMockUsers = async (limit = 3, fields = ['name', 'email', 'picture']) => {
5
+ return fetch(`https://randomuser.me/api/?results=${limit}&inc=${fields.join()}`).then(res => res.json());
6
+ };
7
+ const getMockListItem = ({ name: { first: firstName, last: lastName }, email, picture: { thumbnail } }) => {
8
+ const fullName = `${firstName} ${lastName}`;
9
+ return {
10
+ data: {
11
+ id: email,
12
+ firstName,
13
+ lastName,
14
+ email,
15
+ thumbnail
16
+ },
17
+ id: email,
18
+ primary: fullName,
19
+ secondary: (_jsx("div", { children: _jsx(EmailDisplay, { value: email }, void 0) }, void 0)),
20
+ visual: _jsx(Avatar, { size: 'l', name: fullName, imageSrc: thumbnail }, void 0)
21
+ };
22
+ };
23
+ export const useMockListData = (cb, { count } = { count: undefined }) => {
24
+ const [items, setItems] = useState([]);
25
+ useEffect(() => {
26
+ (async () => {
27
+ const { results } = await getMockUsers(count);
28
+ setItems(results.map(getMockListItem));
29
+ })();
30
+ }, [count]);
31
+ useAfterInitialEffect(cb, [items]);
32
+ return [items, setItems];
33
+ };
34
+ //# sourceMappingURL=SummaryList.mocks.js.map