@pega/cosmos-react-demos 4.0.0-dev.20.0 → 4.0.0-dev.22.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 (993) hide show
  1. package/jsx/build/AppShell/AppShell.stories.d.ts +5 -5
  2. package/jsx/build/AppShell/AppShell.stories.d.ts.map +1 -1
  3. package/jsx/build/AppShell/AppShell.stories.jsx.map +1 -1
  4. package/jsx/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts +3 -3
  5. package/jsx/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts.map +1 -1
  6. package/jsx/build/DynamicContentEditor/DynamicContentEditor.stories.jsx.map +1 -1
  7. package/jsx/build/ExpressionBuilder/ExpressionBuilder.stories.d.ts +8 -8
  8. package/jsx/build/ExpressionBuilder/ExpressionBuilder.stories.d.ts.map +1 -1
  9. package/jsx/build/ExpressionBuilder/ExpressionBuilder.stories.jsx +1 -2
  10. package/jsx/build/ExpressionBuilder/ExpressionBuilder.stories.jsx.map +1 -1
  11. package/jsx/build/FlowModeller/FlowModeller.stories.d.ts +5 -5
  12. package/jsx/build/FlowModeller/FlowModeller.stories.d.ts.map +1 -1
  13. package/jsx/build/FlowModeller/FlowModeller.stories.jsx.map +1 -1
  14. package/jsx/build/ItemLibrary/LibraryPicker.stories.d.ts +3 -3
  15. package/jsx/build/ItemLibrary/LibraryPicker.stories.d.ts.map +1 -1
  16. package/jsx/build/ItemLibrary/LibraryPicker.stories.jsx +1 -2
  17. package/jsx/build/ItemLibrary/LibraryPicker.stories.jsx.map +1 -1
  18. package/jsx/build/LifeCycle/LifeCycle.stories.d.ts +6 -6
  19. package/jsx/build/LifeCycle/LifeCycle.stories.d.ts.map +1 -1
  20. package/jsx/build/LifeCycle/LifeCycle.stories.jsx.map +1 -1
  21. package/jsx/build/MobileBuildSummary/MobileBuildSummary.stories.d.ts +3 -3
  22. package/jsx/build/MobileBuildSummary/MobileBuildSummary.stories.d.ts.map +1 -1
  23. package/jsx/build/MobileBuildSummary/MobileBuildSummary.stories.jsx.map +1 -1
  24. package/jsx/build/ObjectSelect/ObjectSelect.stories.d.ts +6 -6
  25. package/jsx/build/ObjectSelect/ObjectSelect.stories.d.ts.map +1 -1
  26. package/jsx/build/ObjectSelect/ObjectSelect.stories.jsx.map +1 -1
  27. package/jsx/build/PageBanner/PageBanner.stories.d.ts +5 -5
  28. package/jsx/build/PageBanner/PageBanner.stories.d.ts.map +1 -1
  29. package/jsx/build/PageBanner/PageBanner.stories.jsx.map +1 -1
  30. package/jsx/build/PageTemplates/GalleryPage.stories.d.ts +4 -4
  31. package/jsx/build/PageTemplates/GalleryPage.stories.d.ts.map +1 -1
  32. package/jsx/build/PageTemplates/GalleryPage.stories.jsx.map +1 -1
  33. package/jsx/build/PageTemplates/PageTemplates.stories.d.ts +5 -5
  34. package/jsx/build/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
  35. package/jsx/build/PageTemplates/PageTemplates.stories.jsx.map +1 -1
  36. package/jsx/build/PageTemplates/ShowcasePage.stories.d.ts +5 -5
  37. package/jsx/build/PageTemplates/ShowcasePage.stories.d.ts.map +1 -1
  38. package/jsx/build/PageTemplates/ShowcasePage.stories.jsx.map +1 -1
  39. package/jsx/build/Workbench/Workbench.stories.d.ts +4 -4
  40. package/jsx/build/Workbench/Workbench.stories.d.ts.map +1 -1
  41. package/jsx/build/Workbench/Workbench.stories.jsx.map +1 -1
  42. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts +5 -5
  43. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts.map +1 -1
  44. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.jsx.map +1 -1
  45. package/jsx/condition-builder/ConditionInput/ConditionInput.stories.d.ts +4 -4
  46. package/jsx/condition-builder/ConditionInput/ConditionInput.stories.d.ts.map +1 -1
  47. package/jsx/condition-builder/ConditionInput/ConditionInput.stories.jsx.map +1 -1
  48. package/jsx/condition-builder/PromotedFilters/PromotedFilters.stories.d.ts +3 -3
  49. package/jsx/condition-builder/PromotedFilters/PromotedFilters.stories.d.ts.map +1 -1
  50. package/jsx/condition-builder/PromotedFilters/PromotedFilters.stories.jsx.map +1 -1
  51. package/jsx/core/AIButton/AIButton.stories.d.ts +7 -7
  52. package/jsx/core/AIButton/AIButton.stories.d.ts.map +1 -1
  53. package/jsx/core/AIButton/AIButton.stories.jsx.map +1 -1
  54. package/jsx/core/AdditionalInfo/AdditionalInfo.stories.d.ts +4 -4
  55. package/jsx/core/AdditionalInfo/AdditionalInfo.stories.d.ts.map +1 -1
  56. package/jsx/core/AdditionalInfo/AdditionalInfo.stories.jsx.map +1 -1
  57. package/jsx/core/AppShell/AppShell.stories.d.ts +5 -5
  58. package/jsx/core/AppShell/AppShell.stories.d.ts.map +1 -1
  59. package/jsx/core/AppShell/AppShell.stories.jsx.map +1 -1
  60. package/jsx/core/Avatar/Avatar.stories.d.ts +9 -9
  61. package/jsx/core/Avatar/Avatar.stories.d.ts.map +1 -1
  62. package/jsx/core/Avatar/Avatar.stories.jsx.map +1 -1
  63. package/jsx/core/Backdrop/Backdrop.stories.d.ts +5 -5
  64. package/jsx/core/Backdrop/Backdrop.stories.d.ts.map +1 -1
  65. package/jsx/core/Backdrop/Backdrop.stories.jsx.map +1 -1
  66. package/jsx/core/Badges/Alert.stories.d.ts +4 -4
  67. package/jsx/core/Badges/Alert.stories.d.ts.map +1 -1
  68. package/jsx/core/Badges/Alert.stories.jsx.map +1 -1
  69. package/jsx/core/Badges/Count.stories.d.ts +4 -4
  70. package/jsx/core/Badges/Count.stories.d.ts.map +1 -1
  71. package/jsx/core/Badges/Count.stories.jsx.map +1 -1
  72. package/jsx/core/Badges/Keyboard.stories.d.ts +4 -4
  73. package/jsx/core/Badges/Keyboard.stories.d.ts.map +1 -1
  74. package/jsx/core/Badges/Keyboard.stories.jsx.map +1 -1
  75. package/jsx/core/Badges/Selection.stories.d.ts +3 -3
  76. package/jsx/core/Badges/Selection.stories.d.ts.map +1 -1
  77. package/jsx/core/Badges/Selection.stories.jsx.map +1 -1
  78. package/jsx/core/Badges/Status.stories.d.ts +5 -5
  79. package/jsx/core/Badges/Status.stories.d.ts.map +1 -1
  80. package/jsx/core/Badges/Status.stories.jsx.map +1 -1
  81. package/jsx/core/Badges/Tag.stories.d.ts +3 -3
  82. package/jsx/core/Badges/Tag.stories.d.ts.map +1 -1
  83. package/jsx/core/Badges/Tag.stories.jsx.map +1 -1
  84. package/jsx/core/Banner/Banner.stories.d.ts +7 -7
  85. package/jsx/core/Banner/Banner.stories.d.ts.map +1 -1
  86. package/jsx/core/Banner/Banner.stories.jsx.map +1 -1
  87. package/jsx/core/Boolean/BooleanDisplay.stories.d.ts +4 -4
  88. package/jsx/core/Boolean/BooleanDisplay.stories.d.ts.map +1 -1
  89. package/jsx/core/Boolean/BooleanDisplay.stories.jsx.map +1 -1
  90. package/jsx/core/Breadcrumbs/Breadcrumbs.stories.d.ts +4 -4
  91. package/jsx/core/Breadcrumbs/Breadcrumbs.stories.d.ts.map +1 -1
  92. package/jsx/core/Breadcrumbs/Breadcrumbs.stories.jsx.map +1 -1
  93. package/jsx/core/Button/Button.stories.d.ts +9 -9
  94. package/jsx/core/Button/Button.stories.d.ts.map +1 -1
  95. package/jsx/core/Button/Button.stories.jsx.map +1 -1
  96. package/jsx/core/Card/Card.stories.d.ts +6 -6
  97. package/jsx/core/Card/Card.stories.d.ts.map +1 -1
  98. package/jsx/core/Card/Card.stories.jsx.map +1 -1
  99. package/jsx/core/Checkbox/Checkbox.stories.d.ts +6 -6
  100. package/jsx/core/Checkbox/Checkbox.stories.d.ts.map +1 -1
  101. package/jsx/core/Checkbox/Checkbox.stories.jsx.map +1 -1
  102. package/jsx/core/CheckboxGroup/CheckboxGroup.stories.d.ts +5 -5
  103. package/jsx/core/CheckboxGroup/CheckboxGroup.stories.d.ts.map +1 -1
  104. package/jsx/core/CheckboxGroup/CheckboxGroup.stories.jsx.map +1 -1
  105. package/jsx/core/ColorPicker/ColorPicker.stories.d.ts +5 -5
  106. package/jsx/core/ColorPicker/ColorPicker.stories.d.ts.map +1 -1
  107. package/jsx/core/ColorPicker/ColorPicker.stories.jsx.map +1 -1
  108. package/jsx/core/ComboBox/ComboBox.stories.d.ts +9 -9
  109. package/jsx/core/ComboBox/ComboBox.stories.d.ts.map +1 -1
  110. package/jsx/core/ComboBox/ComboBox.stories.jsx.map +1 -1
  111. package/jsx/core/CompositeInput/CompositeInput.stories.d.ts +3 -3
  112. package/jsx/core/CompositeInput/CompositeInput.stories.d.ts.map +1 -1
  113. package/jsx/core/CompositeInput/CompositeInput.stories.jsx.map +1 -1
  114. package/jsx/core/Configuration/Configuration.stories.d.ts +8 -8
  115. package/jsx/core/Configuration/Configuration.stories.d.ts.map +1 -1
  116. package/jsx/core/Configuration/Configuration.stories.jsx.map +1 -1
  117. package/jsx/core/CreditCard/CreditCard.stories.d.ts +4 -4
  118. package/jsx/core/CreditCard/CreditCard.stories.d.ts.map +1 -1
  119. package/jsx/core/CreditCard/CreditCard.stories.jsx +1 -2
  120. package/jsx/core/CreditCard/CreditCard.stories.jsx.map +1 -1
  121. package/jsx/core/Currency/Currency.stories.d.ts +5 -5
  122. package/jsx/core/Currency/Currency.stories.d.ts.map +1 -1
  123. package/jsx/core/Currency/Currency.stories.jsx.map +1 -1
  124. package/jsx/core/DangerButton/DangerButton.stories.d.ts +4 -4
  125. package/jsx/core/DangerButton/DangerButton.stories.d.ts.map +1 -1
  126. package/jsx/core/DangerButton/DangerButton.stories.jsx.map +1 -1
  127. package/jsx/core/DateTime/DateTime.stories.d.ts +13 -13
  128. package/jsx/core/DateTime/DateTime.stories.d.ts.map +1 -1
  129. package/jsx/core/DateTime/DateTime.stories.jsx.map +1 -1
  130. package/jsx/core/DateTime/DateTimeDisplay.stories.d.ts +5 -5
  131. package/jsx/core/DateTime/DateTimeDisplay.stories.d.ts.map +1 -1
  132. package/jsx/core/DateTime/DateTimeDisplay.stories.jsx.map +1 -1
  133. package/jsx/core/DateTime/DateTimePicker.stories.d.ts +5 -5
  134. package/jsx/core/DateTime/DateTimePicker.stories.d.ts.map +1 -1
  135. package/jsx/core/DateTime/DateTimePicker.stories.jsx.map +1 -1
  136. package/jsx/core/Dialog/Dialog.stories.d.ts +5 -5
  137. package/jsx/core/Dialog/Dialog.stories.d.ts.map +1 -1
  138. package/jsx/core/Dialog/Dialog.stories.jsx.map +1 -1
  139. package/jsx/core/Drawer/Drawer.stories.d.ts +5 -5
  140. package/jsx/core/Drawer/Drawer.stories.d.ts.map +1 -1
  141. package/jsx/core/Drawer/Drawer.stories.jsx.map +1 -1
  142. package/jsx/core/Email/EmailDisplay.stories.d.ts +4 -4
  143. package/jsx/core/Email/EmailDisplay.stories.d.ts.map +1 -1
  144. package/jsx/core/Email/EmailDisplay.stories.jsx.map +1 -1
  145. package/jsx/core/EmojiPicker/EmojiPicker.stories.d.ts +6 -6
  146. package/jsx/core/EmojiPicker/EmojiPicker.stories.d.ts.map +1 -1
  147. package/jsx/core/EmojiPicker/EmojiPicker.stories.jsx.map +1 -1
  148. package/jsx/core/EmptyState/EmptyState.stories.d.ts +4 -4
  149. package/jsx/core/EmptyState/EmptyState.stories.d.ts.map +1 -1
  150. package/jsx/core/EmptyState/EmptyState.stories.jsx.map +1 -1
  151. package/jsx/core/ErrorState/ErrorState.stories.d.ts +4 -4
  152. package/jsx/core/ErrorState/ErrorState.stories.d.ts.map +1 -1
  153. package/jsx/core/ErrorState/ErrorState.stories.jsx.map +1 -1
  154. package/jsx/core/ExpandCollapse/ExpandCollapse.stories.d.ts +5 -5
  155. package/jsx/core/ExpandCollapse/ExpandCollapse.stories.d.ts.map +1 -1
  156. package/jsx/core/ExpandCollapse/ExpandCollapse.stories.jsx.map +1 -1
  157. package/jsx/core/FieldGroup/FieldGroup.stories.d.ts +4 -4
  158. package/jsx/core/FieldGroup/FieldGroup.stories.d.ts.map +1 -1
  159. package/jsx/core/FieldGroup/FieldGroup.stories.jsx.map +1 -1
  160. package/jsx/core/FieldGroup/FieldGroupList.stories.d.ts +5 -5
  161. package/jsx/core/FieldGroup/FieldGroupList.stories.d.ts.map +1 -1
  162. package/jsx/core/FieldGroup/FieldGroupList.stories.jsx.map +1 -1
  163. package/jsx/core/FieldValueList/FieldValueList.stories.d.ts +4 -4
  164. package/jsx/core/FieldValueList/FieldValueList.stories.d.ts.map +1 -1
  165. package/jsx/core/FieldValueList/FieldValueList.stories.jsx.map +1 -1
  166. package/jsx/core/File/FileDisplay.stories.d.ts +6 -6
  167. package/jsx/core/File/FileDisplay.stories.d.ts.map +1 -1
  168. package/jsx/core/File/FileDisplay.stories.jsx.map +1 -1
  169. package/jsx/core/File/FileInput.stories.d.ts +4 -4
  170. package/jsx/core/File/FileInput.stories.d.ts.map +1 -1
  171. package/jsx/core/File/FileInput.stories.jsx.map +1 -1
  172. package/jsx/core/Flex/FlexContainer.stories.d.ts +10 -10
  173. package/jsx/core/Flex/FlexContainer.stories.d.ts.map +1 -1
  174. package/jsx/core/Flex/FlexContainer.stories.jsx.map +1 -1
  175. package/jsx/core/Flex/FlexItem.stories.d.ts +6 -6
  176. package/jsx/core/Flex/FlexItem.stories.d.ts.map +1 -1
  177. package/jsx/core/Flex/FlexItem.stories.jsx.map +1 -1
  178. package/jsx/core/Form/Form.stories.d.ts +8 -8
  179. package/jsx/core/Form/Form.stories.d.ts.map +1 -1
  180. package/jsx/core/Form/Form.stories.jsx.map +1 -1
  181. package/jsx/core/Grid/GridContainer.stories.d.ts +12 -12
  182. package/jsx/core/Grid/GridContainer.stories.d.ts.map +1 -1
  183. package/jsx/core/Grid/GridContainer.stories.jsx.map +1 -1
  184. package/jsx/core/Grid/GridItem.stories.d.ts +6 -6
  185. package/jsx/core/Grid/GridItem.stories.d.ts.map +1 -1
  186. package/jsx/core/Grid/GridItem.stories.jsx.map +1 -1
  187. package/jsx/core/HTML/HTML.stories.d.ts +4 -4
  188. package/jsx/core/HTML/HTML.stories.d.ts.map +1 -1
  189. package/jsx/core/HTML/HTML.stories.jsx.map +1 -1
  190. package/jsx/core/Icon/Icon.stories.d.ts +6 -6
  191. package/jsx/core/Icon/Icon.stories.d.ts.map +1 -1
  192. package/jsx/core/Icon/Icon.stories.jsx.map +1 -1
  193. package/jsx/core/IconPicker/IconPicker.stories.d.ts +4 -4
  194. package/jsx/core/IconPicker/IconPicker.stories.d.ts.map +1 -1
  195. package/jsx/core/IconPicker/IconPicker.stories.jsx.map +1 -1
  196. package/jsx/core/Image/Image.stories.d.ts +3 -3
  197. package/jsx/core/Image/Image.stories.d.ts.map +1 -1
  198. package/jsx/core/Image/Image.stories.jsx.map +1 -1
  199. package/jsx/core/Input/Input.stories.d.ts +6 -6
  200. package/jsx/core/Input/Input.stories.d.ts.map +1 -1
  201. package/jsx/core/Input/Input.stories.jsx.map +1 -1
  202. package/jsx/core/Label/Label.stories.d.ts +5 -5
  203. package/jsx/core/Label/Label.stories.d.ts.map +1 -1
  204. package/jsx/core/Label/Label.stories.jsx.map +1 -1
  205. package/jsx/core/Lightbox/Lightbox.stories.d.ts +3 -3
  206. package/jsx/core/Lightbox/Lightbox.stories.d.ts.map +1 -1
  207. package/jsx/core/Lightbox/Lightbox.stories.jsx.map +1 -1
  208. package/jsx/core/Link/Link.stories.d.ts +7 -7
  209. package/jsx/core/Link/Link.stories.d.ts.map +1 -1
  210. package/jsx/core/Link/Link.stories.jsx.map +1 -1
  211. package/jsx/core/List/CommaSeparatedList.stories.d.ts +4 -4
  212. package/jsx/core/List/CommaSeparatedList.stories.d.ts.map +1 -1
  213. package/jsx/core/List/CommaSeparatedList.stories.jsx.map +1 -1
  214. package/jsx/core/List/OrderedList.stories.d.ts +4 -4
  215. package/jsx/core/List/OrderedList.stories.d.ts.map +1 -1
  216. package/jsx/core/List/OrderedList.stories.jsx.map +1 -1
  217. package/jsx/core/List/UnorderedList.stories.d.ts +4 -4
  218. package/jsx/core/List/UnorderedList.stories.d.ts.map +1 -1
  219. package/jsx/core/List/UnorderedList.stories.jsx.map +1 -1
  220. package/jsx/core/ListToolbar/ListToolbar.stories.d.ts +5 -5
  221. package/jsx/core/ListToolbar/ListToolbar.stories.d.ts.map +1 -1
  222. package/jsx/core/ListToolbar/ListToolbar.stories.jsx.map +1 -1
  223. package/jsx/core/LiveLog/LiveLog.stories.d.ts +4 -4
  224. package/jsx/core/LiveLog/LiveLog.stories.d.ts.map +1 -1
  225. package/jsx/core/LiveLog/LiveLog.stories.jsx.map +1 -1
  226. package/jsx/core/Location/Location.stories.d.ts +7 -7
  227. package/jsx/core/Location/Location.stories.d.ts.map +1 -1
  228. package/jsx/core/Location/Location.stories.jsx +6 -2
  229. package/jsx/core/Location/Location.stories.jsx.map +1 -1
  230. package/jsx/core/Menu/Menu.stories.d.ts +6 -6
  231. package/jsx/core/Menu/Menu.stories.d.ts.map +1 -1
  232. package/jsx/core/Menu/Menu.stories.jsx.map +1 -1
  233. package/jsx/core/MenuButton/MenuButton.stories.d.ts +7 -7
  234. package/jsx/core/MenuButton/MenuButton.stories.d.ts.map +1 -1
  235. package/jsx/core/MenuButton/MenuButton.stories.jsx.map +1 -1
  236. package/jsx/core/MetaList/MetaList.stories.d.ts +4 -4
  237. package/jsx/core/MetaList/MetaList.stories.d.ts.map +1 -1
  238. package/jsx/core/MetaList/MetaList.stories.jsx.map +1 -1
  239. package/jsx/core/Modal/Modal.stories.d.ts +11 -11
  240. package/jsx/core/Modal/Modal.stories.d.ts.map +1 -1
  241. package/jsx/core/Modal/Modal.stories.jsx.map +1 -1
  242. package/jsx/core/MultiStepForm/MultiStepForm.stories.d.ts +5 -5
  243. package/jsx/core/MultiStepForm/MultiStepForm.stories.d.ts.map +1 -1
  244. package/jsx/core/MultiStepForm/MultiStepForm.stories.jsx.map +1 -1
  245. package/jsx/core/NoValue/NoValue.stories.d.ts +4 -4
  246. package/jsx/core/NoValue/NoValue.stories.d.ts.map +1 -1
  247. package/jsx/core/NoValue/NoValue.stories.jsx.map +1 -1
  248. package/jsx/core/Number/Number.stories.d.ts +7 -7
  249. package/jsx/core/Number/Number.stories.d.ts.map +1 -1
  250. package/jsx/core/Number/Number.stories.jsx.map +1 -1
  251. package/jsx/core/PageTemplates/PageTemplates.stories.d.ts +7 -7
  252. package/jsx/core/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
  253. package/jsx/core/PageTemplates/PageTemplates.stories.jsx.map +1 -1
  254. package/jsx/core/Pagination/Pagination.stories.d.ts +4 -4
  255. package/jsx/core/Pagination/Pagination.stories.d.ts.map +1 -1
  256. package/jsx/core/Pagination/Pagination.stories.jsx.map +1 -1
  257. package/jsx/core/Paragraph/ParagraphDisplay.stories.d.ts +4 -4
  258. package/jsx/core/Paragraph/ParagraphDisplay.stories.d.ts.map +1 -1
  259. package/jsx/core/Paragraph/ParagraphDisplay.stories.jsx.map +1 -1
  260. package/jsx/core/Phone/Phone.stories.d.ts +5 -5
  261. package/jsx/core/Phone/Phone.stories.d.ts.map +1 -1
  262. package/jsx/core/Phone/Phone.stories.jsx.map +1 -1
  263. package/jsx/core/Popover/Popover.stories.d.ts +7 -7
  264. package/jsx/core/Popover/Popover.stories.d.ts.map +1 -1
  265. package/jsx/core/Popover/Popover.stories.jsx.map +1 -1
  266. package/jsx/core/Progress/Progress.stories.d.ts +5 -5
  267. package/jsx/core/Progress/Progress.stories.d.ts.map +1 -1
  268. package/jsx/core/Progress/Progress.stories.jsx.map +1 -1
  269. package/jsx/core/QRCode/QRCode.stories.d.ts +3 -3
  270. package/jsx/core/QRCode/QRCode.stories.d.ts.map +1 -1
  271. package/jsx/core/QRCode/QRCode.stories.jsx.map +1 -1
  272. package/jsx/core/RadioButton/RadioButton.stories.d.ts +6 -6
  273. package/jsx/core/RadioButton/RadioButton.stories.d.ts.map +1 -1
  274. package/jsx/core/RadioButton/RadioButton.stories.jsx.map +1 -1
  275. package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts +5 -5
  276. package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts.map +1 -1
  277. package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.jsx.map +1 -1
  278. package/jsx/core/Rating/Rating.stories.d.ts +5 -5
  279. package/jsx/core/Rating/Rating.stories.d.ts.map +1 -1
  280. package/jsx/core/Rating/Rating.stories.jsx.map +1 -1
  281. package/jsx/core/SearchInput/SearchInput.stories.d.ts +5 -5
  282. package/jsx/core/SearchInput/SearchInput.stories.d.ts.map +1 -1
  283. package/jsx/core/SearchInput/SearchInput.stories.jsx.map +1 -1
  284. package/jsx/core/Select/Select.stories.d.ts +5 -5
  285. package/jsx/core/Select/Select.stories.d.ts.map +1 -1
  286. package/jsx/core/Select/Select.stories.jsx.map +1 -1
  287. package/jsx/core/Sentiment/Sentiment.stories.d.ts +5 -5
  288. package/jsx/core/Sentiment/Sentiment.stories.d.ts.map +1 -1
  289. package/jsx/core/Sentiment/Sentiment.stories.jsx.map +1 -1
  290. package/jsx/core/SkipLinks/SkipLinks.stories.d.ts +4 -4
  291. package/jsx/core/SkipLinks/SkipLinks.stories.d.ts.map +1 -1
  292. package/jsx/core/SkipLinks/SkipLinks.stories.jsx.map +1 -1
  293. package/jsx/core/Slider/Slider.stories.d.ts +4 -4
  294. package/jsx/core/Slider/Slider.stories.d.ts.map +1 -1
  295. package/jsx/core/Slider/Slider.stories.jsx.map +1 -1
  296. package/jsx/core/SummaryItem/SummaryItem.stories.d.ts +4 -4
  297. package/jsx/core/SummaryItem/SummaryItem.stories.d.ts.map +1 -1
  298. package/jsx/core/SummaryItem/SummaryItem.stories.jsx.map +1 -1
  299. package/jsx/core/SummaryList/SummaryList.stories.d.ts +5 -5
  300. package/jsx/core/SummaryList/SummaryList.stories.d.ts.map +1 -1
  301. package/jsx/core/SummaryList/SummaryList.stories.jsx.map +1 -1
  302. package/jsx/core/Switch/Switch.stories.d.ts +6 -6
  303. package/jsx/core/Switch/Switch.stories.d.ts.map +1 -1
  304. package/jsx/core/Switch/Switch.stories.jsx.map +1 -1
  305. package/jsx/core/Table/Table.stories.d.ts +6 -6
  306. package/jsx/core/Table/Table.stories.d.ts.map +1 -1
  307. package/jsx/core/Table/Table.stories.jsx.map +1 -1
  308. package/jsx/core/Tabs/Tabs.stories.d.ts +4 -4
  309. package/jsx/core/Tabs/Tabs.stories.d.ts.map +1 -1
  310. package/jsx/core/Tabs/Tabs.stories.jsx.map +1 -1
  311. package/jsx/core/Text/Text.stories.d.ts +5 -5
  312. package/jsx/core/Text/Text.stories.d.ts.map +1 -1
  313. package/jsx/core/Text/Text.stories.jsx.map +1 -1
  314. package/jsx/core/TextArea/TextArea.stories.d.ts +5 -5
  315. package/jsx/core/TextArea/TextArea.stories.d.ts.map +1 -1
  316. package/jsx/core/TextArea/TextArea.stories.jsx.map +1 -1
  317. package/jsx/core/Toaster/Toaster.stories.d.ts +3 -3
  318. package/jsx/core/Toaster/Toaster.stories.d.ts.map +1 -1
  319. package/jsx/core/Toaster/Toaster.stories.jsx.map +1 -1
  320. package/jsx/core/Tooltip/Tooltip.stories.d.ts +5 -5
  321. package/jsx/core/Tooltip/Tooltip.stories.d.ts.map +1 -1
  322. package/jsx/core/Tooltip/Tooltip.stories.jsx.map +1 -1
  323. package/jsx/core/Tree/Tree.stories.d.ts +5 -5
  324. package/jsx/core/Tree/Tree.stories.d.ts.map +1 -1
  325. package/jsx/core/Tree/Tree.stories.jsx.map +1 -1
  326. package/jsx/core/URL/URL.stories.d.ts +4 -4
  327. package/jsx/core/URL/URL.stories.d.ts.map +1 -1
  328. package/jsx/core/URL/URL.stories.jsx.map +1 -1
  329. package/jsx/cs/Article/Article.stories.d.ts +3 -3
  330. package/jsx/cs/Article/Article.stories.d.ts.map +1 -1
  331. package/jsx/cs/Article/Article.stories.jsx.map +1 -1
  332. package/jsx/cs/ArticleList/ArticleList.mocks.js +1 -1
  333. package/jsx/cs/ArticleList/ArticleList.mocks.js.map +1 -1
  334. package/jsx/cs/ArticleList/ArticleList.stories.d.ts +3 -3
  335. package/jsx/cs/ArticleList/ArticleList.stories.d.ts.map +1 -1
  336. package/jsx/cs/ArticleList/ArticleList.stories.jsx.map +1 -1
  337. package/jsx/cs/CSAppShell/CSAppShell.stories.d.ts +4 -4
  338. package/jsx/cs/CSAppShell/CSAppShell.stories.d.ts.map +1 -1
  339. package/jsx/cs/CSAppShell/CSAppShell.stories.jsx.map +1 -1
  340. package/jsx/cs/CallControlPanel/CallControlPanel.stories.d.ts +5 -5
  341. package/jsx/cs/CallControlPanel/CallControlPanel.stories.d.ts.map +1 -1
  342. package/jsx/cs/CallControlPanel/CallControlPanel.stories.jsx.map +1 -1
  343. package/jsx/cs/DialPad/DialPad.stories.d.ts +4 -4
  344. package/jsx/cs/DialPad/DialPad.stories.d.ts.map +1 -1
  345. package/jsx/cs/DialPad/DialPad.stories.jsx.map +1 -1
  346. package/jsx/cs/InteractionNotification/InteractionNotification.stories.d.ts +3 -3
  347. package/jsx/cs/InteractionNotification/InteractionNotification.stories.d.ts.map +1 -1
  348. package/jsx/cs/InteractionNotification/InteractionNotification.stories.jsx.map +1 -1
  349. package/jsx/cs/InteractionTimer/InteractionTimer.stories.d.ts +4 -4
  350. package/jsx/cs/InteractionTimer/InteractionTimer.stories.d.ts.map +1 -1
  351. package/jsx/cs/InteractionTimer/InteractionTimer.stories.jsx.map +1 -1
  352. package/jsx/cs/Picker/Picker.stories.d.ts +6 -6
  353. package/jsx/cs/Picker/Picker.stories.d.ts.map +1 -1
  354. package/jsx/cs/Picker/Picker.stories.jsx.map +1 -1
  355. package/jsx/cs/TaskManager/TaskManager.stories.d.ts +5 -5
  356. package/jsx/cs/TaskManager/TaskManager.stories.d.ts.map +1 -1
  357. package/jsx/cs/TaskManager/TaskManager.stories.jsx.map +1 -1
  358. package/jsx/dnd/DragDropList/DragDropList.stories.d.ts +4 -4
  359. package/jsx/dnd/DragDropList/DragDropList.stories.d.ts.map +1 -1
  360. package/jsx/dnd/DragDropList/DragDropList.stories.jsx.map +1 -1
  361. package/jsx/dnd/StandardDragDropList/Demo.d.ts +1 -0
  362. package/jsx/dnd/StandardDragDropList/Demo.d.ts.map +1 -1
  363. package/jsx/dnd/StandardDragDropList/StandardDragDropList.stories.d.ts +3 -3
  364. package/jsx/dnd/StandardDragDropList/StandardDragDropList.stories.d.ts.map +1 -1
  365. package/jsx/dnd/StandardDragDropList/StandardDragDropList.stories.jsx.map +1 -1
  366. package/jsx/rte/DynamicContentEditor/DynamicContentEditor.stories.d.ts +3 -3
  367. package/jsx/rte/DynamicContentEditor/DynamicContentEditor.stories.d.ts.map +1 -1
  368. package/jsx/rte/DynamicContentEditor/DynamicContentEditor.stories.jsx.map +1 -1
  369. package/jsx/rte/Editor/Editor.stories.d.ts +8 -8
  370. package/jsx/rte/Editor/Editor.stories.d.ts.map +1 -1
  371. package/jsx/rte/Editor/Editor.stories.jsx.map +1 -1
  372. package/jsx/rte/RichTextEditor/RichTextEditor.stories.d.ts +4 -4
  373. package/jsx/rte/RichTextEditor/RichTextEditor.stories.d.ts.map +1 -1
  374. package/jsx/rte/RichTextEditor/RichTextEditor.stories.jsx.map +1 -1
  375. package/jsx/rte/RichTextEditor/RichTextViewer.stories.d.ts +6 -6
  376. package/jsx/rte/RichTextEditor/RichTextViewer.stories.d.ts.map +1 -1
  377. package/jsx/rte/RichTextEditor/RichTextViewer.stories.jsx.map +1 -1
  378. package/jsx/social/Chat/Chat.stories.d.ts +11 -11
  379. package/jsx/social/Chat/Chat.stories.d.ts.map +1 -1
  380. package/jsx/social/Chat/Chat.stories.jsx +8 -2
  381. package/jsx/social/Chat/Chat.stories.jsx.map +1 -1
  382. package/jsx/social/Email/Email.stories.d.ts +15 -15
  383. package/jsx/social/Email/Email.stories.d.ts.map +1 -1
  384. package/jsx/social/Email/Email.stories.jsx.map +1 -1
  385. package/jsx/social/Feed/Feed.mocks.d.ts +18 -13
  386. package/jsx/social/Feed/Feed.mocks.d.ts.map +1 -1
  387. package/jsx/social/Feed/Feed.mocks.jsx +74 -8
  388. package/jsx/social/Feed/Feed.mocks.jsx.map +1 -1
  389. package/jsx/social/Feed/Feed.stories.d.ts +5 -5
  390. package/jsx/social/Feed/Feed.stories.d.ts.map +1 -1
  391. package/jsx/social/Feed/Feed.stories.jsx +12 -12
  392. package/jsx/social/Feed/Feed.stories.jsx.map +1 -1
  393. package/jsx/social/Feed/FeedNewPost.mocks.d.ts +8 -0
  394. package/jsx/social/Feed/FeedNewPost.mocks.d.ts.map +1 -0
  395. package/jsx/social/Feed/FeedNewPost.mocks.jsx +44 -0
  396. package/jsx/social/Feed/FeedNewPost.mocks.jsx.map +1 -0
  397. package/jsx/social/Feed/FeedPost.mocks.d.ts +4 -0
  398. package/jsx/social/Feed/FeedPost.mocks.d.ts.map +1 -0
  399. package/jsx/social/Feed/FeedPost.mocks.jsx +167 -0
  400. package/jsx/social/Feed/FeedPost.mocks.jsx.map +1 -0
  401. package/jsx/social/Feed/FeedReply.mocks.d.ts +13 -0
  402. package/jsx/social/Feed/FeedReply.mocks.d.ts.map +1 -0
  403. package/jsx/social/Feed/FeedReply.mocks.jsx +76 -0
  404. package/jsx/social/Feed/FeedReply.mocks.jsx.map +1 -0
  405. package/jsx/tools/Clipboard/Clipboard.stories.d.ts +4 -4
  406. package/jsx/tools/Clipboard/Clipboard.stories.d.ts.map +1 -1
  407. package/jsx/tools/Clipboard/Clipboard.stories.jsx.map +1 -1
  408. package/jsx/tools/DevTools/DevTools.stories.d.ts +4 -4
  409. package/jsx/tools/DevTools/DevTools.stories.d.ts.map +1 -1
  410. package/jsx/tools/DevTools/DevTools.stories.jsx.map +1 -1
  411. package/jsx/tools/PreviewShell/PreviewShell.stories.d.ts +7 -7
  412. package/jsx/tools/PreviewShell/PreviewShell.stories.d.ts.map +1 -1
  413. package/jsx/tools/PreviewShell/PreviewShell.stories.jsx.map +1 -1
  414. package/jsx/work/AppAnnouncement/AppAnnouncement.stories.d.ts +4 -4
  415. package/jsx/work/AppAnnouncement/AppAnnouncement.stories.d.ts.map +1 -1
  416. package/jsx/work/AppAnnouncement/AppAnnouncement.stories.jsx.map +1 -1
  417. package/jsx/work/Assignments/Assignments.stories.d.ts +4 -4
  418. package/jsx/work/Assignments/Assignments.stories.d.ts.map +1 -1
  419. package/jsx/work/Assignments/Assignments.stories.jsx.map +1 -1
  420. package/jsx/work/CaseView/CaseView.mocks.d.ts +1 -1
  421. package/jsx/work/CaseView/CaseView.mocks.d.ts.map +1 -1
  422. package/jsx/work/CaseView/CaseView.mocks.jsx.map +1 -1
  423. package/jsx/work/CaseView/CaseView.stories.d.ts +3 -3
  424. package/jsx/work/CaseView/CaseView.stories.d.ts.map +1 -1
  425. package/jsx/work/CaseView/CaseView.stories.jsx.map +1 -1
  426. package/jsx/work/CaseView/Pulse.mocks.d.ts +1 -1
  427. package/jsx/work/CaseView/Pulse.mocks.d.ts.map +1 -1
  428. package/jsx/work/CaseView/Pulse.mocks.jsx.map +1 -1
  429. package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts +3 -3
  430. package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts.map +1 -1
  431. package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.jsx.map +1 -1
  432. package/jsx/work/Confirmation/Confirmation.stories.d.ts +4 -4
  433. package/jsx/work/Confirmation/Confirmation.stories.d.ts.map +1 -1
  434. package/jsx/work/Confirmation/Confirmation.stories.jsx.map +1 -1
  435. package/jsx/work/Details/Details.stories.d.ts +3 -3
  436. package/jsx/work/Details/Details.stories.d.ts.map +1 -1
  437. package/jsx/work/Details/Details.stories.jsx.map +1 -1
  438. package/jsx/work/Glimpse/Glimpse.stories.d.ts +3 -3
  439. package/jsx/work/Glimpse/Glimpse.stories.d.ts.map +1 -1
  440. package/jsx/work/Glimpse/Glimpse.stories.jsx.map +1 -1
  441. package/jsx/work/IntelligentGuidance/IntelligentGuidance.stories.d.ts +4 -4
  442. package/jsx/work/IntelligentGuidance/IntelligentGuidance.stories.d.ts.map +1 -1
  443. package/jsx/work/IntelligentGuidance/IntelligentGuidance.stories.jsx.map +1 -1
  444. package/jsx/work/Predictions/Predictions.stories.d.ts +3 -3
  445. package/jsx/work/Predictions/Predictions.stories.d.ts.map +1 -1
  446. package/jsx/work/Predictions/Predictions.stories.jsx.map +1 -1
  447. package/jsx/work/SearchResults/SearchResults.stories.d.ts +3 -3
  448. package/jsx/work/SearchResults/SearchResults.stories.d.ts.map +1 -1
  449. package/jsx/work/SearchResults/SearchResults.stories.jsx.map +1 -1
  450. package/jsx/work/Stages/Stages.stories.d.ts +4 -4
  451. package/jsx/work/Stages/Stages.stories.d.ts.map +1 -1
  452. package/jsx/work/Stages/Stages.stories.jsx.map +1 -1
  453. package/jsx/work/Stakeholders/Stakeholders.stories.d.ts +3 -3
  454. package/jsx/work/Stakeholders/Stakeholders.stories.d.ts.map +1 -1
  455. package/jsx/work/Stakeholders/Stakeholders.stories.jsx.map +1 -1
  456. package/jsx/work/Tags/Tags.stories.d.ts +3 -3
  457. package/jsx/work/Tags/Tags.stories.d.ts.map +1 -1
  458. package/jsx/work/Tags/Tags.stories.jsx.map +1 -1
  459. package/jsx/work/Tasks/TaskList.stories.d.ts +3 -3
  460. package/jsx/work/Tasks/TaskList.stories.d.ts.map +1 -1
  461. package/jsx/work/Tasks/TaskList.stories.jsx.map +1 -1
  462. package/jsx/work/Tasks/Tasks.stories.d.ts +4 -4
  463. package/jsx/work/Tasks/Tasks.stories.d.ts.map +1 -1
  464. package/jsx/work/Tasks/Tasks.stories.jsx.map +1 -1
  465. package/jsx/work/Timeline/Timeline.stories.d.ts +6 -6
  466. package/jsx/work/Timeline/Timeline.stories.d.ts.map +1 -1
  467. package/jsx/work/Timeline/Timeline.stories.jsx.map +1 -1
  468. package/jsx/wss/AppShell/AppShell.stories.d.ts +5 -5
  469. package/jsx/wss/AppShell/AppShell.stories.d.ts.map +1 -1
  470. package/jsx/wss/AppShell/AppShell.stories.jsx.map +1 -1
  471. package/jsx/wss/CaseView/CaseView.stories.d.ts +3 -3
  472. package/jsx/wss/CaseView/CaseView.stories.d.ts.map +1 -1
  473. package/jsx/wss/CaseView/CaseView.stories.jsx +2 -2
  474. package/jsx/wss/CaseView/CaseView.stories.jsx.map +1 -1
  475. package/jsx/wss/PageTemplates/PageTemplates.stories.d.ts +3 -3
  476. package/jsx/wss/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
  477. package/jsx/wss/PageTemplates/PageTemplates.stories.jsx.map +1 -1
  478. package/jsx/wss/QuickCreate/QuickCreate.stories.d.ts +3 -3
  479. package/jsx/wss/QuickCreate/QuickCreate.stories.d.ts.map +1 -1
  480. package/jsx/wss/QuickCreate/QuickCreate.stories.jsx.map +1 -1
  481. package/lib/build/AppShell/AppShell.stories.d.ts +5 -5
  482. package/lib/build/AppShell/AppShell.stories.d.ts.map +1 -1
  483. package/lib/build/AppShell/AppShell.stories.js.map +1 -1
  484. package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts +3 -3
  485. package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts.map +1 -1
  486. package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.js.map +1 -1
  487. package/lib/build/ExpressionBuilder/ExpressionBuilder.stories.d.ts +8 -8
  488. package/lib/build/ExpressionBuilder/ExpressionBuilder.stories.d.ts.map +1 -1
  489. package/lib/build/ExpressionBuilder/ExpressionBuilder.stories.js +1 -2
  490. package/lib/build/ExpressionBuilder/ExpressionBuilder.stories.js.map +1 -1
  491. package/lib/build/FlowModeller/FlowModeller.stories.d.ts +5 -5
  492. package/lib/build/FlowModeller/FlowModeller.stories.d.ts.map +1 -1
  493. package/lib/build/FlowModeller/FlowModeller.stories.js.map +1 -1
  494. package/lib/build/ItemLibrary/LibraryPicker.stories.d.ts +3 -3
  495. package/lib/build/ItemLibrary/LibraryPicker.stories.d.ts.map +1 -1
  496. package/lib/build/ItemLibrary/LibraryPicker.stories.js +1 -2
  497. package/lib/build/ItemLibrary/LibraryPicker.stories.js.map +1 -1
  498. package/lib/build/LifeCycle/LifeCycle.stories.d.ts +6 -6
  499. package/lib/build/LifeCycle/LifeCycle.stories.d.ts.map +1 -1
  500. package/lib/build/LifeCycle/LifeCycle.stories.js.map +1 -1
  501. package/lib/build/MobileBuildSummary/MobileBuildSummary.stories.d.ts +3 -3
  502. package/lib/build/MobileBuildSummary/MobileBuildSummary.stories.d.ts.map +1 -1
  503. package/lib/build/MobileBuildSummary/MobileBuildSummary.stories.js.map +1 -1
  504. package/lib/build/ObjectSelect/ObjectSelect.stories.d.ts +6 -6
  505. package/lib/build/ObjectSelect/ObjectSelect.stories.d.ts.map +1 -1
  506. package/lib/build/ObjectSelect/ObjectSelect.stories.js.map +1 -1
  507. package/lib/build/PageBanner/PageBanner.stories.d.ts +5 -5
  508. package/lib/build/PageBanner/PageBanner.stories.d.ts.map +1 -1
  509. package/lib/build/PageBanner/PageBanner.stories.js.map +1 -1
  510. package/lib/build/PageTemplates/GalleryPage.stories.d.ts +4 -4
  511. package/lib/build/PageTemplates/GalleryPage.stories.d.ts.map +1 -1
  512. package/lib/build/PageTemplates/GalleryPage.stories.js.map +1 -1
  513. package/lib/build/PageTemplates/PageTemplates.stories.d.ts +5 -5
  514. package/lib/build/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
  515. package/lib/build/PageTemplates/PageTemplates.stories.js.map +1 -1
  516. package/lib/build/PageTemplates/ShowcasePage.stories.d.ts +5 -5
  517. package/lib/build/PageTemplates/ShowcasePage.stories.d.ts.map +1 -1
  518. package/lib/build/PageTemplates/ShowcasePage.stories.js.map +1 -1
  519. package/lib/build/Workbench/Workbench.stories.d.ts +4 -4
  520. package/lib/build/Workbench/Workbench.stories.d.ts.map +1 -1
  521. package/lib/build/Workbench/Workbench.stories.js.map +1 -1
  522. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts +5 -5
  523. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts.map +1 -1
  524. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.js.map +1 -1
  525. package/lib/condition-builder/ConditionInput/ConditionInput.stories.d.ts +4 -4
  526. package/lib/condition-builder/ConditionInput/ConditionInput.stories.d.ts.map +1 -1
  527. package/lib/condition-builder/ConditionInput/ConditionInput.stories.js.map +1 -1
  528. package/lib/condition-builder/PromotedFilters/PromotedFilters.stories.d.ts +3 -3
  529. package/lib/condition-builder/PromotedFilters/PromotedFilters.stories.d.ts.map +1 -1
  530. package/lib/condition-builder/PromotedFilters/PromotedFilters.stories.js.map +1 -1
  531. package/lib/core/AIButton/AIButton.stories.d.ts +7 -7
  532. package/lib/core/AIButton/AIButton.stories.d.ts.map +1 -1
  533. package/lib/core/AIButton/AIButton.stories.js.map +1 -1
  534. package/lib/core/AdditionalInfo/AdditionalInfo.stories.d.ts +4 -4
  535. package/lib/core/AdditionalInfo/AdditionalInfo.stories.d.ts.map +1 -1
  536. package/lib/core/AdditionalInfo/AdditionalInfo.stories.js.map +1 -1
  537. package/lib/core/AppShell/AppShell.stories.d.ts +5 -5
  538. package/lib/core/AppShell/AppShell.stories.d.ts.map +1 -1
  539. package/lib/core/AppShell/AppShell.stories.js.map +1 -1
  540. package/lib/core/Avatar/Avatar.stories.d.ts +9 -9
  541. package/lib/core/Avatar/Avatar.stories.d.ts.map +1 -1
  542. package/lib/core/Avatar/Avatar.stories.js.map +1 -1
  543. package/lib/core/Backdrop/Backdrop.stories.d.ts +5 -5
  544. package/lib/core/Backdrop/Backdrop.stories.d.ts.map +1 -1
  545. package/lib/core/Backdrop/Backdrop.stories.js.map +1 -1
  546. package/lib/core/Badges/Alert.stories.d.ts +4 -4
  547. package/lib/core/Badges/Alert.stories.d.ts.map +1 -1
  548. package/lib/core/Badges/Alert.stories.js.map +1 -1
  549. package/lib/core/Badges/Count.stories.d.ts +4 -4
  550. package/lib/core/Badges/Count.stories.d.ts.map +1 -1
  551. package/lib/core/Badges/Count.stories.js.map +1 -1
  552. package/lib/core/Badges/Keyboard.stories.d.ts +4 -4
  553. package/lib/core/Badges/Keyboard.stories.d.ts.map +1 -1
  554. package/lib/core/Badges/Keyboard.stories.js.map +1 -1
  555. package/lib/core/Badges/Selection.stories.d.ts +3 -3
  556. package/lib/core/Badges/Selection.stories.d.ts.map +1 -1
  557. package/lib/core/Badges/Selection.stories.js.map +1 -1
  558. package/lib/core/Badges/Status.stories.d.ts +5 -5
  559. package/lib/core/Badges/Status.stories.d.ts.map +1 -1
  560. package/lib/core/Badges/Status.stories.js.map +1 -1
  561. package/lib/core/Badges/Tag.stories.d.ts +3 -3
  562. package/lib/core/Badges/Tag.stories.d.ts.map +1 -1
  563. package/lib/core/Badges/Tag.stories.js.map +1 -1
  564. package/lib/core/Banner/Banner.stories.d.ts +7 -7
  565. package/lib/core/Banner/Banner.stories.d.ts.map +1 -1
  566. package/lib/core/Banner/Banner.stories.js.map +1 -1
  567. package/lib/core/Boolean/BooleanDisplay.stories.d.ts +4 -4
  568. package/lib/core/Boolean/BooleanDisplay.stories.d.ts.map +1 -1
  569. package/lib/core/Boolean/BooleanDisplay.stories.js.map +1 -1
  570. package/lib/core/Breadcrumbs/Breadcrumbs.stories.d.ts +4 -4
  571. package/lib/core/Breadcrumbs/Breadcrumbs.stories.d.ts.map +1 -1
  572. package/lib/core/Breadcrumbs/Breadcrumbs.stories.js.map +1 -1
  573. package/lib/core/Button/Button.stories.d.ts +9 -9
  574. package/lib/core/Button/Button.stories.d.ts.map +1 -1
  575. package/lib/core/Button/Button.stories.js.map +1 -1
  576. package/lib/core/Card/Card.stories.d.ts +6 -6
  577. package/lib/core/Card/Card.stories.d.ts.map +1 -1
  578. package/lib/core/Card/Card.stories.js.map +1 -1
  579. package/lib/core/Checkbox/Checkbox.stories.d.ts +6 -6
  580. package/lib/core/Checkbox/Checkbox.stories.d.ts.map +1 -1
  581. package/lib/core/Checkbox/Checkbox.stories.js.map +1 -1
  582. package/lib/core/CheckboxGroup/CheckboxGroup.stories.d.ts +5 -5
  583. package/lib/core/CheckboxGroup/CheckboxGroup.stories.d.ts.map +1 -1
  584. package/lib/core/CheckboxGroup/CheckboxGroup.stories.js.map +1 -1
  585. package/lib/core/ColorPicker/ColorPicker.stories.d.ts +5 -5
  586. package/lib/core/ColorPicker/ColorPicker.stories.d.ts.map +1 -1
  587. package/lib/core/ColorPicker/ColorPicker.stories.js.map +1 -1
  588. package/lib/core/ComboBox/ComboBox.stories.d.ts +9 -9
  589. package/lib/core/ComboBox/ComboBox.stories.d.ts.map +1 -1
  590. package/lib/core/ComboBox/ComboBox.stories.js.map +1 -1
  591. package/lib/core/CompositeInput/CompositeInput.stories.d.ts +3 -3
  592. package/lib/core/CompositeInput/CompositeInput.stories.d.ts.map +1 -1
  593. package/lib/core/CompositeInput/CompositeInput.stories.js.map +1 -1
  594. package/lib/core/Configuration/Configuration.stories.d.ts +8 -8
  595. package/lib/core/Configuration/Configuration.stories.d.ts.map +1 -1
  596. package/lib/core/Configuration/Configuration.stories.js.map +1 -1
  597. package/lib/core/CreditCard/CreditCard.stories.d.ts +4 -4
  598. package/lib/core/CreditCard/CreditCard.stories.d.ts.map +1 -1
  599. package/lib/core/CreditCard/CreditCard.stories.js +1 -2
  600. package/lib/core/CreditCard/CreditCard.stories.js.map +1 -1
  601. package/lib/core/Currency/Currency.stories.d.ts +5 -5
  602. package/lib/core/Currency/Currency.stories.d.ts.map +1 -1
  603. package/lib/core/Currency/Currency.stories.js.map +1 -1
  604. package/lib/core/DangerButton/DangerButton.stories.d.ts +4 -4
  605. package/lib/core/DangerButton/DangerButton.stories.d.ts.map +1 -1
  606. package/lib/core/DangerButton/DangerButton.stories.js.map +1 -1
  607. package/lib/core/DateTime/DateTime.stories.d.ts +13 -13
  608. package/lib/core/DateTime/DateTime.stories.d.ts.map +1 -1
  609. package/lib/core/DateTime/DateTime.stories.js.map +1 -1
  610. package/lib/core/DateTime/DateTimeDisplay.stories.d.ts +5 -5
  611. package/lib/core/DateTime/DateTimeDisplay.stories.d.ts.map +1 -1
  612. package/lib/core/DateTime/DateTimeDisplay.stories.js.map +1 -1
  613. package/lib/core/DateTime/DateTimePicker.stories.d.ts +5 -5
  614. package/lib/core/DateTime/DateTimePicker.stories.d.ts.map +1 -1
  615. package/lib/core/DateTime/DateTimePicker.stories.js.map +1 -1
  616. package/lib/core/Dialog/Dialog.stories.d.ts +5 -5
  617. package/lib/core/Dialog/Dialog.stories.d.ts.map +1 -1
  618. package/lib/core/Dialog/Dialog.stories.js.map +1 -1
  619. package/lib/core/Drawer/Drawer.stories.d.ts +5 -5
  620. package/lib/core/Drawer/Drawer.stories.d.ts.map +1 -1
  621. package/lib/core/Drawer/Drawer.stories.js.map +1 -1
  622. package/lib/core/Email/EmailDisplay.stories.d.ts +4 -4
  623. package/lib/core/Email/EmailDisplay.stories.d.ts.map +1 -1
  624. package/lib/core/Email/EmailDisplay.stories.js.map +1 -1
  625. package/lib/core/EmojiPicker/EmojiPicker.stories.d.ts +6 -6
  626. package/lib/core/EmojiPicker/EmojiPicker.stories.d.ts.map +1 -1
  627. package/lib/core/EmojiPicker/EmojiPicker.stories.js.map +1 -1
  628. package/lib/core/EmptyState/EmptyState.stories.d.ts +4 -4
  629. package/lib/core/EmptyState/EmptyState.stories.d.ts.map +1 -1
  630. package/lib/core/EmptyState/EmptyState.stories.js.map +1 -1
  631. package/lib/core/ErrorState/ErrorState.stories.d.ts +4 -4
  632. package/lib/core/ErrorState/ErrorState.stories.d.ts.map +1 -1
  633. package/lib/core/ErrorState/ErrorState.stories.js.map +1 -1
  634. package/lib/core/ExpandCollapse/ExpandCollapse.stories.d.ts +5 -5
  635. package/lib/core/ExpandCollapse/ExpandCollapse.stories.d.ts.map +1 -1
  636. package/lib/core/ExpandCollapse/ExpandCollapse.stories.js.map +1 -1
  637. package/lib/core/FieldGroup/FieldGroup.stories.d.ts +4 -4
  638. package/lib/core/FieldGroup/FieldGroup.stories.d.ts.map +1 -1
  639. package/lib/core/FieldGroup/FieldGroup.stories.js.map +1 -1
  640. package/lib/core/FieldGroup/FieldGroupList.stories.d.ts +5 -5
  641. package/lib/core/FieldGroup/FieldGroupList.stories.d.ts.map +1 -1
  642. package/lib/core/FieldGroup/FieldGroupList.stories.js.map +1 -1
  643. package/lib/core/FieldValueList/FieldValueList.stories.d.ts +4 -4
  644. package/lib/core/FieldValueList/FieldValueList.stories.d.ts.map +1 -1
  645. package/lib/core/FieldValueList/FieldValueList.stories.js.map +1 -1
  646. package/lib/core/File/FileDisplay.stories.d.ts +6 -6
  647. package/lib/core/File/FileDisplay.stories.d.ts.map +1 -1
  648. package/lib/core/File/FileDisplay.stories.js.map +1 -1
  649. package/lib/core/File/FileInput.stories.d.ts +4 -4
  650. package/lib/core/File/FileInput.stories.d.ts.map +1 -1
  651. package/lib/core/File/FileInput.stories.js.map +1 -1
  652. package/lib/core/Flex/FlexContainer.stories.d.ts +10 -10
  653. package/lib/core/Flex/FlexContainer.stories.d.ts.map +1 -1
  654. package/lib/core/Flex/FlexContainer.stories.js.map +1 -1
  655. package/lib/core/Flex/FlexItem.stories.d.ts +6 -6
  656. package/lib/core/Flex/FlexItem.stories.d.ts.map +1 -1
  657. package/lib/core/Flex/FlexItem.stories.js.map +1 -1
  658. package/lib/core/Form/Form.stories.d.ts +8 -8
  659. package/lib/core/Form/Form.stories.d.ts.map +1 -1
  660. package/lib/core/Form/Form.stories.js.map +1 -1
  661. package/lib/core/Grid/GridContainer.stories.d.ts +12 -12
  662. package/lib/core/Grid/GridContainer.stories.d.ts.map +1 -1
  663. package/lib/core/Grid/GridContainer.stories.js.map +1 -1
  664. package/lib/core/Grid/GridItem.stories.d.ts +6 -6
  665. package/lib/core/Grid/GridItem.stories.d.ts.map +1 -1
  666. package/lib/core/Grid/GridItem.stories.js.map +1 -1
  667. package/lib/core/HTML/HTML.stories.d.ts +4 -4
  668. package/lib/core/HTML/HTML.stories.d.ts.map +1 -1
  669. package/lib/core/HTML/HTML.stories.js.map +1 -1
  670. package/lib/core/Icon/Icon.stories.d.ts +6 -6
  671. package/lib/core/Icon/Icon.stories.d.ts.map +1 -1
  672. package/lib/core/Icon/Icon.stories.js.map +1 -1
  673. package/lib/core/IconPicker/IconPicker.stories.d.ts +4 -4
  674. package/lib/core/IconPicker/IconPicker.stories.d.ts.map +1 -1
  675. package/lib/core/IconPicker/IconPicker.stories.js.map +1 -1
  676. package/lib/core/Image/Image.stories.d.ts +3 -3
  677. package/lib/core/Image/Image.stories.d.ts.map +1 -1
  678. package/lib/core/Image/Image.stories.js.map +1 -1
  679. package/lib/core/Input/Input.stories.d.ts +6 -6
  680. package/lib/core/Input/Input.stories.d.ts.map +1 -1
  681. package/lib/core/Input/Input.stories.js.map +1 -1
  682. package/lib/core/Label/Label.stories.d.ts +5 -5
  683. package/lib/core/Label/Label.stories.d.ts.map +1 -1
  684. package/lib/core/Label/Label.stories.js.map +1 -1
  685. package/lib/core/Lightbox/Lightbox.stories.d.ts +3 -3
  686. package/lib/core/Lightbox/Lightbox.stories.d.ts.map +1 -1
  687. package/lib/core/Lightbox/Lightbox.stories.js.map +1 -1
  688. package/lib/core/Link/Link.stories.d.ts +7 -7
  689. package/lib/core/Link/Link.stories.d.ts.map +1 -1
  690. package/lib/core/Link/Link.stories.js.map +1 -1
  691. package/lib/core/List/CommaSeparatedList.stories.d.ts +4 -4
  692. package/lib/core/List/CommaSeparatedList.stories.d.ts.map +1 -1
  693. package/lib/core/List/CommaSeparatedList.stories.js.map +1 -1
  694. package/lib/core/List/OrderedList.stories.d.ts +4 -4
  695. package/lib/core/List/OrderedList.stories.d.ts.map +1 -1
  696. package/lib/core/List/OrderedList.stories.js.map +1 -1
  697. package/lib/core/List/UnorderedList.stories.d.ts +4 -4
  698. package/lib/core/List/UnorderedList.stories.d.ts.map +1 -1
  699. package/lib/core/List/UnorderedList.stories.js.map +1 -1
  700. package/lib/core/ListToolbar/ListToolbar.stories.d.ts +5 -5
  701. package/lib/core/ListToolbar/ListToolbar.stories.d.ts.map +1 -1
  702. package/lib/core/ListToolbar/ListToolbar.stories.js.map +1 -1
  703. package/lib/core/LiveLog/LiveLog.stories.d.ts +4 -4
  704. package/lib/core/LiveLog/LiveLog.stories.d.ts.map +1 -1
  705. package/lib/core/LiveLog/LiveLog.stories.js.map +1 -1
  706. package/lib/core/Location/Location.stories.d.ts +7 -7
  707. package/lib/core/Location/Location.stories.d.ts.map +1 -1
  708. package/lib/core/Location/Location.stories.js +6 -2
  709. package/lib/core/Location/Location.stories.js.map +1 -1
  710. package/lib/core/Menu/Menu.stories.d.ts +6 -6
  711. package/lib/core/Menu/Menu.stories.d.ts.map +1 -1
  712. package/lib/core/Menu/Menu.stories.js.map +1 -1
  713. package/lib/core/MenuButton/MenuButton.stories.d.ts +7 -7
  714. package/lib/core/MenuButton/MenuButton.stories.d.ts.map +1 -1
  715. package/lib/core/MenuButton/MenuButton.stories.js.map +1 -1
  716. package/lib/core/MetaList/MetaList.stories.d.ts +4 -4
  717. package/lib/core/MetaList/MetaList.stories.d.ts.map +1 -1
  718. package/lib/core/MetaList/MetaList.stories.js.map +1 -1
  719. package/lib/core/Modal/Modal.stories.d.ts +11 -11
  720. package/lib/core/Modal/Modal.stories.d.ts.map +1 -1
  721. package/lib/core/Modal/Modal.stories.js.map +1 -1
  722. package/lib/core/MultiStepForm/MultiStepForm.stories.d.ts +5 -5
  723. package/lib/core/MultiStepForm/MultiStepForm.stories.d.ts.map +1 -1
  724. package/lib/core/MultiStepForm/MultiStepForm.stories.js.map +1 -1
  725. package/lib/core/NoValue/NoValue.stories.d.ts +4 -4
  726. package/lib/core/NoValue/NoValue.stories.d.ts.map +1 -1
  727. package/lib/core/NoValue/NoValue.stories.js.map +1 -1
  728. package/lib/core/Number/Number.stories.d.ts +7 -7
  729. package/lib/core/Number/Number.stories.d.ts.map +1 -1
  730. package/lib/core/Number/Number.stories.js.map +1 -1
  731. package/lib/core/PageTemplates/PageTemplates.stories.d.ts +7 -7
  732. package/lib/core/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
  733. package/lib/core/PageTemplates/PageTemplates.stories.js.map +1 -1
  734. package/lib/core/Pagination/Pagination.stories.d.ts +4 -4
  735. package/lib/core/Pagination/Pagination.stories.d.ts.map +1 -1
  736. package/lib/core/Pagination/Pagination.stories.js.map +1 -1
  737. package/lib/core/Paragraph/ParagraphDisplay.stories.d.ts +4 -4
  738. package/lib/core/Paragraph/ParagraphDisplay.stories.d.ts.map +1 -1
  739. package/lib/core/Paragraph/ParagraphDisplay.stories.js.map +1 -1
  740. package/lib/core/Phone/Phone.stories.d.ts +5 -5
  741. package/lib/core/Phone/Phone.stories.d.ts.map +1 -1
  742. package/lib/core/Phone/Phone.stories.js.map +1 -1
  743. package/lib/core/Popover/Popover.stories.d.ts +7 -7
  744. package/lib/core/Popover/Popover.stories.d.ts.map +1 -1
  745. package/lib/core/Popover/Popover.stories.js.map +1 -1
  746. package/lib/core/Progress/Progress.stories.d.ts +5 -5
  747. package/lib/core/Progress/Progress.stories.d.ts.map +1 -1
  748. package/lib/core/Progress/Progress.stories.js.map +1 -1
  749. package/lib/core/QRCode/QRCode.stories.d.ts +3 -3
  750. package/lib/core/QRCode/QRCode.stories.d.ts.map +1 -1
  751. package/lib/core/QRCode/QRCode.stories.js.map +1 -1
  752. package/lib/core/RadioButton/RadioButton.stories.d.ts +6 -6
  753. package/lib/core/RadioButton/RadioButton.stories.d.ts.map +1 -1
  754. package/lib/core/RadioButton/RadioButton.stories.js.map +1 -1
  755. package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts +5 -5
  756. package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts.map +1 -1
  757. package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.js.map +1 -1
  758. package/lib/core/Rating/Rating.stories.d.ts +5 -5
  759. package/lib/core/Rating/Rating.stories.d.ts.map +1 -1
  760. package/lib/core/Rating/Rating.stories.js.map +1 -1
  761. package/lib/core/SearchInput/SearchInput.stories.d.ts +5 -5
  762. package/lib/core/SearchInput/SearchInput.stories.d.ts.map +1 -1
  763. package/lib/core/SearchInput/SearchInput.stories.js.map +1 -1
  764. package/lib/core/Select/Select.stories.d.ts +5 -5
  765. package/lib/core/Select/Select.stories.d.ts.map +1 -1
  766. package/lib/core/Select/Select.stories.js.map +1 -1
  767. package/lib/core/Sentiment/Sentiment.stories.d.ts +5 -5
  768. package/lib/core/Sentiment/Sentiment.stories.d.ts.map +1 -1
  769. package/lib/core/Sentiment/Sentiment.stories.js.map +1 -1
  770. package/lib/core/SkipLinks/SkipLinks.stories.d.ts +4 -4
  771. package/lib/core/SkipLinks/SkipLinks.stories.d.ts.map +1 -1
  772. package/lib/core/SkipLinks/SkipLinks.stories.js.map +1 -1
  773. package/lib/core/Slider/Slider.stories.d.ts +4 -4
  774. package/lib/core/Slider/Slider.stories.d.ts.map +1 -1
  775. package/lib/core/Slider/Slider.stories.js.map +1 -1
  776. package/lib/core/SummaryItem/SummaryItem.stories.d.ts +4 -4
  777. package/lib/core/SummaryItem/SummaryItem.stories.d.ts.map +1 -1
  778. package/lib/core/SummaryItem/SummaryItem.stories.js.map +1 -1
  779. package/lib/core/SummaryList/SummaryList.stories.d.ts +5 -5
  780. package/lib/core/SummaryList/SummaryList.stories.d.ts.map +1 -1
  781. package/lib/core/SummaryList/SummaryList.stories.js.map +1 -1
  782. package/lib/core/Switch/Switch.stories.d.ts +6 -6
  783. package/lib/core/Switch/Switch.stories.d.ts.map +1 -1
  784. package/lib/core/Switch/Switch.stories.js.map +1 -1
  785. package/lib/core/Table/Table.stories.d.ts +6 -6
  786. package/lib/core/Table/Table.stories.d.ts.map +1 -1
  787. package/lib/core/Table/Table.stories.js.map +1 -1
  788. package/lib/core/Tabs/Tabs.stories.d.ts +4 -4
  789. package/lib/core/Tabs/Tabs.stories.d.ts.map +1 -1
  790. package/lib/core/Tabs/Tabs.stories.js.map +1 -1
  791. package/lib/core/Text/Text.stories.d.ts +5 -5
  792. package/lib/core/Text/Text.stories.d.ts.map +1 -1
  793. package/lib/core/Text/Text.stories.js.map +1 -1
  794. package/lib/core/TextArea/TextArea.stories.d.ts +5 -5
  795. package/lib/core/TextArea/TextArea.stories.d.ts.map +1 -1
  796. package/lib/core/TextArea/TextArea.stories.js.map +1 -1
  797. package/lib/core/Toaster/Toaster.stories.d.ts +3 -3
  798. package/lib/core/Toaster/Toaster.stories.d.ts.map +1 -1
  799. package/lib/core/Toaster/Toaster.stories.js.map +1 -1
  800. package/lib/core/Tooltip/Tooltip.stories.d.ts +5 -5
  801. package/lib/core/Tooltip/Tooltip.stories.d.ts.map +1 -1
  802. package/lib/core/Tooltip/Tooltip.stories.js.map +1 -1
  803. package/lib/core/Tree/Tree.stories.d.ts +5 -5
  804. package/lib/core/Tree/Tree.stories.d.ts.map +1 -1
  805. package/lib/core/Tree/Tree.stories.js.map +1 -1
  806. package/lib/core/URL/URL.stories.d.ts +4 -4
  807. package/lib/core/URL/URL.stories.d.ts.map +1 -1
  808. package/lib/core/URL/URL.stories.js.map +1 -1
  809. package/lib/cs/Article/Article.stories.d.ts +3 -3
  810. package/lib/cs/Article/Article.stories.d.ts.map +1 -1
  811. package/lib/cs/Article/Article.stories.js.map +1 -1
  812. package/lib/cs/ArticleList/ArticleList.mocks.js +1 -1
  813. package/lib/cs/ArticleList/ArticleList.mocks.js.map +1 -1
  814. package/lib/cs/ArticleList/ArticleList.stories.d.ts +3 -3
  815. package/lib/cs/ArticleList/ArticleList.stories.d.ts.map +1 -1
  816. package/lib/cs/ArticleList/ArticleList.stories.js.map +1 -1
  817. package/lib/cs/CSAppShell/CSAppShell.stories.d.ts +4 -4
  818. package/lib/cs/CSAppShell/CSAppShell.stories.d.ts.map +1 -1
  819. package/lib/cs/CSAppShell/CSAppShell.stories.js.map +1 -1
  820. package/lib/cs/CallControlPanel/CallControlPanel.stories.d.ts +5 -5
  821. package/lib/cs/CallControlPanel/CallControlPanel.stories.d.ts.map +1 -1
  822. package/lib/cs/CallControlPanel/CallControlPanel.stories.js.map +1 -1
  823. package/lib/cs/DialPad/DialPad.stories.d.ts +4 -4
  824. package/lib/cs/DialPad/DialPad.stories.d.ts.map +1 -1
  825. package/lib/cs/DialPad/DialPad.stories.js.map +1 -1
  826. package/lib/cs/InteractionNotification/InteractionNotification.stories.d.ts +3 -3
  827. package/lib/cs/InteractionNotification/InteractionNotification.stories.d.ts.map +1 -1
  828. package/lib/cs/InteractionNotification/InteractionNotification.stories.js.map +1 -1
  829. package/lib/cs/InteractionTimer/InteractionTimer.stories.d.ts +4 -4
  830. package/lib/cs/InteractionTimer/InteractionTimer.stories.d.ts.map +1 -1
  831. package/lib/cs/InteractionTimer/InteractionTimer.stories.js.map +1 -1
  832. package/lib/cs/Picker/Picker.stories.d.ts +6 -6
  833. package/lib/cs/Picker/Picker.stories.d.ts.map +1 -1
  834. package/lib/cs/Picker/Picker.stories.js.map +1 -1
  835. package/lib/cs/TaskManager/TaskManager.stories.d.ts +5 -5
  836. package/lib/cs/TaskManager/TaskManager.stories.d.ts.map +1 -1
  837. package/lib/cs/TaskManager/TaskManager.stories.js.map +1 -1
  838. package/lib/dnd/DragDropList/DragDropList.stories.d.ts +4 -4
  839. package/lib/dnd/DragDropList/DragDropList.stories.d.ts.map +1 -1
  840. package/lib/dnd/DragDropList/DragDropList.stories.js.map +1 -1
  841. package/lib/dnd/StandardDragDropList/Demo.d.ts +1 -0
  842. package/lib/dnd/StandardDragDropList/Demo.d.ts.map +1 -1
  843. package/lib/dnd/StandardDragDropList/StandardDragDropList.stories.d.ts +3 -3
  844. package/lib/dnd/StandardDragDropList/StandardDragDropList.stories.d.ts.map +1 -1
  845. package/lib/dnd/StandardDragDropList/StandardDragDropList.stories.js.map +1 -1
  846. package/lib/rte/DynamicContentEditor/DynamicContentEditor.stories.d.ts +3 -3
  847. package/lib/rte/DynamicContentEditor/DynamicContentEditor.stories.d.ts.map +1 -1
  848. package/lib/rte/DynamicContentEditor/DynamicContentEditor.stories.js.map +1 -1
  849. package/lib/rte/Editor/Editor.stories.d.ts +8 -8
  850. package/lib/rte/Editor/Editor.stories.d.ts.map +1 -1
  851. package/lib/rte/Editor/Editor.stories.js.map +1 -1
  852. package/lib/rte/RichTextEditor/RichTextEditor.stories.d.ts +4 -4
  853. package/lib/rte/RichTextEditor/RichTextEditor.stories.d.ts.map +1 -1
  854. package/lib/rte/RichTextEditor/RichTextEditor.stories.js.map +1 -1
  855. package/lib/rte/RichTextEditor/RichTextViewer.stories.d.ts +6 -6
  856. package/lib/rte/RichTextEditor/RichTextViewer.stories.d.ts.map +1 -1
  857. package/lib/rte/RichTextEditor/RichTextViewer.stories.js.map +1 -1
  858. package/lib/social/Chat/Chat.stories.d.ts +11 -11
  859. package/lib/social/Chat/Chat.stories.d.ts.map +1 -1
  860. package/lib/social/Chat/Chat.stories.js +8 -2
  861. package/lib/social/Chat/Chat.stories.js.map +1 -1
  862. package/lib/social/Email/Email.stories.d.ts +15 -15
  863. package/lib/social/Email/Email.stories.d.ts.map +1 -1
  864. package/lib/social/Email/Email.stories.js.map +1 -1
  865. package/lib/social/Feed/Feed.mocks.d.ts +18 -13
  866. package/lib/social/Feed/Feed.mocks.d.ts.map +1 -1
  867. package/lib/social/Feed/Feed.mocks.js +74 -8
  868. package/lib/social/Feed/Feed.mocks.js.map +1 -1
  869. package/lib/social/Feed/Feed.stories.d.ts +5 -5
  870. package/lib/social/Feed/Feed.stories.d.ts.map +1 -1
  871. package/lib/social/Feed/Feed.stories.js +12 -12
  872. package/lib/social/Feed/Feed.stories.js.map +1 -1
  873. package/lib/social/Feed/FeedNewPost.mocks.d.ts +8 -0
  874. package/lib/social/Feed/FeedNewPost.mocks.d.ts.map +1 -0
  875. package/lib/social/Feed/FeedNewPost.mocks.js +46 -0
  876. package/lib/social/Feed/FeedNewPost.mocks.js.map +1 -0
  877. package/lib/social/Feed/FeedPost.mocks.d.ts +4 -0
  878. package/lib/social/Feed/FeedPost.mocks.d.ts.map +1 -0
  879. package/lib/social/Feed/FeedPost.mocks.js +165 -0
  880. package/lib/social/Feed/FeedPost.mocks.js.map +1 -0
  881. package/lib/social/Feed/FeedReply.mocks.d.ts +13 -0
  882. package/lib/social/Feed/FeedReply.mocks.d.ts.map +1 -0
  883. package/lib/social/Feed/FeedReply.mocks.js +74 -0
  884. package/lib/social/Feed/FeedReply.mocks.js.map +1 -0
  885. package/lib/tools/Clipboard/Clipboard.stories.d.ts +4 -4
  886. package/lib/tools/Clipboard/Clipboard.stories.d.ts.map +1 -1
  887. package/lib/tools/Clipboard/Clipboard.stories.js.map +1 -1
  888. package/lib/tools/DevTools/DevTools.stories.d.ts +4 -4
  889. package/lib/tools/DevTools/DevTools.stories.d.ts.map +1 -1
  890. package/lib/tools/DevTools/DevTools.stories.js.map +1 -1
  891. package/lib/tools/PreviewShell/PreviewShell.stories.d.ts +7 -7
  892. package/lib/tools/PreviewShell/PreviewShell.stories.d.ts.map +1 -1
  893. package/lib/tools/PreviewShell/PreviewShell.stories.js.map +1 -1
  894. package/lib/work/AppAnnouncement/AppAnnouncement.stories.d.ts +4 -4
  895. package/lib/work/AppAnnouncement/AppAnnouncement.stories.d.ts.map +1 -1
  896. package/lib/work/AppAnnouncement/AppAnnouncement.stories.js.map +1 -1
  897. package/lib/work/Assignments/Assignments.stories.d.ts +4 -4
  898. package/lib/work/Assignments/Assignments.stories.d.ts.map +1 -1
  899. package/lib/work/Assignments/Assignments.stories.js.map +1 -1
  900. package/lib/work/CaseView/CaseView.mocks.d.ts +1 -1
  901. package/lib/work/CaseView/CaseView.mocks.d.ts.map +1 -1
  902. package/lib/work/CaseView/CaseView.mocks.js.map +1 -1
  903. package/lib/work/CaseView/CaseView.stories.d.ts +3 -3
  904. package/lib/work/CaseView/CaseView.stories.d.ts.map +1 -1
  905. package/lib/work/CaseView/CaseView.stories.js.map +1 -1
  906. package/lib/work/CaseView/Pulse.mocks.d.ts +1 -1
  907. package/lib/work/CaseView/Pulse.mocks.d.ts.map +1 -1
  908. package/lib/work/CaseView/Pulse.mocks.js.map +1 -1
  909. package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts +3 -3
  910. package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts.map +1 -1
  911. package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.js.map +1 -1
  912. package/lib/work/Confirmation/Confirmation.stories.d.ts +4 -4
  913. package/lib/work/Confirmation/Confirmation.stories.d.ts.map +1 -1
  914. package/lib/work/Confirmation/Confirmation.stories.js.map +1 -1
  915. package/lib/work/Details/Details.stories.d.ts +3 -3
  916. package/lib/work/Details/Details.stories.d.ts.map +1 -1
  917. package/lib/work/Details/Details.stories.js.map +1 -1
  918. package/lib/work/Glimpse/Glimpse.stories.d.ts +3 -3
  919. package/lib/work/Glimpse/Glimpse.stories.d.ts.map +1 -1
  920. package/lib/work/Glimpse/Glimpse.stories.js.map +1 -1
  921. package/lib/work/IntelligentGuidance/IntelligentGuidance.stories.d.ts +4 -4
  922. package/lib/work/IntelligentGuidance/IntelligentGuidance.stories.d.ts.map +1 -1
  923. package/lib/work/IntelligentGuidance/IntelligentGuidance.stories.js.map +1 -1
  924. package/lib/work/Predictions/Predictions.stories.d.ts +3 -3
  925. package/lib/work/Predictions/Predictions.stories.d.ts.map +1 -1
  926. package/lib/work/Predictions/Predictions.stories.js.map +1 -1
  927. package/lib/work/SearchResults/SearchResults.stories.d.ts +3 -3
  928. package/lib/work/SearchResults/SearchResults.stories.d.ts.map +1 -1
  929. package/lib/work/SearchResults/SearchResults.stories.js.map +1 -1
  930. package/lib/work/Stages/Stages.stories.d.ts +4 -4
  931. package/lib/work/Stages/Stages.stories.d.ts.map +1 -1
  932. package/lib/work/Stages/Stages.stories.js.map +1 -1
  933. package/lib/work/Stakeholders/Stakeholders.stories.d.ts +3 -3
  934. package/lib/work/Stakeholders/Stakeholders.stories.d.ts.map +1 -1
  935. package/lib/work/Stakeholders/Stakeholders.stories.js.map +1 -1
  936. package/lib/work/Tags/Tags.stories.d.ts +3 -3
  937. package/lib/work/Tags/Tags.stories.d.ts.map +1 -1
  938. package/lib/work/Tags/Tags.stories.js.map +1 -1
  939. package/lib/work/Tasks/TaskList.stories.d.ts +3 -3
  940. package/lib/work/Tasks/TaskList.stories.d.ts.map +1 -1
  941. package/lib/work/Tasks/TaskList.stories.js.map +1 -1
  942. package/lib/work/Tasks/Tasks.stories.d.ts +4 -4
  943. package/lib/work/Tasks/Tasks.stories.d.ts.map +1 -1
  944. package/lib/work/Tasks/Tasks.stories.js.map +1 -1
  945. package/lib/work/Timeline/Timeline.stories.d.ts +6 -6
  946. package/lib/work/Timeline/Timeline.stories.d.ts.map +1 -1
  947. package/lib/work/Timeline/Timeline.stories.js.map +1 -1
  948. package/lib/wss/AppShell/AppShell.stories.d.ts +5 -5
  949. package/lib/wss/AppShell/AppShell.stories.d.ts.map +1 -1
  950. package/lib/wss/AppShell/AppShell.stories.js.map +1 -1
  951. package/lib/wss/CaseView/CaseView.stories.d.ts +3 -3
  952. package/lib/wss/CaseView/CaseView.stories.d.ts.map +1 -1
  953. package/lib/wss/CaseView/CaseView.stories.js +2 -2
  954. package/lib/wss/CaseView/CaseView.stories.js.map +1 -1
  955. package/lib/wss/PageTemplates/PageTemplates.stories.d.ts +3 -3
  956. package/lib/wss/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
  957. package/lib/wss/PageTemplates/PageTemplates.stories.js.map +1 -1
  958. package/lib/wss/QuickCreate/QuickCreate.stories.d.ts +3 -3
  959. package/lib/wss/QuickCreate/QuickCreate.stories.d.ts.map +1 -1
  960. package/lib/wss/QuickCreate/QuickCreate.stories.js.map +1 -1
  961. package/package.json +17 -17
  962. package/jsx/social/Feed/FeedNewPost.stories.d.ts +0 -10
  963. package/jsx/social/Feed/FeedNewPost.stories.d.ts.map +0 -1
  964. package/jsx/social/Feed/FeedNewPost.stories.jsx +0 -81
  965. package/jsx/social/Feed/FeedNewPost.stories.jsx.map +0 -1
  966. package/jsx/social/Feed/FeedPost.stories.d.ts +0 -8
  967. package/jsx/social/Feed/FeedPost.stories.d.ts.map +0 -1
  968. package/jsx/social/Feed/FeedPost.stories.jsx +0 -266
  969. package/jsx/social/Feed/FeedPost.stories.jsx.map +0 -1
  970. package/jsx/social/Feed/FeedReply.stories.d.ts +0 -16
  971. package/jsx/social/Feed/FeedReply.stories.d.ts.map +0 -1
  972. package/jsx/social/Feed/FeedReply.stories.jsx +0 -112
  973. package/jsx/social/Feed/FeedReply.stories.jsx.map +0 -1
  974. package/jsx/social/Feed/FeedReplyInput.stories.d.ts +0 -10
  975. package/jsx/social/Feed/FeedReplyInput.stories.d.ts.map +0 -1
  976. package/jsx/social/Feed/FeedReplyInput.stories.jsx +0 -60
  977. package/jsx/social/Feed/FeedReplyInput.stories.jsx.map +0 -1
  978. package/lib/social/Feed/FeedNewPost.stories.d.ts +0 -10
  979. package/lib/social/Feed/FeedNewPost.stories.d.ts.map +0 -1
  980. package/lib/social/Feed/FeedNewPost.stories.js +0 -83
  981. package/lib/social/Feed/FeedNewPost.stories.js.map +0 -1
  982. package/lib/social/Feed/FeedPost.stories.d.ts +0 -8
  983. package/lib/social/Feed/FeedPost.stories.d.ts.map +0 -1
  984. package/lib/social/Feed/FeedPost.stories.js +0 -259
  985. package/lib/social/Feed/FeedPost.stories.js.map +0 -1
  986. package/lib/social/Feed/FeedReply.stories.d.ts +0 -16
  987. package/lib/social/Feed/FeedReply.stories.d.ts.map +0 -1
  988. package/lib/social/Feed/FeedReply.stories.js +0 -108
  989. package/lib/social/Feed/FeedReply.stories.js.map +0 -1
  990. package/lib/social/Feed/FeedReplyInput.stories.d.ts +0 -10
  991. package/lib/social/Feed/FeedReplyInput.stories.d.ts.map +0 -1
  992. package/lib/social/Feed/FeedReplyInput.stories.js +0 -61
  993. package/lib/social/Feed/FeedReplyInput.stories.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"SummaryItem.stories.d.ts","sourceRoot":"","sources":["../../../src/core/SummaryItem/SummaryItem.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAE/C,OAAO,EAOL,gBAAgB,EACjB,MAAM,yBAAyB,CAAC;;AAEjC,wBAMU;AAEV,KAAK,qBAAqB,GAAG,gBAAgB,GAAG;IAC9C,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,qBAAqB,CA+CxD,CAAC"}
1
+ {"version":3,"file":"SummaryItem.stories.d.ts","sourceRoot":"","sources":["../../../src/core/SummaryItem/SummaryItem.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAGtD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;;AAEhE,wBAMU;AAEV,KAAK,qBAAqB,GAAG,gBAAgB,GAAG;IAC9C,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,OAAO,CAAC,qBAAqB,CA+C1D,CAAC"}
@@ -1 +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,QAAQ,EACR,MAAM,EACN,WAAW,EAEZ,MAAM,yBAAyB,CAAC;AAEjC,eAAe;IACb,KAAK,EAAE,kBAAkB;IACzB,SAAS,EAAE,WAAW;IACtB,UAAU,EAAE;QACV,MAAM,EAAE,UAAU;KACnB;CACM,CAAC;AAQV,MAAM,CAAC,MAAM,eAAe,GAAiC,CAAC,IAA2B,EAAE,EAAE;IAC3F,OAAO,CACL,KAAC,WAAW,IACV,OAAO,EAAC,0BAA0B,EAClC,SAAS,EACP,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,CACnB,KAAC,QAAQ,IACP,KAAK,EAAE;gBACL,mBAAmB;gBACnB,KAAC,MAAM,IAAC,OAAO,EAAC,SAAS,yBAAk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emProps\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\ntype SummaryItemStoryProps = 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"]}
1
+ {"version":3,"file":"SummaryItem.stories.js","sourceRoot":"","sources":["../../../src/core/SummaryItem/SummaryItem.stories.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAGlG,eAAe;IACb,KAAK,EAAE,kBAAkB;IACzB,SAAS,EAAE,WAAW;IACtB,UAAU,EAAE;QACV,MAAM,EAAE,UAAU;KACnB;CACM,CAAC;AAQV,MAAM,CAAC,MAAM,eAAe,GAAmC,CAAC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O,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IAC5C,WAAW,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;CAC9C,CAAC","sourcesContent":["import type { Meta, StoryFn } from '@storybook/react';\n\nimport { Avatar, Link, MenuButton, MetaList, Status, SummaryItem } from '@pega/cosmos-react-core';\nimport type { SummaryItemProps } 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\ntype SummaryItemStoryProps = SummaryItemProps & {\n showSecondary?: boolean;\n showVisual?: boolean;\n showActions?: boolean;\n};\n\nexport const SummaryItemDemo: StoryFn<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"]}
@@ -1,6 +1,6 @@
1
- import { Meta, Story } from '@storybook/react';
2
- import { OmitStrict, SummaryListProps } from '@pega/cosmos-react-core';
3
- declare const _default: Meta;
1
+ import type { StoryFn } from '@storybook/react';
2
+ import type { OmitStrict, SummaryListProps } from '@pega/cosmos-react-core';
3
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
4
4
  export default _default;
5
5
  interface SummaryListStoryProps extends OmitStrict<SummaryListProps, 'items'> {
6
6
  showSecondary?: boolean;
@@ -8,6 +8,6 @@ interface SummaryListStoryProps extends OmitStrict<SummaryListProps, 'items'> {
8
8
  showActions?: boolean;
9
9
  noItems?: boolean;
10
10
  }
11
- export declare const SummaryListDemo: Story<SummaryListStoryProps>;
12
- export declare const SummaryListViewAll: Story<SummaryListStoryProps>;
11
+ export declare const SummaryListDemo: StoryFn<SummaryListStoryProps>;
12
+ export declare const SummaryListViewAll: StoryFn<SummaryListStoryProps>;
13
13
  //# sourceMappingURL=SummaryList.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SummaryList.stories.d.ts","sourceRoot":"","sources":["../../../src/core/SummaryList/SummaryList.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAG/C,OAAO,EAEL,UAAU,EAGV,gBAAgB,EAIjB,MAAM,yBAAyB,CAAC;;AAIjC,wBA4BU;AAEV,UAAU,qBAAsB,SAAQ,UAAU,CAAC,gBAAgB,EAAE,OAAO,CAAC;IAC3E,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,qBAAqB,CAmDxD,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,qBAAqB,CAqG3D,CAAC"}
1
+ {"version":3,"file":"SummaryList.stories.d.ts","sourceRoot":"","sources":["../../../src/core/SummaryList/SummaryList.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAWtD,OAAO,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;;AAI5E,wBA4BU;AAEV,UAAU,qBAAsB,SAAQ,UAAU,CAAC,gBAAgB,EAAE,OAAO,CAAC;IAC3E,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,eAAO,MAAM,eAAe,EAAE,OAAO,CAAC,qBAAqB,CAmD1D,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,OAAO,CAAC,qBAAqB,CAqG7D,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"SummaryList.stories.js","sourceRoot":"","sources":["../../../src/core/SummaryList/SummaryList.stories.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,EACL,KAAK,EAEL,KAAK,EACL,WAAW,EAEX,OAAO,EACP,mBAAmB,EACnB,eAAe,EAChB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEtD,eAAe;IACb,KAAK,EAAE,kBAAkB;IACzB,SAAS,EAAE,WAAW;IACtB,UAAU,EAAE;QACV,MAAM,EAAE,UAAU;KACnB;IACD,IAAI,EAAE;QACJ,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,aAAa;QACnB,KAAK,EAAE,CAAC;QACR,OAAO,EAAE,KAAK;QACd,aAAa,EAAE,IAAI;QACnB,UAAU,EAAE,IAAI;QAChB,WAAW,EAAE,IAAI;QACjB,OAAO,EAAE,KAAK;QACd,WAAW,EAAE,UAAU;KACxB;IACD,QAAQ,EAAE;QACR,IAAI,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,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KAAK,IAAC,OAAO,EAAE,WAAW,IAAI,CAAC,IAAI,EAAE,YACnC,0BAA0B,IAAI,CAAC,IAAI,aAAa,GAC3C,CACT,CAAC;oBACJ,CAAC,CAAC,CAAC;gBACL,CAAC;aACF;SACF,EACD,SAAS,EAAE,GAAG,EAAE;YACd,WAAW,CAAC,uBAAuB,EAAE;gBACnC,IAAI,EAAE,IAAI,CAAC,IAAI;gBACf,KAAK,EAAE,IAAI,CAAC,KAAK;gBACjB,OAAO,EAAE,IAAI,CAAC,OAAO;aACtB,CAAC,CAAC;QACL,CAAC,GACD,CACH,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\nimport { useMemo, useState } from 'react';\n\nimport {\n icons,\n OmitStrict,\n Modal,\n SummaryList,\n SummaryListProps,\n ViewAll,\n createStringMatcher,\n useModalManager\n} from '@pega/cosmos-react-core';\n\nimport { useMockListData } from './SummaryList.mocks';\n\nexport default {\n title: 'Core/SummaryList',\n component: SummaryList,\n parameters: {\n layout: 'centered'\n },\n args: {\n name: 'People',\n icon: 'users-solid',\n count: 5,\n loading: false,\n showSecondary: true,\n showVisual: true,\n showActions: true,\n noItems: false,\n noItemsText: 'No items'\n },\n argTypes: {\n name: { control: { type: 'text' } },\n icon: { options: icons, control: { type: 'select', icons: true } },\n count: { control: { type: 'number' } },\n loading: { control: { type: 'boolean' } },\n showSecondary: { control: { type: 'boolean' } },\n showVisual: { control: { type: 'boolean' } },\n showActions: { control: { type: 'boolean' } },\n noItems: { control: { type: 'boolean' } },\n noItemsText: { control: { type: 'text' } }\n }\n} as Meta;\n\ninterface SummaryListStoryProps extends OmitStrict<SummaryListProps, 'items'> {\n showSecondary?: boolean;\n showVisual?: boolean;\n showActions?: boolean;\n noItems?: boolean;\n}\n\nexport const SummaryListDemo: Story<SummaryListStoryProps> = (args: SummaryListStoryProps) => {\n const { create: createModal } = useModalManager();\n const [loading, setLoading] = useState(true);\n\n const [items] = useMockListData(\n () => {\n setLoading(false);\n },\n { count: args.count }\n );\n\n const itemsToRender = items.map(item => {\n return {\n ...item,\n secondary: args.showSecondary ? item.secondary : undefined,\n visual: args.showVisual ? item.visual : undefined,\n actions: args.showActions\n ? ['Action 1', 'Action 2', 'Action 3'].map(text => ({\n text,\n id: text\n }))\n : undefined\n };\n });\n\n return (\n <SummaryList\n name={args.name}\n icon={args.icon}\n count={args.loading || loading ? undefined : args.count}\n items={args.noItems ? [] : itemsToRender}\n loading={args.loading || loading}\n noItemsText={args.noItemsText}\n actions={[\n {\n text: 'Add',\n id: `${args.name}:addNew`,\n icon: 'plus',\n onClick() {\n createModal(() => {\n return (\n <Modal heading={`Add new ${args.name}`}>\n {`Content for adding new ${args.name} goes here…`}\n </Modal>\n );\n });\n }\n }\n ]}\n />\n );\n};\n\nexport const SummaryListViewAll: Story<SummaryListStoryProps> = (args: SummaryListStoryProps) => {\n const SummaryListViewAllModal = ({\n name,\n count,\n loading\n }: OmitStrict<SummaryListProps, 'items'>) => {\n const [search, setSearch] = useState('');\n const [modalLoading, setModalLoading] = useState(true);\n\n const [items] = useMockListData(\n () => {\n setModalLoading(false);\n },\n {\n count\n }\n );\n\n const itemsToRender = useMemo(() => {\n if (search.trim()) {\n const filterRegex = createStringMatcher(search, 'boundary');\n return items.filter(({ primary }) => filterRegex.test(primary));\n }\n\n return items;\n }, [items, search]);\n\n return (\n <Modal heading={args.name}>\n <ViewAll\n loading={loading || modalLoading}\n items={itemsToRender}\n actions={[\n {\n id: 'addNew',\n text: `Add ${name}`\n }\n ]}\n searchInputProps={{ onSearchChange: setSearch }}\n />\n </Modal>\n );\n };\n\n const { create: createModal } = useModalManager();\n const [loading, setLoading] = useState(true);\n\n const [items] = useMockListData(\n () => {\n setLoading(false);\n },\n { count: 3 }\n );\n\n const itemsToRender = items.map(item => {\n return {\n ...item,\n secondary: args.showSecondary ? item.secondary : undefined,\n visual: args.showVisual ? item.visual : undefined,\n actions: args.showActions\n ? ['Action 1', 'Action 2', 'Action 3'].map(text => ({\n text,\n id: text\n }))\n : undefined\n };\n });\n\n return (\n <SummaryList\n name={args.name}\n icon={args.icon}\n count={args.loading || loading ? undefined : args.count}\n items={args.noItems ? [] : itemsToRender}\n loading={args.loading || loading}\n noItemsText={args.noItemsText}\n actions={[\n {\n text: 'Add',\n id: `${args.name}:addNew`,\n icon: 'plus',\n onClick() {\n createModal(() => {\n return (\n <Modal heading={`Add new ${args.name}`}>\n {`Content for adding new ${args.name} goes here…`}\n </Modal>\n );\n });\n }\n }\n ]}\n onViewAll={() => {\n createModal(SummaryListViewAllModal, {\n name: args.name,\n count: args.count,\n loading: args.loading\n });\n }}\n />\n );\n};\n"]}
1
+ {"version":3,"file":"SummaryList.stories.js","sourceRoot":"","sources":["../../../src/core/SummaryList/SummaryList.stories.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,EACL,KAAK,EACL,KAAK,EACL,WAAW,EACX,OAAO,EACP,mBAAmB,EACnB,eAAe,EAChB,MAAM,yBAAyB,CAAC;AAGjC,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEtD,eAAe;IACb,KAAK,EAAE,kBAAkB;IACzB,SAAS,EAAE,WAAW;IACtB,UAAU,EAAE;QACV,MAAM,EAAE,UAAU;KACnB;IACD,IAAI,EAAE;QACJ,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,aAAa;QACnB,KAAK,EAAE,CAAC;QACR,OAAO,EAAE,KAAK;QACd,aAAa,EAAE,IAAI;QACnB,UAAU,EAAE,IAAI;QAChB,WAAW,EAAE,IAAI;QACjB,OAAO,EAAE,KAAK;QACd,WAAW,EAAE,UAAU;KACxB;IACD,QAAQ,EAAE;QACR,IAAI,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;QACnC,IAAI,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,Q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CAAC;oBACJ,CAAC,CAAC,CAAC;gBACL,CAAC;aACF;SACF,EACD,SAAS,EAAE,GAAG,EAAE;YACd,WAAW,CAAC,uBAAuB,EAAE;gBACnC,IAAI,EAAE,IAAI,CAAC,IAAI;gBACf,KAAK,EAAE,IAAI,CAAC,KAAK;gBACjB,OAAO,EAAE,IAAI,CAAC,OAAO;aACtB,CAAC,CAAC;QACL,CAAC,GACD,CACH,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import type { Meta, StoryFn } from '@storybook/react';\nimport { useMemo, useState } from 'react';\n\nimport {\n icons,\n Modal,\n SummaryList,\n ViewAll,\n createStringMatcher,\n useModalManager\n} from '@pega/cosmos-react-core';\nimport type { OmitStrict, SummaryListProps } from '@pega/cosmos-react-core';\n\nimport { useMockListData } from './SummaryList.mocks';\n\nexport default {\n title: 'Core/SummaryList',\n component: SummaryList,\n parameters: {\n layout: 'centered'\n },\n args: {\n name: 'People',\n icon: 'users-solid',\n count: 5,\n loading: false,\n showSecondary: true,\n showVisual: true,\n showActions: true,\n noItems: false,\n noItemsText: 'No items'\n },\n argTypes: {\n name: { control: { type: 'text' } },\n icon: { options: icons, control: { type: 'select', icons: true } },\n count: { control: { type: 'number' } },\n loading: { control: { type: 'boolean' } },\n showSecondary: { control: { type: 'boolean' } },\n showVisual: { control: { type: 'boolean' } },\n showActions: { control: { type: 'boolean' } },\n noItems: { control: { type: 'boolean' } },\n noItemsText: { control: { type: 'text' } }\n }\n} as Meta;\n\ninterface SummaryListStoryProps extends OmitStrict<SummaryListProps, 'items'> {\n showSecondary?: boolean;\n showVisual?: boolean;\n showActions?: boolean;\n noItems?: boolean;\n}\n\nexport const SummaryListDemo: StoryFn<SummaryListStoryProps> = (args: SummaryListStoryProps) => {\n const { create: createModal } = useModalManager();\n const [loading, setLoading] = useState(true);\n\n const [items] = useMockListData(\n () => {\n setLoading(false);\n },\n { count: args.count }\n );\n\n const itemsToRender = items.map(item => {\n return {\n ...item,\n secondary: args.showSecondary ? item.secondary : undefined,\n visual: args.showVisual ? item.visual : undefined,\n actions: args.showActions\n ? ['Action 1', 'Action 2', 'Action 3'].map(text => ({\n text,\n id: text\n }))\n : undefined\n };\n });\n\n return (\n <SummaryList\n name={args.name}\n icon={args.icon}\n count={args.loading || loading ? undefined : args.count}\n items={args.noItems ? [] : itemsToRender}\n loading={args.loading || loading}\n noItemsText={args.noItemsText}\n actions={[\n {\n text: 'Add',\n id: `${args.name}:addNew`,\n icon: 'plus',\n onClick() {\n createModal(() => {\n return (\n <Modal heading={`Add new ${args.name}`}>\n {`Content for adding new ${args.name} goes here…`}\n </Modal>\n );\n });\n }\n }\n ]}\n />\n );\n};\n\nexport const SummaryListViewAll: StoryFn<SummaryListStoryProps> = (args: SummaryListStoryProps) => {\n const SummaryListViewAllModal = ({\n name,\n count,\n loading\n }: OmitStrict<SummaryListProps, 'items'>) => {\n const [search, setSearch] = useState('');\n const [modalLoading, setModalLoading] = useState(true);\n\n const [items] = useMockListData(\n () => {\n setModalLoading(false);\n },\n {\n count\n }\n );\n\n const itemsToRender = useMemo(() => {\n if (search.trim()) {\n const filterRegex = createStringMatcher(search, 'boundary');\n return items.filter(({ primary }) => filterRegex.test(primary));\n }\n\n return items;\n }, [items, search]);\n\n return (\n <Modal heading={args.name}>\n <ViewAll\n loading={loading || modalLoading}\n items={itemsToRender}\n actions={[\n {\n id: 'addNew',\n text: `Add ${name}`\n }\n ]}\n searchInputProps={{ onSearchChange: setSearch }}\n />\n </Modal>\n );\n };\n\n const { create: createModal } = useModalManager();\n const [loading, setLoading] = useState(true);\n\n const [items] = useMockListData(\n () => {\n setLoading(false);\n },\n { count: 3 }\n );\n\n const itemsToRender = items.map(item => {\n return {\n ...item,\n secondary: args.showSecondary ? item.secondary : undefined,\n visual: args.showVisual ? item.visual : undefined,\n actions: args.showActions\n ? ['Action 1', 'Action 2', 'Action 3'].map(text => ({\n text,\n id: text\n }))\n : undefined\n };\n });\n\n return (\n <SummaryList\n name={args.name}\n icon={args.icon}\n count={args.loading || loading ? undefined : args.count}\n items={args.noItems ? [] : itemsToRender}\n loading={args.loading || loading}\n noItemsText={args.noItemsText}\n actions={[\n {\n text: 'Add',\n id: `${args.name}:addNew`,\n icon: 'plus',\n onClick() {\n createModal(() => {\n return (\n <Modal heading={`Add new ${args.name}`}>\n {`Content for adding new ${args.name} goes here…`}\n </Modal>\n );\n });\n }\n }\n ]}\n onViewAll={() => {\n createModal(SummaryListViewAllModal, {\n name: args.name,\n count: args.count,\n loading: args.loading\n });\n }}\n />\n );\n};\n"]}
@@ -1,14 +1,14 @@
1
- import { Meta, Story } from '@storybook/react';
2
- import { SwitchProps } from '@pega/cosmos-react-core';
3
- declare const _default: Meta;
1
+ import type { StoryFn } from '@storybook/react';
2
+ import type { SwitchProps } from '@pega/cosmos-react-core';
3
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
4
4
  export default _default;
5
- export declare const SwitchDemo: Story<SwitchProps>;
6
- export declare const SwitchInCard: Story<SwitchProps>;
5
+ export declare const SwitchDemo: StoryFn<SwitchProps>;
6
+ export declare const SwitchInCard: StoryFn<SwitchProps>;
7
7
  interface ConfigurableSwitchProps extends SwitchProps {
8
8
  height?: string;
9
9
  width?: string;
10
10
  onColor?: string;
11
11
  offColor?: string;
12
12
  }
13
- export declare const ConfigurableSwitch: Story<ConfigurableSwitchProps>;
13
+ export declare const ConfigurableSwitch: StoryFn<ConfigurableSwitchProps>;
14
14
  //# sourceMappingURL=Switch.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Switch.stories.d.ts","sourceRoot":"","sources":["../../../src/core/Switch/Switch.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAG/C,OAAO,EAA+B,WAAW,EAAE,MAAM,yBAAyB,CAAC;;AAInF,wBAYU;AAEV,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,WAAW,CAYzC,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,WAAW,CAc3C,CAAC;AAEF,UAAU,uBAAwB,SAAQ,WAAW;IACnD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,uBAAuB,CAyB7D,CAAC"}
1
+ {"version":3,"file":"Switch.stories.d.ts","sourceRoot":"","sources":["../../../src/core/Switch/Switch.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAItD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;;AAI3D,wBAYU;AAEV,eAAO,MAAM,UAAU,EAAE,OAAO,CAAC,WAAW,CAY3C,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,OAAO,CAAC,WAAW,CAc7C,CAAC;AAEF,UAAU,uBAAwB,SAAQ,WAAW;IACnD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,eAAO,MAAM,kBAAkB,EAAE,OAAO,CAAC,uBAAuB,CAyB/D,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Switch.stories.js","sourceRoot":"","sources":["../../../src/core/Switch/Switch.stories.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjC,OAAO,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,EAAe,MAAM,yBAAyB,CAAC;AAEnF,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,eAAe;IACb,KAAK,EAAE,aAAa;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sourcesContent":["import { Meta, Story } from '@storybook/react';\nimport { useState } from 'react';\n\nimport { Card, Configuration, Switch, SwitchProps } from '@pega/cosmos-react-core';\n\nimport { StyledCard } from './Switch.styles';\n\nexport default {\n title: 'Core/Switch',\n component: Switch,\n excludeStories: ['ConfigurableSwitch'],\n args: {\n label: 'Toggle on/off',\n disabled: false\n },\n argTypes: {\n label: { control: { type: 'text' } },\n disabled: { control: { type: 'boolean' } }\n }\n} as Meta;\n\nexport const SwitchDemo: Story<SwitchProps> = (args: SwitchProps) => {\n const [on, setOn] = useState(false);\n\n return (\n <Switch\n id='switch'\n on={on}\n onChange={() => setOn(curr => !curr)}\n label={args.label}\n disabled={args.disabled}\n />\n );\n};\n\nexport const SwitchInCard: Story<SwitchProps> = (args: SwitchProps) => {\n const [on, setOn] = useState(false);\n\n return (\n <Card as={StyledCard}>\n <Switch\n id='switch'\n on={on}\n onChange={() => setOn(curr => !curr)}\n label={args.label}\n disabled={args.disabled}\n />\n </Card>\n );\n};\n\ninterface ConfigurableSwitchProps extends SwitchProps {\n height?: string;\n width?: string;\n onColor?: string;\n offColor?: string;\n}\n\nexport const ConfigurableSwitch: Story<ConfigurableSwitchProps> = (\n args: ConfigurableSwitchProps\n) => {\n const [on, setOn] = useState(false);\n\n return (\n <Configuration\n theme={{\n components: {\n switch: {\n height: args.height,\n width: args.width,\n on: {\n color: args.onColor\n },\n off: {\n color: args.offColor\n }\n }\n }\n }}\n >\n <Switch on={on} onChange={() => setOn(curr => !curr)} label='Toggle on/off' />\n </Configuration>\n );\n};\n\nConfigurableSwitch.args = {\n height: '1.5rem',\n width: '3rem',\n onColor: '#076bc9',\n offColor: '#939393'\n};\n\nConfigurableSwitch.argTypes = {\n height: { control: { type: 'text' } },\n width: { control: { type: 'text' } },\n onColor: { control: { type: 'color' } },\n offColor: { control: { type: 'color' } },\n label: { table: { disable: true } },\n disabled: { table: { disable: true } }\n};\n"]}
1
+ {"version":3,"file":"Switch.stories.js","sourceRoot":"","sources":["../../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,OAAO,EAAE,EAAE;IACvC,QAAQ,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE;IACxC,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;IACnC,QAAQ,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;CACvC,CAAC","sourcesContent":["import type { Meta, StoryFn } from '@storybook/react';\nimport { useState } from 'react';\n\nimport { Card, Configuration, Switch } from '@pega/cosmos-react-core';\nimport type { SwitchProps } from '@pega/cosmos-react-core';\n\nimport { StyledCard } from './Switch.styles';\n\nexport default {\n title: 'Core/Switch',\n component: Switch,\n excludeStories: ['ConfigurableSwitch'],\n args: {\n label: 'Toggle on/off',\n disabled: false\n },\n argTypes: {\n label: { control: { type: 'text' } },\n disabled: { control: { type: 'boolean' } }\n }\n} as Meta;\n\nexport const SwitchDemo: StoryFn<SwitchProps> = (args: SwitchProps) => {\n const [on, setOn] = useState(false);\n\n return (\n <Switch\n id='switch'\n on={on}\n onChange={() => setOn(curr => !curr)}\n label={args.label}\n disabled={args.disabled}\n />\n );\n};\n\nexport const SwitchInCard: StoryFn<SwitchProps> = (args: SwitchProps) => {\n const [on, setOn] = useState(false);\n\n return (\n <Card as={StyledCard}>\n <Switch\n id='switch'\n on={on}\n onChange={() => setOn(curr => !curr)}\n label={args.label}\n disabled={args.disabled}\n />\n </Card>\n );\n};\n\ninterface ConfigurableSwitchProps extends SwitchProps {\n height?: string;\n width?: string;\n onColor?: string;\n offColor?: string;\n}\n\nexport const ConfigurableSwitch: StoryFn<ConfigurableSwitchProps> = (\n args: ConfigurableSwitchProps\n) => {\n const [on, setOn] = useState(false);\n\n return (\n <Configuration\n theme={{\n components: {\n switch: {\n height: args.height,\n width: args.width,\n on: {\n color: args.onColor\n },\n off: {\n color: args.offColor\n }\n }\n }\n }}\n >\n <Switch on={on} onChange={() => setOn(curr => !curr)} label='Toggle on/off' />\n </Configuration>\n );\n};\n\nConfigurableSwitch.args = {\n height: '1.5rem',\n width: '3rem',\n onColor: '#076bc9',\n offColor: '#939393'\n};\n\nConfigurableSwitch.argTypes = {\n height: { control: { type: 'text' } },\n width: { control: { type: 'text' } },\n onColor: { control: { type: 'color' } },\n offColor: { control: { type: 'color' } },\n label: { table: { disable: true } },\n disabled: { table: { disable: true } }\n};\n"]}
@@ -1,6 +1,6 @@
1
- import { Meta, Story } from '@storybook/react';
2
- import { TableProps } from '@pega/cosmos-react-core';
3
- declare const _default: Meta;
1
+ import type { StoryFn } from '@storybook/react';
2
+ import type { TableProps } from '@pega/cosmos-react-core';
3
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
4
4
  export default _default;
5
5
  interface TableStoryProps {
6
6
  title?: TableProps['title'];
@@ -9,8 +9,8 @@ interface TableStoryProps {
9
9
  loadingMessage?: TableProps['loadingMessage'];
10
10
  emptyTable?: boolean;
11
11
  }
12
- export declare const TableDemo: Story<TableStoryProps>;
13
- export declare const StyledTableDemo: Story<TableStoryProps>;
12
+ export declare const TableDemo: StoryFn<TableStoryProps>;
13
+ export declare const StyledTableDemo: StoryFn<TableStoryProps>;
14
14
  interface ConfigurableTableProps extends TableStoryProps {
15
15
  headerFontSize?: string;
16
16
  headerFontWeight?: string;
@@ -35,5 +35,5 @@ interface ConfigurableTableProps extends TableStoryProps {
35
35
  spacingVerticalInner?: boolean;
36
36
  spacingVerticalOuter?: boolean;
37
37
  }
38
- export declare const ConfigurableTable: Story<ConfigurableTableProps>;
38
+ export declare const ConfigurableTable: StoryFn<ConfigurableTableProps>;
39
39
  //# sourceMappingURL=Table.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Table.stories.d.ts","sourceRoot":"","sources":["../../../src/core/Table/Table.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAE/C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AE,IAAI,EAAE,MAAM,EAAE,EAAE;IAC9C,eAAe,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE;IAC/C,qBAAqB,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IACvD,qBAAqB,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IACvD,mBAAmB,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IACrD,mBAAmB,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IACrD,sBAAsB,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IACxD,sBAAsB,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IACxD,oBAAoB,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IACtD,oBAAoB,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IACtD,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;IACnC,cAAc,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;IAC5C,OAAO,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;IACrC,cAAc,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;IAC5C,UAAU,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;CACzC,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\n\nimport { Status, Table, ColumnProps, TableProps, Configuration } from '@pega/cosmos-react-core';\n\nimport { tableData } from './Table.mocks';\nimport { StyledBalance } from './Table.styles';\n\nexport default {\n title: 'Core/Table',\n component: Table,\n excludeStories: ['ConfigurableTable'],\n args: {\n title: 'Accounts',\n hoverHighlight: false,\n loading: false,\n loadingMessage: 'Loading data',\n emptyTable: false\n },\n argTypes: {\n title: { control: { type: 'text' } },\n hoverHighlight: { control: { type: 'boolean' } },\n loading: { control: { type: 'boolean' } },\n loadingMessage: { control: { type: 'text' } },\n emptyTable: { control: { type: 'boolean' } }\n }\n} as Meta;\n\ninterface TableStoryProps {\n title?: TableProps['title'];\n hoverHighlight?: TableProps['hoverHighlight'];\n loading?: TableProps['loading'];\n loadingMessage?: TableProps['loadingMessage'];\n emptyTable?: boolean;\n}\n\nexport const TableDemo: Story<TableStoryProps> = (args: TableStoryProps) => {\n const columns: ColumnProps<(typeof tableData)[number]>[] = [\n { renderer: 'name', label: 'Name' },\n { renderer: 'dob', label: 'Date of Birth' },\n { renderer: 'address', label: 'Address' },\n { renderer: 'email', label: 'Email' },\n { renderer: 'balance', label: 'Account Balance', align: 'right' }\n ];\n\n return (\n <Table\n title={args.title}\n hoverHighlight={args.hoverHighlight}\n loading={args.loading}\n loadingMessage={args.loadingMessage}\n data={args.emptyTable ? [] : tableData}\n columns={columns}\n />\n );\n};\n\nexport const StyledTableDemo: Story<TableStoryProps> = (args: TableStoryProps) => {\n const columns: ColumnProps<(typeof tableData)[number]>[] = [\n { renderer: data => <b>{data.name}</b>, label: 'Name' },\n { renderer: 'dob', label: 'Date of Birth' },\n { renderer: 'address', label: 'Address' },\n {\n renderer: data => {\n return (\n <>\n {data.email && data.emailVerified && <Status variant='success'>{data.email}</Status>}\n {data.email && !data.emailVerified && <Status variant='urgent'>{data.email}</Status>}\n </>\n );\n },\n label: 'Email'\n },\n {\n renderer: data => {\n return (\n <StyledBalance negativeBalance={data.balance.startsWith('-')}>\n {data.balance}\n </StyledBalance>\n );\n },\n label: 'Account Balance',\n align: 'right'\n }\n ];\n\n return (\n <Table\n title={args.title}\n hoverHighlight={args.hoverHighlight}\n loading={args.loading}\n loadingMessage={args.loadingMessage}\n data={args.emptyTable ? [] : tableData}\n columns={columns}\n />\n );\n};\n\ninterface ConfigurableTableProps extends TableStoryProps {\n headerFontSize?: string;\n headerFontWeight?: string;\n headerForegroundColor?: string;\n headerBackgroundColor?: string;\n headerVerticalSpacing?: number;\n headerHorizontalSpacing?: number;\n headerBorderWidth?: string;\n headerBorderColor?: string;\n bodyForegroundColor?: string;\n bodyBackgroundColor?: string;\n bodyVerticalSpacing?: number;\n bodyHorizontalSpacing?: number;\n bodyBorderWidth?: string;\n bodyBorderColor?: string;\n borderHorizontalInner?: boolean;\n borderHorizontalOuter?: boolean;\n borderVerticalInner?: boolean;\n borderVerticalOuter?: boolean;\n spacingHorizontalInner?: boolean;\n spacingHorizontalOuter?: boolean;\n spacingVerticalInner?: boolean;\n spacingVerticalOuter?: boolean;\n}\n\nexport const ConfigurableTable: Story<ConfigurableTableProps> = (args: ConfigurableTableProps) => {\n const columns: ColumnProps<(typeof tableData)[number]>[] = [\n { renderer: data => <b>{data.name}</b>, label: 'Name' },\n { renderer: 'dob', label: 'Date of Birth' },\n { renderer: 'address', label: 'Address' },\n {\n renderer: data => {\n return (\n <>\n {data.email && data.emailVerified && <Status variant='success'>{data.email}</Status>}\n {data.email && !data.emailVerified && <Status variant='urgent'>{data.email}</Status>}\n </>\n );\n },\n label: 'Email'\n },\n {\n renderer: data => {\n return (\n <StyledBalance negativeBalance={data.balance.startsWith('-')}>\n {data.balance}\n </StyledBalance>\n );\n },\n label: 'Account Balance',\n align: 'right'\n }\n ];\n\n return (\n <Configuration\n theme={{\n components: {\n table: {\n header: {\n 'font-size': args.headerFontSize,\n 'font-weight': args.headerFontWeight,\n 'foreground-color': args.headerForegroundColor,\n 'background-color': args.headerBackgroundColor,\n 'vertical-spacing': args.headerVerticalSpacing,\n 'horizontal-spacing': args.headerHorizontalSpacing,\n 'border-width': args.headerBorderWidth,\n 'border-color': args.headerBorderColor\n },\n body: {\n 'foreground-color': args.bodyForegroundColor,\n 'background-color': args.bodyBackgroundColor,\n 'vertical-spacing': args.bodyVerticalSpacing,\n 'horizontal-spacing': args.bodyHorizontalSpacing,\n 'border-width': args.bodyBorderWidth,\n 'border-color': args.bodyBorderColor\n },\n border: {\n 'horizontal-inner': args.borderHorizontalInner,\n 'horizontal-outer': args.borderHorizontalOuter,\n 'vertical-inner': args.borderVerticalInner,\n 'vertical-outer': args.borderVerticalOuter\n },\n spacing: {\n 'horizontal-inner': args.spacingHorizontalInner,\n 'horizontal-outer': args.spacingHorizontalOuter,\n 'vertical-inner': args.spacingVerticalInner,\n 'vertical-outer': args.spacingVerticalOuter\n }\n }\n }\n }}\n >\n <Table title='Accounts' data={tableData} columns={columns} />\n </Configuration>\n );\n};\n\nConfigurableTable.args = {\n headerFontSize: 's',\n headerFontWeight: '600',\n headerForegroundColor: '#000000',\n headerBackgroundColor: '#71baff',\n headerVerticalSpacing: 1,\n headerHorizontalSpacing: 2,\n headerBorderWidth: '0.0625rem',\n headerBorderColor: '#cfcfcf',\n bodyForegroundColor: '#000000',\n bodyBackgroundColor: '#e2f1ff',\n bodyVerticalSpacing: 1,\n bodyHorizontalSpacing: 1,\n bodyBorderWidth: '0.0625rem',\n bodyBorderColor: '#cfcfcf',\n borderHorizontalInner: true,\n borderHorizontalOuter: true,\n borderVerticalInner: true,\n borderVerticalOuter: true,\n spacingHorizontalInner: true,\n spacingHorizontalOuter: true,\n spacingVerticalInner: true,\n spacingVerticalOuter: true\n};\n\nConfigurableTable.argTypes = {\n headerFontSize: {\n options: ['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl'],\n control: { type: 'select' }\n },\n headerFontWeight: { control: { type: 'text' } },\n headerForegroundColor: { control: { type: 'color' } },\n headerBackgroundColor: { control: { type: 'color' } },\n headerVerticalSpacing: { control: { type: 'number' } },\n headerHorizontalSpacing: { control: { type: 'number' } },\n headerBorderWidth: { control: { type: 'text' } },\n headerBorderColor: { control: { type: 'color' } },\n bodyForegroundColor: { control: { type: 'color' } },\n bodyBackgroundColor: { control: { type: 'color' } },\n bodyVerticalSpacing: { control: { type: 'number' } },\n bodyHorizontalSpacing: { control: { type: 'number' } },\n bodyBorderWidth: { control: { type: 'text' } },\n bodyBorderColor: { control: { type: 'color' } },\n borderHorizontalInner: { control: { type: 'boolean' } },\n borderHorizontalOuter: { control: { type: 'boolean' } },\n borderVerticalInner: { control: { type: 'boolean' } },\n borderVerticalOuter: { control: { type: 'boolean' } },\n spacingHorizontalInner: { control: { type: 'boolean' } },\n spacingHorizontalOuter: { control: { type: 'boolean' } },\n spacingVerticalInner: { control: { type: 'boolean' } },\n spacingVerticalOuter: { control: { type: 'boolean' } },\n title: { table: { disable: true } },\n hoverHighlight: { table: { disable: true } },\n loading: { table: { disable: true } },\n loadingMessage: { table: { disable: true } },\n emptyTable: { table: { disable: true } }\n};\n"]}
1
+ {"version":3,"file":"Table.stories.js","sourceRoot":"","sources":["../../../src/core/Table/Table.stories.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAGvE,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAE/C,eAAe;IACb,KAAK,EAAE,YAAY;IACnB,SAAS,EAAE,KAAK;IAChB,cAAc,EAAE,CAAC,mBAAmB,CAAC;IACrC,IAAI,EAAE;QACJ,KAAK,EAAE,UAAU;QACjB,cAAc,EAAE,KAAK;QACrB,OAAO,EAAE,KAAK;QACd,cAAc,EAAE,cAAc;QAC9B,UAAU,EAAE,KAAK;KAClB;IACD,QAAQ,EAAE;QACR,KAAK,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;QACpC,cAAc,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;QAChD,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;QAC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I,EAAE,OAAO,EAAE,EAAE;IAC/C,qBAAqB,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IACvD,qBAAqB,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IACvD,mBAAmB,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IACrD,mBAAmB,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IACrD,sBAAsB,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IACxD,sBAAsB,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IACxD,oBAAoB,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IACtD,oBAAoB,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IACtD,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;IACnC,cAAc,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;IAC5C,OAAO,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;IACrC,cAAc,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;IAC5C,UAAU,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;CACzC,CAAC","sourcesContent":["import type { Meta, StoryFn } from '@storybook/react';\n\nimport { Status, Table, Configuration } from '@pega/cosmos-react-core';\nimport type { ColumnProps, TableProps } from '@pega/cosmos-react-core';\n\nimport { tableData } from './Table.mocks';\nimport { StyledBalance } from './Table.styles';\n\nexport default {\n title: 'Core/Table',\n component: Table,\n excludeStories: ['ConfigurableTable'],\n args: {\n title: 'Accounts',\n hoverHighlight: false,\n loading: false,\n loadingMessage: 'Loading data',\n emptyTable: false\n },\n argTypes: {\n title: { control: { type: 'text' } },\n hoverHighlight: { control: { type: 'boolean' } },\n loading: { control: { type: 'boolean' } },\n loadingMessage: { control: { type: 'text' } },\n emptyTable: { control: { type: 'boolean' } }\n }\n} as Meta;\n\ninterface TableStoryProps {\n title?: TableProps['title'];\n hoverHighlight?: TableProps['hoverHighlight'];\n loading?: TableProps['loading'];\n loadingMessage?: TableProps['loadingMessage'];\n emptyTable?: boolean;\n}\n\nexport const TableDemo: StoryFn<TableStoryProps> = (args: TableStoryProps) => {\n const columns: ColumnProps<(typeof tableData)[number]>[] = [\n { renderer: 'name', label: 'Name' },\n { renderer: 'dob', label: 'Date of Birth' },\n { renderer: 'address', label: 'Address' },\n { renderer: 'email', label: 'Email' },\n { renderer: 'balance', label: 'Account Balance', align: 'right' }\n ];\n\n return (\n <Table\n title={args.title}\n hoverHighlight={args.hoverHighlight}\n loading={args.loading}\n loadingMessage={args.loadingMessage}\n data={args.emptyTable ? [] : tableData}\n columns={columns}\n />\n );\n};\n\nexport const StyledTableDemo: StoryFn<TableStoryProps> = (args: TableStoryProps) => {\n const columns: ColumnProps<(typeof tableData)[number]>[] = [\n { renderer: data => <b>{data.name}</b>, label: 'Name' },\n { renderer: 'dob', label: 'Date of Birth' },\n { renderer: 'address', label: 'Address' },\n {\n renderer: data => {\n return (\n <>\n {data.email && data.emailVerified && <Status variant='success'>{data.email}</Status>}\n {data.email && !data.emailVerified && <Status variant='urgent'>{data.email}</Status>}\n </>\n );\n },\n label: 'Email'\n },\n {\n renderer: data => {\n return (\n <StyledBalance negativeBalance={data.balance.startsWith('-')}>\n {data.balance}\n </StyledBalance>\n );\n },\n label: 'Account Balance',\n align: 'right'\n }\n ];\n\n return (\n <Table\n title={args.title}\n hoverHighlight={args.hoverHighlight}\n loading={args.loading}\n loadingMessage={args.loadingMessage}\n data={args.emptyTable ? [] : tableData}\n columns={columns}\n />\n );\n};\n\ninterface ConfigurableTableProps extends TableStoryProps {\n headerFontSize?: string;\n headerFontWeight?: string;\n headerForegroundColor?: string;\n headerBackgroundColor?: string;\n headerVerticalSpacing?: number;\n headerHorizontalSpacing?: number;\n headerBorderWidth?: string;\n headerBorderColor?: string;\n bodyForegroundColor?: string;\n bodyBackgroundColor?: string;\n bodyVerticalSpacing?: number;\n bodyHorizontalSpacing?: number;\n bodyBorderWidth?: string;\n bodyBorderColor?: string;\n borderHorizontalInner?: boolean;\n borderHorizontalOuter?: boolean;\n borderVerticalInner?: boolean;\n borderVerticalOuter?: boolean;\n spacingHorizontalInner?: boolean;\n spacingHorizontalOuter?: boolean;\n spacingVerticalInner?: boolean;\n spacingVerticalOuter?: boolean;\n}\n\nexport const ConfigurableTable: StoryFn<ConfigurableTableProps> = (\n args: ConfigurableTableProps\n) => {\n const columns: ColumnProps<(typeof tableData)[number]>[] = [\n { renderer: data => <b>{data.name}</b>, label: 'Name' },\n { renderer: 'dob', label: 'Date of Birth' },\n { renderer: 'address', label: 'Address' },\n {\n renderer: data => {\n return (\n <>\n {data.email && data.emailVerified && <Status variant='success'>{data.email}</Status>}\n {data.email && !data.emailVerified && <Status variant='urgent'>{data.email}</Status>}\n </>\n );\n },\n label: 'Email'\n },\n {\n renderer: data => {\n return (\n <StyledBalance negativeBalance={data.balance.startsWith('-')}>\n {data.balance}\n </StyledBalance>\n );\n },\n label: 'Account Balance',\n align: 'right'\n }\n ];\n\n return (\n <Configuration\n theme={{\n components: {\n table: {\n header: {\n 'font-size': args.headerFontSize,\n 'font-weight': args.headerFontWeight,\n 'foreground-color': args.headerForegroundColor,\n 'background-color': args.headerBackgroundColor,\n 'vertical-spacing': args.headerVerticalSpacing,\n 'horizontal-spacing': args.headerHorizontalSpacing,\n 'border-width': args.headerBorderWidth,\n 'border-color': args.headerBorderColor\n },\n body: {\n 'foreground-color': args.bodyForegroundColor,\n 'background-color': args.bodyBackgroundColor,\n 'vertical-spacing': args.bodyVerticalSpacing,\n 'horizontal-spacing': args.bodyHorizontalSpacing,\n 'border-width': args.bodyBorderWidth,\n 'border-color': args.bodyBorderColor\n },\n border: {\n 'horizontal-inner': args.borderHorizontalInner,\n 'horizontal-outer': args.borderHorizontalOuter,\n 'vertical-inner': args.borderVerticalInner,\n 'vertical-outer': args.borderVerticalOuter\n },\n spacing: {\n 'horizontal-inner': args.spacingHorizontalInner,\n 'horizontal-outer': args.spacingHorizontalOuter,\n 'vertical-inner': args.spacingVerticalInner,\n 'vertical-outer': args.spacingVerticalOuter\n }\n }\n }\n }}\n >\n <Table title='Accounts' data={tableData} columns={columns} />\n </Configuration>\n );\n};\n\nConfigurableTable.args = {\n headerFontSize: 's',\n headerFontWeight: '600',\n headerForegroundColor: '#000000',\n headerBackgroundColor: '#71baff',\n headerVerticalSpacing: 1,\n headerHorizontalSpacing: 2,\n headerBorderWidth: '0.0625rem',\n headerBorderColor: '#cfcfcf',\n bodyForegroundColor: '#000000',\n bodyBackgroundColor: '#e2f1ff',\n bodyVerticalSpacing: 1,\n bodyHorizontalSpacing: 1,\n bodyBorderWidth: '0.0625rem',\n bodyBorderColor: '#cfcfcf',\n borderHorizontalInner: true,\n borderHorizontalOuter: true,\n borderVerticalInner: true,\n borderVerticalOuter: true,\n spacingHorizontalInner: true,\n spacingHorizontalOuter: true,\n spacingVerticalInner: true,\n spacingVerticalOuter: true\n};\n\nConfigurableTable.argTypes = {\n headerFontSize: {\n options: ['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl'],\n control: { type: 'select' }\n },\n headerFontWeight: { control: { type: 'text' } },\n headerForegroundColor: { control: { type: 'color' } },\n headerBackgroundColor: { control: { type: 'color' } },\n headerVerticalSpacing: { control: { type: 'number' } },\n headerHorizontalSpacing: { control: { type: 'number' } },\n headerBorderWidth: { control: { type: 'text' } },\n headerBorderColor: { control: { type: 'color' } },\n bodyForegroundColor: { control: { type: 'color' } },\n bodyBackgroundColor: { control: { type: 'color' } },\n bodyVerticalSpacing: { control: { type: 'number' } },\n bodyHorizontalSpacing: { control: { type: 'number' } },\n bodyBorderWidth: { control: { type: 'text' } },\n bodyBorderColor: { control: { type: 'color' } },\n borderHorizontalInner: { control: { type: 'boolean' } },\n borderHorizontalOuter: { control: { type: 'boolean' } },\n borderVerticalInner: { control: { type: 'boolean' } },\n borderVerticalOuter: { control: { type: 'boolean' } },\n spacingHorizontalInner: { control: { type: 'boolean' } },\n spacingHorizontalOuter: { control: { type: 'boolean' } },\n spacingVerticalInner: { control: { type: 'boolean' } },\n spacingVerticalOuter: { control: { type: 'boolean' } },\n title: { table: { disable: true } },\n hoverHighlight: { table: { disable: true } },\n loading: { table: { disable: true } },\n loadingMessage: { table: { disable: true } },\n emptyTable: { table: { disable: true } }\n};\n"]}
@@ -1,9 +1,9 @@
1
- import { Meta, Story } from '@storybook/react';
2
- declare const _default: Meta;
1
+ import type { StoryFn } from '@storybook/react';
2
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
3
3
  export default _default;
4
4
  interface TabDemoProps {
5
5
  type: 'horizontal' | 'vertical';
6
6
  }
7
- export declare const TabsDemo: Story<TabDemoProps>;
8
- export declare const TabsCountDemo: Story<TabDemoProps>;
7
+ export declare const TabsDemo: StoryFn<TabDemoProps>;
8
+ export declare const TabsCountDemo: StoryFn<TabDemoProps>;
9
9
  //# sourceMappingURL=Tabs.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Tabs.stories.d.ts","sourceRoot":"","sources":["../../../src/core/Tabs/Tabs.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;;AAK/C,wBASU;AAEV,UAAU,YAAY;IACpB,IAAI,EAAE,YAAY,GAAG,UAAU,CAAC;CACjC;AAED,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,YAAY,CA6BxC,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,YAAY,CA6B7C,CAAC"}
1
+ {"version":3,"file":"Tabs.stories.d.ts","sourceRoot":"","sources":["../../../src/core/Tabs/Tabs.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,OAAO,EAAE,MAAM,kBAAkB,CAAC;;AAKtD,wBASU;AAEV,UAAU,YAAY;IACpB,IAAI,EAAE,YAAY,GAAG,UAAU,CAAC;CACjC;AAED,eAAO,MAAM,QAAQ,EAAE,OAAO,CAAC,YAAY,CA6B1C,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,OAAO,CAAC,YAAY,CA6B/C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Tabs.stories.js","sourceRoot":"","sources":["../../../src/core/Tabs/Tabs.stories.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjC,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAE/D,eAAe;IACb,KAAK,EAAE,WAAW;IAClB,SAAS,EAAE,IAAI;IACf,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;KACnB;IACD,QAAQ,EAAE;QACR,IAAI,EAAE,EAAE,OAAO,EAAE,CAAC,YAAY,EAAE,UAAU,CAAC,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;KAC3E;CACM,CAAC;AAMV,MAAM,CAAC,MAAM,QAAQ,GAAwB,CAAC,IAAkB,EAAE,EAAE;IAClE,MAAM,CAAC,UAAU,EAAE,WAAW,CAAC,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC;IAEhD,MAAM,eAAe,GAAG,CAAC,EAAU,EAAE,EAAE;QACrC,WAAW,CAAC,EAAE,CAAC,CAAC;IAClB,CAAC,CAAC;IAEF,MAAM,IAAI,GAAG;QACX,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,GAAG,EAAE;QAC1B,EAAE,IAAI,EAAE,OAAO,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C,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\nimport { useState } from 'react';\n\nimport { Flex, TabPanel, Tabs } from '@pega/cosmos-react-core';\n\nexport default {\n title: 'Core/Tabs',\n component: Tabs,\n args: {\n type: 'horizontal'\n },\n argTypes: {\n type: { options: ['horizontal', 'vertical'], control: { type: 'select' } }\n }\n} as Meta;\n\ninterface TabDemoProps {\n type: 'horizontal' | 'vertical';\n}\n\nexport const TabsDemo: Story<TabDemoProps> = (args: TabDemoProps) => {\n const [panelShown, changePanel] = useState('1');\n\n const handleTabChange = (id: string) => {\n changePanel(id);\n };\n\n const tabs = [\n { name: 'Tab 1', id: '1' },\n { name: 'Tab 2', id: '2' },\n { name: 'Tab 3', id: '3' },\n { name: 'Tab 4', id: '4', disabled: true },\n { name: 'Tab 5', id: '5' }\n ];\n\n return (\n <Flex container={{ direction: args.type === 'horizontal' ? 'column' : 'row' }}>\n <Flex item={{ grow: 1 }}>\n <Tabs tabs={tabs} type={args.type} onTabClick={handleTabChange} currentTabId={panelShown} />\n </Flex>\n <Flex container={{ pad: [1, 2] }} item={{ grow: 1 }}>\n {tabs.map(tab => (\n <TabPanel tabId={tab.id} currentTabId={panelShown} key={tab.id}>\n <div>{tab.name}</div>\n </TabPanel>\n ))}\n </Flex>\n </Flex>\n );\n};\n\nexport const TabsCountDemo: Story<TabDemoProps> = (args: TabDemoProps) => {\n const [panelShown, changePanel] = useState('1');\n\n const handleTabChange = (id: string) => {\n changePanel(id);\n };\n\n const tabs = [\n { name: 'Tab 1', id: '1', count: 5 },\n { name: 'Tab 2', id: '2', count: 14 },\n { name: 'Tab 3', id: '3', count: 0 },\n { name: 'Tab 4', id: '4', count: 56, disabled: true },\n { name: 'Tab 5', id: '5', count: 150 }\n ];\n\n return (\n <Flex container={{ direction: args.type === 'horizontal' ? 'column' : 'row' }}>\n <Flex item={{ grow: 1 }}>\n <Tabs tabs={tabs} type={args.type} onTabClick={handleTabChange} currentTabId={panelShown} />\n </Flex>\n <Flex container={{ pad: [1, 2] }} item={{ grow: 1 }}>\n {tabs.map(tab => (\n <TabPanel tabId={tab.id} currentTabId={panelShown} key={tab.id}>\n <div>{tab.name} content</div>\n </TabPanel>\n ))}\n </Flex>\n </Flex>\n );\n};\n"]}
1
+ {"version":3,"file":"Tabs.stories.js","sourceRoot":"","sources":["../../../src/core/Tabs/Tabs.stories.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjC,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAE/D,eAAe;IACb,KAAK,EAAE,WAAW;IAClB,SAAS,EAAE,IAAI;IACf,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;KACnB;IACD,QAAQ,EAAE;QACR,IAAI,EAAE,EAAE,OAAO,EAAE,CAAC,YAAY,EAAE,UAAU,CAAC,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;KAC3E;CACM,CAAC;AAMV,MAAM,CAAC,MAAM,QAAQ,GAA0B,CAAC,IAAkB,EAAE,EAAE;IACpE,MAAM,CAAC,UAAU,EAAE,WAAW,CAAC,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC;IAEhD,MAAM,eAAe,GAAG,CAAC,EAAU,EAAE,EAAE;QACrC,WAAW,CAAC,EAAE,CAAC,CAAC;IAClB,CAAC,CAAC;IAEF,MAAM,IAAI,GAAG;QACX,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,GAAG,EAAE;QAC1B,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,GAAG,EAAE;QAC1B,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,GAAG,EAAE;QAC1B,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE;QAC1C,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,GAAG,EA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AE,EAAE,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC,EAAE;QACpC,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,GAAG,EAAE,KAAK,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;QACrD,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE;KACvC,CAAC;IAEF,OAAO,CACL,MAAC,IAAI,IAAC,SAAS,EAAE,EAAE,SAAS,EAAE,IAAI,CAAC,IAAI,KAAK,YAAY,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,EAAE,aAC3E,KAAC,IAAI,IAAC,IAAI,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,YACrB,KAAC,IAAI,IAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,UAAU,EAAE,eAAe,EAAE,YAAY,EAAE,UAAU,GAAI,GACvF,EACP,KAAC,IAAI,IAAC,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,YAChD,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,CACf,KAAC,QAAQ,IAAC,KAAK,EAAE,GAAG,CAAC,EAAE,EAAE,YAAY,EAAE,UAAU,YAC/C,0BAAM,GAAG,CAAC,IAAI,gBAAe,IADyB,GAAG,CAAC,EAAE,CAEnD,CACZ,CAAC,GACG,IACF,CACR,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import type { Meta, StoryFn } from '@storybook/react';\nimport { useState } from 'react';\n\nimport { Flex, TabPanel, Tabs } from '@pega/cosmos-react-core';\n\nexport default {\n title: 'Core/Tabs',\n component: Tabs,\n args: {\n type: 'horizontal'\n },\n argTypes: {\n type: { options: ['horizontal', 'vertical'], control: { type: 'select' } }\n }\n} as Meta;\n\ninterface TabDemoProps {\n type: 'horizontal' | 'vertical';\n}\n\nexport const TabsDemo: StoryFn<TabDemoProps> = (args: TabDemoProps) => {\n const [panelShown, changePanel] = useState('1');\n\n const handleTabChange = (id: string) => {\n changePanel(id);\n };\n\n const tabs = [\n { name: 'Tab 1', id: '1' },\n { name: 'Tab 2', id: '2' },\n { name: 'Tab 3', id: '3' },\n { name: 'Tab 4', id: '4', disabled: true },\n { name: 'Tab 5', id: '5' }\n ];\n\n return (\n <Flex container={{ direction: args.type === 'horizontal' ? 'column' : 'row' }}>\n <Flex item={{ grow: 1 }}>\n <Tabs tabs={tabs} type={args.type} onTabClick={handleTabChange} currentTabId={panelShown} />\n </Flex>\n <Flex container={{ pad: [1, 2] }} item={{ grow: 1 }}>\n {tabs.map(tab => (\n <TabPanel tabId={tab.id} currentTabId={panelShown} key={tab.id}>\n <div>{tab.name}</div>\n </TabPanel>\n ))}\n </Flex>\n </Flex>\n );\n};\n\nexport const TabsCountDemo: StoryFn<TabDemoProps> = (args: TabDemoProps) => {\n const [panelShown, changePanel] = useState('1');\n\n const handleTabChange = (id: string) => {\n changePanel(id);\n };\n\n const tabs = [\n { name: 'Tab 1', id: '1', count: 5 },\n { name: 'Tab 2', id: '2', count: 14 },\n { name: 'Tab 3', id: '3', count: 0 },\n { name: 'Tab 4', id: '4', count: 56, disabled: true },\n { name: 'Tab 5', id: '5', count: 150 }\n ];\n\n return (\n <Flex container={{ direction: args.type === 'horizontal' ? 'column' : 'row' }}>\n <Flex item={{ grow: 1 }}>\n <Tabs tabs={tabs} type={args.type} onTabClick={handleTabChange} currentTabId={panelShown} />\n </Flex>\n <Flex container={{ pad: [1, 2] }} item={{ grow: 1 }}>\n {tabs.map(tab => (\n <TabPanel tabId={tab.id} currentTabId={panelShown} key={tab.id}>\n <div>{tab.name} content</div>\n </TabPanel>\n ))}\n </Flex>\n </Flex>\n );\n};\n"]}
@@ -1,8 +1,8 @@
1
- import { Meta, Story } from '@storybook/react';
2
- import { TextProps } from '@pega/cosmos-react-core';
3
- declare const _default: Meta;
1
+ import type { StoryFn } from '@storybook/react';
2
+ import type { TextProps } from '@pega/cosmos-react-core';
3
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
4
4
  export default _default;
5
- export declare const TextDemo: Story<TextProps>;
5
+ export declare const TextDemo: StoryFn<TextProps>;
6
6
  interface ConfigurableTextProps {
7
7
  primaryFontSize?: string;
8
8
  primaryFontWeight?: string;
@@ -21,5 +21,5 @@ interface ConfigurableTextProps {
21
21
  h6FontSize?: string;
22
22
  h6FontWeight?: string;
23
23
  }
24
- export declare const ConfigurableText: Story<ConfigurableTextProps>;
24
+ export declare const ConfigurableText: StoryFn<ConfigurableTextProps>;
25
25
  //# sourceMappingURL=Text.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Text.stories.d.ts","sourceRoot":"","sources":["../../../src/core/Text/Text.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAE/C,OAAO,EAA6B,SAAS,EAAE,MAAM,yBAAyB,CAAC;;AAE/E,wBAIU;AAEV,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,SAAS,CAMrC,CAAC;AAeF,UAAU,qBAAqB;IAC7B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB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AAM,EAAE,EAAE;CAC5C,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\n\nimport { Configuration, Flex, Text, TextProps } from '@pega/cosmos-react-core';\n\nexport default {\n title: 'Core/Text',\n component: Text,\n excludeStories: ['ConfigurableText']\n} as Meta;\n\nexport const TextDemo: Story<TextProps> = (args: TextProps) => {\n return (\n <Text variant={args.variant} status={args.status}>\n Pega Cosmos\n </Text>\n );\n};\n\nTextDemo.args = {\n variant: 'primary',\n status: undefined\n};\n\nTextDemo.argTypes = {\n variant: {\n options: ['primary', 'secondary', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6'],\n control: { type: 'select' }\n },\n status: { options: [undefined, 'success', 'warning', 'error'], control: { type: 'select' } }\n};\n\ninterface ConfigurableTextProps {\n primaryFontSize?: string;\n primaryFontWeight?: string;\n secondaryFontSize?: string;\n secondaryFontWeight?: string;\n h1FontSize?: string;\n h1FontWeight?: string;\n h2FontSize?: string;\n h2FontWeight?: string;\n h3FontSize?: string;\n h3FontWeight?: string;\n h4FontSize?: string;\n h4FontWeight?: string;\n h5FontSize?: string;\n h5FontWeight?: string;\n h6FontSize?: string;\n h6FontWeight?: string;\n}\n\nexport const ConfigurableText: Story<ConfigurableTextProps> = (args: ConfigurableTextProps) => {\n return (\n <Configuration\n theme={{\n components: {\n text: {\n primary: {\n 'font-size': args.primaryFontSize,\n 'font-weight': args.primaryFontWeight\n },\n secondary: {\n 'font-size': args.secondaryFontSize,\n 'font-weight': args.secondaryFontWeight\n },\n h1: {\n 'font-size': args.h1FontSize,\n 'font-weight': args.h1FontWeight\n },\n h2: {\n 'font-size': args.h2FontSize,\n 'font-weight': args.h2FontWeight\n },\n h3: {\n 'font-size': args.h3FontSize,\n 'font-weight': args.h3FontWeight\n },\n h4: {\n 'font-size': args.h4FontSize,\n 'font-weight': args.h4FontWeight\n },\n h5: {\n 'font-size': args.h5FontSize,\n 'font-weight': args.h5FontWeight\n },\n h6: {\n 'font-size': args.h6FontSize,\n 'font-weight': args.h6FontWeight\n }\n }\n }\n }}\n >\n <Flex container={{ gap: 2, alignItems: 'end' }}>\n <Text variant='primary'>Primary</Text>\n <Text variant='secondary'>Secondary</Text>\n <Text variant='h1'>h1</Text>\n <Text variant='h2'>h2</Text>\n <Text variant='h3'>h3</Text>\n <Text variant='h4'>h4</Text>\n <Text variant='h5'>h5</Text>\n <Text variant='h6'>h6</Text>\n </Flex>\n </Configuration>\n );\n};\n\nConfigurableText.args = {\n primaryFontSize: 's',\n primaryFontWeight: '400',\n secondaryFontSize: 'xs',\n secondaryFontWeight: '400',\n h1FontSize: 'xl',\n h1FontWeight: '600',\n h2FontSize: 'l',\n h2FontWeight: '600',\n h3FontSize: 'm',\n h3FontWeight: '600',\n h4FontSize: 's',\n h4FontWeight: '600',\n h5FontSize: 'xs',\n h5FontWeight: '600',\n h6FontSize: 'xxs',\n h6FontWeight: '600'\n};\n\nConfigurableText.argTypes = {\n primaryFontSize: {\n options: ['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl'],\n control: { type: 'select' }\n },\n primaryFontWeight: { control: { type: 'text' } },\n secondaryFontSize: {\n options: ['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl'],\n control: { type: 'select' }\n },\n secondaryFontWeight: { control: { type: 'text' } },\n h1FontSize: {\n options: ['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl'],\n control: { type: 'select' }\n },\n h1FontWeight: { control: { type: 'text' } },\n h2FontSize: {\n options: ['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl'],\n control: { type: 'select' }\n },\n h2FontWeight: { control: { type: 'text' } },\n h3FontSize: {\n options: ['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl'],\n control: { type: 'select' }\n },\n h3FontWeight: { control: { type: 'text' } },\n h4FontSize: {\n options: ['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl'],\n control: { type: 'select' }\n },\n h4FontWeight: { control: { type: 'text' } },\n h5FontSize: {\n options: ['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl'],\n control: { type: 'select' }\n },\n h5FontWeight: { control: { type: 'text' } },\n h6FontSize: {\n options: ['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl'],\n control: { type: 'select' }\n },\n h6FontWeight: { control: { type: 'text' } }\n};\n"]}
1
+ {"version":3,"file":"Text.stories.js","sourceRoot":"","sources":["../../../src/core/Text/Text.stories.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,aAAa,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAGpE,eAAe;IACb,KAAK,EAAE,WAAW;IAClB,SAAS,EAAE,IAAI;IACf,cAAc,EAAE,CAAC,kBAAkB,CAAC;CAC7B,CAAC;AAEV,MAAM,CAAC,MAAM,QAAQ,GAAuB,CAAC,IAAe,EAAE,EAAE;IAC9D,OAAO,CACL,KAAC,IAAI,IAAC,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,4BAEzC,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,QAAQ,CAAC,IAAI,GAAG;IACd,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,SAAS;CAClB,CAAC;AAEF,QAAQ,CAAC,QAAQ,GAAG;IAClB,OAAO,EAAE;QACP,OAAO,EAAE,CAAC,SAAS,EAAE,WAAW,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC;QACrE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;KAC5B;IACD,MAAM,EAAE,EAAE,OAAO,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,OAAO,CAAC,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;CAC7F,CAAC;AAqBF,MAAM,CAAC,MAAM,gBAAgB,GAAmC,CAAC,IAA2B,EAAE,EAAE;IAC9F,OAAO,CACL,KAAC,aAAa,IACZ,KAAK,EAAE;YAC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I,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,KAAK,CAAC;QAClD,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;KAC5B;IACD,YAAY,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;CAC5C,CAAC","sourcesContent":["import type { Meta, StoryFn } from '@storybook/react';\n\nimport { Configuration, Flex, Text } from '@pega/cosmos-react-core';\nimport type { TextProps } from '@pega/cosmos-react-core';\n\nexport default {\n title: 'Core/Text',\n component: Text,\n excludeStories: ['ConfigurableText']\n} as Meta;\n\nexport const TextDemo: StoryFn<TextProps> = (args: TextProps) => {\n return (\n <Text variant={args.variant} status={args.status}>\n Pega Cosmos\n </Text>\n );\n};\n\nTextDemo.args = {\n variant: 'primary',\n status: undefined\n};\n\nTextDemo.argTypes = {\n variant: {\n options: ['primary', 'secondary', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6'],\n control: { type: 'select' }\n },\n status: { options: [undefined, 'success', 'warning', 'error'], control: { type: 'select' } }\n};\n\ninterface ConfigurableTextProps {\n primaryFontSize?: string;\n primaryFontWeight?: string;\n secondaryFontSize?: string;\n secondaryFontWeight?: string;\n h1FontSize?: string;\n h1FontWeight?: string;\n h2FontSize?: string;\n h2FontWeight?: string;\n h3FontSize?: string;\n h3FontWeight?: string;\n h4FontSize?: string;\n h4FontWeight?: string;\n h5FontSize?: string;\n h5FontWeight?: string;\n h6FontSize?: string;\n h6FontWeight?: string;\n}\n\nexport const ConfigurableText: StoryFn<ConfigurableTextProps> = (args: ConfigurableTextProps) => {\n return (\n <Configuration\n theme={{\n components: {\n text: {\n primary: {\n 'font-size': args.primaryFontSize,\n 'font-weight': args.primaryFontWeight\n },\n secondary: {\n 'font-size': args.secondaryFontSize,\n 'font-weight': args.secondaryFontWeight\n },\n h1: {\n 'font-size': args.h1FontSize,\n 'font-weight': args.h1FontWeight\n },\n h2: {\n 'font-size': args.h2FontSize,\n 'font-weight': args.h2FontWeight\n },\n h3: {\n 'font-size': args.h3FontSize,\n 'font-weight': args.h3FontWeight\n },\n h4: {\n 'font-size': args.h4FontSize,\n 'font-weight': args.h4FontWeight\n },\n h5: {\n 'font-size': args.h5FontSize,\n 'font-weight': args.h5FontWeight\n },\n h6: {\n 'font-size': args.h6FontSize,\n 'font-weight': args.h6FontWeight\n }\n }\n }\n }}\n >\n <Flex container={{ gap: 2, alignItems: 'end' }}>\n <Text variant='primary'>Primary</Text>\n <Text variant='secondary'>Secondary</Text>\n <Text variant='h1'>h1</Text>\n <Text variant='h2'>h2</Text>\n <Text variant='h3'>h3</Text>\n <Text variant='h4'>h4</Text>\n <Text variant='h5'>h5</Text>\n <Text variant='h6'>h6</Text>\n </Flex>\n </Configuration>\n );\n};\n\nConfigurableText.args = {\n primaryFontSize: 's',\n primaryFontWeight: '400',\n secondaryFontSize: 'xs',\n secondaryFontWeight: '400',\n h1FontSize: 'xl',\n h1FontWeight: '600',\n h2FontSize: 'l',\n h2FontWeight: '600',\n h3FontSize: 'm',\n h3FontWeight: '600',\n h4FontSize: 's',\n h4FontWeight: '600',\n h5FontSize: 'xs',\n h5FontWeight: '600',\n h6FontSize: 'xxs',\n h6FontWeight: '600'\n};\n\nConfigurableText.argTypes = {\n primaryFontSize: {\n options: ['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl'],\n control: { type: 'select' }\n },\n primaryFontWeight: { control: { type: 'text' } },\n secondaryFontSize: {\n options: ['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl'],\n control: { type: 'select' }\n },\n secondaryFontWeight: { control: { type: 'text' } },\n h1FontSize: {\n options: ['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl'],\n control: { type: 'select' }\n },\n h1FontWeight: { control: { type: 'text' } },\n h2FontSize: {\n options: ['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl'],\n control: { type: 'select' }\n },\n h2FontWeight: { control: { type: 'text' } },\n h3FontSize: {\n options: ['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl'],\n control: { type: 'select' }\n },\n h3FontWeight: { control: { type: 'text' } },\n h4FontSize: {\n options: ['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl'],\n control: { type: 'select' }\n },\n h4FontWeight: { control: { type: 'text' } },\n h5FontSize: {\n options: ['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl'],\n control: { type: 'select' }\n },\n h5FontWeight: { control: { type: 'text' } },\n h6FontSize: {\n options: ['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl'],\n control: { type: 'select' }\n },\n h6FontWeight: { control: { type: 'text' } }\n};\n"]}
@@ -1,14 +1,14 @@
1
- import { Meta, Story } from '@storybook/react';
2
- import { TextAreaProps } from '@pega/cosmos-react-core';
3
- declare const _default: Meta;
1
+ import type { StoryFn } from '@storybook/react';
2
+ import type { TextAreaProps } from '@pega/cosmos-react-core';
3
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
4
4
  export default _default;
5
5
  interface TextAreaStoryProps extends TextAreaProps {
6
6
  showAdditionalInfo?: boolean;
7
7
  }
8
- export declare const TextAreaDemo: Story<TextAreaStoryProps>;
8
+ export declare const TextAreaDemo: StoryFn<TextAreaStoryProps>;
9
9
  interface ConfigurableTextAreaProps {
10
10
  minHeight?: string;
11
11
  padding?: string;
12
12
  }
13
- export declare const ConfigurableTextArea: Story<ConfigurableTextAreaProps>;
13
+ export declare const ConfigurableTextArea: StoryFn<ConfigurableTextAreaProps>;
14
14
  //# sourceMappingURL=TextArea.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TextArea.stories.d.ts","sourceRoot":"","sources":["../../../src/core/TextArea/TextArea.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAG/C,OAAO,EAA2B,aAAa,EAAE,MAAM,yBAAyB,CAAC;;AAEjF,wBAIU;AAEV,UAAU,kBAAmB,SAAQ,aAAa;IAChD,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B;AAED,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,kBAAkB,CAgClD,CAAC;AAsCF,UAAU,yBAAyB;IACjC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,yBAAyB,CA2BjE,CAAC"}
1
+ {"version":3,"file":"TextArea.stories.d.ts","sourceRoot":"","sources":["../../../src/core/TextArea/TextArea.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAKtD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;;AAE7D,wBAIU;AAEV,UAAU,kBAAmB,SAAQ,aAAa;IAChD,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B;AAED,eAAO,MAAM,YAAY,EAAE,OAAO,CAAC,kBAAkB,CAgCpD,CAAC;AAsCF,UAAU,yBAAyB;IACjC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,oBAAoB,EAAE,OAAO,CAAC,yBAAyB,CA2BnE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"TextArea.stories.js","sourceRoot":"","sources":["../../../src/core/TextArea/TextArea.stories.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,QAAQ,EAAe,MAAM,OAAO,CAAC;AAE9C,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAiB,MAAM,yBAAyB,CAAC;AAEjF,eAAe;IACb,KAAK,EAAE,eAAe;IACtB,SAAS,EAAE,QAAQ;IACnB,cAAc,EAAE,CAAC,sBAAsB,CAAC;CACjC,CAAC;AAMV,MAAM,CAAC,MAAM,YAAY,GAA8B,CAAC,IAAwB,EAAE,EAAE;IA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AE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IAC1C,kBAAkB,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;CACrD,CAAC;AAOF,MAAM,CAAC,MAAM,oBAAoB,GAAqC,CACpE,IAA+B,EAC/B,EAAE;IACF,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC;IAEvC,OAAO,CACL,KAAC,aAAa,IACZ,KAAK,EAAE;YACL,UAAU,EAAE;gBACV,WAAW,EAAE;oBACX,YAAY,EAAE,IAAI,CAAC,SAAS;oBAC5B,OAAO,EAAE,IAAI,CAAC,OAAO;iBACtB;aACF;SACF,YAED,KAAC,QAAQ,IACP,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,CAAC,CAAmC,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAC3E,SAAS,QACT,UAAU,QACV,KAAK,EAAC,wBAAwB,EAC9B,IAAI,EAAC,8BAA8B,EACnC,WAAW,EAAC,uBAAkB,GAC9B,GACY,CACjB,CAAC;AACJ,CAAC,CAAC;AAEF,oBAAoB,CAAC,IAAI,GAAG;IAC1B,SAAS,EAAE,SAAS;IACpB,OAAO,EAAE,QAAQ;CAClB,CAAC;AAEF,oBAAoB,CAAC,QAAQ,GAAG;IAC9B,SAAS,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;IACxC,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;CACvC,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\nimport { useState, ChangeEvent } from 'react';\n\nimport { Configuration, TextArea, TextAreaProps } from '@pega/cosmos-react-core';\n\nexport default {\n title: 'Core/Textarea',\n component: TextArea,\n excludeStories: ['ConfigurableTextArea']\n} as Meta;\n\ninterface TextAreaStoryProps extends TextAreaProps {\n showAdditionalInfo?: boolean;\n}\n\nexport const TextAreaDemo: Story<TextAreaStoryProps> = (args: TextAreaStoryProps) => {\n const [value, setValue] = useState('');\n\n return (\n <TextArea\n additionalInfo={\n args.showAdditionalInfo\n ? {\n heading: 'Additional Info',\n content: 'Some additional info'\n }\n : undefined\n }\n id='text-area'\n value={value}\n onChange={(e: ChangeEvent<HTMLTextAreaElement>) => setValue(e.target.value)}\n minLength={args.minLength}\n maxLength={args.maxLength}\n displayCharCount={args.displayCharCount}\n hardStop={args.hardStop}\n resizable={args.resizable}\n autoResize={args.autoResize}\n label={args.label}\n labelHidden={args.labelHidden}\n info={args.info}\n placeholder={args.placeholder}\n status={args.status}\n required={args.required}\n disabled={args.disabled}\n readOnly={args.readOnly}\n />\n );\n};\n\nTextAreaDemo.args = {\n minLength: 0,\n maxLength: 300,\n displayCharCount: false,\n hardStop: true,\n resizable: false,\n autoResize: true,\n label: 'Text Area',\n labelHidden: false,\n info: 'Enter a large amount of text',\n placeholder: 'Tell us a story…',\n status: undefined,\n required: false,\n disabled: false,\n readOnly: false,\n showAdditionalInfo: true\n};\n\nTextAreaDemo.argTypes = {\n minLength: { control: { type: 'number' } },\n maxLength: { control: { type: 'number' } },\n displayCharCount: { control: { type: 'boolean' } },\n hardStop: { control: { type: 'boolean' } },\n resizable: { control: { type: 'boolean' } },\n autoResize: { control: { type: 'boolean' } },\n label: { control: { type: 'text' } },\n labelHidden: { control: { type: 'boolean' } },\n info: { control: { type: 'text' } },\n placeholder: { control: { type: 'text' } },\n status: { options: [undefined, 'success', 'warning', 'error'], control: { type: 'select' } },\n required: { control: { type: 'boolean' } },\n disabled: { control: { type: 'boolean' } },\n readOnly: { control: { type: 'boolean' } },\n showAdditionalInfo: { control: { type: 'boolean' } }\n};\n\ninterface ConfigurableTextAreaProps {\n minHeight?: string;\n padding?: string;\n}\n\nexport const ConfigurableTextArea: Story<ConfigurableTextAreaProps> = (\n args: ConfigurableTextAreaProps\n) => {\n const [value, setValue] = useState('');\n\n return (\n <Configuration\n theme={{\n components: {\n 'text-area': {\n 'min-height': args.minHeight,\n padding: args.padding\n }\n }\n }}\n >\n <TextArea\n value={value}\n onChange={(e: ChangeEvent<HTMLTextAreaElement>) => setValue(e.target.value)}\n resizable\n autoResize\n label='Configurable Text Area'\n info='Enter a large amount of text'\n placeholder='Tell us a story…'\n />\n </Configuration>\n );\n};\n\nConfigurableTextArea.args = {\n minHeight: '3.75rem',\n padding: '0.5rem'\n};\n\nConfigurableTextArea.argTypes = {\n minHeight: { control: { type: 'text' } },\n padding: { control: { type: 'text' } }\n};\n"]}
1
+ {"version":3,"file":"TextArea.stories.js","sourceRoot":"","sources":["../../../src/core/TextArea/TextArea.stories.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAGjC,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAGlE,eAAe;IACb,KAAK,EAAE,eAAe;IACtB,SAAS,EAAE,QAAQ;IACnB,cAAc,EAAE,CAAC,sBAAsB,CAAC;CACjC,CAAC;AAMV,MAAM,CAAC,MAAM,YAAY,GAAgC,CAAC,IAAwB,EAAE,EAAE;IACpF,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC;IAEvC,OAAO,CACL,KAAC,QAAQ,IACP,cAAc,EACZ,IAAI,CAAC,kBAAkB;YACrB,CAAC,CAAC;gBACE,OAAO,EAAE,iBAAiB;gBAC1B,OAAO,EAAE,sBAAsB;aAChC;YACH,CAAC,CAAC,SAAS,EAEf,EAAE,EAAC,WAAW,EACd,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,CAAC,CAAmC,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAC3E,SAAS,EAAE,IAAI,CAAC,SAAS,EACzB,SAAS,EAAE,IAAI,CAAC,SAAS,EACzB,gBAAgB,EAAE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EACZ,QAAQ,EAAE,CAAC,CAAmC,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAC3E,SAAS,QACT,UAAU,QACV,KAAK,EAAC,wBAAwB,EAC9B,IAAI,EAAC,8BAA8B,EACnC,WAAW,EAAC,uBAAkB,GAC9B,GACY,CACjB,CAAC;AACJ,CAAC,CAAC;AAEF,oBAAoB,CAAC,IAAI,GAAG;IAC1B,SAAS,EAAE,SAAS;IACpB,OAAO,EAAE,QAAQ;CAClB,CAAC;AAEF,oBAAoB,CAAC,QAAQ,GAAG;IAC9B,SAAS,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;IACxC,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;CACvC,CAAC","sourcesContent":["import type { Meta, StoryFn } from '@storybook/react';\nimport { useState } from 'react';\nimport type { ChangeEvent } from 'react';\n\nimport { Configuration, TextArea } from '@pega/cosmos-react-core';\nimport type { TextAreaProps } from '@pega/cosmos-react-core';\n\nexport default {\n title: 'Core/Textarea',\n component: TextArea,\n excludeStories: ['ConfigurableTextArea']\n} as Meta;\n\ninterface TextAreaStoryProps extends TextAreaProps {\n showAdditionalInfo?: boolean;\n}\n\nexport const TextAreaDemo: StoryFn<TextAreaStoryProps> = (args: TextAreaStoryProps) => {\n const [value, setValue] = useState('');\n\n return (\n <TextArea\n additionalInfo={\n args.showAdditionalInfo\n ? {\n heading: 'Additional Info',\n content: 'Some additional info'\n }\n : undefined\n }\n id='text-area'\n value={value}\n onChange={(e: ChangeEvent<HTMLTextAreaElement>) => setValue(e.target.value)}\n minLength={args.minLength}\n maxLength={args.maxLength}\n displayCharCount={args.displayCharCount}\n hardStop={args.hardStop}\n resizable={args.resizable}\n autoResize={args.autoResize}\n label={args.label}\n labelHidden={args.labelHidden}\n info={args.info}\n placeholder={args.placeholder}\n status={args.status}\n required={args.required}\n disabled={args.disabled}\n readOnly={args.readOnly}\n />\n );\n};\n\nTextAreaDemo.args = {\n minLength: 0,\n maxLength: 300,\n displayCharCount: false,\n hardStop: true,\n resizable: false,\n autoResize: true,\n label: 'Text Area',\n labelHidden: false,\n info: 'Enter a large amount of text',\n placeholder: 'Tell us a story…',\n status: undefined,\n required: false,\n disabled: false,\n readOnly: false,\n showAdditionalInfo: true\n};\n\nTextAreaDemo.argTypes = {\n minLength: { control: { type: 'number' } },\n maxLength: { control: { type: 'number' } },\n displayCharCount: { control: { type: 'boolean' } },\n hardStop: { control: { type: 'boolean' } },\n resizable: { control: { type: 'boolean' } },\n autoResize: { control: { type: 'boolean' } },\n label: { control: { type: 'text' } },\n labelHidden: { control: { type: 'boolean' } },\n info: { control: { type: 'text' } },\n placeholder: { control: { type: 'text' } },\n status: { options: [undefined, 'success', 'warning', 'error'], control: { type: 'select' } },\n required: { control: { type: 'boolean' } },\n disabled: { control: { type: 'boolean' } },\n readOnly: { control: { type: 'boolean' } },\n showAdditionalInfo: { control: { type: 'boolean' } }\n};\n\ninterface ConfigurableTextAreaProps {\n minHeight?: string;\n padding?: string;\n}\n\nexport const ConfigurableTextArea: StoryFn<ConfigurableTextAreaProps> = (\n args: ConfigurableTextAreaProps\n) => {\n const [value, setValue] = useState('');\n\n return (\n <Configuration\n theme={{\n components: {\n 'text-area': {\n 'min-height': args.minHeight,\n padding: args.padding\n }\n }\n }}\n >\n <TextArea\n value={value}\n onChange={(e: ChangeEvent<HTMLTextAreaElement>) => setValue(e.target.value)}\n resizable\n autoResize\n label='Configurable Text Area'\n info='Enter a large amount of text'\n placeholder='Tell us a story…'\n />\n </Configuration>\n );\n};\n\nConfigurableTextArea.args = {\n minHeight: '3.75rem',\n padding: '0.5rem'\n};\n\nConfigurableTextArea.argTypes = {\n minHeight: { control: { type: 'text' } },\n padding: { control: { type: 'text' } }\n};\n"]}
@@ -1,5 +1,5 @@
1
- import { Meta, Story } from '@storybook/react';
2
- declare const _default: Meta;
1
+ import type { StoryFn } from '@storybook/react';
2
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
3
3
  export default _default;
4
- export declare const ToasterDemo: Story;
4
+ export declare const ToasterDemo: StoryFn;
5
5
  //# sourceMappingURL=Toaster.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Toaster.stories.d.ts","sourceRoot":"","sources":["../../../src/core/Toaster/Toaster.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;;AAK/C,wBAGU;AAEV,eAAO,MAAM,WAAW,EAAE,KAyBzB,CAAC"}
1
+ {"version":3,"file":"Toaster.stories.d.ts","sourceRoot":"","sources":["../../../src/core/Toaster/Toaster.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,OAAO,EAAE,MAAM,kBAAkB,CAAC;;AAKtD,wBAGU;AAEV,eAAO,MAAM,WAAW,EAAE,OAyBzB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Toaster.stories.js","sourceRoot":"","sources":["../../../src/core/Toaster/Toaster.stories.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAEtE,eAAe;IACb,KAAK,EAAE,cAAc;IACrB,SAAS,EAAE,OAAO;CACX,CAAC;AAEV,MAAM,CAAC,MAAM,WAAW,GAAU,GAAG,EAAE;IACrC,MAAM,eAAe,GAAG,GAAG,EAAE;QAC3B,MAAM,EAAE,IAAI,EAAE,GAAG,UAAU,EAAE,CAAC;QAC9B,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;QAEtC,MAAM,QAAQ,GAAG;YACf,gCAAgC;YAChC,sIAAsI;SACvI,CAAC;QAEF,MAAM,WAAW,GAAG,GAAG,EAAE;YACvB,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC;YAC3B,IAAI,CAAC;gBACH,OAAO,EAAE,QAAQ,CAAC,KAAK,GAAG,CAAC,CAAC;aAC7B,CAAC,CAAC;QACL,CAAC,CAAC;QAEF,OAAO,KAAC,MAAM,IAAC,OAAO,EAAE,WAAW,gCAA0B,CAAC;IAChE,CAAC,CAAC;IAEF,OAAO,CACL,KAAC,OAAO,IAAC,YAAY,EAAE,IAAI,YACzB,KAAC,eAAe,KAAG,GACX,CACX,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\nimport { useState } from 'react';\n\nimport { Button, Toaster, useToaster } from '@pega/cosmos-react-core';\n\nexport default {\n title: 'Core/Toaster',\n component: Toaster\n} as Meta;\n\nexport const ToasterDemo: Story = () => {\n const MakeToastButton = () => {\n const { push } = useToaster();\n const [count, setCount] = useState(0);\n\n const messages = [\n 'This is a short toast message!',\n 'This toast message is much longer and will need to be trimmed with an ellipsis in order to fit within the confines of the component.'\n ];\n\n const pushToaster = () => {\n setCount(curr => curr + 1);\n push({\n content: messages[count % 2]\n });\n };\n\n return <Button onClick={pushToaster}>Make some Toast</Button>;\n };\n\n return (\n <Toaster dismissAfter={5000}>\n <MakeToastButton />\n </Toaster>\n );\n};\n"]}
1
+ {"version":3,"file":"Toaster.stories.js","sourceRoot":"","sources":["../../../src/core/Toaster/Toaster.stories.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAEtE,eAAe;IACb,KAAK,EAAE,cAAc;IACrB,SAAS,EAAE,OAAO;CACX,CAAC;AAEV,MAAM,CAAC,MAAM,WAAW,GAAY,GAAG,EAAE;IACvC,MAAM,eAAe,GAAG,GAAG,EAAE;QAC3B,MAAM,EAAE,IAAI,EAAE,GAAG,UAAU,EAAE,CAAC;QAC9B,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;QAEtC,MAAM,QAAQ,GAAG;YACf,gCAAgC;YAChC,sIAAsI;SACvI,CAAC;QAEF,MAAM,WAAW,GAAG,GAAG,EAAE;YACvB,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC;YAC3B,IAAI,CAAC;gBACH,OAAO,EAAE,QAAQ,CAAC,KAAK,GAAG,CAAC,CAAC;aAC7B,CAAC,CAAC;QACL,CAAC,CAAC;QAEF,OAAO,KAAC,MAAM,IAAC,OAAO,EAAE,WAAW,gCAA0B,CAAC;IAChE,CAAC,CAAC;IAEF,OAAO,CACL,KAAC,OAAO,IAAC,YAAY,EAAE,IAAI,YACzB,KAAC,eAAe,KAAG,GACX,CACX,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import type { Meta, StoryFn } from '@storybook/react';\nimport { useState } from 'react';\n\nimport { Button, Toaster, useToaster } from '@pega/cosmos-react-core';\n\nexport default {\n title: 'Core/Toaster',\n component: Toaster\n} as Meta;\n\nexport const ToasterDemo: StoryFn = () => {\n const MakeToastButton = () => {\n const { push } = useToaster();\n const [count, setCount] = useState(0);\n\n const messages = [\n 'This is a short toast message!',\n 'This toast message is much longer and will need to be trimmed with an ellipsis in order to fit within the confines of the component.'\n ];\n\n const pushToaster = () => {\n setCount(curr => curr + 1);\n push({\n content: messages[count % 2]\n });\n };\n\n return <Button onClick={pushToaster}>Make some Toast</Button>;\n };\n\n return (\n <Toaster dismissAfter={5000}>\n <MakeToastButton />\n </Toaster>\n );\n};\n"]}
@@ -1,11 +1,11 @@
1
- import { Meta, Story } from '@storybook/react';
2
- declare const _default: Meta;
1
+ import type { StoryFn } from '@storybook/react';
2
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
3
3
  export default _default;
4
- export declare const TooltipDemo: Story;
4
+ export declare const TooltipDemo: StoryFn;
5
5
  interface ConfigurableTooltipProps {
6
6
  foregroundColor?: string;
7
7
  backgroundColor?: string;
8
8
  }
9
- export declare const ConfigurableTooltip: Story<ConfigurableTooltipProps>;
10
- export declare const SmartTooltip: Story;
9
+ export declare const ConfigurableTooltip: StoryFn<ConfigurableTooltipProps>;
10
+ export declare const SmartTooltip: StoryFn;
11
11
  //# sourceMappingURL=Tooltip.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Tooltip.stories.d.ts","sourceRoot":"","sources":["../../../src/core/Tooltip/Tooltip.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;;AAM/C,wBAIU;AAEV,eAAO,MAAM,WAAW,EAAE,KAgBzB,CAAC;AAEF,UAAU,wBAAwB;IAChC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,wBAAwB,CA2B/D,CAAC;AAYF,eAAO,MAAM,YAAY,EAAE,KAyB1B,CAAC"}
1
+ {"version":3,"file":"Tooltip.stories.d.ts","sourceRoot":"","sources":["../../../src/core/Tooltip/Tooltip.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,OAAO,EAAE,MAAM,kBAAkB,CAAC;;AAMtD,wBAIU;AAEV,eAAO,MAAM,WAAW,EAAE,OAgBzB,CAAC;AAEF,UAAU,wBAAwB;IAChC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,eAAO,MAAM,mBAAmB,EAAE,OAAO,CAAC,wBAAwB,CA2BjE,CAAC;AAYF,eAAO,MAAM,YAAY,EAAE,OAyB1B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file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Ae,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE;IAC/C,eAAe,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE;CAChD,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAU,GAAG,EAAE;IACtC,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,GAAG,UAAU,EAAE,CAAC;IACnC,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,GAAG,UAAU,EAAE,CAAC;IACnC,MAAM,YAAY,GAAG,iDAAiD,CAAC;IACvE,MAAM,YAAY,GAAG,+CAA+C,CAAC;IAErE,OAAO,CACL,MAAC,IAAI,IAAC,SAAS,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,EAAE,aAC9C,KAAC,YAAY,IAAC,GAAG,EAAE,MAAM,YAAG,YAAY,GAAgB,EACvD,GAAG,IAAI,CACN,KAAC,OAAO,IAAC,MAAM,EAAE,GAAG,EAAE,KAAK,QAAC,SAAS,EAAC,MAAM,EAAC,SAAS,EAAC,MAAM,YAC1D,YAAY,GACL,CACX,EAED,KAAC,MAAM,IAAC,EAAE,EAAE,YAAY,EAAE,OAAO,EAAC,MAAM,EAAC,GAAG,EAAE,MAAM,YACjD,YAAY,GACN,EACR,GAAG,IAAI,CACN,KAAC,OAAO,IAAC,MAAM,EAAE,GAAG,EAAE,KAAK,QAAC,SAAS,EAAC,MAAM,EAAC,SAAS,EAAC,MAAM,YAC1D,YAAY,GACL,CACX,IACI,CACR,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\n\nimport { Button, Configuration, Flex, Tooltip, useElement } from '@pega/cosmos-react-core';\n\nimport { ResizeableEl } from './Tooltip.styles';\n\nexport default {\n title: 'Core/Tooltip',\n component: Tooltip,\n excludeStories: ['ConfigurableTooltip']\n} as Meta;\n\nexport const TooltipDemo: Story = () => {\n const [el, setEl] = useElement();\n\n return (\n <>\n <Button ref={setEl}>Hover me</Button>\n\n {el && (\n <Tooltip target={el}>\n Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur finibus scelerisque\n viverra. Fusce consequat, justo at laoreet lobortis, mauris ipsum aliquet arcu, non\n convallis nisl elit id erat. Pellentesque posuere sagittis velit a molestie.\n </Tooltip>\n )}\n </>\n );\n};\n\ninterface ConfigurableTooltipProps {\n foregroundColor?: string;\n backgroundColor?: string;\n}\n\nexport const ConfigurableTooltip: Story<ConfigurableTooltipProps> = (\n args: ConfigurableTooltipProps\n) => {\n const [el, setEl] = useElement();\n\n return (\n <Configuration\n theme={{\n components: {\n tooltip: {\n 'foreground-color': args.foregroundColor,\n 'background-color': args.backgroundColor\n }\n }\n }}\n >\n <Button ref={setEl}>Hover me</Button>\n\n {el && (\n <Tooltip target={el}>\n Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur finibus scelerisque\n viverra. Fusce consequat, justo at laoreet lobortis, mauris ipsum aliquet arcu, non\n convallis nisl elit id erat. Pellentesque posuere sagittis velit a molestie.\n </Tooltip>\n )}\n </Configuration>\n );\n};\n\nConfigurableTooltip.args = {\n foregroundColor: '#f5f5f5',\n backgroundColor: '#3f3f3f'\n};\n\nConfigurableTooltip.argTypes = {\n foregroundColor: { control: { type: 'color' } },\n backgroundColor: { control: { type: 'color' } }\n};\n\nexport const SmartTooltip: Story = () => {\n const [el1, setEl1] = useElement();\n const [el2, setEl2] = useElement();\n const textContent1 = 'Resize me and hover: Lorem ipsum dolor sit amet';\n const textContent2 = 'Hover or focus me: Lorem ipsum dolor sit amet';\n\n return (\n <Flex container={{ direction: 'column', gap: 4 }}>\n <ResizeableEl ref={setEl1}>{textContent1}</ResizeableEl>\n {el1 && (\n <Tooltip target={el1} smart showDelay='none' hideDelay='none'>\n {textContent1}\n </Tooltip>\n )}\n\n <Button as={ResizeableEl} variant='link' ref={setEl2}>\n {textContent2}\n </Button>\n {el2 && (\n <Tooltip target={el2} smart showDelay='none' hideDelay='none'>\n {textContent2}\n </Tooltip>\n )}\n </Flex>\n );\n};\n"]}
1
+ {"version":3,"file":"Tooltip.stories.js","sourceRoot":"","sources":["../../../src/core/Tooltip/Tooltip.stories.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,IAAI,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAE3F,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAEhD,eAAe;IACb,KAAK,EAAE,cAAc;IACrB,SAAS,EAAE,OAAO;IAClB,cAAc,EAAE,CAAC,qBAAqB,CAAC;CAChC,CAAC;AAEV,MAAM,CAAC,MAAM,WAAW,GAAY,GAAG,EAAE;IACvC,MAAM,CAAC,EAAE,EAAE,KAAK,CAAC,GAAG,UAAU,EAAE,CAAC;IAEjC,OAAO,CACL,8BACE,KAAC,MAAM,IAAC,GAAG,EAAE,KAAK,yBAAmB,EAEpC,EAAE,IAAI,CACL,KAAC,OAAO,IAAC,MAAM,EAAE,EAAE,wQAIT,CACX,IACA,CACJ,CAAC;AACJ,CAAC,CAAC;AAOF,MAAM,CAAC,MAAM,mBAAmB,GAAsC,CACpE,IAA8B,EAC9B,EAAE;IACF,MAAM,CAAC,EAAE,EAAE,KAAK,CAAC,GAAG,UAAU,EAAE,CAAC;IAEjC,OAAO,CACL,MAAC,aAAa,IACZ,KAAK,EAAE;YACL,UAAU,EAAE;gBACV,OAAO,EAAE;oBACP,kBAAkB,EAAE,IAAI,CAAC,eAAe;oBACxC,kBAAkB,EAAE,IAAI,CAAC,eAAe;iBACzC;aACF;SACF,aAED,KAAC,MAAM,IAAC,GAAG,EAAE,KAAK,yBAAmB,EAEpC,EAAE,IAAI,CACL,KAAC,OAAO,IAAC,MAAM,EAAE,EAAE,wQAIT,CACX,IACa,CACjB,CAAC;AACJ,CAAC,CAAC;AAEF,mBAAmB,CAAC,IAAI,GAAG;IACzB,eAAe,EAAE,SAAS;IAC1B,eAAe,EAAE,SAAS;CAC3B,CAAC;AAEF,mBAAmB,CAAC,QAAQ,GAAG;IAC7B,eAAe,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE;IAC/C,eAAe,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE;CAChD,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAY,GAAG,EAAE;IACxC,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,GAAG,UAAU,EAAE,CAAC;IACnC,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,GAAG,UAAU,EAAE,CAAC;IACnC,MAAM,YAAY,GAAG,iDAAiD,CAAC;IACvE,MAAM,YAAY,GAAG,+CAA+C,CAAC;IAErE,OAAO,CACL,MAAC,IAAI,IAAC,SAAS,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,EAAE,aAC9C,KAAC,YAAY,IAAC,GAAG,EAAE,MAAM,YAAG,YAAY,GAAgB,EACvD,GAAG,IAAI,CACN,KAAC,OAAO,IAAC,MAAM,EAAE,GAAG,EAAE,KAAK,QAAC,SAAS,EAAC,MAAM,EAAC,SAAS,EAAC,MAAM,YAC1D,YAAY,GACL,CACX,EAED,KAAC,MAAM,IAAC,EAAE,EAAE,YAAY,EAAE,OAAO,EAAC,MAAM,EAAC,GAAG,EAAE,MAAM,YACjD,YAAY,GACN,EACR,GAAG,IAAI,CACN,KAAC,OAAO,IAAC,MAAM,EAAE,GAAG,EAAE,KAAK,QAAC,SAAS,EAAC,MAAM,EAAC,SAAS,EAAC,MAAM,YAC1D,YAAY,GACL,CACX,IACI,CACR,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import type { Meta, StoryFn } from '@storybook/react';\n\nimport { Button, Configuration, Flex, Tooltip, useElement } from '@pega/cosmos-react-core';\n\nimport { ResizeableEl } from './Tooltip.styles';\n\nexport default {\n title: 'Core/Tooltip',\n component: Tooltip,\n excludeStories: ['ConfigurableTooltip']\n} as Meta;\n\nexport const TooltipDemo: StoryFn = () => {\n const [el, setEl] = useElement();\n\n return (\n <>\n <Button ref={setEl}>Hover me</Button>\n\n {el && (\n <Tooltip target={el}>\n Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur finibus scelerisque\n viverra. Fusce consequat, justo at laoreet lobortis, mauris ipsum aliquet arcu, non\n convallis nisl elit id erat. Pellentesque posuere sagittis velit a molestie.\n </Tooltip>\n )}\n </>\n );\n};\n\ninterface ConfigurableTooltipProps {\n foregroundColor?: string;\n backgroundColor?: string;\n}\n\nexport const ConfigurableTooltip: StoryFn<ConfigurableTooltipProps> = (\n args: ConfigurableTooltipProps\n) => {\n const [el, setEl] = useElement();\n\n return (\n <Configuration\n theme={{\n components: {\n tooltip: {\n 'foreground-color': args.foregroundColor,\n 'background-color': args.backgroundColor\n }\n }\n }}\n >\n <Button ref={setEl}>Hover me</Button>\n\n {el && (\n <Tooltip target={el}>\n Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur finibus scelerisque\n viverra. Fusce consequat, justo at laoreet lobortis, mauris ipsum aliquet arcu, non\n convallis nisl elit id erat. Pellentesque posuere sagittis velit a molestie.\n </Tooltip>\n )}\n </Configuration>\n );\n};\n\nConfigurableTooltip.args = {\n foregroundColor: '#f5f5f5',\n backgroundColor: '#3f3f3f'\n};\n\nConfigurableTooltip.argTypes = {\n foregroundColor: { control: { type: 'color' } },\n backgroundColor: { control: { type: 'color' } }\n};\n\nexport const SmartTooltip: StoryFn = () => {\n const [el1, setEl1] = useElement();\n const [el2, setEl2] = useElement();\n const textContent1 = 'Resize me and hover: Lorem ipsum dolor sit amet';\n const textContent2 = 'Hover or focus me: Lorem ipsum dolor sit amet';\n\n return (\n <Flex container={{ direction: 'column', gap: 4 }}>\n <ResizeableEl ref={setEl1}>{textContent1}</ResizeableEl>\n {el1 && (\n <Tooltip target={el1} smart showDelay='none' hideDelay='none'>\n {textContent1}\n </Tooltip>\n )}\n\n <Button as={ResizeableEl} variant='link' ref={setEl2}>\n {textContent2}\n </Button>\n {el2 && (\n <Tooltip target={el2} smart showDelay='none' hideDelay='none'>\n {textContent2}\n </Tooltip>\n )}\n </Flex>\n );\n};\n"]}