@pega/cosmos-react-demos 4.0.0-dev.20.0 → 4.0.0-dev.21.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 (937) 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.stories.d.ts +5 -5
  386. package/jsx/social/Feed/Feed.stories.d.ts.map +1 -1
  387. package/jsx/social/Feed/Feed.stories.jsx.map +1 -1
  388. package/jsx/social/Feed/FeedNewPost.stories.d.ts +4 -4
  389. package/jsx/social/Feed/FeedNewPost.stories.d.ts.map +1 -1
  390. package/jsx/social/Feed/FeedNewPost.stories.jsx.map +1 -1
  391. package/jsx/social/Feed/FeedPost.stories.d.ts +6 -6
  392. package/jsx/social/Feed/FeedPost.stories.d.ts.map +1 -1
  393. package/jsx/social/Feed/FeedPost.stories.jsx.map +1 -1
  394. package/jsx/social/Feed/FeedReply.stories.d.ts +5 -5
  395. package/jsx/social/Feed/FeedReply.stories.d.ts.map +1 -1
  396. package/jsx/social/Feed/FeedReply.stories.jsx.map +1 -1
  397. package/jsx/social/Feed/FeedReplyInput.stories.d.ts +4 -4
  398. package/jsx/social/Feed/FeedReplyInput.stories.d.ts.map +1 -1
  399. package/jsx/social/Feed/FeedReplyInput.stories.jsx.map +1 -1
  400. package/jsx/tools/Clipboard/Clipboard.stories.d.ts +4 -4
  401. package/jsx/tools/Clipboard/Clipboard.stories.d.ts.map +1 -1
  402. package/jsx/tools/Clipboard/Clipboard.stories.jsx.map +1 -1
  403. package/jsx/tools/DevTools/DevTools.stories.d.ts +4 -4
  404. package/jsx/tools/DevTools/DevTools.stories.d.ts.map +1 -1
  405. package/jsx/tools/DevTools/DevTools.stories.jsx.map +1 -1
  406. package/jsx/tools/PreviewShell/PreviewShell.stories.d.ts +7 -7
  407. package/jsx/tools/PreviewShell/PreviewShell.stories.d.ts.map +1 -1
  408. package/jsx/tools/PreviewShell/PreviewShell.stories.jsx.map +1 -1
  409. package/jsx/work/AppAnnouncement/AppAnnouncement.stories.d.ts +4 -4
  410. package/jsx/work/AppAnnouncement/AppAnnouncement.stories.d.ts.map +1 -1
  411. package/jsx/work/AppAnnouncement/AppAnnouncement.stories.jsx.map +1 -1
  412. package/jsx/work/Assignments/Assignments.stories.d.ts +4 -4
  413. package/jsx/work/Assignments/Assignments.stories.d.ts.map +1 -1
  414. package/jsx/work/Assignments/Assignments.stories.jsx.map +1 -1
  415. package/jsx/work/CaseView/CaseView.stories.d.ts +3 -3
  416. package/jsx/work/CaseView/CaseView.stories.d.ts.map +1 -1
  417. package/jsx/work/CaseView/CaseView.stories.jsx.map +1 -1
  418. package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts +3 -3
  419. package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts.map +1 -1
  420. package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.jsx.map +1 -1
  421. package/jsx/work/Confirmation/Confirmation.stories.d.ts +4 -4
  422. package/jsx/work/Confirmation/Confirmation.stories.d.ts.map +1 -1
  423. package/jsx/work/Confirmation/Confirmation.stories.jsx.map +1 -1
  424. package/jsx/work/Details/Details.stories.d.ts +3 -3
  425. package/jsx/work/Details/Details.stories.d.ts.map +1 -1
  426. package/jsx/work/Details/Details.stories.jsx.map +1 -1
  427. package/jsx/work/Glimpse/Glimpse.stories.d.ts +3 -3
  428. package/jsx/work/Glimpse/Glimpse.stories.d.ts.map +1 -1
  429. package/jsx/work/Glimpse/Glimpse.stories.jsx.map +1 -1
  430. package/jsx/work/IntelligentGuidance/IntelligentGuidance.stories.d.ts +4 -4
  431. package/jsx/work/IntelligentGuidance/IntelligentGuidance.stories.d.ts.map +1 -1
  432. package/jsx/work/IntelligentGuidance/IntelligentGuidance.stories.jsx.map +1 -1
  433. package/jsx/work/Predictions/Predictions.stories.d.ts +3 -3
  434. package/jsx/work/Predictions/Predictions.stories.d.ts.map +1 -1
  435. package/jsx/work/Predictions/Predictions.stories.jsx.map +1 -1
  436. package/jsx/work/SearchResults/SearchResults.stories.d.ts +3 -3
  437. package/jsx/work/SearchResults/SearchResults.stories.d.ts.map +1 -1
  438. package/jsx/work/SearchResults/SearchResults.stories.jsx.map +1 -1
  439. package/jsx/work/Stages/Stages.stories.d.ts +4 -4
  440. package/jsx/work/Stages/Stages.stories.d.ts.map +1 -1
  441. package/jsx/work/Stages/Stages.stories.jsx.map +1 -1
  442. package/jsx/work/Stakeholders/Stakeholders.stories.d.ts +3 -3
  443. package/jsx/work/Stakeholders/Stakeholders.stories.d.ts.map +1 -1
  444. package/jsx/work/Stakeholders/Stakeholders.stories.jsx.map +1 -1
  445. package/jsx/work/Tags/Tags.stories.d.ts +3 -3
  446. package/jsx/work/Tags/Tags.stories.d.ts.map +1 -1
  447. package/jsx/work/Tags/Tags.stories.jsx.map +1 -1
  448. package/jsx/work/Tasks/TaskList.stories.d.ts +3 -3
  449. package/jsx/work/Tasks/TaskList.stories.d.ts.map +1 -1
  450. package/jsx/work/Tasks/TaskList.stories.jsx.map +1 -1
  451. package/jsx/work/Tasks/Tasks.stories.d.ts +4 -4
  452. package/jsx/work/Tasks/Tasks.stories.d.ts.map +1 -1
  453. package/jsx/work/Tasks/Tasks.stories.jsx.map +1 -1
  454. package/jsx/work/Timeline/Timeline.stories.d.ts +6 -6
  455. package/jsx/work/Timeline/Timeline.stories.d.ts.map +1 -1
  456. package/jsx/work/Timeline/Timeline.stories.jsx.map +1 -1
  457. package/jsx/wss/AppShell/AppShell.stories.d.ts +5 -5
  458. package/jsx/wss/AppShell/AppShell.stories.d.ts.map +1 -1
  459. package/jsx/wss/AppShell/AppShell.stories.jsx.map +1 -1
  460. package/jsx/wss/CaseView/CaseView.stories.d.ts +3 -3
  461. package/jsx/wss/CaseView/CaseView.stories.d.ts.map +1 -1
  462. package/jsx/wss/CaseView/CaseView.stories.jsx.map +1 -1
  463. package/jsx/wss/PageTemplates/PageTemplates.stories.d.ts +3 -3
  464. package/jsx/wss/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
  465. package/jsx/wss/PageTemplates/PageTemplates.stories.jsx.map +1 -1
  466. package/jsx/wss/QuickCreate/QuickCreate.stories.d.ts +3 -3
  467. package/jsx/wss/QuickCreate/QuickCreate.stories.d.ts.map +1 -1
  468. package/jsx/wss/QuickCreate/QuickCreate.stories.jsx.map +1 -1
  469. package/lib/build/AppShell/AppShell.stories.d.ts +5 -5
  470. package/lib/build/AppShell/AppShell.stories.d.ts.map +1 -1
  471. package/lib/build/AppShell/AppShell.stories.js.map +1 -1
  472. package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts +3 -3
  473. package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts.map +1 -1
  474. package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.js.map +1 -1
  475. package/lib/build/ExpressionBuilder/ExpressionBuilder.stories.d.ts +8 -8
  476. package/lib/build/ExpressionBuilder/ExpressionBuilder.stories.d.ts.map +1 -1
  477. package/lib/build/ExpressionBuilder/ExpressionBuilder.stories.js +1 -2
  478. package/lib/build/ExpressionBuilder/ExpressionBuilder.stories.js.map +1 -1
  479. package/lib/build/FlowModeller/FlowModeller.stories.d.ts +5 -5
  480. package/lib/build/FlowModeller/FlowModeller.stories.d.ts.map +1 -1
  481. package/lib/build/FlowModeller/FlowModeller.stories.js.map +1 -1
  482. package/lib/build/ItemLibrary/LibraryPicker.stories.d.ts +3 -3
  483. package/lib/build/ItemLibrary/LibraryPicker.stories.d.ts.map +1 -1
  484. package/lib/build/ItemLibrary/LibraryPicker.stories.js +1 -2
  485. package/lib/build/ItemLibrary/LibraryPicker.stories.js.map +1 -1
  486. package/lib/build/LifeCycle/LifeCycle.stories.d.ts +6 -6
  487. package/lib/build/LifeCycle/LifeCycle.stories.d.ts.map +1 -1
  488. package/lib/build/LifeCycle/LifeCycle.stories.js.map +1 -1
  489. package/lib/build/MobileBuildSummary/MobileBuildSummary.stories.d.ts +3 -3
  490. package/lib/build/MobileBuildSummary/MobileBuildSummary.stories.d.ts.map +1 -1
  491. package/lib/build/MobileBuildSummary/MobileBuildSummary.stories.js.map +1 -1
  492. package/lib/build/ObjectSelect/ObjectSelect.stories.d.ts +6 -6
  493. package/lib/build/ObjectSelect/ObjectSelect.stories.d.ts.map +1 -1
  494. package/lib/build/ObjectSelect/ObjectSelect.stories.js.map +1 -1
  495. package/lib/build/PageBanner/PageBanner.stories.d.ts +5 -5
  496. package/lib/build/PageBanner/PageBanner.stories.d.ts.map +1 -1
  497. package/lib/build/PageBanner/PageBanner.stories.js.map +1 -1
  498. package/lib/build/PageTemplates/GalleryPage.stories.d.ts +4 -4
  499. package/lib/build/PageTemplates/GalleryPage.stories.d.ts.map +1 -1
  500. package/lib/build/PageTemplates/GalleryPage.stories.js.map +1 -1
  501. package/lib/build/PageTemplates/PageTemplates.stories.d.ts +5 -5
  502. package/lib/build/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
  503. package/lib/build/PageTemplates/PageTemplates.stories.js.map +1 -1
  504. package/lib/build/PageTemplates/ShowcasePage.stories.d.ts +5 -5
  505. package/lib/build/PageTemplates/ShowcasePage.stories.d.ts.map +1 -1
  506. package/lib/build/PageTemplates/ShowcasePage.stories.js.map +1 -1
  507. package/lib/build/Workbench/Workbench.stories.d.ts +4 -4
  508. package/lib/build/Workbench/Workbench.stories.d.ts.map +1 -1
  509. package/lib/build/Workbench/Workbench.stories.js.map +1 -1
  510. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts +5 -5
  511. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts.map +1 -1
  512. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.js.map +1 -1
  513. package/lib/condition-builder/ConditionInput/ConditionInput.stories.d.ts +4 -4
  514. package/lib/condition-builder/ConditionInput/ConditionInput.stories.d.ts.map +1 -1
  515. package/lib/condition-builder/ConditionInput/ConditionInput.stories.js.map +1 -1
  516. package/lib/condition-builder/PromotedFilters/PromotedFilters.stories.d.ts +3 -3
  517. package/lib/condition-builder/PromotedFilters/PromotedFilters.stories.d.ts.map +1 -1
  518. package/lib/condition-builder/PromotedFilters/PromotedFilters.stories.js.map +1 -1
  519. package/lib/core/AIButton/AIButton.stories.d.ts +7 -7
  520. package/lib/core/AIButton/AIButton.stories.d.ts.map +1 -1
  521. package/lib/core/AIButton/AIButton.stories.js.map +1 -1
  522. package/lib/core/AdditionalInfo/AdditionalInfo.stories.d.ts +4 -4
  523. package/lib/core/AdditionalInfo/AdditionalInfo.stories.d.ts.map +1 -1
  524. package/lib/core/AdditionalInfo/AdditionalInfo.stories.js.map +1 -1
  525. package/lib/core/AppShell/AppShell.stories.d.ts +5 -5
  526. package/lib/core/AppShell/AppShell.stories.d.ts.map +1 -1
  527. package/lib/core/AppShell/AppShell.stories.js.map +1 -1
  528. package/lib/core/Avatar/Avatar.stories.d.ts +9 -9
  529. package/lib/core/Avatar/Avatar.stories.d.ts.map +1 -1
  530. package/lib/core/Avatar/Avatar.stories.js.map +1 -1
  531. package/lib/core/Backdrop/Backdrop.stories.d.ts +5 -5
  532. package/lib/core/Backdrop/Backdrop.stories.d.ts.map +1 -1
  533. package/lib/core/Backdrop/Backdrop.stories.js.map +1 -1
  534. package/lib/core/Badges/Alert.stories.d.ts +4 -4
  535. package/lib/core/Badges/Alert.stories.d.ts.map +1 -1
  536. package/lib/core/Badges/Alert.stories.js.map +1 -1
  537. package/lib/core/Badges/Count.stories.d.ts +4 -4
  538. package/lib/core/Badges/Count.stories.d.ts.map +1 -1
  539. package/lib/core/Badges/Count.stories.js.map +1 -1
  540. package/lib/core/Badges/Keyboard.stories.d.ts +4 -4
  541. package/lib/core/Badges/Keyboard.stories.d.ts.map +1 -1
  542. package/lib/core/Badges/Keyboard.stories.js.map +1 -1
  543. package/lib/core/Badges/Selection.stories.d.ts +3 -3
  544. package/lib/core/Badges/Selection.stories.d.ts.map +1 -1
  545. package/lib/core/Badges/Selection.stories.js.map +1 -1
  546. package/lib/core/Badges/Status.stories.d.ts +5 -5
  547. package/lib/core/Badges/Status.stories.d.ts.map +1 -1
  548. package/lib/core/Badges/Status.stories.js.map +1 -1
  549. package/lib/core/Badges/Tag.stories.d.ts +3 -3
  550. package/lib/core/Badges/Tag.stories.d.ts.map +1 -1
  551. package/lib/core/Badges/Tag.stories.js.map +1 -1
  552. package/lib/core/Banner/Banner.stories.d.ts +7 -7
  553. package/lib/core/Banner/Banner.stories.d.ts.map +1 -1
  554. package/lib/core/Banner/Banner.stories.js.map +1 -1
  555. package/lib/core/Boolean/BooleanDisplay.stories.d.ts +4 -4
  556. package/lib/core/Boolean/BooleanDisplay.stories.d.ts.map +1 -1
  557. package/lib/core/Boolean/BooleanDisplay.stories.js.map +1 -1
  558. package/lib/core/Breadcrumbs/Breadcrumbs.stories.d.ts +4 -4
  559. package/lib/core/Breadcrumbs/Breadcrumbs.stories.d.ts.map +1 -1
  560. package/lib/core/Breadcrumbs/Breadcrumbs.stories.js.map +1 -1
  561. package/lib/core/Button/Button.stories.d.ts +9 -9
  562. package/lib/core/Button/Button.stories.d.ts.map +1 -1
  563. package/lib/core/Button/Button.stories.js.map +1 -1
  564. package/lib/core/Card/Card.stories.d.ts +6 -6
  565. package/lib/core/Card/Card.stories.d.ts.map +1 -1
  566. package/lib/core/Card/Card.stories.js.map +1 -1
  567. package/lib/core/Checkbox/Checkbox.stories.d.ts +6 -6
  568. package/lib/core/Checkbox/Checkbox.stories.d.ts.map +1 -1
  569. package/lib/core/Checkbox/Checkbox.stories.js.map +1 -1
  570. package/lib/core/CheckboxGroup/CheckboxGroup.stories.d.ts +5 -5
  571. package/lib/core/CheckboxGroup/CheckboxGroup.stories.d.ts.map +1 -1
  572. package/lib/core/CheckboxGroup/CheckboxGroup.stories.js.map +1 -1
  573. package/lib/core/ColorPicker/ColorPicker.stories.d.ts +5 -5
  574. package/lib/core/ColorPicker/ColorPicker.stories.d.ts.map +1 -1
  575. package/lib/core/ColorPicker/ColorPicker.stories.js.map +1 -1
  576. package/lib/core/ComboBox/ComboBox.stories.d.ts +9 -9
  577. package/lib/core/ComboBox/ComboBox.stories.d.ts.map +1 -1
  578. package/lib/core/ComboBox/ComboBox.stories.js.map +1 -1
  579. package/lib/core/CompositeInput/CompositeInput.stories.d.ts +3 -3
  580. package/lib/core/CompositeInput/CompositeInput.stories.d.ts.map +1 -1
  581. package/lib/core/CompositeInput/CompositeInput.stories.js.map +1 -1
  582. package/lib/core/Configuration/Configuration.stories.d.ts +8 -8
  583. package/lib/core/Configuration/Configuration.stories.d.ts.map +1 -1
  584. package/lib/core/Configuration/Configuration.stories.js.map +1 -1
  585. package/lib/core/CreditCard/CreditCard.stories.d.ts +4 -4
  586. package/lib/core/CreditCard/CreditCard.stories.d.ts.map +1 -1
  587. package/lib/core/CreditCard/CreditCard.stories.js +1 -2
  588. package/lib/core/CreditCard/CreditCard.stories.js.map +1 -1
  589. package/lib/core/Currency/Currency.stories.d.ts +5 -5
  590. package/lib/core/Currency/Currency.stories.d.ts.map +1 -1
  591. package/lib/core/Currency/Currency.stories.js.map +1 -1
  592. package/lib/core/DangerButton/DangerButton.stories.d.ts +4 -4
  593. package/lib/core/DangerButton/DangerButton.stories.d.ts.map +1 -1
  594. package/lib/core/DangerButton/DangerButton.stories.js.map +1 -1
  595. package/lib/core/DateTime/DateTime.stories.d.ts +13 -13
  596. package/lib/core/DateTime/DateTime.stories.d.ts.map +1 -1
  597. package/lib/core/DateTime/DateTime.stories.js.map +1 -1
  598. package/lib/core/DateTime/DateTimeDisplay.stories.d.ts +5 -5
  599. package/lib/core/DateTime/DateTimeDisplay.stories.d.ts.map +1 -1
  600. package/lib/core/DateTime/DateTimeDisplay.stories.js.map +1 -1
  601. package/lib/core/DateTime/DateTimePicker.stories.d.ts +5 -5
  602. package/lib/core/DateTime/DateTimePicker.stories.d.ts.map +1 -1
  603. package/lib/core/DateTime/DateTimePicker.stories.js.map +1 -1
  604. package/lib/core/Dialog/Dialog.stories.d.ts +5 -5
  605. package/lib/core/Dialog/Dialog.stories.d.ts.map +1 -1
  606. package/lib/core/Dialog/Dialog.stories.js.map +1 -1
  607. package/lib/core/Drawer/Drawer.stories.d.ts +5 -5
  608. package/lib/core/Drawer/Drawer.stories.d.ts.map +1 -1
  609. package/lib/core/Drawer/Drawer.stories.js.map +1 -1
  610. package/lib/core/Email/EmailDisplay.stories.d.ts +4 -4
  611. package/lib/core/Email/EmailDisplay.stories.d.ts.map +1 -1
  612. package/lib/core/Email/EmailDisplay.stories.js.map +1 -1
  613. package/lib/core/EmojiPicker/EmojiPicker.stories.d.ts +6 -6
  614. package/lib/core/EmojiPicker/EmojiPicker.stories.d.ts.map +1 -1
  615. package/lib/core/EmojiPicker/EmojiPicker.stories.js.map +1 -1
  616. package/lib/core/EmptyState/EmptyState.stories.d.ts +4 -4
  617. package/lib/core/EmptyState/EmptyState.stories.d.ts.map +1 -1
  618. package/lib/core/EmptyState/EmptyState.stories.js.map +1 -1
  619. package/lib/core/ErrorState/ErrorState.stories.d.ts +4 -4
  620. package/lib/core/ErrorState/ErrorState.stories.d.ts.map +1 -1
  621. package/lib/core/ErrorState/ErrorState.stories.js.map +1 -1
  622. package/lib/core/ExpandCollapse/ExpandCollapse.stories.d.ts +5 -5
  623. package/lib/core/ExpandCollapse/ExpandCollapse.stories.d.ts.map +1 -1
  624. package/lib/core/ExpandCollapse/ExpandCollapse.stories.js.map +1 -1
  625. package/lib/core/FieldGroup/FieldGroup.stories.d.ts +4 -4
  626. package/lib/core/FieldGroup/FieldGroup.stories.d.ts.map +1 -1
  627. package/lib/core/FieldGroup/FieldGroup.stories.js.map +1 -1
  628. package/lib/core/FieldGroup/FieldGroupList.stories.d.ts +5 -5
  629. package/lib/core/FieldGroup/FieldGroupList.stories.d.ts.map +1 -1
  630. package/lib/core/FieldGroup/FieldGroupList.stories.js.map +1 -1
  631. package/lib/core/FieldValueList/FieldValueList.stories.d.ts +4 -4
  632. package/lib/core/FieldValueList/FieldValueList.stories.d.ts.map +1 -1
  633. package/lib/core/FieldValueList/FieldValueList.stories.js.map +1 -1
  634. package/lib/core/File/FileDisplay.stories.d.ts +6 -6
  635. package/lib/core/File/FileDisplay.stories.d.ts.map +1 -1
  636. package/lib/core/File/FileDisplay.stories.js.map +1 -1
  637. package/lib/core/File/FileInput.stories.d.ts +4 -4
  638. package/lib/core/File/FileInput.stories.d.ts.map +1 -1
  639. package/lib/core/File/FileInput.stories.js.map +1 -1
  640. package/lib/core/Flex/FlexContainer.stories.d.ts +10 -10
  641. package/lib/core/Flex/FlexContainer.stories.d.ts.map +1 -1
  642. package/lib/core/Flex/FlexContainer.stories.js.map +1 -1
  643. package/lib/core/Flex/FlexItem.stories.d.ts +6 -6
  644. package/lib/core/Flex/FlexItem.stories.d.ts.map +1 -1
  645. package/lib/core/Flex/FlexItem.stories.js.map +1 -1
  646. package/lib/core/Form/Form.stories.d.ts +8 -8
  647. package/lib/core/Form/Form.stories.d.ts.map +1 -1
  648. package/lib/core/Form/Form.stories.js.map +1 -1
  649. package/lib/core/Grid/GridContainer.stories.d.ts +12 -12
  650. package/lib/core/Grid/GridContainer.stories.d.ts.map +1 -1
  651. package/lib/core/Grid/GridContainer.stories.js.map +1 -1
  652. package/lib/core/Grid/GridItem.stories.d.ts +6 -6
  653. package/lib/core/Grid/GridItem.stories.d.ts.map +1 -1
  654. package/lib/core/Grid/GridItem.stories.js.map +1 -1
  655. package/lib/core/HTML/HTML.stories.d.ts +4 -4
  656. package/lib/core/HTML/HTML.stories.d.ts.map +1 -1
  657. package/lib/core/HTML/HTML.stories.js.map +1 -1
  658. package/lib/core/Icon/Icon.stories.d.ts +6 -6
  659. package/lib/core/Icon/Icon.stories.d.ts.map +1 -1
  660. package/lib/core/Icon/Icon.stories.js.map +1 -1
  661. package/lib/core/IconPicker/IconPicker.stories.d.ts +4 -4
  662. package/lib/core/IconPicker/IconPicker.stories.d.ts.map +1 -1
  663. package/lib/core/IconPicker/IconPicker.stories.js.map +1 -1
  664. package/lib/core/Image/Image.stories.d.ts +3 -3
  665. package/lib/core/Image/Image.stories.d.ts.map +1 -1
  666. package/lib/core/Image/Image.stories.js.map +1 -1
  667. package/lib/core/Input/Input.stories.d.ts +6 -6
  668. package/lib/core/Input/Input.stories.d.ts.map +1 -1
  669. package/lib/core/Input/Input.stories.js.map +1 -1
  670. package/lib/core/Label/Label.stories.d.ts +5 -5
  671. package/lib/core/Label/Label.stories.d.ts.map +1 -1
  672. package/lib/core/Label/Label.stories.js.map +1 -1
  673. package/lib/core/Lightbox/Lightbox.stories.d.ts +3 -3
  674. package/lib/core/Lightbox/Lightbox.stories.d.ts.map +1 -1
  675. package/lib/core/Lightbox/Lightbox.stories.js.map +1 -1
  676. package/lib/core/Link/Link.stories.d.ts +7 -7
  677. package/lib/core/Link/Link.stories.d.ts.map +1 -1
  678. package/lib/core/Link/Link.stories.js.map +1 -1
  679. package/lib/core/List/CommaSeparatedList.stories.d.ts +4 -4
  680. package/lib/core/List/CommaSeparatedList.stories.d.ts.map +1 -1
  681. package/lib/core/List/CommaSeparatedList.stories.js.map +1 -1
  682. package/lib/core/List/OrderedList.stories.d.ts +4 -4
  683. package/lib/core/List/OrderedList.stories.d.ts.map +1 -1
  684. package/lib/core/List/OrderedList.stories.js.map +1 -1
  685. package/lib/core/List/UnorderedList.stories.d.ts +4 -4
  686. package/lib/core/List/UnorderedList.stories.d.ts.map +1 -1
  687. package/lib/core/List/UnorderedList.stories.js.map +1 -1
  688. package/lib/core/ListToolbar/ListToolbar.stories.d.ts +5 -5
  689. package/lib/core/ListToolbar/ListToolbar.stories.d.ts.map +1 -1
  690. package/lib/core/ListToolbar/ListToolbar.stories.js.map +1 -1
  691. package/lib/core/LiveLog/LiveLog.stories.d.ts +4 -4
  692. package/lib/core/LiveLog/LiveLog.stories.d.ts.map +1 -1
  693. package/lib/core/LiveLog/LiveLog.stories.js.map +1 -1
  694. package/lib/core/Location/Location.stories.d.ts +7 -7
  695. package/lib/core/Location/Location.stories.d.ts.map +1 -1
  696. package/lib/core/Location/Location.stories.js +6 -2
  697. package/lib/core/Location/Location.stories.js.map +1 -1
  698. package/lib/core/Menu/Menu.stories.d.ts +6 -6
  699. package/lib/core/Menu/Menu.stories.d.ts.map +1 -1
  700. package/lib/core/Menu/Menu.stories.js.map +1 -1
  701. package/lib/core/MenuButton/MenuButton.stories.d.ts +7 -7
  702. package/lib/core/MenuButton/MenuButton.stories.d.ts.map +1 -1
  703. package/lib/core/MenuButton/MenuButton.stories.js.map +1 -1
  704. package/lib/core/MetaList/MetaList.stories.d.ts +4 -4
  705. package/lib/core/MetaList/MetaList.stories.d.ts.map +1 -1
  706. package/lib/core/MetaList/MetaList.stories.js.map +1 -1
  707. package/lib/core/Modal/Modal.stories.d.ts +11 -11
  708. package/lib/core/Modal/Modal.stories.d.ts.map +1 -1
  709. package/lib/core/Modal/Modal.stories.js.map +1 -1
  710. package/lib/core/MultiStepForm/MultiStepForm.stories.d.ts +5 -5
  711. package/lib/core/MultiStepForm/MultiStepForm.stories.d.ts.map +1 -1
  712. package/lib/core/MultiStepForm/MultiStepForm.stories.js.map +1 -1
  713. package/lib/core/NoValue/NoValue.stories.d.ts +4 -4
  714. package/lib/core/NoValue/NoValue.stories.d.ts.map +1 -1
  715. package/lib/core/NoValue/NoValue.stories.js.map +1 -1
  716. package/lib/core/Number/Number.stories.d.ts +7 -7
  717. package/lib/core/Number/Number.stories.d.ts.map +1 -1
  718. package/lib/core/Number/Number.stories.js.map +1 -1
  719. package/lib/core/PageTemplates/PageTemplates.stories.d.ts +7 -7
  720. package/lib/core/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
  721. package/lib/core/PageTemplates/PageTemplates.stories.js.map +1 -1
  722. package/lib/core/Pagination/Pagination.stories.d.ts +4 -4
  723. package/lib/core/Pagination/Pagination.stories.d.ts.map +1 -1
  724. package/lib/core/Pagination/Pagination.stories.js.map +1 -1
  725. package/lib/core/Paragraph/ParagraphDisplay.stories.d.ts +4 -4
  726. package/lib/core/Paragraph/ParagraphDisplay.stories.d.ts.map +1 -1
  727. package/lib/core/Paragraph/ParagraphDisplay.stories.js.map +1 -1
  728. package/lib/core/Phone/Phone.stories.d.ts +5 -5
  729. package/lib/core/Phone/Phone.stories.d.ts.map +1 -1
  730. package/lib/core/Phone/Phone.stories.js.map +1 -1
  731. package/lib/core/Popover/Popover.stories.d.ts +7 -7
  732. package/lib/core/Popover/Popover.stories.d.ts.map +1 -1
  733. package/lib/core/Popover/Popover.stories.js.map +1 -1
  734. package/lib/core/Progress/Progress.stories.d.ts +5 -5
  735. package/lib/core/Progress/Progress.stories.d.ts.map +1 -1
  736. package/lib/core/Progress/Progress.stories.js.map +1 -1
  737. package/lib/core/QRCode/QRCode.stories.d.ts +3 -3
  738. package/lib/core/QRCode/QRCode.stories.d.ts.map +1 -1
  739. package/lib/core/QRCode/QRCode.stories.js.map +1 -1
  740. package/lib/core/RadioButton/RadioButton.stories.d.ts +6 -6
  741. package/lib/core/RadioButton/RadioButton.stories.d.ts.map +1 -1
  742. package/lib/core/RadioButton/RadioButton.stories.js.map +1 -1
  743. package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts +5 -5
  744. package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts.map +1 -1
  745. package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.js.map +1 -1
  746. package/lib/core/Rating/Rating.stories.d.ts +5 -5
  747. package/lib/core/Rating/Rating.stories.d.ts.map +1 -1
  748. package/lib/core/Rating/Rating.stories.js.map +1 -1
  749. package/lib/core/SearchInput/SearchInput.stories.d.ts +5 -5
  750. package/lib/core/SearchInput/SearchInput.stories.d.ts.map +1 -1
  751. package/lib/core/SearchInput/SearchInput.stories.js.map +1 -1
  752. package/lib/core/Select/Select.stories.d.ts +5 -5
  753. package/lib/core/Select/Select.stories.d.ts.map +1 -1
  754. package/lib/core/Select/Select.stories.js.map +1 -1
  755. package/lib/core/Sentiment/Sentiment.stories.d.ts +5 -5
  756. package/lib/core/Sentiment/Sentiment.stories.d.ts.map +1 -1
  757. package/lib/core/Sentiment/Sentiment.stories.js.map +1 -1
  758. package/lib/core/SkipLinks/SkipLinks.stories.d.ts +4 -4
  759. package/lib/core/SkipLinks/SkipLinks.stories.d.ts.map +1 -1
  760. package/lib/core/SkipLinks/SkipLinks.stories.js.map +1 -1
  761. package/lib/core/Slider/Slider.stories.d.ts +4 -4
  762. package/lib/core/Slider/Slider.stories.d.ts.map +1 -1
  763. package/lib/core/Slider/Slider.stories.js.map +1 -1
  764. package/lib/core/SummaryItem/SummaryItem.stories.d.ts +4 -4
  765. package/lib/core/SummaryItem/SummaryItem.stories.d.ts.map +1 -1
  766. package/lib/core/SummaryItem/SummaryItem.stories.js.map +1 -1
  767. package/lib/core/SummaryList/SummaryList.stories.d.ts +5 -5
  768. package/lib/core/SummaryList/SummaryList.stories.d.ts.map +1 -1
  769. package/lib/core/SummaryList/SummaryList.stories.js.map +1 -1
  770. package/lib/core/Switch/Switch.stories.d.ts +6 -6
  771. package/lib/core/Switch/Switch.stories.d.ts.map +1 -1
  772. package/lib/core/Switch/Switch.stories.js.map +1 -1
  773. package/lib/core/Table/Table.stories.d.ts +6 -6
  774. package/lib/core/Table/Table.stories.d.ts.map +1 -1
  775. package/lib/core/Table/Table.stories.js.map +1 -1
  776. package/lib/core/Tabs/Tabs.stories.d.ts +4 -4
  777. package/lib/core/Tabs/Tabs.stories.d.ts.map +1 -1
  778. package/lib/core/Tabs/Tabs.stories.js.map +1 -1
  779. package/lib/core/Text/Text.stories.d.ts +5 -5
  780. package/lib/core/Text/Text.stories.d.ts.map +1 -1
  781. package/lib/core/Text/Text.stories.js.map +1 -1
  782. package/lib/core/TextArea/TextArea.stories.d.ts +5 -5
  783. package/lib/core/TextArea/TextArea.stories.d.ts.map +1 -1
  784. package/lib/core/TextArea/TextArea.stories.js.map +1 -1
  785. package/lib/core/Toaster/Toaster.stories.d.ts +3 -3
  786. package/lib/core/Toaster/Toaster.stories.d.ts.map +1 -1
  787. package/lib/core/Toaster/Toaster.stories.js.map +1 -1
  788. package/lib/core/Tooltip/Tooltip.stories.d.ts +5 -5
  789. package/lib/core/Tooltip/Tooltip.stories.d.ts.map +1 -1
  790. package/lib/core/Tooltip/Tooltip.stories.js.map +1 -1
  791. package/lib/core/Tree/Tree.stories.d.ts +5 -5
  792. package/lib/core/Tree/Tree.stories.d.ts.map +1 -1
  793. package/lib/core/Tree/Tree.stories.js.map +1 -1
  794. package/lib/core/URL/URL.stories.d.ts +4 -4
  795. package/lib/core/URL/URL.stories.d.ts.map +1 -1
  796. package/lib/core/URL/URL.stories.js.map +1 -1
  797. package/lib/cs/Article/Article.stories.d.ts +3 -3
  798. package/lib/cs/Article/Article.stories.d.ts.map +1 -1
  799. package/lib/cs/Article/Article.stories.js.map +1 -1
  800. package/lib/cs/ArticleList/ArticleList.mocks.js +1 -1
  801. package/lib/cs/ArticleList/ArticleList.mocks.js.map +1 -1
  802. package/lib/cs/ArticleList/ArticleList.stories.d.ts +3 -3
  803. package/lib/cs/ArticleList/ArticleList.stories.d.ts.map +1 -1
  804. package/lib/cs/ArticleList/ArticleList.stories.js.map +1 -1
  805. package/lib/cs/CSAppShell/CSAppShell.stories.d.ts +4 -4
  806. package/lib/cs/CSAppShell/CSAppShell.stories.d.ts.map +1 -1
  807. package/lib/cs/CSAppShell/CSAppShell.stories.js.map +1 -1
  808. package/lib/cs/CallControlPanel/CallControlPanel.stories.d.ts +5 -5
  809. package/lib/cs/CallControlPanel/CallControlPanel.stories.d.ts.map +1 -1
  810. package/lib/cs/CallControlPanel/CallControlPanel.stories.js.map +1 -1
  811. package/lib/cs/DialPad/DialPad.stories.d.ts +4 -4
  812. package/lib/cs/DialPad/DialPad.stories.d.ts.map +1 -1
  813. package/lib/cs/DialPad/DialPad.stories.js.map +1 -1
  814. package/lib/cs/InteractionNotification/InteractionNotification.stories.d.ts +3 -3
  815. package/lib/cs/InteractionNotification/InteractionNotification.stories.d.ts.map +1 -1
  816. package/lib/cs/InteractionNotification/InteractionNotification.stories.js.map +1 -1
  817. package/lib/cs/InteractionTimer/InteractionTimer.stories.d.ts +4 -4
  818. package/lib/cs/InteractionTimer/InteractionTimer.stories.d.ts.map +1 -1
  819. package/lib/cs/InteractionTimer/InteractionTimer.stories.js.map +1 -1
  820. package/lib/cs/Picker/Picker.stories.d.ts +6 -6
  821. package/lib/cs/Picker/Picker.stories.d.ts.map +1 -1
  822. package/lib/cs/Picker/Picker.stories.js.map +1 -1
  823. package/lib/cs/TaskManager/TaskManager.stories.d.ts +5 -5
  824. package/lib/cs/TaskManager/TaskManager.stories.d.ts.map +1 -1
  825. package/lib/cs/TaskManager/TaskManager.stories.js.map +1 -1
  826. package/lib/dnd/DragDropList/DragDropList.stories.d.ts +4 -4
  827. package/lib/dnd/DragDropList/DragDropList.stories.d.ts.map +1 -1
  828. package/lib/dnd/DragDropList/DragDropList.stories.js.map +1 -1
  829. package/lib/dnd/StandardDragDropList/Demo.d.ts +1 -0
  830. package/lib/dnd/StandardDragDropList/Demo.d.ts.map +1 -1
  831. package/lib/dnd/StandardDragDropList/StandardDragDropList.stories.d.ts +3 -3
  832. package/lib/dnd/StandardDragDropList/StandardDragDropList.stories.d.ts.map +1 -1
  833. package/lib/dnd/StandardDragDropList/StandardDragDropList.stories.js.map +1 -1
  834. package/lib/rte/DynamicContentEditor/DynamicContentEditor.stories.d.ts +3 -3
  835. package/lib/rte/DynamicContentEditor/DynamicContentEditor.stories.d.ts.map +1 -1
  836. package/lib/rte/DynamicContentEditor/DynamicContentEditor.stories.js.map +1 -1
  837. package/lib/rte/Editor/Editor.stories.d.ts +8 -8
  838. package/lib/rte/Editor/Editor.stories.d.ts.map +1 -1
  839. package/lib/rte/Editor/Editor.stories.js.map +1 -1
  840. package/lib/rte/RichTextEditor/RichTextEditor.stories.d.ts +4 -4
  841. package/lib/rte/RichTextEditor/RichTextEditor.stories.d.ts.map +1 -1
  842. package/lib/rte/RichTextEditor/RichTextEditor.stories.js.map +1 -1
  843. package/lib/rte/RichTextEditor/RichTextViewer.stories.d.ts +6 -6
  844. package/lib/rte/RichTextEditor/RichTextViewer.stories.d.ts.map +1 -1
  845. package/lib/rte/RichTextEditor/RichTextViewer.stories.js.map +1 -1
  846. package/lib/social/Chat/Chat.stories.d.ts +11 -11
  847. package/lib/social/Chat/Chat.stories.d.ts.map +1 -1
  848. package/lib/social/Chat/Chat.stories.js +8 -2
  849. package/lib/social/Chat/Chat.stories.js.map +1 -1
  850. package/lib/social/Email/Email.stories.d.ts +15 -15
  851. package/lib/social/Email/Email.stories.d.ts.map +1 -1
  852. package/lib/social/Email/Email.stories.js.map +1 -1
  853. package/lib/social/Feed/Feed.stories.d.ts +5 -5
  854. package/lib/social/Feed/Feed.stories.d.ts.map +1 -1
  855. package/lib/social/Feed/Feed.stories.js.map +1 -1
  856. package/lib/social/Feed/FeedNewPost.stories.d.ts +4 -4
  857. package/lib/social/Feed/FeedNewPost.stories.d.ts.map +1 -1
  858. package/lib/social/Feed/FeedNewPost.stories.js.map +1 -1
  859. package/lib/social/Feed/FeedPost.stories.d.ts +6 -6
  860. package/lib/social/Feed/FeedPost.stories.d.ts.map +1 -1
  861. package/lib/social/Feed/FeedPost.stories.js.map +1 -1
  862. package/lib/social/Feed/FeedReply.stories.d.ts +5 -5
  863. package/lib/social/Feed/FeedReply.stories.d.ts.map +1 -1
  864. package/lib/social/Feed/FeedReply.stories.js.map +1 -1
  865. package/lib/social/Feed/FeedReplyInput.stories.d.ts +4 -4
  866. package/lib/social/Feed/FeedReplyInput.stories.d.ts.map +1 -1
  867. package/lib/social/Feed/FeedReplyInput.stories.js.map +1 -1
  868. package/lib/tools/Clipboard/Clipboard.stories.d.ts +4 -4
  869. package/lib/tools/Clipboard/Clipboard.stories.d.ts.map +1 -1
  870. package/lib/tools/Clipboard/Clipboard.stories.js.map +1 -1
  871. package/lib/tools/DevTools/DevTools.stories.d.ts +4 -4
  872. package/lib/tools/DevTools/DevTools.stories.d.ts.map +1 -1
  873. package/lib/tools/DevTools/DevTools.stories.js.map +1 -1
  874. package/lib/tools/PreviewShell/PreviewShell.stories.d.ts +7 -7
  875. package/lib/tools/PreviewShell/PreviewShell.stories.d.ts.map +1 -1
  876. package/lib/tools/PreviewShell/PreviewShell.stories.js.map +1 -1
  877. package/lib/work/AppAnnouncement/AppAnnouncement.stories.d.ts +4 -4
  878. package/lib/work/AppAnnouncement/AppAnnouncement.stories.d.ts.map +1 -1
  879. package/lib/work/AppAnnouncement/AppAnnouncement.stories.js.map +1 -1
  880. package/lib/work/Assignments/Assignments.stories.d.ts +4 -4
  881. package/lib/work/Assignments/Assignments.stories.d.ts.map +1 -1
  882. package/lib/work/Assignments/Assignments.stories.js.map +1 -1
  883. package/lib/work/CaseView/CaseView.stories.d.ts +3 -3
  884. package/lib/work/CaseView/CaseView.stories.d.ts.map +1 -1
  885. package/lib/work/CaseView/CaseView.stories.js.map +1 -1
  886. package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts +3 -3
  887. package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts.map +1 -1
  888. package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.js.map +1 -1
  889. package/lib/work/Confirmation/Confirmation.stories.d.ts +4 -4
  890. package/lib/work/Confirmation/Confirmation.stories.d.ts.map +1 -1
  891. package/lib/work/Confirmation/Confirmation.stories.js.map +1 -1
  892. package/lib/work/Details/Details.stories.d.ts +3 -3
  893. package/lib/work/Details/Details.stories.d.ts.map +1 -1
  894. package/lib/work/Details/Details.stories.js.map +1 -1
  895. package/lib/work/Glimpse/Glimpse.stories.d.ts +3 -3
  896. package/lib/work/Glimpse/Glimpse.stories.d.ts.map +1 -1
  897. package/lib/work/Glimpse/Glimpse.stories.js.map +1 -1
  898. package/lib/work/IntelligentGuidance/IntelligentGuidance.stories.d.ts +4 -4
  899. package/lib/work/IntelligentGuidance/IntelligentGuidance.stories.d.ts.map +1 -1
  900. package/lib/work/IntelligentGuidance/IntelligentGuidance.stories.js.map +1 -1
  901. package/lib/work/Predictions/Predictions.stories.d.ts +3 -3
  902. package/lib/work/Predictions/Predictions.stories.d.ts.map +1 -1
  903. package/lib/work/Predictions/Predictions.stories.js.map +1 -1
  904. package/lib/work/SearchResults/SearchResults.stories.d.ts +3 -3
  905. package/lib/work/SearchResults/SearchResults.stories.d.ts.map +1 -1
  906. package/lib/work/SearchResults/SearchResults.stories.js.map +1 -1
  907. package/lib/work/Stages/Stages.stories.d.ts +4 -4
  908. package/lib/work/Stages/Stages.stories.d.ts.map +1 -1
  909. package/lib/work/Stages/Stages.stories.js.map +1 -1
  910. package/lib/work/Stakeholders/Stakeholders.stories.d.ts +3 -3
  911. package/lib/work/Stakeholders/Stakeholders.stories.d.ts.map +1 -1
  912. package/lib/work/Stakeholders/Stakeholders.stories.js.map +1 -1
  913. package/lib/work/Tags/Tags.stories.d.ts +3 -3
  914. package/lib/work/Tags/Tags.stories.d.ts.map +1 -1
  915. package/lib/work/Tags/Tags.stories.js.map +1 -1
  916. package/lib/work/Tasks/TaskList.stories.d.ts +3 -3
  917. package/lib/work/Tasks/TaskList.stories.d.ts.map +1 -1
  918. package/lib/work/Tasks/TaskList.stories.js.map +1 -1
  919. package/lib/work/Tasks/Tasks.stories.d.ts +4 -4
  920. package/lib/work/Tasks/Tasks.stories.d.ts.map +1 -1
  921. package/lib/work/Tasks/Tasks.stories.js.map +1 -1
  922. package/lib/work/Timeline/Timeline.stories.d.ts +6 -6
  923. package/lib/work/Timeline/Timeline.stories.d.ts.map +1 -1
  924. package/lib/work/Timeline/Timeline.stories.js.map +1 -1
  925. package/lib/wss/AppShell/AppShell.stories.d.ts +5 -5
  926. package/lib/wss/AppShell/AppShell.stories.d.ts.map +1 -1
  927. package/lib/wss/AppShell/AppShell.stories.js.map +1 -1
  928. package/lib/wss/CaseView/CaseView.stories.d.ts +3 -3
  929. package/lib/wss/CaseView/CaseView.stories.d.ts.map +1 -1
  930. package/lib/wss/CaseView/CaseView.stories.js.map +1 -1
  931. package/lib/wss/PageTemplates/PageTemplates.stories.d.ts +3 -3
  932. package/lib/wss/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
  933. package/lib/wss/PageTemplates/PageTemplates.stories.js.map +1 -1
  934. package/lib/wss/QuickCreate/QuickCreate.stories.d.ts +3 -3
  935. package/lib/wss/QuickCreate/QuickCreate.stories.d.ts.map +1 -1
  936. package/lib/wss/QuickCreate/QuickCreate.stories.js.map +1 -1
  937. package/package.json +17 -17
@@ -1 +1 @@
1
- {"version":3,"file":"Form.stories.js","sourceRoot":"","sources":["../../../src/core/Form/Form.stories.tsx"],"names":[],"mappings":";AACA,OAAO,EAA0B,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE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;oBACD,QAAQ,EAAE;wBACR,cAAc,EAAE,IAAI,CAAC,gBAAgB;qBACtC;iBACF;aACF;SACF,YAED,KAAC,WAAW,IAAC,IAAI,EAAE,CAAC,EAAE,WAAW,SAAG,GACtB,CACjB,CAAC;AACJ,CAAC,CAAC;AAEF,gBAAgB,CAAC,IAAI,GAAG;IACtB,eAAe,EAAE,SAAS;IAC1B,eAAe,EAAE,SAAS;IAC1B,WAAW,EAAE,SAAS;IACtB,WAAW,EAAE,WAAW;IACxB,YAAY,EAAE,GAAG;IACjB,gBAAgB,EAAE,SAAS;IAC3B,gBAAgB,EAAE,aAAa;CAChC,CAAC;AAEF,gBAAgB,CAAC,QAAQ,GAAG;IAC1B,eAAe,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE;IAC/C,eAAe,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE;IAC/C,WAAW,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE;IAC3C,WAAW,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;IAC1C,YAAY,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;IAC7C,gBAAgB,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE;IAChD,gBAAgB,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE;IAChD,OAAO,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;IACrC,WAAW,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;CAC1C,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\nimport { ChangeEvent, FormEvent, useState } from 'react';\n\nimport {\n Banner,\n Button,\n Configuration,\n Flex,\n Form,\n FormField,\n Input\n} from '@pega/cosmos-react-core';\n\nimport { FormContent, ReadOnlyFormContent } from './Form.mocks';\n\nexport default {\n title: 'Core/Form',\n component: Form,\n subcomponents: {\n FormField\n },\n excludeStories: ['ConfigurableForm'],\n args: {\n heading: 'Form demo',\n description: ''\n },\n argTypes: {\n heading: { control: { type: 'text' } },\n description: { control: { type: 'text' } }\n }\n} as Meta;\ninterface FormStoryProps {\n heading?: string;\n description?: string;\n}\n\nexport const ReadOnlyOneColumnForm: Story<FormStoryProps> = (args: FormStoryProps) => {\n return (\n <ReadOnlyFormContent\n cols={1}\n heading={args.heading}\n description={args.description}\n showActions\n />\n );\n};\n\nexport const OneColumnForm: Story<FormStoryProps> = (args: FormStoryProps) => {\n return <FormContent cols={1} heading={args.heading} description={args.description} showActions />;\n};\n\nexport const TwoColumnForm: Story<FormStoryProps> = (args: FormStoryProps) => {\n return <FormContent cols={2} heading={args.heading} description={args.description} showActions />;\n};\n\nexport const ThreeColumnForm: Story<FormStoryProps> = (args: FormStoryProps) => {\n return <FormContent cols={3} heading={args.heading} description={args.description} showActions />;\n};\n\nexport const SimpleFormDemo: Story<FormStoryProps & { withBanners?: boolean }> = (\n args: FormStoryProps & { withBanners?: boolean }\n) => {\n const [inputValue, setInputValue] = useState('');\n const [success, setSuccess] = useState('');\n\n const actions = (\n <>\n <Button name='Cancel' variant='secondary' onClick={() => setInputValue('')}>\n Cancel\n </Button>\n <Button name='Submit' type='submit' variant='primary'>\n Submit\n </Button>\n </>\n );\n\n const successBanner = (\n <Banner variant='success' messages={['Form submitted', `Input value: ${success}`]} />\n );\n\n const errorBanner = (\n <Banner variant='urgent' messages={['All required fields in the form must be completed.']} />\n );\n\n const banner = success ? successBanner : errorBanner;\n\n return (\n <Form\n banners={args.withBanners ? banner : undefined}\n actions={actions}\n heading={args.heading}\n description={args.description}\n onSubmit={(e: FormEvent) => {\n e.preventDefault();\n setSuccess(inputValue);\n setInputValue('');\n }}\n >\n <Flex container={{ direction: 'column', itemGap: 2 }}>\n <Input\n label='Name'\n info='Enter your first name'\n required\n value={inputValue}\n onChange={(e: ChangeEvent<HTMLInputElement>) => {\n setSuccess('');\n setInputValue(e.target.value);\n }}\n />\n </Flex>\n </Form>\n );\n};\n\nSimpleFormDemo.args = {\n withBanners: false\n};\n\nSimpleFormDemo.argTypes = {\n withBanners: { control: { type: 'boolean' } }\n};\n\ninterface ConfigurableFormProps extends FormStoryProps {\n foregroundColor?: string;\n backgroundColor?: string;\n borderColor?: string;\n borderWidth?: string;\n borderRadius?: number;\n hoverBorderColor?: string;\n focusBorderColor?: string;\n}\n\nexport const ConfigurableForm: Story<ConfigurableFormProps> = (args: ConfigurableFormProps) => {\n return (\n <Configuration\n theme={{\n components: {\n 'form-control': {\n 'foreground-color': args.foregroundColor,\n 'background-color': args.backgroundColor,\n 'border-color': args.borderColor,\n 'border-width': args.borderWidth,\n 'border-radius': args.borderRadius,\n ':hover': {\n 'border-color': args.hoverBorderColor\n },\n ':focus': {\n 'border-color': args.focusBorderColor\n }\n }\n }\n }}\n >\n <FormContent cols={2} showActions />\n </Configuration>\n );\n};\n\nConfigurableForm.args = {\n foregroundColor: '#054a8a',\n backgroundColor: '#e2f1ff',\n borderColor: '#939393',\n borderWidth: '0.0625rem',\n borderRadius: 0.5,\n hoverBorderColor: '#3f3f3f',\n focusBorderColor: 'transparent'\n};\n\nConfigurableForm.argTypes = {\n foregroundColor: { control: { type: 'color' } },\n backgroundColor: { control: { type: 'color' } },\n borderColor: { control: { type: 'color' } },\n borderWidth: { control: { type: 'text' } },\n borderRadius: { control: { type: 'number' } },\n hoverBorderColor: { control: { type: 'color' } },\n focusBorderColor: { control: { type: 'color' } },\n heading: { table: { disable: true } },\n description: { table: { disable: true } }\n};\n"]}
1
+ {"version":3,"file":"Form.stories.js","sourceRoot":"","sources":["../../../src/core/Form/Form.stories.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAGjC,OAAO,EACL,MAAM,EACN,MAAM,EAC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AE,IAAI,CAAC,gBAAgB;qBACtC;iBACF;aACF;SACF,YAED,KAAC,WAAW,IAAC,IAAI,EAAE,CAAC,EAAE,WAAW,SAAG,GACtB,CACjB,CAAC;AACJ,CAAC,CAAC;AAEF,gBAAgB,CAAC,IAAI,GAAG;IACtB,eAAe,EAAE,SAAS;IAC1B,eAAe,EAAE,SAAS;IAC1B,WAAW,EAAE,SAAS;IACtB,WAAW,EAAE,WAAW;IACxB,YAAY,EAAE,GAAG;IACjB,gBAAgB,EAAE,SAAS;IAC3B,gBAAgB,EAAE,aAAa;CAChC,CAAC;AAEF,gBAAgB,CAAC,QAAQ,GAAG;IAC1B,eAAe,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE;IAC/C,eAAe,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE;IAC/C,WAAW,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE;IAC3C,WAAW,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;IAC1C,YAAY,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;IAC7C,gBAAgB,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE;IAChD,gBAAgB,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE;IAChD,OAAO,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;IACrC,WAAW,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;CAC1C,CAAC","sourcesContent":["import type { Meta, StoryFn } from '@storybook/react';\nimport { useState } from 'react';\nimport type { ChangeEvent, FormEvent } from 'react';\n\nimport {\n Banner,\n Button,\n Configuration,\n Flex,\n Form,\n FormField,\n Input\n} from '@pega/cosmos-react-core';\n\nimport { FormContent, ReadOnlyFormContent } from './Form.mocks';\n\nexport default {\n title: 'Core/Form',\n component: Form,\n subcomponents: {\n FormField\n },\n excludeStories: ['ConfigurableForm'],\n args: {\n heading: 'Form demo',\n description: ''\n },\n argTypes: {\n heading: { control: { type: 'text' } },\n description: { control: { type: 'text' } }\n }\n} as Meta;\ninterface FormStoryProps {\n heading?: string;\n description?: string;\n}\n\nexport const ReadOnlyOneColumnForm: StoryFn<FormStoryProps> = (args: FormStoryProps) => {\n return (\n <ReadOnlyFormContent\n cols={1}\n heading={args.heading}\n description={args.description}\n showActions\n />\n );\n};\n\nexport const OneColumnForm: StoryFn<FormStoryProps> = (args: FormStoryProps) => {\n return <FormContent cols={1} heading={args.heading} description={args.description} showActions />;\n};\n\nexport const TwoColumnForm: StoryFn<FormStoryProps> = (args: FormStoryProps) => {\n return <FormContent cols={2} heading={args.heading} description={args.description} showActions />;\n};\n\nexport const ThreeColumnForm: StoryFn<FormStoryProps> = (args: FormStoryProps) => {\n return <FormContent cols={3} heading={args.heading} description={args.description} showActions />;\n};\n\nexport const SimpleFormDemo: StoryFn<FormStoryProps & { withBanners?: boolean }> = (\n args: FormStoryProps & { withBanners?: boolean }\n) => {\n const [inputValue, setInputValue] = useState('');\n const [success, setSuccess] = useState('');\n\n const actions = (\n <>\n <Button name='Cancel' variant='secondary' onClick={() => setInputValue('')}>\n Cancel\n </Button>\n <Button name='Submit' type='submit' variant='primary'>\n Submit\n </Button>\n </>\n );\n\n const successBanner = (\n <Banner variant='success' messages={['Form submitted', `Input value: ${success}`]} />\n );\n\n const errorBanner = (\n <Banner variant='urgent' messages={['All required fields in the form must be completed.']} />\n );\n\n const banner = success ? successBanner : errorBanner;\n\n return (\n <Form\n banners={args.withBanners ? banner : undefined}\n actions={actions}\n heading={args.heading}\n description={args.description}\n onSubmit={(e: FormEvent) => {\n e.preventDefault();\n setSuccess(inputValue);\n setInputValue('');\n }}\n >\n <Flex container={{ direction: 'column', itemGap: 2 }}>\n <Input\n label='Name'\n info='Enter your first name'\n required\n value={inputValue}\n onChange={(e: ChangeEvent<HTMLInputElement>) => {\n setSuccess('');\n setInputValue(e.target.value);\n }}\n />\n </Flex>\n </Form>\n );\n};\n\nSimpleFormDemo.args = {\n withBanners: false\n};\n\nSimpleFormDemo.argTypes = {\n withBanners: { control: { type: 'boolean' } }\n};\n\ninterface ConfigurableFormProps extends FormStoryProps {\n foregroundColor?: string;\n backgroundColor?: string;\n borderColor?: string;\n borderWidth?: string;\n borderRadius?: number;\n hoverBorderColor?: string;\n focusBorderColor?: string;\n}\n\nexport const ConfigurableForm: StoryFn<ConfigurableFormProps> = (args: ConfigurableFormProps) => {\n return (\n <Configuration\n theme={{\n components: {\n 'form-control': {\n 'foreground-color': args.foregroundColor,\n 'background-color': args.backgroundColor,\n 'border-color': args.borderColor,\n 'border-width': args.borderWidth,\n 'border-radius': args.borderRadius,\n ':hover': {\n 'border-color': args.hoverBorderColor\n },\n ':focus': {\n 'border-color': args.focusBorderColor\n }\n }\n }\n }}\n >\n <FormContent cols={2} showActions />\n </Configuration>\n );\n};\n\nConfigurableForm.args = {\n foregroundColor: '#054a8a',\n backgroundColor: '#e2f1ff',\n borderColor: '#939393',\n borderWidth: '0.0625rem',\n borderRadius: 0.5,\n hoverBorderColor: '#3f3f3f',\n focusBorderColor: 'transparent'\n};\n\nConfigurableForm.argTypes = {\n foregroundColor: { control: { type: 'color' } },\n backgroundColor: { control: { type: 'color' } },\n borderColor: { control: { type: 'color' } },\n borderWidth: { control: { type: 'text' } },\n borderRadius: { control: { type: 'number' } },\n hoverBorderColor: { control: { type: 'color' } },\n focusBorderColor: { control: { type: 'color' } },\n heading: { table: { disable: true } },\n description: { table: { disable: true } }\n};\n"]}
@@ -1,6 +1,6 @@
1
- import { Meta, Story } from '@storybook/react';
2
- import { GridContainerProps } from '@pega/cosmos-react-core';
3
- declare const _default: Meta;
1
+ import type { StoryFn } from '@storybook/react';
2
+ import type { GridContainerProps } 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 GridStoryProps {
6
6
  colGap?: GridContainerProps['colGap'];
@@ -11,13 +11,13 @@ interface GridStoryProps {
11
11
  alignItems?: GridContainerProps['alignItems'];
12
12
  alignContent?: GridContainerProps['alignContent'];
13
13
  }
14
- export declare const ColumnsAndRows: Story;
15
- export declare const Areas: Story;
16
- export declare const Template: Story;
17
- export declare const GapsAndPadding: Story<GridStoryProps>;
18
- export declare const JustifyGridItems: Story<GridStoryProps>;
19
- export declare const JustifyGridContent: Story<GridStoryProps>;
20
- export declare const AlignGridItems: Story<GridStoryProps>;
21
- export declare const AlignGridContent: Story<GridStoryProps>;
22
- export declare const ResponsiveGrid: Story;
14
+ export declare const ColumnsAndRows: StoryFn;
15
+ export declare const Areas: StoryFn;
16
+ export declare const Template: StoryFn;
17
+ export declare const GapsAndPadding: StoryFn<GridStoryProps>;
18
+ export declare const JustifyGridItems: StoryFn<GridStoryProps>;
19
+ export declare const JustifyGridContent: StoryFn<GridStoryProps>;
20
+ export declare const AlignGridItems: StoryFn<GridStoryProps>;
21
+ export declare const AlignGridContent: StoryFn<GridStoryProps>;
22
+ export declare const ResponsiveGrid: StoryFn;
23
23
  //# sourceMappingURL=GridContainer.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"GridContainer.stories.d.ts","sourceRoot":"","sources":["../../../src/core/Grid/GridContainer.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAE/C,OAAO,EAAQ,kBAAkB,EAAQ,MAAM,yBAAyB,CAAC;;AAIzE,wBAMU;AAEV,UAAU,cAAc;IACtB,MAAM,CAAC,EAAE,kBAAkB,CAAC,QAAQ,CAAC,CAAC;IACtC,MAAM,CAAC,EAAE,kBAAkB,CAAC,QAAQ,CAAC,CAAC;IACtC,GAAG,CAA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CAAC,EAAE,CAAC,CACpD,KAAC,cAAc,cACb,MAAC,IAAI,wBAAO,KAAK,IAAQ,IADN,WAAW,KAAK,EAAE,CAEtB,CAClB,CAAC,GACG,CACR,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\n\nimport { Grid, GridContainerProps, Text } from '@pega/cosmos-react-core';\n\nimport { StyledGridContainer, StyledGridItem } from './Grid.styles';\n\nexport default {\n title: 'Core/Grid/Container',\n component: Grid,\n parameters: {\n layout: 'fullscreen'\n }\n} as Meta;\n\ninterface GridStoryProps {\n colGap?: GridContainerProps['colGap'];\n rowGap?: GridContainerProps['rowGap'];\n pad?: GridContainerProps['pad'];\n justifyItems?: GridContainerProps['justifyItems'];\n justifyContent?: GridContainerProps['justifyContent'];\n alignItems?: GridContainerProps['alignItems'];\n alignContent?: GridContainerProps['alignContent'];\n}\n\nexport const ColumnsAndRows: Story = () => {\n return (\n <Grid\n container={{\n cols: '7rem [line1] 1fr [line2] 3fr [line3]',\n rows: 'repeat(3, 3rem) auto',\n pad: 2\n }}\n as={StyledGridContainer}\n height={20}\n >\n {[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12].map(index => (\n <StyledGridItem key={`colRows-${index}`}>\n <Text>Item {index}</Text>\n </StyledGridItem>\n ))}\n </Grid>\n );\n};\n\nexport const Areas: Story = () => {\n return (\n <Grid\n container={{\n cols: '5rem 1fr 3fr',\n rows: 'repeat(3, 3rem) auto',\n areas: '\"sidebar header header\" \"sidebar . main\" \"sidebar . main\" \"sidebar footer footer\"',\n pad: 2\n }}\n as={StyledGridContainer}\n height={20}\n >\n <Grid item={{ area: 'header' }} as={StyledGridItem}>\n <Text>Header</Text>\n </Grid>\n <Grid item={{ area: 'sidebar' }} as={StyledGridItem}>\n <Text>Side</Text>\n </Grid>\n <Grid item={{ area: 'main' }} as={StyledGridItem}>\n <Text>Main</Text>\n </Grid>\n <Grid item={{ area: 'footer' }} as={StyledGridItem}>\n <Text>Footer</Text>\n </Grid>\n </Grid>\n );\n};\n\nexport const Template: Story = () => {\n const rowsAndAreas =\n '\"sidebar header header\" 3rem \"sidebar . main\" 3rem \"sidebar . main\" 3rem \"sidebar footer footer\" auto';\n const columns = '5rem 1fr 3fr';\n\n return (\n <Grid\n container={{ template: `${rowsAndAreas} / ${columns}`, pad: 2 }}\n as={StyledGridContainer}\n height={20}\n >\n <Grid item={{ area: 'header' }} as={StyledGridItem}>\n <Text>Header</Text>\n </Grid>\n <Grid item={{ area: 'sidebar' }} as={StyledGridItem}>\n <Text>Side</Text>\n </Grid>\n <Grid item={{ area: 'main' }} as={StyledGridItem}>\n <Text>Main</Text>\n </Grid>\n <Grid item={{ area: 'footer' }} as={StyledGridItem}>\n <Text>Footer</Text>\n </Grid>\n </Grid>\n );\n};\n\nexport const GapsAndPadding: Story<GridStoryProps> = (args: GridStoryProps) => {\n return (\n <Grid\n container={{\n cols: '7rem 1fr 3fr',\n colGap: args.colGap,\n rows: 'repeat(3, 3rem) auto',\n rowGap: args.rowGap,\n pad: args.pad\n }}\n as={StyledGridContainer}\n height={20}\n >\n {[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12].map(index => (\n <StyledGridItem key={`colRowGap-${index}`}>\n <Text>Item {index}</Text>\n </StyledGridItem>\n ))}\n </Grid>\n );\n};\n\nGapsAndPadding.args = {\n pad: 1,\n colGap: 1,\n rowGap: 1\n};\n\nGapsAndPadding.argTypes = {\n pad: { control: { type: 'number' } },\n colGap: { control: { type: 'number' } },\n rowGap: { control: { type: 'number' } }\n};\n\nexport const JustifyGridItems: Story<GridStoryProps> = (args: GridStoryProps) => {\n return (\n <Grid\n container={{\n cols: '7rem 1fr 3fr',\n rows: 'repeat(3, 3rem) auto',\n justifyItems: args.justifyItems,\n pad: 2\n }}\n as={StyledGridContainer}\n height={20}\n >\n {[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12].map(index => (\n <StyledGridItem key={`justifyItems-${index}`}>\n <Text>Item {index}</Text>\n </StyledGridItem>\n ))}\n </Grid>\n );\n};\n\nJustifyGridItems.args = {\n justifyItems: 'stretch'\n};\n\nJustifyGridItems.argTypes = {\n justifyItems: { options: ['stretch', 'start', 'center', 'end'], control: { type: 'select' } }\n};\n\nexport const JustifyGridContent: Story<GridStoryProps> = (args: GridStoryProps) => {\n return (\n <Grid\n container={{\n cols: 'repeat(3, 7rem)',\n rows: 'repeat(4, 3rem)',\n justifyContent: args.justifyContent,\n pad: 2\n }}\n as={StyledGridContainer}\n >\n {[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12].map(index => (\n <StyledGridItem key={`justifyContent-${index}`}>\n <Text>Item {index}</Text>\n </StyledGridItem>\n ))}\n </Grid>\n );\n};\n\nJustifyGridContent.args = {\n justifyContent: 'start'\n};\n\nJustifyGridContent.argTypes = {\n justifyContent: {\n options: ['start', 'end', 'center', 'around', 'between', 'evenly'],\n control: { type: 'select' }\n }\n};\n\nexport const AlignGridItems: Story<GridStoryProps> = (args: GridStoryProps) => {\n return (\n <Grid\n container={{\n cols: '7rem 1fr 3fr',\n rows: 'repeat(3, 5rem) auto',\n alignItems: args.alignItems,\n pad: 2\n }}\n as={StyledGridContainer}\n height={20}\n >\n {[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12].map(index => (\n <StyledGridItem key={`alignItems-${index}`}>\n <Text>Item {index}</Text>\n </StyledGridItem>\n ))}\n </Grid>\n );\n};\n\nAlignGridItems.args = {\n alignItems: 'stretch'\n};\n\nAlignGridItems.argTypes = {\n alignItems: { options: ['stretch', 'start', 'center', 'end'], control: { type: 'select' } }\n};\n\nexport const AlignGridContent: Story<GridStoryProps> = (args: GridStoryProps) => {\n return (\n <Grid\n container={{\n cols: 'repeat(3, 7rem)',\n rows: 'repeat(4, 3rem)',\n alignContent: args.alignContent,\n pad: 2\n }}\n as={StyledGridContainer}\n height={30}\n fitContent\n >\n {[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12].map(index => (\n <StyledGridItem key={`alignContent-${index}`}>\n <Text>Item {index}</Text>\n </StyledGridItem>\n ))}\n </Grid>\n );\n};\n\nAlignGridContent.args = {\n alignContent: 'start'\n};\n\nAlignGridContent.argTypes = {\n alignContent: {\n options: ['start', 'end', 'center', 'around', 'between', 'evenly'],\n control: { type: 'select' }\n }\n};\n\nexport const ResponsiveGrid: Story = () => {\n return (\n <Grid\n container={{ pad: 1, cols: 'repeat(3, 7rem)', rows: 'repeat(4, 3rem)' }}\n xl={{ container: { cols: 'repeat(12, 1fr)', rows: 'repeat(1, 3rem)' } }}\n lg={{ container: { cols: 'repeat(6, 1fr)', rows: 'repeat(2, 3rem)' } }}\n md={{ container: { cols: 'repeat(4, 1fr)', rows: 'repeat(3, 3rem)' } }}\n sm={{ container: { cols: 'repeat(3, 1fr)', rows: 'repeat(4, 3rem)' } }}\n xs={{ container: { cols: 'repeat(2, 1fr)', rows: 'repeat(6, 3rem)' } }}\n as={StyledGridContainer}\n >\n {[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12].map(index => (\n <StyledGridItem key={`colRows-${index}`}>\n <Text>Item {index}</Text>\n </StyledGridItem>\n ))}\n </Grid>\n );\n};\n"]}
1
+ {"version":3,"file":"GridContainer.stories.js","sourceRoot":"","sources":["../../../src/core/Grid/GridContainer.stories.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAGrD,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAEpE,eAAe;IACb,KAAK,EAAE,qBAAqB;IAC5B,SAAS,EAAE,IAAI;IACf,UAAU,EAAE;QACV,MAAM,EAAE,YAAY;KACrB;CACM,CAAC;AAYV,MAAM,CAAC,MAAM,cAAc,GAAY,GAAG,EAAE;IAC1C,OAAO,CACL,KAAC,IAAI,IACH,SAAS,EAAE;YACT,IAAI,EAAE,sCAAsC;YAC5C,IAAI,EAAE,sBAAsB;YAC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,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,CACpD,KAAC,cAAc,cACb,MAAC,IAAI,wBAAO,KAAK,IAAQ,IADN,WAAW,KAAK,EAAE,CAEtB,CAClB,CAAC,GACG,CACR,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import type { Meta, StoryFn } from '@storybook/react';\n\nimport { Grid, Text } from '@pega/cosmos-react-core';\nimport type { GridContainerProps } from '@pega/cosmos-react-core';\n\nimport { StyledGridContainer, StyledGridItem } from './Grid.styles';\n\nexport default {\n title: 'Core/Grid/Container',\n component: Grid,\n parameters: {\n layout: 'fullscreen'\n }\n} as Meta;\n\ninterface GridStoryProps {\n colGap?: GridContainerProps['colGap'];\n rowGap?: GridContainerProps['rowGap'];\n pad?: GridContainerProps['pad'];\n justifyItems?: GridContainerProps['justifyItems'];\n justifyContent?: GridContainerProps['justifyContent'];\n alignItems?: GridContainerProps['alignItems'];\n alignContent?: GridContainerProps['alignContent'];\n}\n\nexport const ColumnsAndRows: StoryFn = () => {\n return (\n <Grid\n container={{\n cols: '7rem [line1] 1fr [line2] 3fr [line3]',\n rows: 'repeat(3, 3rem) auto',\n pad: 2\n }}\n as={StyledGridContainer}\n height={20}\n >\n {[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12].map(index => (\n <StyledGridItem key={`colRows-${index}`}>\n <Text>Item {index}</Text>\n </StyledGridItem>\n ))}\n </Grid>\n );\n};\n\nexport const Areas: StoryFn = () => {\n return (\n <Grid\n container={{\n cols: '5rem 1fr 3fr',\n rows: 'repeat(3, 3rem) auto',\n areas: '\"sidebar header header\" \"sidebar . main\" \"sidebar . main\" \"sidebar footer footer\"',\n pad: 2\n }}\n as={StyledGridContainer}\n height={20}\n >\n <Grid item={{ area: 'header' }} as={StyledGridItem}>\n <Text>Header</Text>\n </Grid>\n <Grid item={{ area: 'sidebar' }} as={StyledGridItem}>\n <Text>Side</Text>\n </Grid>\n <Grid item={{ area: 'main' }} as={StyledGridItem}>\n <Text>Main</Text>\n </Grid>\n <Grid item={{ area: 'footer' }} as={StyledGridItem}>\n <Text>Footer</Text>\n </Grid>\n </Grid>\n );\n};\n\nexport const Template: StoryFn = () => {\n const rowsAndAreas =\n '\"sidebar header header\" 3rem \"sidebar . main\" 3rem \"sidebar . main\" 3rem \"sidebar footer footer\" auto';\n const columns = '5rem 1fr 3fr';\n\n return (\n <Grid\n container={{ template: `${rowsAndAreas} / ${columns}`, pad: 2 }}\n as={StyledGridContainer}\n height={20}\n >\n <Grid item={{ area: 'header' }} as={StyledGridItem}>\n <Text>Header</Text>\n </Grid>\n <Grid item={{ area: 'sidebar' }} as={StyledGridItem}>\n <Text>Side</Text>\n </Grid>\n <Grid item={{ area: 'main' }} as={StyledGridItem}>\n <Text>Main</Text>\n </Grid>\n <Grid item={{ area: 'footer' }} as={StyledGridItem}>\n <Text>Footer</Text>\n </Grid>\n </Grid>\n );\n};\n\nexport const GapsAndPadding: StoryFn<GridStoryProps> = (args: GridStoryProps) => {\n return (\n <Grid\n container={{\n cols: '7rem 1fr 3fr',\n colGap: args.colGap,\n rows: 'repeat(3, 3rem) auto',\n rowGap: args.rowGap,\n pad: args.pad\n }}\n as={StyledGridContainer}\n height={20}\n >\n {[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12].map(index => (\n <StyledGridItem key={`colRowGap-${index}`}>\n <Text>Item {index}</Text>\n </StyledGridItem>\n ))}\n </Grid>\n );\n};\n\nGapsAndPadding.args = {\n pad: 1,\n colGap: 1,\n rowGap: 1\n};\n\nGapsAndPadding.argTypes = {\n pad: { control: { type: 'number' } },\n colGap: { control: { type: 'number' } },\n rowGap: { control: { type: 'number' } }\n};\n\nexport const JustifyGridItems: StoryFn<GridStoryProps> = (args: GridStoryProps) => {\n return (\n <Grid\n container={{\n cols: '7rem 1fr 3fr',\n rows: 'repeat(3, 3rem) auto',\n justifyItems: args.justifyItems,\n pad: 2\n }}\n as={StyledGridContainer}\n height={20}\n >\n {[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12].map(index => (\n <StyledGridItem key={`justifyItems-${index}`}>\n <Text>Item {index}</Text>\n </StyledGridItem>\n ))}\n </Grid>\n );\n};\n\nJustifyGridItems.args = {\n justifyItems: 'stretch'\n};\n\nJustifyGridItems.argTypes = {\n justifyItems: { options: ['stretch', 'start', 'center', 'end'], control: { type: 'select' } }\n};\n\nexport const JustifyGridContent: StoryFn<GridStoryProps> = (args: GridStoryProps) => {\n return (\n <Grid\n container={{\n cols: 'repeat(3, 7rem)',\n rows: 'repeat(4, 3rem)',\n justifyContent: args.justifyContent,\n pad: 2\n }}\n as={StyledGridContainer}\n >\n {[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12].map(index => (\n <StyledGridItem key={`justifyContent-${index}`}>\n <Text>Item {index}</Text>\n </StyledGridItem>\n ))}\n </Grid>\n );\n};\n\nJustifyGridContent.args = {\n justifyContent: 'start'\n};\n\nJustifyGridContent.argTypes = {\n justifyContent: {\n options: ['start', 'end', 'center', 'around', 'between', 'evenly'],\n control: { type: 'select' }\n }\n};\n\nexport const AlignGridItems: StoryFn<GridStoryProps> = (args: GridStoryProps) => {\n return (\n <Grid\n container={{\n cols: '7rem 1fr 3fr',\n rows: 'repeat(3, 5rem) auto',\n alignItems: args.alignItems,\n pad: 2\n }}\n as={StyledGridContainer}\n height={20}\n >\n {[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12].map(index => (\n <StyledGridItem key={`alignItems-${index}`}>\n <Text>Item {index}</Text>\n </StyledGridItem>\n ))}\n </Grid>\n );\n};\n\nAlignGridItems.args = {\n alignItems: 'stretch'\n};\n\nAlignGridItems.argTypes = {\n alignItems: { options: ['stretch', 'start', 'center', 'end'], control: { type: 'select' } }\n};\n\nexport const AlignGridContent: StoryFn<GridStoryProps> = (args: GridStoryProps) => {\n return (\n <Grid\n container={{\n cols: 'repeat(3, 7rem)',\n rows: 'repeat(4, 3rem)',\n alignContent: args.alignContent,\n pad: 2\n }}\n as={StyledGridContainer}\n height={30}\n fitContent\n >\n {[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12].map(index => (\n <StyledGridItem key={`alignContent-${index}`}>\n <Text>Item {index}</Text>\n </StyledGridItem>\n ))}\n </Grid>\n );\n};\n\nAlignGridContent.args = {\n alignContent: 'start'\n};\n\nAlignGridContent.argTypes = {\n alignContent: {\n options: ['start', 'end', 'center', 'around', 'between', 'evenly'],\n control: { type: 'select' }\n }\n};\n\nexport const ResponsiveGrid: StoryFn = () => {\n return (\n <Grid\n container={{ pad: 1, cols: 'repeat(3, 7rem)', rows: 'repeat(4, 3rem)' }}\n xl={{ container: { cols: 'repeat(12, 1fr)', rows: 'repeat(1, 3rem)' } }}\n lg={{ container: { cols: 'repeat(6, 1fr)', rows: 'repeat(2, 3rem)' } }}\n md={{ container: { cols: 'repeat(4, 1fr)', rows: 'repeat(3, 3rem)' } }}\n sm={{ container: { cols: 'repeat(3, 1fr)', rows: 'repeat(4, 3rem)' } }}\n xs={{ container: { cols: 'repeat(2, 1fr)', rows: 'repeat(6, 3rem)' } }}\n as={StyledGridContainer}\n >\n {[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12].map(index => (\n <StyledGridItem key={`colRows-${index}`}>\n <Text>Item {index}</Text>\n </StyledGridItem>\n ))}\n </Grid>\n );\n};\n"]}
@@ -1,12 +1,12 @@
1
- import { Meta, Story } from '@storybook/react';
2
- import { GridItemProps } from '@pega/cosmos-react-core';
3
- declare const _default: Meta;
1
+ import type { StoryFn } from '@storybook/react';
2
+ import type { GridItemProps } 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 GridStoryProps {
6
6
  justifySelf?: GridItemProps['justifySelf'];
7
7
  alignSelf?: GridItemProps['alignSelf'];
8
8
  }
9
- export declare const StartAndEnd: Story;
10
- export declare const JustifyGridSelf: Story<GridStoryProps>;
11
- export declare const AlignGridSelf: Story<GridStoryProps>;
9
+ export declare const StartAndEnd: StoryFn;
10
+ export declare const JustifyGridSelf: StoryFn<GridStoryProps>;
11
+ export declare const AlignGridSelf: StoryFn<GridStoryProps>;
12
12
  //# sourceMappingURL=GridItem.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"GridItem.stories.d.ts","sourceRoot":"","sources":["../../../src/core/Grid/GridItem.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAE/C,OAAO,EAAQ,aAAa,EAAQ,MAAM,yBAAyB,CAAC;;AAIpE,wBAMU;AAEV,UAAU,cAAc;IACtB,WAAW,CAAC,EAAE,aAAa,CAAC,aAAa,CAAC,CAAC;IAC3C,SAAS,CAAC,EAAE,aAAa,CAAC,WAAW,CAAC,CAAC;CACxC;AAED,eAAO,MAAM,WAAW,EAAE,KAkCzB,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,cAAc,CAcjD,CAAC;AAUF,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,cAAc,CAmB/C,CAAC"}
1
+ {"version":3,"file":"GridItem.stories.d.ts","sourceRoot":"","sources":["../../../src/core/Grid/GridItem.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAGtD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;;AAI7D,wBAMU;AAEV,UAAU,cAAc;IACtB,WAAW,CAAC,EAAE,aAAa,CAAC,aAAa,CAAC,CAAC;IAC3C,SAAS,CAAC,EAAE,aAAa,CAAC,WAAW,CAAC,CAAC;CACxC;AAED,eAAO,MAAM,WAAW,EAAE,OAkCzB,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,OAAO,CAAC,cAAc,CAcnD,CAAC;AAUF,eAAO,MAAM,aAAa,EAAE,OAAO,CAAC,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QAAQ,kBACrE,KAAC,IAAI,yBAAc,GACd,EACP,KAAC,cAAc,cACb,KAAC,IAAI,yBAAc,GACJ,IACZ,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,aAAa,CAAC,IAAI,GAAG;IACnB,SAAS,EAAE,SAAS;CACrB,CAAC;AAEF,aAAa,CAAC,QAAQ,GAAG;IACvB,SAAS,EAAE,EAAE,OAAO,EAAE,CAAC,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,KAAK,CAAC,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;CAC3F,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\n\nimport { Grid, GridItemProps, Text } from '@pega/cosmos-react-core';\n\nimport { StyledGridContainer, StyledGridItem } from './Grid.styles';\n\nexport default {\n title: 'Core/Grid/Item',\n component: Grid,\n parameters: {\n layout: 'fullscreen'\n }\n} as Meta;\n\ninterface GridStoryProps {\n justifySelf?: GridItemProps['justifySelf'];\n alignSelf?: GridItemProps['alignSelf'];\n}\n\nexport const StartAndEnd: Story = () => {\n return (\n <Grid\n container={{\n cols: '[line0] 7rem [line1] 1fr [col2-end col3-start] 3fr [line3]',\n rows: 'repeat(3, 3rem) auto',\n pad: 2\n }}\n as={StyledGridContainer}\n height={20}\n >\n <Grid item={{ colStart: 'line0', colEnd: 'col3-start' }} as={StyledGridItem}>\n <Text>Item 1</Text>\n </Grid>\n <StyledGridItem>\n <Text>Item 2</Text>\n </StyledGridItem>\n <StyledGridItem>\n <Text>Item 3</Text>\n </StyledGridItem>\n <Grid item={{ colStart: 'line1', colEnd: 'line3' }} as={StyledGridItem}>\n <Text>Item 4</Text>\n </Grid>\n <Grid item={{ rowStart: '3', rowEnd: '5' }} as={StyledGridItem}>\n <Text>Item 5</Text>\n </Grid>\n <Grid\n item={{ colStart: '2', colEnd: 'span line3', rowStart: '3', rowEnd: 'span 2' }}\n as={StyledGridItem}\n >\n <Text>Item 6</Text>\n </Grid>\n </Grid>\n );\n};\n\nexport const JustifyGridSelf: Story<GridStoryProps> = (args: GridStoryProps) => {\n return (\n <Grid container={{ cols: '7rem 1fr 3fr', pad: 2 }} as={StyledGridContainer}>\n <StyledGridItem>\n <Text>Item 1</Text>\n </StyledGridItem>\n <Grid item={{ justifySelf: args.justifySelf }} as={StyledGridItem} editable>\n <Text>Item 2</Text>\n </Grid>\n <StyledGridItem>\n <Text>Item 3</Text>\n </StyledGridItem>\n </Grid>\n );\n};\n\nJustifyGridSelf.args = {\n justifySelf: 'stretch'\n};\n\nJustifyGridSelf.argTypes = {\n justifySelf: { options: ['stretch', 'start', 'center', 'end'], control: { type: 'select' } }\n};\n\nexport const AlignGridSelf: Story<GridStoryProps> = (args: GridStoryProps) => {\n return (\n <Grid\n container={{ cols: '7rem 1fr 3fr', pad: 2 }}\n as={StyledGridContainer}\n height={10}\n fitContent\n >\n <StyledGridItem>\n <Text>Item 1</Text>\n </StyledGridItem>\n <Grid item={{ alignSelf: args.alignSelf }} as={StyledGridItem} editable>\n <Text>Item 2</Text>\n </Grid>\n <StyledGridItem>\n <Text>Item 3</Text>\n </StyledGridItem>\n </Grid>\n );\n};\n\nAlignGridSelf.args = {\n alignSelf: 'stretch'\n};\n\nAlignGridSelf.argTypes = {\n alignSelf: { options: ['stretch', 'start', 'center', 'end'], control: { type: 'select' } }\n};\n"]}
1
+ {"version":3,"file":"GridItem.stories.js","sourceRoot":"","sources":["../../../src/core/Grid/GridItem.stories.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAGrD,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAEpE,eAAe;IACb,KAAK,EAAE,gBAAgB;IACvB,SAAS,EAAE,IAAI;IACf,UAAU,EAAE;QACV,MAAM,EAAE,YAAY;KACrB;CACM,CAAC;AAOV,MAAM,CAAC,MAAM,WAAW,GAAY,GAAG,EAAE;IACvC,OAAO,CACL,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pega/cosmos-react-core';\nimport type { GridItemProps } from '@pega/cosmos-react-core';\n\nimport { StyledGridContainer, StyledGridItem } from './Grid.styles';\n\nexport default {\n title: 'Core/Grid/Item',\n component: Grid,\n parameters: {\n layout: 'fullscreen'\n }\n} as Meta;\n\ninterface GridStoryProps {\n justifySelf?: GridItemProps['justifySelf'];\n alignSelf?: GridItemProps['alignSelf'];\n}\n\nexport const StartAndEnd: StoryFn = () => {\n return (\n <Grid\n container={{\n cols: '[line0] 7rem [line1] 1fr [col2-end col3-start] 3fr [line3]',\n rows: 'repeat(3, 3rem) auto',\n pad: 2\n }}\n as={StyledGridContainer}\n height={20}\n >\n <Grid item={{ colStart: 'line0', colEnd: 'col3-start' }} as={StyledGridItem}>\n <Text>Item 1</Text>\n </Grid>\n <StyledGridItem>\n <Text>Item 2</Text>\n </StyledGridItem>\n <StyledGridItem>\n <Text>Item 3</Text>\n </StyledGridItem>\n <Grid item={{ colStart: 'line1', colEnd: 'line3' }} as={StyledGridItem}>\n <Text>Item 4</Text>\n </Grid>\n <Grid item={{ rowStart: '3', rowEnd: '5' }} as={StyledGridItem}>\n <Text>Item 5</Text>\n </Grid>\n <Grid\n item={{ colStart: '2', colEnd: 'span line3', rowStart: '3', rowEnd: 'span 2' }}\n as={StyledGridItem}\n >\n <Text>Item 6</Text>\n </Grid>\n </Grid>\n );\n};\n\nexport const JustifyGridSelf: StoryFn<GridStoryProps> = (args: GridStoryProps) => {\n return (\n <Grid container={{ cols: '7rem 1fr 3fr', pad: 2 }} as={StyledGridContainer}>\n <StyledGridItem>\n <Text>Item 1</Text>\n </StyledGridItem>\n <Grid item={{ justifySelf: args.justifySelf }} as={StyledGridItem} editable>\n <Text>Item 2</Text>\n </Grid>\n <StyledGridItem>\n <Text>Item 3</Text>\n </StyledGridItem>\n </Grid>\n );\n};\n\nJustifyGridSelf.args = {\n justifySelf: 'stretch'\n};\n\nJustifyGridSelf.argTypes = {\n justifySelf: { options: ['stretch', 'start', 'center', 'end'], control: { type: 'select' } }\n};\n\nexport const AlignGridSelf: StoryFn<GridStoryProps> = (args: GridStoryProps) => {\n return (\n <Grid\n container={{ cols: '7rem 1fr 3fr', pad: 2 }}\n as={StyledGridContainer}\n height={10}\n fitContent\n >\n <StyledGridItem>\n <Text>Item 1</Text>\n </StyledGridItem>\n <Grid item={{ alignSelf: args.alignSelf }} as={StyledGridItem} editable>\n <Text>Item 2</Text>\n </Grid>\n <StyledGridItem>\n <Text>Item 3</Text>\n </StyledGridItem>\n </Grid>\n );\n};\n\nAlignGridSelf.args = {\n alignSelf: 'stretch'\n};\n\nAlignGridSelf.argTypes = {\n alignSelf: { options: ['stretch', 'start', 'center', 'end'], control: { type: 'select' } }\n};\n"]}
@@ -1,6 +1,6 @@
1
- import { Meta, Story } from '@storybook/react';
2
- import { HTMLProps } from '@pega/cosmos-react-core';
3
- declare const _default: Meta;
1
+ import type { StoryFn } from '@storybook/react';
2
+ import type { HTMLProps } 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 HTMLDemo: Story<HTMLProps>;
5
+ export declare const HTMLDemo: StoryFn<HTMLProps>;
6
6
  //# sourceMappingURL=HTML.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"HTML.stories.d.ts","sourceRoot":"","sources":["../../../src/core/HTML/HTML.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAE/C,OAAO,EAAQ,SAAS,EAAE,MAAM,yBAAyB,CAAC;;AAE1D,wBAGU;AAEV,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAwD,CAAC"}
1
+ {"version":3,"file":"HTML.stories.d.ts","sourceRoot":"","sources":["../../../src/core/HTML/HTML.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAGtD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;;AAEzD,wBAGU;AAEV,eAAO,MAAM,QAAQ,EAAE,OAAO,CAAC,SAAS,CAAwD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"HTML.stories.js","sourceRoot":"","sources":["../../../src/core/HTML/HTML.stories.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,IAAI,EAAa,MAAM,yBAAyB,CAAC;AAE1D,eAAe;IACb,KAAK,EAAE,WAAW;IAClB,SAAS,EAAE,IAAI;CACR,CAAC;AAEV,MAAM,CAAC,MAAM,QAAQ,GAAqB,CAAC,IAAe,EAAE,EAAE,CAAC,KAAC,IAAI,IAAC,OAAO,EAAE,IAAI,CAAC,OAAO,GAAI,CAAC;AAE/F,QAAQ,CAAC,IAAI,GAAG;IACd,OAAO,EACL,kHAAkH;CACrH,CAAC;AAEF,QAAQ,CAAC,QAAQ,GAAG;IAClB,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;CACvC,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\n\nimport { HTML, HTMLProps } from '@pega/cosmos-react-core';\n\nexport default {\n title: 'Core/HTML',\n component: HTML\n} as Meta;\n\nexport const HTMLDemo: Story<HTMLProps> = (args: HTMLProps) => <HTML content={args.content} />;\n\nHTMLDemo.args = {\n content:\n '<div><p>Hello, World!<p><ul><li>List item 1<ul><li>Sub list item 1</li></ul></li><li>List item 2</li></ul></div>'\n};\n\nHTMLDemo.argTypes = {\n content: { control: { type: 'text' } }\n};\n"]}
1
+ {"version":3,"file":"HTML.stories.js","sourceRoot":"","sources":["../../../src/core/HTML/HTML.stories.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAG/C,eAAe;IACb,KAAK,EAAE,WAAW;IAClB,SAAS,EAAE,IAAI;CACR,CAAC;AAEV,MAAM,CAAC,MAAM,QAAQ,GAAuB,CAAC,IAAe,EAAE,EAAE,CAAC,KAAC,IAAI,IAAC,OAAO,EAAE,IAAI,CAAC,OAAO,GAAI,CAAC;AAEjG,QAAQ,CAAC,IAAI,GAAG;IACd,OAAO,EACL,kHAAkH;CACrH,CAAC;AAEF,QAAQ,CAAC,QAAQ,GAAG;IAClB,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;CACvC,CAAC","sourcesContent":["import type { Meta, StoryFn } from '@storybook/react';\n\nimport { HTML } from '@pega/cosmos-react-core';\nimport type { HTMLProps } from '@pega/cosmos-react-core';\n\nexport default {\n title: 'Core/HTML',\n component: HTML\n} as Meta;\n\nexport const HTMLDemo: StoryFn<HTMLProps> = (args: HTMLProps) => <HTML content={args.content} />;\n\nHTMLDemo.args = {\n content:\n '<div><p>Hello, World!<p><ul><li>List item 1<ul><li>Sub list item 1</li></ul></li><li>List item 2</li></ul></div>'\n};\n\nHTMLDemo.argTypes = {\n content: { control: { type: 'text' } }\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 StaticIcon: Story;
5
- export declare const CustomIcon: Story;
6
- export declare const DynamicIcon: Story;
4
+ export declare const StaticIcon: StoryFn;
5
+ export declare const CustomIcon: StoryFn;
6
+ export declare const DynamicIcon: StoryFn;
7
7
  interface IconListProps {
8
8
  set: 'budicon' | 'streamline';
9
9
  }
10
- export declare const IconList: Story<IconListProps>;
10
+ export declare const IconList: StoryFn<IconListProps>;
11
11
  //# sourceMappingURL=Icon.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Icon.stories.d.ts","sourceRoot":"","sources":["../../../src/core/Icon/Icon.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;;AAsB/C,wBAGU;AAIV,eAAO,MAAM,UAAU,EAAE,KASxB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAaxB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAEzB,CAAC;AAEF,UAAU,aAAa;IACrB,GAAG,EAAE,SAAS,GAAG,YAAY,CAAC;CAC/B;AAED,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,aAAa,CAwEzC,CAAC"}
1
+ {"version":3,"file":"Icon.stories.d.ts","sourceRoot":"","sources":["../../../src/core/Icon/Icon.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,OAAO,EAAE,MAAM,kBAAkB,CAAC;;AAsBtD,wBAGU;AAIV,eAAO,MAAM,UAAU,EAAE,OASxB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,OAaxB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,OAEzB,CAAC;AAEF,UAAU,aAAa;IACrB,GAAG,EAAE,SAAS,GAAG,YAAY,CAAC;CAC/B;AAED,eAAO,MAAM,QAAQ,EAAE,OAAO,CAAC,aAAa,CAwE3C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Icon.stories.js","sourceRoot":"","sources":["../../../src/core/Icon/Icon.stories.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAE/D,OAAO,EACL,UAAU,EACV,IAAI,EACJ,IAAI,EACJ,KAAK,EACL,eAAe,EACf,YAAY,EACZ,QAAQ,EACR,WAAW,EACX,IAAI,EACJ,mBAAmB,EACnB,QAAQ,EACR,aAAa,EACd,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,WAAW,MAAM,gEAAgE,CAAC;AAE9F,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,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AAe,GAAG,CAAC,IAAI,CACtB,KAAC,uBAAuB,cACtB,KAAC,QAAQ,IAAC,SAAS,EAAC,OAAO,GAAG,GACN,CAC3B,IACI,IACF,GACO,CACjB,CAAC;AACJ,CAAC,CAAC;AAEF,QAAQ,CAAC,IAAI,GAAG;IACd,GAAG,EAAE,SAAS;CACf,CAAC;AAEF,QAAQ,CAAC,QAAQ,GAAG;IAClB,GAAG,EAAE;QACH,OAAO,EAAE,CAAC,SAAS,EAAE,YAAY,CAAC;QAClC,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;KAC3B;CACF,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\nimport { useMemo, useState, useCallback, useRef } from 'react';\n\nimport {\n EmptyState,\n Flex,\n Icon,\n icons,\n streamlineIcons,\n registerIcon,\n Progress,\n SearchInput,\n Text,\n useItemIntersection,\n useTheme,\n Configuration\n} from '@pega/cosmos-react-core';\nimport * as pegasusIcon from '@pega/cosmos-react-core/lib/components/Icon/icons/pegasus.icon';\n\nimport { createCustomIcon } from './Icon.mocks';\nimport { StyledIconList, StyledIconListItem, StyledProgressContainer } from './Icon.styles';\n\nexport default {\n title: 'Core/Icon',\n component: Icon\n} as Meta;\n\nregisterIcon(pegasusIcon);\n\nexport const StaticIcon: Story = () => {\n return (\n <Icon\n style={{ height: '5rem', width: '5rem' }}\n name='pegasus'\n role='img'\n aria-label='Informative label'\n />\n );\n};\n\nexport const CustomIcon: Story = () => {\n const theme = useTheme();\n\n createCustomIcon(theme);\n\n return (\n <Icon\n style={{ height: '5rem', width: '5rem' }}\n name='custom-pega'\n role='img'\n aria-label='Custom icon'\n />\n );\n};\n\nexport const DynamicIcon: Story = () => {\n return <Icon style={{ height: '5rem', width: '5rem' }} role='img' name='pega' />;\n};\n\ninterface IconListProps {\n set: 'budicon' | 'streamline';\n}\n\nexport const IconList: Story<IconListProps> = (args: IconListProps) => {\n const pageSize = 50;\n\n const [search, setSearch] = useState('');\n const totalMatches = useRef(0);\n const [currentPageIndex, setCurrentPageIndex] = useState(0);\n const ulRef = useRef<HTMLUListElement>(null);\n\n const iconList: readonly string[] = args.set === 'budicon' ? icons : streamlineIcons;\n\n const listContent = useMemo(() => {\n const matches = search ? iconList.filter(icon => icon.includes(search)) : iconList;\n const totalItemsToRender = (1 + currentPageIndex) * pageSize;\n totalMatches.current = matches.length;\n\n if (matches.length === 0) {\n return <EmptyState forwardedAs='li' />;\n }\n\n return matches.slice(0, totalItemsToRender).map(icon => (\n <Flex\n key={icon}\n container={{\n direction: 'column',\n justify: 'center',\n alignItems: 'center',\n alignContent: 'center'\n }}\n as={StyledIconListItem}\n >\n <Icon style={{ height: '3rem', width: '3rem' }} name={icon} />\n <p style={{ textAlign: 'center' }}>{icon}</p>\n </Flex>\n ));\n }, [iconList, search, currentPageIndex]);\n\n const itemsShown = Math.min(totalMatches.current, (1 + currentPageIndex) * pageSize);\n const itemsToLoadMore = totalMatches.current - itemsShown;\n\n // When reaches to the bottom of the results, loads next pageSize items\n useItemIntersection(\n ulRef,\n itemsShown,\n () => {\n setCurrentPageIndex(prev => 1 + prev);\n },\n ':scope > li'\n );\n\n // on search, reset to first page and scroll to top\n const onSearchChange = useCallback((value: string) => {\n setSearch(value);\n setCurrentPageIndex(0);\n ulRef?.current?.scrollIntoView();\n }, []);\n\n return (\n <Configuration theme={{ base: { 'icon-set': args.set } }}>\n <Flex container={{ direction: 'column', gap: 1 }} style={{ height: 'calc(100vh - 2rem)' }}>\n <SearchInput value={search} onSearchChange={onSearchChange} />\n {itemsShown > 0 && <Text variant='secondary'>{totalMatches.current} results</Text>}\n <Flex container={{ wrap: 'wrap', alignContent: 'start' }} as={StyledIconList} ref={ulRef}>\n {listContent}\n {itemsToLoadMore > 0 && (\n <StyledProgressContainer>\n <Progress placement='local' />\n </StyledProgressContainer>\n )}\n </Flex>\n </Flex>\n </Configuration>\n );\n};\n\nIconList.args = {\n set: 'budicon'\n};\n\nIconList.argTypes = {\n set: {\n options: ['budicon', 'streamline'],\n control: { type: 'radio' }\n }\n};\n"]}
1
+ {"version":3,"file":"Icon.stories.js","sourceRoot":"","sources":["../../../src/core/Icon/Icon.stories.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAE/D,OAAO,EACL,UAAU,EACV,IAAI,EACJ,IAAI,EACJ,KAAK,EACL,eAAe,EACf,YAAY,EACZ,QAAQ,EACR,WAAW,EACX,IAAI,EACJ,mBAAmB,EACnB,QAAQ,EACR,aAAa,EACd,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,WAAW,MAAM,gEAAgE,CAAC;AAE9F,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAE5F,eAAe;IACb,KAAK,EAAE,WAAW;IAClB,SAAS,EAAE,IAAI;CACR,CAAC;AAEV,YAAY,CAAC,WAAW,CAAC,CAAC;AAE1B,MAAM,CAAC,MAAM,UAAU,GAAY,GAAG,EAAE;IACtC,OAAO,CACL,KAAC,IAAI,IACH,KAAK,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,EACxC,IAAI,EAAC,SAAS,EACd,IAAI,EAAC,KAAK,gBACC,mBAAmB,GAC9B,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAAY,GAAG,EAAE;IACtC,MAAM,KAAK,GAAG,QAAQ,EAAE,CAAC;IAEzB,gBAAgB,CAAC,KAAK,CAAC,CAAC;IAExB,OAAO,CACL,KAAC,IAAI,IACH,KAAK,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,EACxC,IAAI,EAAC,aAAa,EAClB,IAAI,EAAC,KAAK,gBACC,aAAa,GACxB,CACH,CAAC;AACJ,CAAC,CAAC;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AAG,EAAE,EAAE,YACtD,MAAC,IAAI,IAAC,SAAS,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,EAAE,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,oBAAoB,EAAE,aACvF,KAAC,WAAW,IAAC,KAAK,EAAE,MAAM,EAAE,cAAc,EAAE,cAAc,GAAI,EAC7D,UAAU,GAAG,CAAC,IAAI,MAAC,IAAI,IAAC,OAAO,EAAC,WAAW,aAAE,YAAY,CAAC,OAAO,gBAAgB,EAClF,MAAC,IAAI,IAAC,SAAS,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,YAAY,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,cAAc,EAAE,GAAG,EAAE,KAAK,aACrF,WAAW,EACX,eAAe,GAAG,CAAC,IAAI,CACtB,KAAC,uBAAuB,cACtB,KAAC,QAAQ,IAAC,SAAS,EAAC,OAAO,GAAG,GACN,CAC3B,IACI,IACF,GACO,CACjB,CAAC;AACJ,CAAC,CAAC;AAEF,QAAQ,CAAC,IAAI,GAAG;IACd,GAAG,EAAE,SAAS;CACf,CAAC;AAEF,QAAQ,CAAC,QAAQ,GAAG;IAClB,GAAG,EAAE;QACH,OAAO,EAAE,CAAC,SAAS,EAAE,YAAY,CAAC;QAClC,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;KAC3B;CACF,CAAC","sourcesContent":["import type { Meta, StoryFn } from '@storybook/react';\nimport { useMemo, useState, useCallback, useRef } from 'react';\n\nimport {\n EmptyState,\n Flex,\n Icon,\n icons,\n streamlineIcons,\n registerIcon,\n Progress,\n SearchInput,\n Text,\n useItemIntersection,\n useTheme,\n Configuration\n} from '@pega/cosmos-react-core';\nimport * as pegasusIcon from '@pega/cosmos-react-core/lib/components/Icon/icons/pegasus.icon';\n\nimport { createCustomIcon } from './Icon.mocks';\nimport { StyledIconList, StyledIconListItem, StyledProgressContainer } from './Icon.styles';\n\nexport default {\n title: 'Core/Icon',\n component: Icon\n} as Meta;\n\nregisterIcon(pegasusIcon);\n\nexport const StaticIcon: StoryFn = () => {\n return (\n <Icon\n style={{ height: '5rem', width: '5rem' }}\n name='pegasus'\n role='img'\n aria-label='Informative label'\n />\n );\n};\n\nexport const CustomIcon: StoryFn = () => {\n const theme = useTheme();\n\n createCustomIcon(theme);\n\n return (\n <Icon\n style={{ height: '5rem', width: '5rem' }}\n name='custom-pega'\n role='img'\n aria-label='Custom icon'\n />\n );\n};\n\nexport const DynamicIcon: StoryFn = () => {\n return <Icon style={{ height: '5rem', width: '5rem' }} role='img' name='pega' />;\n};\n\ninterface IconListProps {\n set: 'budicon' | 'streamline';\n}\n\nexport const IconList: StoryFn<IconListProps> = (args: IconListProps) => {\n const pageSize = 50;\n\n const [search, setSearch] = useState('');\n const totalMatches = useRef(0);\n const [currentPageIndex, setCurrentPageIndex] = useState(0);\n const ulRef = useRef<HTMLUListElement>(null);\n\n const iconList: readonly string[] = args.set === 'budicon' ? icons : streamlineIcons;\n\n const listContent = useMemo(() => {\n const matches = search ? iconList.filter(icon => icon.includes(search)) : iconList;\n const totalItemsToRender = (1 + currentPageIndex) * pageSize;\n totalMatches.current = matches.length;\n\n if (matches.length === 0) {\n return <EmptyState forwardedAs='li' />;\n }\n\n return matches.slice(0, totalItemsToRender).map(icon => (\n <Flex\n key={icon}\n container={{\n direction: 'column',\n justify: 'center',\n alignItems: 'center',\n alignContent: 'center'\n }}\n as={StyledIconListItem}\n >\n <Icon style={{ height: '3rem', width: '3rem' }} name={icon} />\n <p style={{ textAlign: 'center' }}>{icon}</p>\n </Flex>\n ));\n }, [iconList, search, currentPageIndex]);\n\n const itemsShown = Math.min(totalMatches.current, (1 + currentPageIndex) * pageSize);\n const itemsToLoadMore = totalMatches.current - itemsShown;\n\n // When reaches to the bottom of the results, loads next pageSize items\n useItemIntersection(\n ulRef,\n itemsShown,\n () => {\n setCurrentPageIndex(prev => 1 + prev);\n },\n ':scope > li'\n );\n\n // on search, reset to first page and scroll to top\n const onSearchChange = useCallback((value: string) => {\n setSearch(value);\n setCurrentPageIndex(0);\n ulRef?.current?.scrollIntoView();\n }, []);\n\n return (\n <Configuration theme={{ base: { 'icon-set': args.set } }}>\n <Flex container={{ direction: 'column', gap: 1 }} style={{ height: 'calc(100vh - 2rem)' }}>\n <SearchInput value={search} onSearchChange={onSearchChange} />\n {itemsShown > 0 && <Text variant='secondary'>{totalMatches.current} results</Text>}\n <Flex container={{ wrap: 'wrap', alignContent: 'start' }} as={StyledIconList} ref={ulRef}>\n {listContent}\n {itemsToLoadMore > 0 && (\n <StyledProgressContainer>\n <Progress placement='local' />\n </StyledProgressContainer>\n )}\n </Flex>\n </Flex>\n </Configuration>\n );\n};\n\nIconList.args = {\n set: 'budicon'\n};\n\nIconList.argTypes = {\n set: {\n options: ['budicon', 'streamline'],\n control: { type: 'radio' }\n }\n};\n"]}
@@ -1,6 +1,6 @@
1
- import { Meta, Story } from '@storybook/react';
2
- import { IconPickerProps } from '@pega/cosmos-react-core';
3
- declare const _default: Meta;
1
+ import type { StoryFn } from '@storybook/react';
2
+ import type { IconPickerProps } 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 IconPickerDemo: Story<IconPickerProps>;
5
+ export declare const IconPickerDemo: StoryFn<IconPickerProps>;
6
6
  //# sourceMappingURL=IconPicker.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"IconPicker.stories.d.ts","sourceRoot":"","sources":["../../../src/core/IconPicker/IconPicker.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAG/C,OAAO,EAAc,eAAe,EAAS,MAAM,yBAAyB,CAAC;;AAE7E,wBAyBU;AAEV,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,eAAe,CAmBjD,CAAC"}
1
+ {"version":3,"file":"IconPicker.stories.d.ts","sourceRoot":"","sources":["../../../src/core/IconPicker/IconPicker.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAItD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;;AAE/D,wBAyBU;AAEV,eAAO,MAAM,cAAc,EAAE,OAAO,CAAC,eAAe,CAmBnD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"IconPicker.stories.js","sourceRoot":"","sources":["../../../src/core/IconPicker/IconPicker.stories.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjC,OAAO,EAAE,UAAU,EAAmB,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAE7E,eAAe;IACb,KAAK,EAAE,iBAAiB;IACxB,SAAS,EAAE,UAAU;IACrB,IAAI,EAAE;QACJ,gBAAgB,EAAE,SAAS;QAC3B,KAAK,EAAE,kBAAkB;QACzB,WAAW,EAAE,KAAK;QAClB,IAAI,EAAE,wCAAwC;QAC9C,WAAW,EAAE,EAAE;QACf,MAAM,EAAE,SAAS;QACjB,QAAQ,EAAE,KAAK;QACf,QAAQ,EAAE,KAAK;QACf,QAAQ,EAAE,KAAK;KAChB;IACD,QAAQ,EAAE;QACR,gBAAgB,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE;QAC9E,KAAK,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;QACpC,WAAW,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;QAC7C,IAAI,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;QACnC,WAAW,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;QAC1C,MAAM,EAAE,EAAE,OAAO,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,OAAO,CAAC,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;QAC5F,QAAQ,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;QAC1C,QAAQ,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;QAC1C,QAAQ,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;KAC3C;CACM,CAAC;AAEV,MAAM,CAAC,MAAM,cAAc,GAA2B,CAAC,IAAqB,EAAE,EAAE;IAC9E,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;IAElE,OAAO,CACL,KAAC,UAAU,IACT,gBAAgB,EAAE,SAAS,EAC3B,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,WAAW,EAAE,IAAI,CAAC,WAAW,EAC7B,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,WAAW,EAAE,IAAI,CAAC,WAAW,EAC7B,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,QAAQ,EAAE,CAAC,IAAY,EAAE,EAAE;YACzB,YAAY,CAAC,IAAI,CAAC,CAAC;QACrB,CAAC,GACD,CACH,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\nimport { useState } from 'react';\n\nimport { IconPicker, IconPickerProps, icons } from '@pega/cosmos-react-core';\n\nexport default {\n title: 'Core/IconPicker',\n component: IconPicker,\n args: {\n defaultSelection: 'pegasus',\n label: 'IconPicker input',\n labelHidden: false,\n info: 'Type in or click to expand the Popover',\n placeholder: '',\n status: undefined,\n required: false,\n disabled: false,\n readOnly: false\n },\n argTypes: {\n defaultSelection: { options: icons, control: { type: 'select', icons: true } },\n label: { control: { type: 'text' } },\n labelHidden: { control: { type: 'boolean' } },\n info: { control: { type: 'text' } },\n placeholder: { control: { type: 'text' } },\n status: { options: [undefined, 'success', 'warning', 'error'], control: { type: 'select' } },\n required: { control: { type: 'boolean' } },\n disabled: { control: { type: 'boolean' } },\n readOnly: { control: { type: 'boolean' } }\n }\n} as Meta;\n\nexport const IconPickerDemo: Story<IconPickerProps> = (args: IconPickerProps) => {\n const [iconValue, setIconValue] = useState(args.defaultSelection);\n\n return (\n <IconPicker\n defaultSelection={iconValue}\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 onSelect={(icon: string) => {\n setIconValue(icon);\n }}\n />\n );\n};\n"]}
1
+ {"version":3,"file":"IconPicker.stories.js","sourceRoot":"","sources":["../../../src/core/IconPicker/IconPicker.stories.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjC,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAG5D,eAAe;IACb,KAAK,EAAE,iBAAiB;IACxB,SAAS,EAAE,UAAU;IACrB,IAAI,EAAE;QACJ,gBAAgB,EAAE,SAAS;QAC3B,KAAK,EAAE,kBAAkB;QACzB,WAAW,EAAE,KAAK;QAClB,IAAI,EAAE,wCAAwC;QAC9C,WAAW,EAAE,EAAE;QACf,MAAM,EAAE,SAAS;QACjB,QAAQ,EAAE,KAAK;QACf,QAAQ,EAAE,KAAK;QACf,QAAQ,EAAE,KAAK;KAChB;IACD,QAAQ,EAAE;QACR,gBAAgB,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,IA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AY,EAAE,EAAE;YACzB,YAAY,CAAC,IAAI,CAAC,CAAC;QACrB,CAAC,GACD,CACH,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import type { Meta, StoryFn } from '@storybook/react';\nimport { useState } from 'react';\n\nimport { IconPicker, icons } from '@pega/cosmos-react-core';\nimport type { IconPickerProps } from '@pega/cosmos-react-core';\n\nexport default {\n title: 'Core/IconPicker',\n component: IconPicker,\n args: {\n defaultSelection: 'pegasus',\n label: 'IconPicker input',\n labelHidden: false,\n info: 'Type in or click to expand the Popover',\n placeholder: '',\n status: undefined,\n required: false,\n disabled: false,\n readOnly: false\n },\n argTypes: {\n defaultSelection: { options: icons, control: { type: 'select', icons: true } },\n label: { control: { type: 'text' } },\n labelHidden: { control: { type: 'boolean' } },\n info: { control: { type: 'text' } },\n placeholder: { control: { type: 'text' } },\n status: { options: [undefined, 'success', 'warning', 'error'], control: { type: 'select' } },\n required: { control: { type: 'boolean' } },\n disabled: { control: { type: 'boolean' } },\n readOnly: { control: { type: 'boolean' } }\n }\n} as Meta;\n\nexport const IconPickerDemo: StoryFn<IconPickerProps> = (args: IconPickerProps) => {\n const [iconValue, setIconValue] = useState(args.defaultSelection);\n\n return (\n <IconPicker\n defaultSelection={iconValue}\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 onSelect={(icon: string) => {\n setIconValue(icon);\n }}\n />\n );\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 ImageDemo: Story;
4
+ export declare const ImageDemo: StoryFn;
5
5
  //# sourceMappingURL=Image.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Image.stories.d.ts","sourceRoot":"","sources":["../../../src/core/Image/Image.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;;AAI/C,wBAGU;AAEV,eAAO,MAAM,SAAS,EAAE,KAIvB,CAAC"}
1
+ {"version":3,"file":"Image.stories.d.ts","sourceRoot":"","sources":["../../../src/core/Image/Image.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,OAAO,EAAE,MAAM,kBAAkB,CAAC;;AAItD,wBAGU;AAEV,eAAO,MAAM,SAAS,EAAE,OAIvB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Image.stories.js","sourceRoot":"","sources":["../../../src/core/Image/Image.stories.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAEhD,eAAe;IACb,KAAK,EAAE,YAAY;IACnB,SAAS,EAAE,KAAK;CACT,CAAC;AAEV,MAAM,CAAC,MAAM,SAAS,GAAU,GAAG,EAAE;IACnC,OAAO,CACL,KAAC,KAAK,IAAC,GAAG,EAAC,uEAAuE,EAAC,GAAG,EAAC,MAAM,GAAG,CACjG,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\n\nimport { Image } from '@pega/cosmos-react-core';\n\nexport default {\n title: 'Core/Image',\n component: Image\n} as Meta;\n\nexport const ImageDemo: Story = () => {\n return (\n <Image src='https://www.pega.com/themes/custom/pegawww_theme/images/pega-logo.svg' alt='Pega' />\n );\n};\n"]}
1
+ {"version":3,"file":"Image.stories.js","sourceRoot":"","sources":["../../../src/core/Image/Image.stories.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAEhD,eAAe;IACb,KAAK,EAAE,YAAY;IACnB,SAAS,EAAE,KAAK;CACT,CAAC;AAEV,MAAM,CAAC,MAAM,SAAS,GAAY,GAAG,EAAE;IACrC,OAAO,CACL,KAAC,KAAK,IAAC,GAAG,EAAC,uEAAuE,EAAC,GAAG,EAAC,MAAM,GAAG,CACjG,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import type { Meta, StoryFn } from '@storybook/react';\n\nimport { Image } from '@pega/cosmos-react-core';\n\nexport default {\n title: 'Core/Image',\n component: Image\n} as Meta;\n\nexport const ImageDemo: StoryFn = () => {\n return (\n <Image src='https://www.pega.com/themes/custom/pegawww_theme/images/pega-logo.svg' alt='Pega' />\n );\n};\n"]}
@@ -1,12 +1,12 @@
1
- import { Meta, Story } from '@storybook/react';
2
- import { InputProps } from '@pega/cosmos-react-core';
3
- declare const _default: Meta;
1
+ import type { StoryFn } from '@storybook/react';
2
+ import type { InputProps } 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 InputStoryProps extends InputProps {
6
6
  showAction: boolean;
7
7
  showAdditionalInfo?: boolean;
8
8
  }
9
- export declare const InputDemo: Story<InputStoryProps>;
9
+ export declare const InputDemo: StoryFn<InputStoryProps>;
10
10
  interface ConfigurableInputProps {
11
11
  height?: string;
12
12
  padding?: string;
@@ -15,6 +15,6 @@ interface ConfigurableInputProps {
15
15
  warningStatusColor?: string;
16
16
  status?: InputProps['status'];
17
17
  }
18
- export declare const ConfigurableInput: Story<ConfigurableInputProps>;
19
- export declare const InputWithSuggestion: Story<InputStoryProps>;
18
+ export declare const ConfigurableInput: StoryFn<ConfigurableInputProps>;
19
+ export declare const InputWithSuggestion: StoryFn<InputStoryProps>;
20
20
  //# sourceMappingURL=Input.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Input.stories.d.ts","sourceRoot":"","sources":["../../../src/core/Input/Input.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAG/C,OAAO,EAA0C,UAAU,EAAE,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AE,KAAK,CAAC;QAC7C,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;KAC5B;IACD,UAAU,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IAC5C,KAAK,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;IACpC,WAAW,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IAC7C,IAAI,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;IACnC,WAAW,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;IAC1C,QAAQ,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IAC1C,QAAQ,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IAC1C,QAAQ,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;CAC3C,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\nimport { ChangeEvent, useEffect, useRef, useState } from 'react';\n\nimport { Configuration, FormControlProps, Input, InputProps } from '@pega/cosmos-react-core';\n\nexport default {\n title: 'Core/Input',\n component: Input,\n excludeStories: ['ConfigurableInput']\n} as Meta;\n\ninterface InputStoryProps extends InputProps {\n showAction: boolean;\n showAdditionalInfo?: boolean;\n}\n\nexport const InputDemo: Story<InputStoryProps> = (args: InputStoryProps) => {\n return (\n <Input\n additionalInfo={\n args.showAdditionalInfo\n ? {\n heading: 'Additional Info',\n content: 'Some additional info'\n }\n : undefined\n }\n id='input-demo'\n type={args.type}\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 actions={\n args.showAction\n ? [\n {\n id: 'config',\n text: 'Configure',\n icon: 'gear'\n }\n ]\n : undefined\n }\n />\n );\n};\n\nInputDemo.args = {\n type: 'text',\n showAction: false,\n showAdditionalInfo: false,\n label: 'Input',\n labelHidden: false,\n info: 'Enter some value',\n placeholder: 'Enter your input',\n status: undefined,\n required: false,\n disabled: false,\n readOnly: false\n};\n\nInputDemo.argTypes = {\n type: {\n options: ['text', 'password', 'email', 'url'],\n control: { type: 'select' }\n },\n showAdditionalInfo: { control: { type: 'boolean' } },\n showAction: { 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: {\n options: [undefined, 'success', 'warning', 'error', 'pending'],\n control: { type: 'select' }\n },\n required: { control: { type: 'boolean' } },\n disabled: { control: { type: 'boolean' } },\n readOnly: { control: { type: 'boolean' } }\n};\n\ninterface ConfigurableInputProps {\n height?: string;\n padding?: string;\n errorStatusColor?: string;\n successStatusColor?: string;\n warningStatusColor?: string;\n status?: InputProps['status'];\n}\n\nexport const ConfigurableInput: Story<ConfigurableInputProps> = (args: ConfigurableInputProps) => {\n return (\n <Configuration\n theme={{\n components: {\n input: {\n height: args.height,\n padding: args.padding\n },\n 'form-field': {\n error: {\n 'status-color': args.errorStatusColor\n },\n success: {\n 'status-color': args.successStatusColor\n },\n warning: {\n 'status-color': args.warningStatusColor\n }\n }\n }\n }}\n >\n <Input\n status={args.status}\n label='Input'\n placeholder='Enter your input'\n info='Enter some value'\n />\n </Configuration>\n );\n};\n\nConfigurableInput.args = {\n height: '2rem',\n padding: '0.5rem',\n errorStatusColor: '#d91c29',\n successStatusColor: '#20aa50',\n warningStatusColor: '#fd6000',\n status: undefined\n};\n\nConfigurableInput.argTypes = {\n height: { control: { type: 'text' } },\n padding: { control: { type: 'text' } },\n errorStatusColor: { control: { type: 'color' } },\n successStatusColor: { control: { type: 'color' } },\n warningStatusColor: { control: { type: 'color' } },\n status: { options: [undefined, 'success', 'warning', 'error'], control: { type: 'select' } }\n};\n\nexport const InputWithSuggestion: Story<InputStoryProps> = (args: InputStoryProps) => {\n const [status, setStatus] = useState<FormControlProps['status']>(undefined);\n const [inputValue, setInputValue] = useState('');\n const timerRef = useRef<number>();\n\n const timer = () => {\n window.clearTimeout(timerRef.current);\n timerRef.current = window.setTimeout(() => {\n setInputValue('AI suggestion value');\n setStatus('pending');\n }, 3000);\n };\n\n useEffect(() => {\n timer();\n return () => {\n window.clearTimeout(timerRef.current);\n };\n }, []);\n\n return (\n <Input\n id='input-demo'\n value={inputValue}\n type={args.type}\n label={args.label}\n labelHidden={args.labelHidden}\n info={args.info}\n placeholder={args.placeholder}\n status={status}\n required={args.required}\n disabled={args.disabled}\n readOnly={args.readOnly}\n actions={\n args.showAction\n ? [\n {\n id: 'config',\n text: 'Configure',\n icon: 'gear'\n }\n ]\n : undefined\n }\n onChange={(e: ChangeEvent<HTMLInputElement>) => {\n setInputValue(e.target.value);\n setStatus(undefined);\n timer();\n }}\n onResolveSuggestion={accepted => {\n if (accepted) {\n setStatus('success');\n } else {\n setStatus(undefined);\n setInputValue('');\n }\n timer();\n }}\n />\n );\n};\n\nInputWithSuggestion.args = {\n type: 'text',\n showAction: false,\n label: 'Input',\n labelHidden: false,\n info: 'Enter some value',\n placeholder: 'Enter your input',\n required: false,\n disabled: false,\n readOnly: false\n};\n\nInputWithSuggestion.argTypes = {\n type: {\n options: ['text', 'password', 'email', 'url'],\n control: { type: 'select' }\n },\n showAction: { control: { type: 'boolean' } },\n label: { control: { type: 'text' } },\n labelHidden: { control: { type: 'boolean' } },\n info: { control: { type: 'text' } },\n placeholder: { control: { type: 'text' } },\n required: { control: { type: 'boolean' } },\n disabled: { control: { type: 'boolean' } },\n readOnly: { control: { type: 'boolean' } }\n};\n"]}
1
+ {"version":3,"file":"Input.stories.js","sourceRoot":"","sources":["../../../src/core/Input/Input.stories.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,C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AM,EAAE,EAAE;IACnC,WAAW,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;IAC1C,QAAQ,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IAC1C,QAAQ,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IAC1C,QAAQ,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;CAC3C,CAAC","sourcesContent":["import type { Meta, StoryFn } from '@storybook/react';\nimport { useEffect, useRef, useState } from 'react';\nimport type { ChangeEvent } from 'react';\n\nimport { Configuration, Input } from '@pega/cosmos-react-core';\nimport type { FormControlProps, InputProps } from '@pega/cosmos-react-core';\n\nexport default {\n title: 'Core/Input',\n component: Input,\n excludeStories: ['ConfigurableInput']\n} as Meta;\n\ninterface InputStoryProps extends InputProps {\n showAction: boolean;\n showAdditionalInfo?: boolean;\n}\n\nexport const InputDemo: StoryFn<InputStoryProps> = (args: InputStoryProps) => {\n return (\n <Input\n additionalInfo={\n args.showAdditionalInfo\n ? {\n heading: 'Additional Info',\n content: 'Some additional info'\n }\n : undefined\n }\n id='input-demo'\n type={args.type}\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 actions={\n args.showAction\n ? [\n {\n id: 'config',\n text: 'Configure',\n icon: 'gear'\n }\n ]\n : undefined\n }\n />\n );\n};\n\nInputDemo.args = {\n type: 'text',\n showAction: false,\n showAdditionalInfo: false,\n label: 'Input',\n labelHidden: false,\n info: 'Enter some value',\n placeholder: 'Enter your input',\n status: undefined,\n required: false,\n disabled: false,\n readOnly: false\n};\n\nInputDemo.argTypes = {\n type: {\n options: ['text', 'password', 'email', 'url'],\n control: { type: 'select' }\n },\n showAdditionalInfo: { control: { type: 'boolean' } },\n showAction: { 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: {\n options: [undefined, 'success', 'warning', 'error', 'pending'],\n control: { type: 'select' }\n },\n required: { control: { type: 'boolean' } },\n disabled: { control: { type: 'boolean' } },\n readOnly: { control: { type: 'boolean' } }\n};\n\ninterface ConfigurableInputProps {\n height?: string;\n padding?: string;\n errorStatusColor?: string;\n successStatusColor?: string;\n warningStatusColor?: string;\n status?: InputProps['status'];\n}\n\nexport const ConfigurableInput: StoryFn<ConfigurableInputProps> = (\n args: ConfigurableInputProps\n) => {\n return (\n <Configuration\n theme={{\n components: {\n input: {\n height: args.height,\n padding: args.padding\n },\n 'form-field': {\n error: {\n 'status-color': args.errorStatusColor\n },\n success: {\n 'status-color': args.successStatusColor\n },\n warning: {\n 'status-color': args.warningStatusColor\n }\n }\n }\n }}\n >\n <Input\n status={args.status}\n label='Input'\n placeholder='Enter your input'\n info='Enter some value'\n />\n </Configuration>\n );\n};\n\nConfigurableInput.args = {\n height: '2rem',\n padding: '0.5rem',\n errorStatusColor: '#d91c29',\n successStatusColor: '#20aa50',\n warningStatusColor: '#fd6000',\n status: undefined\n};\n\nConfigurableInput.argTypes = {\n height: { control: { type: 'text' } },\n padding: { control: { type: 'text' } },\n errorStatusColor: { control: { type: 'color' } },\n successStatusColor: { control: { type: 'color' } },\n warningStatusColor: { control: { type: 'color' } },\n status: { options: [undefined, 'success', 'warning', 'error'], control: { type: 'select' } }\n};\n\nexport const InputWithSuggestion: StoryFn<InputStoryProps> = (args: InputStoryProps) => {\n const [status, setStatus] = useState<FormControlProps['status']>(undefined);\n const [inputValue, setInputValue] = useState('');\n const timerRef = useRef<number>();\n\n const timer = () => {\n window.clearTimeout(timerRef.current);\n timerRef.current = window.setTimeout(() => {\n setInputValue('AI suggestion value');\n setStatus('pending');\n }, 3000);\n };\n\n useEffect(() => {\n timer();\n return () => {\n window.clearTimeout(timerRef.current);\n };\n }, []);\n\n return (\n <Input\n id='input-demo'\n value={inputValue}\n type={args.type}\n label={args.label}\n labelHidden={args.labelHidden}\n info={args.info}\n placeholder={args.placeholder}\n status={status}\n required={args.required}\n disabled={args.disabled}\n readOnly={args.readOnly}\n actions={\n args.showAction\n ? [\n {\n id: 'config',\n text: 'Configure',\n icon: 'gear'\n }\n ]\n : undefined\n }\n onChange={(e: ChangeEvent<HTMLInputElement>) => {\n setInputValue(e.target.value);\n setStatus(undefined);\n timer();\n }}\n onResolveSuggestion={accepted => {\n if (accepted) {\n setStatus('success');\n } else {\n setStatus(undefined);\n setInputValue('');\n }\n timer();\n }}\n />\n );\n};\n\nInputWithSuggestion.args = {\n type: 'text',\n showAction: false,\n label: 'Input',\n labelHidden: false,\n info: 'Enter some value',\n placeholder: 'Enter your input',\n required: false,\n disabled: false,\n readOnly: false\n};\n\nInputWithSuggestion.argTypes = {\n type: {\n options: ['text', 'password', 'email', 'url'],\n control: { type: 'select' }\n },\n showAction: { control: { type: 'boolean' } },\n label: { control: { type: 'text' } },\n labelHidden: { control: { type: 'boolean' } },\n info: { control: { type: 'text' } },\n placeholder: { control: { type: 'text' } },\n required: { control: { type: 'boolean' } },\n disabled: { control: { type: 'boolean' } },\n readOnly: { control: { type: 'boolean' } }\n};\n"]}
@@ -1,10 +1,10 @@
1
- import { Meta, Story } from '@storybook/react';
2
- import { LabelProps } from '@pega/cosmos-react-core';
3
- declare const _default: Meta;
1
+ import type { StoryFn } from '@storybook/react';
2
+ import type { LabelProps } 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 LabelDemo: Story<LabelProps>;
5
+ export declare const LabelDemo: StoryFn<LabelProps>;
6
6
  interface ConfigurableLabelProps {
7
7
  fontSize?: string;
8
8
  }
9
- export declare const ConfigurableLabel: Story<ConfigurableLabelProps>;
9
+ export declare const ConfigurableLabel: StoryFn<ConfigurableLabelProps>;
10
10
  //# sourceMappingURL=Label.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Label.stories.d.ts","sourceRoot":"","sources":["../../../src/core/Label/Label.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAE/C,OAAO,EAAwB,UAAU,EAAE,MAAM,yBAAyB,CAAC;;AAE3E,wBAIU;AAEV,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,UAAU,CAEvC,CAAC;AAUF,UAAU,sBAAsB;IAC9B,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,sBAAsB,CAc3D,CAAC"}
1
+ {"version":3,"file":"Label.stories.d.ts","sourceRoot":"","sources":["../../../src/core/Label/Label.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAGtD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;;AAE1D,wBAIU;AAEV,eAAO,MAAM,SAAS,EAAE,OAAO,CAAC,UAAU,CAEzC,CAAC;AAUF,UAAU,sBAAsB;IAC9B,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,eAAO,MAAM,iBAAiB,EAAE,OAAO,CAAC,sBAAsB,CAgB7D,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Label.stories.js","sourceRoot":"","sources":["../../../src/core/Label/Label.stories.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,aAAa,EAAE,KAAK,EAAc,MAAM,yBAAyB,CAAC;AAE3E,eAAe;IACb,KAAK,EAAE,YAAY;IACnB,SAAS,EAAE,KAAK;IAChB,cAAc,EAAE,CAAC,mBAAmB,CAAC;CAC9B,CAAC;AAEV,MAAM,CAAC,MAAM,SAAS,GAAsB,CAAC,IAAgB,EAAE,EAAE;IAC/D,OAAO,KAAC,KAAK,IAAC,WAAW,EAAE,IAAI,CAAC,WAAW,sBAAe,CAAC;AAC7D,CAAC,CAAC;AAEF,SAAS,CAAC,IAAI,GAAG;IACf,WAAW,EAAE,KAAK;CACnB,CAAC;AAEF,SAAS,CAAC,QAAQ,GAAG;IACnB,WAAW,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;CAC9C,CAAC;AAMF,MAAM,CAAC,MAAM,iBAAiB,GAAkC,CAAC,IAA4B,EAAE,EAAE;IAC/F,OAAO,CACL,KAAC,aAAa,IACZ,KAAK,EAAE;YACL,UAAU,EAAE;gBACV,KAAK,EAAE;oBACL,WAAW,EAAE,IAAI,CAAC,QAAQ;iBAC3B;aACF;SACF,YAED,KAAC,KAAK,wBAAc,GACN,CACjB,CAAC;AACJ,CAAC,CAAC;AAEF,iBAAiB,CAAC,IAAI,GAAG;IACvB,QAAQ,EAAE,IAAI;CACf,CAAC;AAEF,iBAAiB,CAAC,QAAQ,GAAG;IAC3B,QAAQ,EAAE,EAAE,OAAO,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,KAAK,CAAC,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;CAC9F,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\n\nimport { Configuration, Label, LabelProps } from '@pega/cosmos-react-core';\n\nexport default {\n title: 'Core/Label',\n component: Label,\n excludeStories: ['ConfigurableLabel']\n} as Meta;\n\nexport const LabelDemo: Story<LabelProps> = (args: LabelProps) => {\n return <Label labelHidden={args.labelHidden}>Label</Label>;\n};\n\nLabelDemo.args = {\n labelHidden: false\n};\n\nLabelDemo.argTypes = {\n labelHidden: { control: { type: 'boolean' } }\n};\n\ninterface ConfigurableLabelProps {\n fontSize?: string;\n}\n\nexport const ConfigurableLabel: Story<ConfigurableLabelProps> = (args: ConfigurableLabelProps) => {\n return (\n <Configuration\n theme={{\n components: {\n label: {\n 'font-size': args.fontSize\n }\n }\n }}\n >\n <Label>Label</Label>\n </Configuration>\n );\n};\n\nConfigurableLabel.args = {\n fontSize: 'xs'\n};\n\nConfigurableLabel.argTypes = {\n fontSize: { options: ['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl'], control: { type: 'select' } }\n};\n"]}
1
+ {"version":3,"file":"Label.stories.js","sourceRoot":"","sources":["../../../src/core/Label/Label.stories.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAG/D,eAAe;IACb,KAAK,EAAE,YAAY;IACnB,SAAS,EAAE,KAAK;IAChB,cAAc,EAAE,CAAC,mBAAmB,CAAC;CAC9B,CAAC;AAEV,MAAM,CAAC,MAAM,SAAS,GAAwB,CAAC,IAAgB,EAAE,EAAE;IACjE,OAAO,KAAC,KAAK,IAAC,WAAW,EAAE,IAAI,CAAC,WAAW,sBAAe,CAAC;AAC7D,CAAC,CAAC;AAEF,SAAS,CAAC,IAAI,GAAG;IACf,WAAW,EAAE,KAAK;CACnB,CAAC;AAEF,SAAS,CAAC,QAAQ,GAAG;IACnB,WAAW,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;CAC9C,CAAC;AAMF,MAAM,CAAC,MAAM,iBAAiB,GAAoC,CAChE,IAA4B,EAC5B,EAAE;IACF,OAAO,CACL,KAAC,aAAa,IACZ,KAAK,EAAE;YACL,UAAU,EAAE;gBACV,KAAK,EAAE;oBACL,WAAW,EAAE,IAAI,CAAC,QAAQ;iBAC3B;aACF;SACF,YAED,KAAC,KAAK,wBAAc,GACN,CACjB,CAAC;AACJ,CAAC,CAAC;AAEF,iBAAiB,CAAC,IAAI,GAAG;IACvB,QAAQ,EAAE,IAAI;CACf,CAAC;AAEF,iBAAiB,CAAC,QAAQ,GAAG;IAC3B,QAAQ,EAAE,EAAE,OAAO,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,KAAK,CAAC,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;CAC9F,CAAC","sourcesContent":["import type { Meta, StoryFn } from '@storybook/react';\n\nimport { Configuration, Label } from '@pega/cosmos-react-core';\nimport type { LabelProps } from '@pega/cosmos-react-core';\n\nexport default {\n title: 'Core/Label',\n component: Label,\n excludeStories: ['ConfigurableLabel']\n} as Meta;\n\nexport const LabelDemo: StoryFn<LabelProps> = (args: LabelProps) => {\n return <Label labelHidden={args.labelHidden}>Label</Label>;\n};\n\nLabelDemo.args = {\n labelHidden: false\n};\n\nLabelDemo.argTypes = {\n labelHidden: { control: { type: 'boolean' } }\n};\n\ninterface ConfigurableLabelProps {\n fontSize?: string;\n}\n\nexport const ConfigurableLabel: StoryFn<ConfigurableLabelProps> = (\n args: ConfigurableLabelProps\n) => {\n return (\n <Configuration\n theme={{\n components: {\n label: {\n 'font-size': args.fontSize\n }\n }\n }}\n >\n <Label>Label</Label>\n </Configuration>\n );\n};\n\nConfigurableLabel.args = {\n fontSize: 'xs'\n};\n\nConfigurableLabel.argTypes = {\n fontSize: { options: ['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl'], control: { type: 'select' } }\n};\n"]}
@@ -1,10 +1,10 @@
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 LightboxStoryProps {
5
5
  limit?: number;
6
6
  cycle?: boolean;
7
7
  error?: boolean;
8
8
  }
9
- export declare const LightboxDemo: Story<LightboxStoryProps>;
9
+ export declare const LightboxDemo: StoryFn<LightboxStoryProps>;
10
10
  //# sourceMappingURL=Lightbox.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Lightbox.stories.d.ts","sourceRoot":"","sources":["../../../src/core/Lightbox/Lightbox.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;;AAa/C,wBAGU;AAEV,UAAU,kBAAkB;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,kBAAkB,CAqDlD,CAAC"}
1
+ {"version":3,"file":"Lightbox.stories.d.ts","sourceRoot":"","sources":["../../../src/core/Lightbox/Lightbox.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,OAAO,EAAE,MAAM,kBAAkB,CAAC;;AAQtD,wBAGU;AAEV,UAAU,kBAAkB;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,eAAO,MAAM,YAAY,EAAE,OAAO,CAAC,kBAAkB,CAqDpD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Lightbox.stories.js","sourceRoot":"","sources":["../../../src/core/Lightbox/Lightbox.stories.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEzC,OAAO,EACL,MAAM,EACN,eAAe,EACf,QAAQ,EAGT,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAE/E,eAAe;IACb,KAAK,EAAE,eAAe;IACtB,SAAS,EAAE,QAAQ;CACZ,CAAC;AAQV,MAAM,CAAC,MAAM,YAAY,GAA8B,CAAC,IAAwB,EAAE,EAAE;IAClF,MAAM,aAAa,GAAG,MAAM,CAAoB,IAAI,CAAC,CAAC;IACtD,MAAM,CAA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C7B,CAAC,CAAC,KAAK,EAAE,CAAC;QACV,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;IAC/B,CAAC,CAAC;IAEF,OAAO,CACL,8BACE,KAAC,MAAM,IAAC,GAAG,EAAE,aAAa,EAAE,OAAO,EAAE,OAAO,8BAEnC,EACR,MAAM,IAAI,CACT,KAAC,QAAQ,IACP,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,IAAI,CAAC,KAAK,IAAI,SAAS,EAC9B,YAAY,EAAE,GAAG,EAAE;oBACjB,SAAS,CAAC,IAAI,CAAC,CAAC;oBAChB,aAAa,CAAC,OAAO,EAAE,KAAK,EAAE,CAAC;gBACjC,CAAC,EACD,cAAc,EAAE,cAAc,GAC9B,CACH,IACA,CACJ,CAAC;AACJ,CAAC,CAAC;AAEF,YAAY,CAAC,IAAI,GAAG;IAClB,KAAK,EAAE,CAAC;IACR,KAAK,EAAE,KAAK;IACZ,KAAK,EAAE,KAAK;CACb,CAAC;AAEF,YAAY,CAAC,QAAQ,GAAG;IACtB,KAAK,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;IACtC,KAAK,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IACvC,KAAK,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;CACxC,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\nimport { useRef, useState } from 'react';\n\nimport {\n Button,\n DateTimeDisplay,\n Lightbox,\n LightboxProps,\n LightboxItem\n} from '@pega/cosmos-react-core';\n\nimport { mockAPIImageResources, mockBadImageResource } from './Lightbox.mocks';\n\nexport default {\n title: 'Core/Lightbox',\n component: Lightbox\n} as Meta;\n\ninterface LightboxStoryProps {\n limit?: number;\n cycle?: boolean;\n error?: boolean;\n}\n\nexport const LightboxDemo: Story<LightboxStoryProps> = (args: LightboxStoryProps) => {\n const demoButtonRef = useRef<HTMLButtonElement>(null);\n const [images, setImages] = useState<LightboxProps['items'] | null>(null);\n\n const onClick = () => {\n setImages(\n (args.error ? [mockBadImageResource] : mockAPIImageResources.slice(0, args.limit)).map(\n ({ id, name, description, mime_type, media_url }) => {\n return {\n id,\n name,\n description,\n src: media_url,\n metadata: [\n mime_type.split('/').pop(),\n <DateTimeDisplay value={new Date()} variant='date' />\n ]\n };\n }\n )\n );\n };\n\n const onItemDownload = async (id: LightboxItem['id']) => {\n const a = document.createElement('a');\n a.href = await fetch(id)\n .then(response => response.blob())\n .then(blob => URL.createObjectURL(blob));\n\n a.download = images?.find(image => image.id === id)?.name ?? id;\n document.body.appendChild(a);\n a.click();\n document.body.removeChild(a);\n };\n\n return (\n <>\n <Button ref={demoButtonRef} onClick={onClick}>\n Open Lightbox\n </Button>\n {images && (\n <Lightbox\n items={images}\n cycle={args.cycle || undefined}\n onAfterClose={() => {\n setImages(null);\n demoButtonRef.current?.focus();\n }}\n onItemDownload={onItemDownload}\n />\n )}\n </>\n );\n};\n\nLightboxDemo.args = {\n limit: 7,\n cycle: false,\n error: false\n};\n\nLightboxDemo.argTypes = {\n limit: { control: { type: 'number' } },\n cycle: { control: { type: 'boolean' } },\n error: { control: { type: 'boolean' } }\n};\n"]}
1
+ {"version":3,"file":"Lightbox.stories.js","sourceRoot":"","sources":["../../../src/core/Lightbox/Lightbox.stories.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEzC,OAAO,EAAE,MAAM,EAAE,eAAe,EAAE,QAAQ,EAAgB,MAAM,yBAAyB,CAAC;AAG1F,OAAO,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAE/E,eAAe;IACb,KAAK,EAAE,eAAe;IACtB,SAAS,EAAE,QAAQ;CACZ,CAAC;AAQV,MAAM,CAAC,MAAM,YAAY,GAAgC,CAAC,IAAwB,EAAE,EAAE;IACpF,MAAM,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,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;QAC7B,CAAC,CAAC,KAAK,EAAE,CAAC;QACV,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;IAC/B,CAAC,CAAC;IAEF,OAAO,CACL,8BACE,KAAC,MAAM,IAAC,GAAG,EAAE,aAAa,EAAE,OAAO,EAAE,OAAO,8BAEnC,EACR,MAAM,IAAI,CACT,KAAC,QAAQ,IACP,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,IAAI,CAAC,KAAK,IAAI,SAAS,EAC9B,YAAY,EAAE,GAAG,EAAE;oBACjB,SAAS,CAAC,IAAI,CAAC,CAAC;oBAChB,aAAa,CAAC,OAAO,EAAE,KAAK,EAAE,CAAC;gBACjC,CAAC,EACD,cAAc,EAAE,cAAc,GAC9B,CACH,IACA,CACJ,CAAC;AACJ,CAAC,CAAC;AAEF,YAAY,CAAC,IAAI,GAAG;IAClB,KAAK,EAAE,CAAC;IACR,KAAK,EAAE,KAAK;IACZ,KAAK,EAAE,KAAK;CACb,CAAC;AAEF,YAAY,CAAC,QAAQ,GAAG;IACtB,KAAK,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;IACtC,KAAK,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IACvC,KAAK,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;CACxC,CAAC","sourcesContent":["import type { Meta, StoryFn } from '@storybook/react';\nimport { useRef, useState } from 'react';\n\nimport { Button, DateTimeDisplay, Lightbox, LightboxItem } from '@pega/cosmos-react-core';\nimport type { LightboxProps } from '@pega/cosmos-react-core';\n\nimport { mockAPIImageResources, mockBadImageResource } from './Lightbox.mocks';\n\nexport default {\n title: 'Core/Lightbox',\n component: Lightbox\n} as Meta;\n\ninterface LightboxStoryProps {\n limit?: number;\n cycle?: boolean;\n error?: boolean;\n}\n\nexport const LightboxDemo: StoryFn<LightboxStoryProps> = (args: LightboxStoryProps) => {\n const demoButtonRef = useRef<HTMLButtonElement>(null);\n const [images, setImages] = useState<LightboxProps['items'] | null>(null);\n\n const onClick = () => {\n setImages(\n (args.error ? [mockBadImageResource] : mockAPIImageResources.slice(0, args.limit)).map(\n ({ id, name, description, mime_type, media_url }) => {\n return {\n id,\n name,\n description,\n src: media_url,\n metadata: [\n mime_type.split('/').pop(),\n <DateTimeDisplay value={new Date()} variant='date' />\n ]\n };\n }\n )\n );\n };\n\n const onItemDownload = async (id: LightboxItem['id']) => {\n const a = document.createElement('a');\n a.href = await fetch(id)\n .then(response => response.blob())\n .then(blob => URL.createObjectURL(blob));\n\n a.download = images?.find(image => image.id === id)?.name ?? id;\n document.body.appendChild(a);\n a.click();\n document.body.removeChild(a);\n };\n\n return (\n <>\n <Button ref={demoButtonRef} onClick={onClick}>\n Open Lightbox\n </Button>\n {images && (\n <Lightbox\n items={images}\n cycle={args.cycle || undefined}\n onAfterClose={() => {\n setImages(null);\n demoButtonRef.current?.focus();\n }}\n onItemDownload={onItemDownload}\n />\n )}\n </>\n );\n};\n\nLightboxDemo.args = {\n limit: 7,\n cycle: false,\n error: false\n};\n\nLightboxDemo.argTypes = {\n limit: { control: { type: 'number' } },\n cycle: { control: { type: 'boolean' } },\n error: { control: { type: 'boolean' } }\n};\n"]}