@pega/cosmos-react-demos 3.0.0-dev.2.0 → 3.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 (1443) hide show
  1. package/jsx/build/AppHeader/AppHeader.stories.d.ts +1 -1
  2. package/jsx/build/AppHeader/AppHeader.stories.d.ts.map +1 -1
  3. package/jsx/build/AppHeader/AppHeader.stories.jsx +102 -75
  4. package/jsx/build/AppHeader/AppHeader.stories.jsx.map +1 -1
  5. package/jsx/build/AppShell/AppShell.mocks.d.ts +19 -0
  6. package/jsx/build/AppShell/AppShell.mocks.d.ts.map +1 -1
  7. package/jsx/build/AppShell/{AppShell.mocks.js → AppShell.mocks.jsx} +33 -1
  8. package/jsx/build/AppShell/AppShell.mocks.jsx.map +1 -0
  9. package/jsx/build/AppShell/AppShell.stories.d.ts +2 -2
  10. package/jsx/build/AppShell/AppShell.stories.d.ts.map +1 -1
  11. package/jsx/build/AppShell/AppShell.stories.jsx +20 -45
  12. package/jsx/build/AppShell/AppShell.stories.jsx.map +1 -1
  13. package/jsx/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts +8 -0
  14. package/jsx/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts.map +1 -0
  15. package/jsx/build/DynamicContentEditor/DynamicContentEditor.stories.jsx +101 -0
  16. package/jsx/build/DynamicContentEditor/DynamicContentEditor.stories.jsx.map +1 -0
  17. package/jsx/build/DynamicContentEditor/FieldSelector.d.ts +11 -0
  18. package/jsx/build/DynamicContentEditor/FieldSelector.d.ts.map +1 -0
  19. package/jsx/build/DynamicContentEditor/FieldSelector.jsx +80 -0
  20. package/jsx/build/DynamicContentEditor/FieldSelector.jsx.map +1 -0
  21. package/jsx/build/ExpressionBuilder/ExpressionBuilder.mocks.d.ts +11 -0
  22. package/jsx/build/ExpressionBuilder/ExpressionBuilder.mocks.d.ts.map +1 -0
  23. package/jsx/build/ExpressionBuilder/ExpressionBuilder.mocks.js +135 -0
  24. package/jsx/build/ExpressionBuilder/ExpressionBuilder.mocks.js.map +1 -0
  25. package/jsx/build/ExpressionBuilder/ExpressionBuilder.stories.d.ts +18 -0
  26. package/jsx/build/ExpressionBuilder/ExpressionBuilder.stories.d.ts.map +1 -0
  27. package/jsx/build/ExpressionBuilder/ExpressionBuilder.stories.jsx +72 -0
  28. package/jsx/build/ExpressionBuilder/ExpressionBuilder.stories.jsx.map +1 -0
  29. package/jsx/build/FlowModeller/AddNodeUtils.mocks.d.ts +4 -4
  30. package/jsx/build/FlowModeller/AddNodeUtils.mocks.d.ts.map +1 -1
  31. package/jsx/build/FlowModeller/AddNodeUtils.mocks.js.map +1 -1
  32. package/jsx/build/FlowModeller/FlowModeller.mocks.d.ts +21 -2
  33. package/jsx/build/FlowModeller/FlowModeller.mocks.d.ts.map +1 -1
  34. package/jsx/build/FlowModeller/{FlowModeller.mocks.js → FlowModeller.mocks.jsx} +186 -34
  35. package/jsx/build/FlowModeller/FlowModeller.mocks.jsx.map +1 -0
  36. package/jsx/build/FlowModeller/FlowModeller.stories.d.ts +9 -10
  37. package/jsx/build/FlowModeller/FlowModeller.stories.d.ts.map +1 -1
  38. package/jsx/build/FlowModeller/FlowModeller.stories.jsx +265 -150
  39. package/jsx/build/FlowModeller/FlowModeller.stories.jsx.map +1 -1
  40. package/jsx/build/FlowModeller/FlowModeller.styles.d.ts +2 -0
  41. package/jsx/build/FlowModeller/FlowModeller.styles.d.ts.map +1 -0
  42. package/jsx/build/FlowModeller/FlowModeller.styles.js +8 -0
  43. package/jsx/build/FlowModeller/FlowModeller.styles.js.map +1 -0
  44. package/jsx/build/ItemLibrary/LibraryPicker.mocks.d.ts +1 -5
  45. package/jsx/build/ItemLibrary/LibraryPicker.mocks.d.ts.map +1 -1
  46. package/jsx/build/ItemLibrary/LibraryPicker.mocks.js +5 -10
  47. package/jsx/build/ItemLibrary/LibraryPicker.mocks.js.map +1 -1
  48. package/jsx/build/ItemLibrary/LibraryPicker.stories.d.ts +3 -7
  49. package/jsx/build/ItemLibrary/LibraryPicker.stories.d.ts.map +1 -1
  50. package/jsx/build/ItemLibrary/LibraryPicker.stories.jsx.map +1 -1
  51. package/jsx/build/LifeCycle/LifeCycle.mocks.d.ts +3 -0
  52. package/jsx/build/LifeCycle/LifeCycle.mocks.d.ts.map +1 -1
  53. package/jsx/build/LifeCycle/LifeCycle.mocks.js +146 -18
  54. package/jsx/build/LifeCycle/LifeCycle.mocks.js.map +1 -1
  55. package/jsx/build/LifeCycle/LifeCycle.stories.d.ts +6 -9
  56. package/jsx/build/LifeCycle/LifeCycle.stories.d.ts.map +1 -1
  57. package/jsx/build/LifeCycle/LifeCycle.stories.jsx +111 -27
  58. package/jsx/build/LifeCycle/LifeCycle.stories.jsx.map +1 -1
  59. package/jsx/build/LifeCycle/utils.d.ts.map +1 -1
  60. package/jsx/build/LifeCycle/utils.js +5 -4
  61. package/jsx/build/LifeCycle/utils.js.map +1 -1
  62. package/jsx/build/ObjectSelect/ObjectSelect.mocks.d.ts +63 -0
  63. package/jsx/build/ObjectSelect/ObjectSelect.mocks.d.ts.map +1 -0
  64. package/jsx/build/ObjectSelect/ObjectSelect.mocks.jsx +395 -0
  65. package/jsx/build/ObjectSelect/ObjectSelect.mocks.jsx.map +1 -0
  66. package/jsx/build/ObjectSelect/ObjectSelect.stories.d.ts +8 -0
  67. package/jsx/build/ObjectSelect/ObjectSelect.stories.d.ts.map +1 -0
  68. package/jsx/build/ObjectSelect/ObjectSelect.stories.jsx +245 -0
  69. package/jsx/build/ObjectSelect/ObjectSelect.stories.jsx.map +1 -0
  70. package/jsx/build/ObjectSelect/ObjectSelect.styles.d.ts +4 -0
  71. package/jsx/build/ObjectSelect/ObjectSelect.styles.d.ts.map +1 -0
  72. package/jsx/build/ObjectSelect/ObjectSelect.styles.js +27 -0
  73. package/jsx/build/ObjectSelect/ObjectSelect.styles.js.map +1 -0
  74. package/jsx/build/PageTemplates/GalleryPage.mocks.d.ts +46 -0
  75. package/jsx/build/PageTemplates/GalleryPage.mocks.d.ts.map +1 -0
  76. package/jsx/build/PageTemplates/GalleryPage.mocks.jsx +76 -0
  77. package/jsx/build/PageTemplates/GalleryPage.mocks.jsx.map +1 -0
  78. package/jsx/build/PageTemplates/GalleryPage.stories.d.ts.map +1 -1
  79. package/jsx/build/PageTemplates/GalleryPage.stories.jsx +14 -92
  80. package/jsx/build/PageTemplates/GalleryPage.stories.jsx.map +1 -1
  81. package/jsx/build/PageTemplates/PageTemplates.mocks.d.ts +18 -0
  82. package/jsx/build/PageTemplates/PageTemplates.mocks.d.ts.map +1 -0
  83. package/jsx/build/PageTemplates/PageTemplates.mocks.jsx +287 -0
  84. package/jsx/build/PageTemplates/PageTemplates.mocks.jsx.map +1 -0
  85. package/jsx/build/PageTemplates/PageTemplates.stories.d.ts +4 -9
  86. package/jsx/build/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
  87. package/jsx/build/PageTemplates/PageTemplates.stories.jsx +98 -272
  88. package/jsx/build/PageTemplates/PageTemplates.stories.jsx.map +1 -1
  89. package/jsx/build/Workbench/Workbench.stories.d.ts +1 -0
  90. package/jsx/build/Workbench/Workbench.stories.d.ts.map +1 -1
  91. package/jsx/build/Workbench/Workbench.stories.jsx +204 -18
  92. package/jsx/build/Workbench/Workbench.stories.jsx.map +1 -1
  93. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.mocks.d.ts +3 -0
  94. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.mocks.d.ts.map +1 -0
  95. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.mocks.js +15 -0
  96. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.mocks.js.map +1 -0
  97. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts +17 -8
  98. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts.map +1 -1
  99. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.jsx +99 -65
  100. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.jsx.map +1 -1
  101. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.styles.d.ts +5 -0
  102. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.styles.d.ts.map +1 -0
  103. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.styles.js +15 -0
  104. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.styles.js.map +1 -0
  105. package/jsx/condition-builder/ConditionBuilder/props.mock.d.ts.map +1 -1
  106. package/jsx/condition-builder/ConditionBuilder/props.mock.js +132 -31
  107. package/jsx/condition-builder/ConditionBuilder/props.mock.js.map +1 -1
  108. package/jsx/condition-builder/ConditionInput/ConditionInput.stories.d.ts +10 -0
  109. package/jsx/condition-builder/ConditionInput/ConditionInput.stories.d.ts.map +1 -0
  110. package/jsx/condition-builder/ConditionInput/ConditionInput.stories.jsx +40 -0
  111. package/jsx/condition-builder/ConditionInput/ConditionInput.stories.jsx.map +1 -0
  112. package/jsx/condition-builder/PromotedFilters/PromotedFilters.mocks.d.ts +4 -0
  113. package/jsx/condition-builder/PromotedFilters/PromotedFilters.mocks.d.ts.map +1 -0
  114. package/jsx/condition-builder/PromotedFilters/PromotedFilters.mocks.js +74 -0
  115. package/jsx/condition-builder/PromotedFilters/PromotedFilters.mocks.js.map +1 -0
  116. package/jsx/condition-builder/PromotedFilters/PromotedFilters.stories.d.ts +8 -0
  117. package/jsx/condition-builder/PromotedFilters/PromotedFilters.stories.d.ts.map +1 -0
  118. package/jsx/condition-builder/PromotedFilters/PromotedFilters.stories.jsx +31 -0
  119. package/jsx/condition-builder/PromotedFilters/PromotedFilters.stories.jsx.map +1 -0
  120. package/jsx/condition-builder/PromotedFilters/PromotedFilters.styles.d.ts +9 -0
  121. package/jsx/condition-builder/PromotedFilters/PromotedFilters.styles.d.ts.map +1 -0
  122. package/jsx/condition-builder/PromotedFilters/PromotedFilters.styles.js +35 -0
  123. package/jsx/condition-builder/PromotedFilters/PromotedFilters.styles.js.map +1 -0
  124. package/jsx/core/AdditionalInfo/AdditionalInfo.stories.d.ts +9 -0
  125. package/jsx/core/AdditionalInfo/AdditionalInfo.stories.d.ts.map +1 -0
  126. package/jsx/core/AdditionalInfo/AdditionalInfo.stories.jsx +25 -0
  127. package/jsx/core/AdditionalInfo/AdditionalInfo.stories.jsx.map +1 -0
  128. package/jsx/core/AppShell/AppShell.mocks.d.ts +1 -1
  129. package/jsx/core/AppShell/AppShell.mocks.jsx +5 -5
  130. package/jsx/core/AppShell/AppShell.mocks.jsx.map +1 -1
  131. package/jsx/core/AppShell/AppShell.stories.d.ts +2 -0
  132. package/jsx/core/AppShell/AppShell.stories.d.ts.map +1 -1
  133. package/jsx/core/AppShell/AppShell.stories.jsx +44 -7
  134. package/jsx/core/AppShell/AppShell.stories.jsx.map +1 -1
  135. package/jsx/core/Badges/Keyboard.stories.d.ts +6 -0
  136. package/jsx/core/Badges/Keyboard.stories.d.ts.map +1 -0
  137. package/jsx/core/Badges/Keyboard.stories.jsx +17 -0
  138. package/jsx/core/Badges/Keyboard.stories.jsx.map +1 -0
  139. package/jsx/core/Badges/Selection.stories.d.ts +2 -3
  140. package/jsx/core/Badges/Selection.stories.d.ts.map +1 -1
  141. package/jsx/core/Badges/Selection.stories.jsx.map +1 -1
  142. package/jsx/core/Badges/Tag.stories.d.ts +2 -3
  143. package/jsx/core/Badges/Tag.stories.d.ts.map +1 -1
  144. package/jsx/core/Badges/Tag.stories.jsx.map +1 -1
  145. package/jsx/core/Banner/Banner.stories.d.ts +7 -18
  146. package/jsx/core/Banner/Banner.stories.d.ts.map +1 -1
  147. package/jsx/core/Banner/Banner.stories.jsx +2 -2
  148. package/jsx/core/Banner/Banner.stories.jsx.map +1 -1
  149. package/jsx/core/Breadcrumbs/Breadcrumbs.stories.d.ts +3 -4
  150. package/jsx/core/Breadcrumbs/Breadcrumbs.stories.d.ts.map +1 -1
  151. package/jsx/core/Breadcrumbs/Breadcrumbs.stories.jsx.map +1 -1
  152. package/jsx/core/Button/Button.stories.d.ts +2 -3
  153. package/jsx/core/Button/Button.stories.d.ts.map +1 -1
  154. package/jsx/core/Button/Button.stories.jsx +6 -6
  155. package/jsx/core/Button/Button.stories.jsx.map +1 -1
  156. package/jsx/core/Card/Card.stories.d.ts +1 -2
  157. package/jsx/core/Card/Card.stories.d.ts.map +1 -1
  158. package/jsx/core/Card/Card.stories.jsx +1 -1
  159. package/jsx/core/Card/Card.stories.jsx.map +1 -1
  160. package/jsx/core/Checkbox/Checkbox.stories.d.ts +6 -2
  161. package/jsx/core/Checkbox/Checkbox.stories.d.ts.map +1 -1
  162. package/jsx/core/Checkbox/Checkbox.stories.jsx +27 -8
  163. package/jsx/core/Checkbox/Checkbox.stories.jsx.map +1 -1
  164. package/jsx/core/CheckboxGroup/CheckboxGroup.stories.d.ts +7 -3
  165. package/jsx/core/CheckboxGroup/CheckboxGroup.stories.d.ts.map +1 -1
  166. package/jsx/core/CheckboxGroup/CheckboxGroup.stories.jsx +46 -5
  167. package/jsx/core/CheckboxGroup/CheckboxGroup.stories.jsx.map +1 -1
  168. package/jsx/core/ColorPicker/ColorPicker.stories.d.ts +5 -3
  169. package/jsx/core/ColorPicker/ColorPicker.stories.d.ts.map +1 -1
  170. package/jsx/core/ColorPicker/ColorPicker.stories.jsx +12 -13
  171. package/jsx/core/ColorPicker/ColorPicker.stories.jsx.map +1 -1
  172. package/jsx/core/ColorPicker/ColorPicker.styles.d.ts +4 -0
  173. package/jsx/core/ColorPicker/ColorPicker.styles.d.ts.map +1 -0
  174. package/jsx/core/ColorPicker/ColorPicker.styles.js +11 -0
  175. package/jsx/core/ColorPicker/ColorPicker.styles.js.map +1 -0
  176. package/jsx/core/ComboBox/ComboBox.stories.d.ts +1 -0
  177. package/jsx/core/ComboBox/ComboBox.stories.d.ts.map +1 -1
  178. package/jsx/core/ComboBox/ComboBox.stories.jsx +40 -8
  179. package/jsx/core/ComboBox/ComboBox.stories.jsx.map +1 -1
  180. package/jsx/core/CompositeInput/CompositeInput.mocks.d.ts +8 -0
  181. package/jsx/core/CompositeInput/CompositeInput.mocks.d.ts.map +1 -0
  182. package/jsx/core/CompositeInput/CompositeInput.mocks.jsx +8 -0
  183. package/jsx/core/CompositeInput/CompositeInput.mocks.jsx.map +1 -0
  184. package/jsx/core/CompositeInput/CompositeInput.stories.d.ts +9 -0
  185. package/jsx/core/CompositeInput/CompositeInput.stories.d.ts.map +1 -0
  186. package/jsx/core/CompositeInput/CompositeInput.stories.jsx +54 -0
  187. package/jsx/core/CompositeInput/CompositeInput.stories.jsx.map +1 -0
  188. package/jsx/core/Configuration/Configuration.mocks.d.ts +7 -0
  189. package/jsx/core/Configuration/Configuration.mocks.d.ts.map +1 -0
  190. package/jsx/core/Configuration/Configuration.mocks.jsx +9 -0
  191. package/jsx/core/Configuration/Configuration.mocks.jsx.map +1 -0
  192. package/jsx/core/Configuration/Configuration.stories.d.ts +2 -3
  193. package/jsx/core/Configuration/Configuration.stories.d.ts.map +1 -1
  194. package/jsx/core/Configuration/Configuration.stories.jsx +3 -19
  195. package/jsx/core/Configuration/Configuration.stories.jsx.map +1 -1
  196. package/jsx/core/Configuration/Configuration.styles.d.ts +6 -0
  197. package/jsx/core/Configuration/Configuration.styles.d.ts.map +1 -0
  198. package/jsx/core/Configuration/Configuration.styles.js +12 -0
  199. package/jsx/core/Configuration/Configuration.styles.js.map +1 -0
  200. package/jsx/core/CreditCard/CreditCard.stories.d.ts +14 -0
  201. package/jsx/core/CreditCard/CreditCard.stories.d.ts.map +1 -0
  202. package/jsx/core/CreditCard/CreditCard.stories.jsx +52 -0
  203. package/jsx/core/CreditCard/CreditCard.stories.jsx.map +1 -0
  204. package/jsx/core/Currency/Currency.stories.d.ts +9 -3
  205. package/jsx/core/Currency/Currency.stories.d.ts.map +1 -1
  206. package/jsx/core/Currency/Currency.stories.jsx +58 -19
  207. package/jsx/core/Currency/Currency.stories.jsx.map +1 -1
  208. package/jsx/core/DateTime/DateTime.stories.d.ts +39 -9
  209. package/jsx/core/DateTime/DateTime.stories.d.ts.map +1 -1
  210. package/jsx/core/DateTime/DateTime.stories.jsx +152 -17
  211. package/jsx/core/DateTime/DateTime.stories.jsx.map +1 -1
  212. package/jsx/core/Dialog/Dialog.stories.d.ts +6 -0
  213. package/jsx/core/Dialog/Dialog.stories.d.ts.map +1 -0
  214. package/jsx/core/Dialog/Dialog.stories.jsx +79 -0
  215. package/jsx/core/Dialog/Dialog.stories.jsx.map +1 -0
  216. package/jsx/core/FieldGroup/FieldGroup.stories.d.ts +6 -4
  217. package/jsx/core/FieldGroup/FieldGroup.stories.d.ts.map +1 -1
  218. package/jsx/core/FieldGroup/FieldGroup.stories.jsx +8 -4
  219. package/jsx/core/FieldGroup/FieldGroup.stories.jsx.map +1 -1
  220. package/jsx/core/FieldGroup/FieldGroupList.mocks.d.ts +4 -0
  221. package/jsx/core/FieldGroup/FieldGroupList.mocks.d.ts.map +1 -1
  222. package/jsx/core/FieldGroup/FieldGroupList.mocks.jsx +70 -2
  223. package/jsx/core/FieldGroup/FieldGroupList.mocks.jsx.map +1 -1
  224. package/jsx/core/FieldGroup/FieldGroupList.stories.d.ts +9 -8
  225. package/jsx/core/FieldGroup/FieldGroupList.stories.d.ts.map +1 -1
  226. package/jsx/core/FieldGroup/FieldGroupList.stories.jsx +51 -88
  227. package/jsx/core/FieldGroup/FieldGroupList.stories.jsx.map +1 -1
  228. package/jsx/core/FieldValueList/FieldValueList.mocks.d.ts +3 -0
  229. package/jsx/core/FieldValueList/FieldValueList.mocks.d.ts.map +1 -0
  230. package/jsx/core/FieldValueList/FieldValueList.mocks.js +9 -0
  231. package/jsx/core/FieldValueList/FieldValueList.mocks.js.map +1 -0
  232. package/jsx/core/FieldValueList/FieldValueList.stories.d.ts +3 -2
  233. package/jsx/core/FieldValueList/FieldValueList.stories.d.ts.map +1 -1
  234. package/jsx/core/FieldValueList/FieldValueList.stories.jsx +34 -2
  235. package/jsx/core/FieldValueList/FieldValueList.stories.jsx.map +1 -1
  236. package/jsx/core/File/FileDisplay.stories.d.ts.map +1 -1
  237. package/jsx/core/File/FileDisplay.stories.jsx +16 -38
  238. package/jsx/core/File/FileDisplay.stories.jsx.map +1 -1
  239. package/jsx/core/File/FileInput.stories.d.ts.map +1 -1
  240. package/jsx/core/File/FileInput.stories.jsx +1 -1
  241. package/jsx/core/File/FileInput.stories.jsx.map +1 -1
  242. package/jsx/core/Flex/FlexContainer.stories.d.ts +1 -2
  243. package/jsx/core/Flex/FlexContainer.stories.d.ts.map +1 -1
  244. package/jsx/core/Flex/FlexContainer.stories.jsx.map +1 -1
  245. package/jsx/core/Form/Form.mocks.d.ts.map +1 -1
  246. package/jsx/core/Form/Form.mocks.jsx +6 -5
  247. package/jsx/core/Form/Form.mocks.jsx.map +1 -1
  248. package/jsx/core/Form/Form.stories.jsx +2 -2
  249. package/jsx/core/Form/Form.stories.jsx.map +1 -1
  250. package/jsx/core/Grid/GridContainer.stories.d.ts +4 -5
  251. package/jsx/core/Grid/GridContainer.stories.d.ts.map +1 -1
  252. package/jsx/core/Grid/GridContainer.stories.jsx.map +1 -1
  253. package/jsx/core/Grid/GridItem.stories.d.ts +1 -2
  254. package/jsx/core/Grid/GridItem.stories.d.ts.map +1 -1
  255. package/jsx/core/Grid/GridItem.stories.jsx.map +1 -1
  256. package/jsx/core/HTML/HTML.stories.d.ts +6 -0
  257. package/jsx/core/HTML/HTML.stories.d.ts.map +1 -0
  258. package/jsx/core/HTML/HTML.stories.jsx +13 -0
  259. package/jsx/core/HTML/HTML.stories.jsx.map +1 -0
  260. package/jsx/core/Icon/Icon.stories.d.ts +5 -6
  261. package/jsx/core/Icon/Icon.stories.d.ts.map +1 -1
  262. package/jsx/core/Icon/Icon.stories.jsx +5 -27
  263. package/jsx/core/Icon/Icon.stories.jsx.map +1 -1
  264. package/jsx/core/Icon/Icon.styles.d.ts +4 -0
  265. package/jsx/core/Icon/Icon.styles.d.ts.map +1 -0
  266. package/jsx/core/Icon/Icon.styles.js +25 -0
  267. package/jsx/core/Icon/Icon.styles.js.map +1 -0
  268. package/jsx/core/IconPicker/IconPicker.stories.d.ts.map +1 -1
  269. package/jsx/core/IconPicker/IconPicker.stories.jsx +7 -10
  270. package/jsx/core/IconPicker/IconPicker.stories.jsx.map +1 -1
  271. package/jsx/core/Image/Image.stories.d.ts +2 -3
  272. package/jsx/core/Image/Image.stories.d.ts.map +1 -1
  273. package/jsx/core/Image/Image.stories.jsx.map +1 -1
  274. package/jsx/core/Input/Input.stories.d.ts +2 -0
  275. package/jsx/core/Input/Input.stories.d.ts.map +1 -1
  276. package/jsx/core/Input/Input.stories.jsx +78 -2
  277. package/jsx/core/Input/Input.stories.jsx.map +1 -1
  278. package/jsx/core/Lightbox/Lightbox.stories.jsx +1 -1
  279. package/jsx/core/Lightbox/Lightbox.stories.jsx.map +1 -1
  280. package/jsx/core/Link/Link.stories.d.ts +1 -11
  281. package/jsx/core/Link/Link.stories.d.ts.map +1 -1
  282. package/jsx/core/Link/Link.stories.jsx.map +1 -1
  283. package/jsx/core/List/CommaSeparatedList.stories.d.ts +2 -2
  284. package/jsx/core/List/CommaSeparatedList.stories.d.ts.map +1 -1
  285. package/jsx/core/List/CommaSeparatedList.stories.jsx.map +1 -1
  286. package/jsx/core/ListToolbar/ListToolbar.mocks.d.ts +9 -0
  287. package/jsx/core/ListToolbar/ListToolbar.mocks.d.ts.map +1 -0
  288. package/jsx/core/ListToolbar/ListToolbar.mocks.jsx +71 -0
  289. package/jsx/core/ListToolbar/ListToolbar.mocks.jsx.map +1 -0
  290. package/jsx/core/ListToolbar/ListToolbar.stories.d.ts +10 -0
  291. package/jsx/core/ListToolbar/ListToolbar.stories.d.ts.map +1 -0
  292. package/jsx/core/ListToolbar/ListToolbar.stories.jsx +93 -0
  293. package/jsx/core/ListToolbar/ListToolbar.stories.jsx.map +1 -0
  294. package/jsx/core/Location/Location.stories.d.ts +4 -1
  295. package/jsx/core/Location/Location.stories.d.ts.map +1 -1
  296. package/jsx/core/Location/Location.stories.jsx +10 -3
  297. package/jsx/core/Location/Location.stories.jsx.map +1 -1
  298. package/jsx/core/Menu/Menu.stories.d.ts.map +1 -1
  299. package/jsx/core/Menu/Menu.stories.jsx +4 -3
  300. package/jsx/core/Menu/Menu.stories.jsx.map +1 -1
  301. package/jsx/core/MenuButton/MenuButton.stories.d.ts +6 -6
  302. package/jsx/core/MenuButton/MenuButton.stories.d.ts.map +1 -1
  303. package/jsx/core/MenuButton/MenuButton.stories.jsx.map +1 -1
  304. package/jsx/core/Modal/Modal.mocks.d.ts.map +1 -1
  305. package/jsx/core/Modal/Modal.mocks.jsx +3 -3
  306. package/jsx/core/Modal/Modal.mocks.jsx.map +1 -1
  307. package/jsx/core/Modal/Modal.stories.d.ts +10 -5
  308. package/jsx/core/Modal/Modal.stories.d.ts.map +1 -1
  309. package/jsx/core/Modal/Modal.stories.jsx +34 -43
  310. package/jsx/core/Modal/Modal.stories.jsx.map +1 -1
  311. package/jsx/core/MultiStepForm/MultiStepForm.mocks.d.ts +34 -0
  312. package/jsx/core/MultiStepForm/MultiStepForm.mocks.d.ts.map +1 -0
  313. package/jsx/core/MultiStepForm/MultiStepForm.mocks.jsx +124 -0
  314. package/jsx/core/MultiStepForm/MultiStepForm.mocks.jsx.map +1 -0
  315. package/jsx/core/MultiStepForm/MultiStepForm.stories.d.ts +5 -0
  316. package/jsx/core/MultiStepForm/MultiStepForm.stories.d.ts.map +1 -0
  317. package/jsx/core/MultiStepForm/MultiStepForm.stories.jsx +208 -0
  318. package/jsx/core/MultiStepForm/MultiStepForm.stories.jsx.map +1 -0
  319. package/jsx/core/Number/Number.stories.d.ts +11 -6
  320. package/jsx/core/Number/Number.stories.d.ts.map +1 -1
  321. package/jsx/core/Number/Number.stories.jsx +136 -34
  322. package/jsx/core/Number/Number.stories.jsx.map +1 -1
  323. package/jsx/core/PageTemplates/PageTemplates.mocks.d.ts +1 -1
  324. package/jsx/core/PageTemplates/PageTemplates.mocks.d.ts.map +1 -1
  325. package/jsx/core/PageTemplates/PageTemplates.stories.d.ts +5 -3
  326. package/jsx/core/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
  327. package/jsx/core/PageTemplates/PageTemplates.stories.jsx +85 -31
  328. package/jsx/core/PageTemplates/PageTemplates.stories.jsx.map +1 -1
  329. package/jsx/core/PageTemplates/PageTemplates.styles.d.ts +1 -0
  330. package/jsx/core/PageTemplates/PageTemplates.styles.d.ts.map +1 -1
  331. package/jsx/core/PageTemplates/PageTemplates.styles.js +9 -0
  332. package/jsx/core/PageTemplates/PageTemplates.styles.js.map +1 -1
  333. package/jsx/core/Phone/Phone.stories.d.ts +4 -1
  334. package/jsx/core/Phone/Phone.stories.d.ts.map +1 -1
  335. package/jsx/core/Phone/Phone.stories.jsx +12 -3
  336. package/jsx/core/Phone/Phone.stories.jsx.map +1 -1
  337. package/jsx/core/Popover/Popover.stories.d.ts +1 -1
  338. package/jsx/core/Popover/Popover.stories.d.ts.map +1 -1
  339. package/jsx/core/Popover/Popover.stories.jsx.map +1 -1
  340. package/jsx/core/RadioButton/RadioButton.stories.d.ts +6 -2
  341. package/jsx/core/RadioButton/RadioButton.stories.d.ts.map +1 -1
  342. package/jsx/core/RadioButton/RadioButton.stories.jsx +23 -6
  343. package/jsx/core/RadioButton/RadioButton.stories.jsx.map +1 -1
  344. package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts +7 -3
  345. package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts.map +1 -1
  346. package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.jsx +46 -5
  347. package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.jsx.map +1 -1
  348. package/jsx/core/Rating/Rating.stories.jsx +1 -1
  349. package/jsx/core/Rating/Rating.stories.jsx.map +1 -1
  350. package/jsx/core/SearchInput/SearchInput.mocks.d.ts +12 -0
  351. package/jsx/core/SearchInput/SearchInput.mocks.d.ts.map +1 -0
  352. package/jsx/core/SearchInput/SearchInput.mocks.js +25 -0
  353. package/jsx/core/SearchInput/SearchInput.mocks.js.map +1 -0
  354. package/jsx/core/SearchInput/SearchInput.stories.d.ts +1 -4
  355. package/jsx/core/SearchInput/SearchInput.stories.d.ts.map +1 -1
  356. package/jsx/core/SearchInput/SearchInput.stories.jsx +29 -17
  357. package/jsx/core/SearchInput/SearchInput.stories.jsx.map +1 -1
  358. package/jsx/core/Select/Select.stories.d.ts +1 -0
  359. package/jsx/core/Select/Select.stories.d.ts.map +1 -1
  360. package/jsx/core/Select/Select.stories.jsx +10 -3
  361. package/jsx/core/Select/Select.stories.jsx.map +1 -1
  362. package/jsx/core/Sentiment/Sentiment.stories.jsx +4 -4
  363. package/jsx/core/Sentiment/Sentiment.stories.jsx.map +1 -1
  364. package/jsx/core/Slider/Slider.stories.d.ts +4 -3
  365. package/jsx/core/Slider/Slider.stories.d.ts.map +1 -1
  366. package/jsx/core/Slider/Slider.stories.jsx +1 -1
  367. package/jsx/core/Slider/Slider.stories.jsx.map +1 -1
  368. package/jsx/core/SummaryItem/SummaryItem.stories.d.ts +5 -5
  369. package/jsx/core/SummaryItem/SummaryItem.stories.d.ts.map +1 -1
  370. package/jsx/core/SummaryItem/SummaryItem.stories.jsx.map +1 -1
  371. package/jsx/core/SummaryList/SummaryList.stories.d.ts +2 -2
  372. package/jsx/core/SummaryList/SummaryList.stories.d.ts.map +1 -1
  373. package/jsx/core/SummaryList/SummaryList.stories.jsx.map +1 -1
  374. package/jsx/core/Table/Table.mocks.d.ts +6 -0
  375. package/jsx/core/Table/Table.mocks.d.ts.map +1 -1
  376. package/jsx/core/Table/Table.mocks.jsx +134 -0
  377. package/jsx/core/Table/Table.mocks.jsx.map +1 -1
  378. package/jsx/core/Table/Table.stories.jsx +2 -2
  379. package/jsx/core/Table/Table.stories.jsx.map +1 -1
  380. package/jsx/core/Tabs/Tabs.stories.d.ts +5 -2
  381. package/jsx/core/Tabs/Tabs.stories.d.ts.map +1 -1
  382. package/jsx/core/Tabs/Tabs.stories.jsx.map +1 -1
  383. package/jsx/core/TextArea/TextArea.stories.d.ts +4 -1
  384. package/jsx/core/TextArea/TextArea.stories.d.ts.map +1 -1
  385. package/jsx/core/TextArea/TextArea.stories.jsx +10 -3
  386. package/jsx/core/TextArea/TextArea.stories.jsx.map +1 -1
  387. package/jsx/core/Toaster/Toaster.stories.d.ts +2 -3
  388. package/jsx/core/Toaster/Toaster.stories.d.ts.map +1 -1
  389. package/jsx/core/Toaster/Toaster.stories.jsx +17 -12
  390. package/jsx/core/Toaster/Toaster.stories.jsx.map +1 -1
  391. package/jsx/core/Tooltip/Tooltip.stories.d.ts +3 -7
  392. package/jsx/core/Tooltip/Tooltip.stories.d.ts.map +1 -1
  393. package/jsx/core/Tooltip/Tooltip.stories.jsx.map +1 -1
  394. package/jsx/core/Tree/Tree.mocks.d.ts +1 -1
  395. package/jsx/core/Tree/Tree.mocks.d.ts.map +1 -1
  396. package/jsx/core/Tree/Tree.stories.d.ts +1 -2
  397. package/jsx/core/Tree/Tree.stories.d.ts.map +1 -1
  398. package/jsx/core/Tree/Tree.stories.jsx +2 -2
  399. package/jsx/core/Tree/Tree.stories.jsx.map +1 -1
  400. package/jsx/cs/Article/Article.stories.d.ts +4 -13
  401. package/jsx/cs/Article/Article.stories.d.ts.map +1 -1
  402. package/jsx/cs/Article/Article.stories.jsx.map +1 -1
  403. package/jsx/cs/ArticleList/ArticleList.stories.d.ts +4 -14
  404. package/jsx/cs/ArticleList/ArticleList.stories.d.ts.map +1 -1
  405. package/jsx/cs/ArticleList/ArticleList.stories.jsx +3 -2
  406. package/jsx/cs/ArticleList/ArticleList.stories.jsx.map +1 -1
  407. package/jsx/cs/CSCaseView/{CSCaseView.mocks.d.ts → CSAppShell.mocks.d.ts} +17 -1
  408. package/jsx/cs/CSCaseView/CSAppShell.mocks.d.ts.map +1 -0
  409. package/jsx/cs/CSCaseView/{CSCaseView.mocks.js → CSAppShell.mocks.jsx} +76 -1
  410. package/jsx/cs/CSCaseView/CSAppShell.mocks.jsx.map +1 -0
  411. package/jsx/cs/CSCaseView/CSAppShell.stories.d.ts +5 -37
  412. package/jsx/cs/CSCaseView/CSAppShell.stories.d.ts.map +1 -1
  413. package/jsx/cs/CSCaseView/CSAppShell.stories.jsx +27 -74
  414. package/jsx/cs/CSCaseView/CSAppShell.stories.jsx.map +1 -1
  415. package/jsx/cs/CallControlPanel/CallControlPanel.mocks.d.ts +6 -5
  416. package/jsx/cs/CallControlPanel/CallControlPanel.mocks.d.ts.map +1 -1
  417. package/jsx/cs/CallControlPanel/CallControlPanel.mocks.js +138 -10
  418. package/jsx/cs/CallControlPanel/CallControlPanel.mocks.js.map +1 -1
  419. package/jsx/cs/CallControlPanel/CallControlPanel.stories.d.ts +6 -3
  420. package/jsx/cs/CallControlPanel/CallControlPanel.stories.d.ts.map +1 -1
  421. package/jsx/cs/CallControlPanel/CallControlPanel.stories.jsx +142 -93
  422. package/jsx/cs/CallControlPanel/CallControlPanel.stories.jsx.map +1 -1
  423. package/jsx/cs/IntelligentGuidance/IntelligentGuidance.stories.d.ts +4 -11
  424. package/jsx/cs/IntelligentGuidance/IntelligentGuidance.stories.d.ts.map +1 -1
  425. package/jsx/cs/IntelligentGuidance/IntelligentGuidance.stories.jsx +11 -11
  426. package/jsx/cs/IntelligentGuidance/IntelligentGuidance.stories.jsx.map +1 -1
  427. package/jsx/cs/InteractionNotification/InteractionNotification.stories.d.ts +7 -6
  428. package/jsx/cs/InteractionNotification/InteractionNotification.stories.d.ts.map +1 -1
  429. package/jsx/cs/InteractionNotification/InteractionNotification.stories.jsx +13 -5
  430. package/jsx/cs/InteractionNotification/InteractionNotification.stories.jsx.map +1 -1
  431. package/jsx/cs/InteractionTimer/InteractionTimer.mocks.d.ts +11 -0
  432. package/jsx/cs/InteractionTimer/InteractionTimer.mocks.d.ts.map +1 -0
  433. package/jsx/cs/InteractionTimer/InteractionTimer.mocks.js +29 -0
  434. package/jsx/cs/InteractionTimer/InteractionTimer.mocks.js.map +1 -0
  435. package/jsx/cs/InteractionTimer/InteractionTimer.stories.d.ts +3 -7
  436. package/jsx/cs/InteractionTimer/InteractionTimer.stories.d.ts.map +1 -1
  437. package/jsx/cs/InteractionTimer/InteractionTimer.stories.jsx +38 -43
  438. package/jsx/cs/InteractionTimer/InteractionTimer.stories.jsx.map +1 -1
  439. package/jsx/cs/TaskManager/TaskManager.mocks.d.ts +18 -0
  440. package/jsx/cs/TaskManager/TaskManager.mocks.d.ts.map +1 -1
  441. package/jsx/cs/TaskManager/TaskManager.mocks.js +93 -0
  442. package/jsx/cs/TaskManager/TaskManager.mocks.js.map +1 -1
  443. package/jsx/cs/TaskManager/TaskManager.stories.d.ts +8 -6
  444. package/jsx/cs/TaskManager/TaskManager.stories.d.ts.map +1 -1
  445. package/jsx/cs/TaskManager/TaskManager.stories.jsx +116 -49
  446. package/jsx/cs/TaskManager/TaskManager.stories.jsx.map +1 -1
  447. package/jsx/cs/TaskManager/TaskManager.styles.d.ts +3 -0
  448. package/jsx/cs/TaskManager/TaskManager.styles.d.ts.map +1 -0
  449. package/jsx/cs/TaskManager/TaskManager.styles.js +9 -0
  450. package/jsx/cs/TaskManager/TaskManager.styles.js.map +1 -0
  451. package/jsx/dnd/DragDropList/DragDropList.mocks.d.ts +15 -0
  452. package/jsx/dnd/DragDropList/DragDropList.mocks.d.ts.map +1 -0
  453. package/jsx/dnd/DragDropList/DragDropList.mocks.jsx +33 -0
  454. package/jsx/dnd/DragDropList/DragDropList.mocks.jsx.map +1 -0
  455. package/jsx/dnd/DragDropList/DragDropList.stories.d.ts +8 -9
  456. package/jsx/dnd/DragDropList/DragDropList.stories.d.ts.map +1 -1
  457. package/jsx/dnd/DragDropList/DragDropList.stories.jsx +14 -78
  458. package/jsx/dnd/DragDropList/DragDropList.stories.jsx.map +1 -1
  459. package/jsx/dnd/DragDropList/DragDropList.styles.d.ts +6 -0
  460. package/jsx/dnd/DragDropList/DragDropList.styles.d.ts.map +1 -0
  461. package/jsx/dnd/DragDropList/DragDropList.styles.js +32 -0
  462. package/jsx/dnd/DragDropList/DragDropList.styles.js.map +1 -0
  463. package/jsx/dnd/StandardDragDropList/Demo.d.ts +7 -0
  464. package/jsx/dnd/StandardDragDropList/Demo.d.ts.map +1 -0
  465. package/jsx/dnd/StandardDragDropList/Demo.jsx +158 -0
  466. package/jsx/dnd/StandardDragDropList/Demo.jsx.map +1 -0
  467. package/jsx/dnd/StandardDragDropList/GroupConfig.d.ts +10 -0
  468. package/jsx/dnd/StandardDragDropList/GroupConfig.d.ts.map +1 -0
  469. package/jsx/dnd/StandardDragDropList/GroupConfig.jsx +26 -0
  470. package/jsx/dnd/StandardDragDropList/GroupConfig.jsx.map +1 -0
  471. package/jsx/dnd/StandardDragDropList/ItemConfig.d.ts +12 -0
  472. package/jsx/dnd/StandardDragDropList/ItemConfig.d.ts.map +1 -0
  473. package/jsx/dnd/StandardDragDropList/ItemConfig.jsx +21 -0
  474. package/jsx/dnd/StandardDragDropList/ItemConfig.jsx.map +1 -0
  475. package/jsx/dnd/StandardDragDropList/Popover.d.ts +14 -0
  476. package/jsx/dnd/StandardDragDropList/Popover.d.ts.map +1 -0
  477. package/jsx/dnd/StandardDragDropList/Popover.jsx +51 -0
  478. package/jsx/dnd/StandardDragDropList/Popover.jsx.map +1 -0
  479. package/jsx/dnd/StandardDragDropList/SelectionMenu.d.ts +16 -0
  480. package/jsx/dnd/StandardDragDropList/SelectionMenu.d.ts.map +1 -0
  481. package/jsx/dnd/StandardDragDropList/SelectionMenu.jsx +104 -0
  482. package/jsx/dnd/StandardDragDropList/SelectionMenu.jsx.map +1 -0
  483. package/jsx/dnd/StandardDragDropList/StandardDragDropList.stories.d.ts +5 -0
  484. package/jsx/dnd/StandardDragDropList/StandardDragDropList.stories.d.ts.map +1 -0
  485. package/jsx/dnd/StandardDragDropList/StandardDragDropList.stories.jsx +15 -0
  486. package/jsx/dnd/StandardDragDropList/StandardDragDropList.stories.jsx.map +1 -0
  487. package/jsx/dnd/StandardDragDropList/mockData.d.ts +26 -0
  488. package/jsx/dnd/StandardDragDropList/mockData.d.ts.map +1 -0
  489. package/jsx/dnd/StandardDragDropList/mockData.js +77 -0
  490. package/jsx/dnd/StandardDragDropList/mockData.js.map +1 -0
  491. package/jsx/rte/Editor/Editor.mocks.d.ts +309 -0
  492. package/jsx/rte/Editor/Editor.mocks.d.ts.map +1 -0
  493. package/jsx/rte/Editor/Editor.mocks.jsx +23 -0
  494. package/jsx/rte/Editor/Editor.mocks.jsx.map +1 -0
  495. package/jsx/rte/Editor/Editor.stories.d.ts +7 -8
  496. package/jsx/rte/Editor/Editor.stories.d.ts.map +1 -1
  497. package/jsx/rte/Editor/Editor.stories.jsx +3 -21
  498. package/jsx/rte/Editor/Editor.stories.jsx.map +1 -1
  499. package/jsx/rte/RichTextEditor/RichTextEditor.mocks.jsx.map +1 -1
  500. package/jsx/rte/RichTextEditor/RichTextEditor.stories.d.ts +6 -4
  501. package/jsx/rte/RichTextEditor/RichTextEditor.stories.d.ts.map +1 -1
  502. package/jsx/rte/RichTextEditor/RichTextEditor.stories.jsx +11 -4
  503. package/jsx/rte/RichTextEditor/RichTextEditor.stories.jsx.map +1 -1
  504. package/jsx/rte/RichTextEditor/RichTextViewer.stories.d.ts +5 -5
  505. package/jsx/rte/RichTextEditor/RichTextViewer.stories.d.ts.map +1 -1
  506. package/jsx/rte/RichTextEditor/RichTextViewer.stories.jsx +19 -2
  507. package/jsx/rte/RichTextEditor/RichTextViewer.stories.jsx.map +1 -1
  508. package/jsx/social/Chat/Chat.mocks.d.ts +1 -1
  509. package/jsx/social/Chat/Chat.mocks.js +0 -1
  510. package/jsx/social/Chat/Chat.mocks.js.map +1 -1
  511. package/jsx/social/Chat/Chat.stories.d.ts +6 -7
  512. package/jsx/social/Chat/Chat.stories.d.ts.map +1 -1
  513. package/jsx/social/Chat/Chat.stories.jsx +7 -5
  514. package/jsx/social/Chat/Chat.stories.jsx.map +1 -1
  515. package/jsx/social/Chat/RepeatingView.mocks.d.ts +14 -0
  516. package/jsx/social/Chat/RepeatingView.mocks.d.ts.map +1 -0
  517. package/jsx/social/Chat/RepeatingView.mocks.js +11 -0
  518. package/jsx/social/Chat/RepeatingView.mocks.js.map +1 -0
  519. package/jsx/social/Chat/RepeatingView.stories.d.ts +6 -17
  520. package/jsx/social/Chat/RepeatingView.stories.d.ts.map +1 -1
  521. package/jsx/social/Chat/RepeatingView.stories.jsx +16 -46
  522. package/jsx/social/Chat/RepeatingView.stories.jsx.map +1 -1
  523. package/jsx/social/Chat/RepeatingView.styles.d.ts +2 -0
  524. package/jsx/social/Chat/RepeatingView.styles.d.ts.map +1 -0
  525. package/jsx/social/Chat/RepeatingView.styles.js +22 -0
  526. package/jsx/social/Chat/RepeatingView.styles.js.map +1 -0
  527. package/jsx/social/Email/Email.mocks.d.ts +224 -3
  528. package/jsx/social/Email/Email.mocks.d.ts.map +1 -1
  529. package/jsx/social/Email/Email.mocks.jsx +948 -0
  530. package/jsx/social/Email/Email.mocks.jsx.map +1 -0
  531. package/jsx/social/Email/Email.stories.d.ts +40 -26
  532. package/jsx/social/Email/Email.stories.d.ts.map +1 -1
  533. package/jsx/social/Email/Email.stories.jsx +670 -617
  534. package/jsx/social/Email/Email.stories.jsx.map +1 -1
  535. package/jsx/social/Email/Email.styles.d.ts +3 -0
  536. package/jsx/social/Email/Email.styles.d.ts.map +1 -0
  537. package/jsx/social/Email/Email.styles.js +11 -0
  538. package/jsx/social/Email/Email.styles.js.map +1 -0
  539. package/jsx/social/Feed/Feed.mocks.d.ts +13 -18
  540. package/jsx/social/Feed/Feed.mocks.d.ts.map +1 -1
  541. package/jsx/social/Feed/Feed.mocks.jsx +10 -5
  542. package/jsx/social/Feed/Feed.mocks.jsx.map +1 -1
  543. package/jsx/social/Feed/Feed.stories.d.ts +8 -12
  544. package/jsx/social/Feed/Feed.stories.d.ts.map +1 -1
  545. package/jsx/social/Feed/Feed.stories.jsx +29 -23
  546. package/jsx/social/Feed/Feed.stories.jsx.map +1 -1
  547. package/jsx/social/Feed/FeedNewPost.stories.d.ts +7 -14
  548. package/jsx/social/Feed/FeedNewPost.stories.d.ts.map +1 -1
  549. package/jsx/social/Feed/FeedNewPost.stories.jsx +3 -2
  550. package/jsx/social/Feed/FeedNewPost.stories.jsx.map +1 -1
  551. package/jsx/social/Feed/FeedPost.stories.d.ts +4 -5
  552. package/jsx/social/Feed/FeedPost.stories.d.ts.map +1 -1
  553. package/jsx/social/Feed/FeedPost.stories.jsx +40 -29
  554. package/jsx/social/Feed/FeedPost.stories.jsx.map +1 -1
  555. package/jsx/social/Feed/FeedReply.stories.d.ts +10 -10
  556. package/jsx/social/Feed/FeedReply.stories.d.ts.map +1 -1
  557. package/jsx/social/Feed/FeedReply.stories.jsx +27 -22
  558. package/jsx/social/Feed/FeedReply.stories.jsx.map +1 -1
  559. package/jsx/social/Feed/FeedReplyInput.stories.d.ts +7 -12
  560. package/jsx/social/Feed/FeedReplyInput.stories.d.ts.map +1 -1
  561. package/jsx/social/Feed/FeedReplyInput.stories.jsx +3 -2
  562. package/jsx/social/Feed/FeedReplyInput.stories.jsx.map +1 -1
  563. package/jsx/tools/Clipboard/Clipboard.mocks.d.ts +6 -0
  564. package/jsx/tools/Clipboard/Clipboard.mocks.d.ts.map +1 -0
  565. package/jsx/tools/Clipboard/Clipboard.mocks.jsx +82 -0
  566. package/jsx/tools/Clipboard/Clipboard.mocks.jsx.map +1 -0
  567. package/jsx/tools/Clipboard/Clipboard.stories.d.ts +6 -0
  568. package/jsx/tools/Clipboard/Clipboard.stories.d.ts.map +1 -0
  569. package/jsx/tools/Clipboard/Clipboard.stories.jsx +68 -0
  570. package/jsx/tools/Clipboard/Clipboard.stories.jsx.map +1 -0
  571. package/jsx/tools/PreviewShell/PreviewShell.mocks.d.ts +9 -0
  572. package/jsx/tools/PreviewShell/PreviewShell.mocks.d.ts.map +1 -0
  573. package/jsx/tools/PreviewShell/PreviewShell.mocks.jsx +58 -0
  574. package/jsx/tools/PreviewShell/PreviewShell.mocks.jsx.map +1 -0
  575. package/jsx/tools/PreviewShell/PreviewShell.stories.d.ts +15 -0
  576. package/jsx/tools/PreviewShell/PreviewShell.stories.d.ts.map +1 -0
  577. package/jsx/tools/PreviewShell/PreviewShell.stories.jsx +107 -0
  578. package/jsx/tools/PreviewShell/PreviewShell.stories.jsx.map +1 -0
  579. package/jsx/tools/PreviewShell/PreviewShell.styles.d.ts +3 -0
  580. package/jsx/tools/PreviewShell/PreviewShell.styles.d.ts.map +1 -0
  581. package/jsx/tools/PreviewShell/PreviewShell.styles.js +7 -0
  582. package/jsx/tools/PreviewShell/PreviewShell.styles.js.map +1 -0
  583. package/jsx/work/AppAnnouncement/AppAnnouncement.stories.d.ts.map +1 -1
  584. package/jsx/work/AppAnnouncement/AppAnnouncement.stories.jsx +3 -1
  585. package/jsx/work/AppAnnouncement/AppAnnouncement.stories.jsx.map +1 -1
  586. package/jsx/work/CaseView/CaseView.mocks.d.ts.map +1 -1
  587. package/jsx/work/CaseView/CaseView.mocks.jsx +1 -1
  588. package/jsx/work/CaseView/CaseView.mocks.jsx.map +1 -1
  589. package/jsx/work/CaseView/CaseView.stories.d.ts +4 -11
  590. package/jsx/work/CaseView/CaseView.stories.d.ts.map +1 -1
  591. package/jsx/work/CaseView/CaseView.stories.jsx +18 -10
  592. package/jsx/work/CaseView/CaseView.stories.jsx.map +1 -1
  593. package/jsx/work/CaseView/Details.mocks.d.ts.map +1 -1
  594. package/jsx/work/CaseView/Details.mocks.jsx +1 -1
  595. package/jsx/work/CaseView/Details.mocks.jsx.map +1 -1
  596. package/jsx/work/CaseView/MobileCaseView.stories.d.ts +3 -9
  597. package/jsx/work/CaseView/MobileCaseView.stories.d.ts.map +1 -1
  598. package/jsx/work/CaseView/MobileCaseView.stories.jsx.map +1 -1
  599. package/jsx/work/CaseView/Pulse.mocks.d.ts +4 -3
  600. package/jsx/work/CaseView/Pulse.mocks.d.ts.map +1 -1
  601. package/jsx/work/CaseView/Pulse.mocks.jsx +3 -3
  602. package/jsx/work/CaseView/Pulse.mocks.jsx.map +1 -1
  603. package/jsx/work/ConfigurableLayout/ConfigurableLayout.mocks.d.ts +45 -0
  604. package/jsx/work/ConfigurableLayout/ConfigurableLayout.mocks.d.ts.map +1 -0
  605. package/jsx/work/ConfigurableLayout/ConfigurableLayout.mocks.jsx +166 -0
  606. package/jsx/work/ConfigurableLayout/ConfigurableLayout.mocks.jsx.map +1 -0
  607. package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts +3 -8
  608. package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts.map +1 -1
  609. package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.jsx +4 -175
  610. package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.jsx.map +1 -1
  611. package/jsx/work/ConfigurableLayout/ConfigurableLayout.styles.d.ts +4 -0
  612. package/jsx/work/ConfigurableLayout/ConfigurableLayout.styles.d.ts.map +1 -0
  613. package/jsx/work/ConfigurableLayout/ConfigurableLayout.styles.js +11 -0
  614. package/jsx/work/ConfigurableLayout/ConfigurableLayout.styles.js.map +1 -0
  615. package/jsx/work/Confirmation/Confirmation.stories.d.ts +3 -0
  616. package/jsx/work/Confirmation/Confirmation.stories.d.ts.map +1 -1
  617. package/jsx/work/Confirmation/Confirmation.stories.jsx +13 -9
  618. package/jsx/work/Confirmation/Confirmation.stories.jsx.map +1 -1
  619. package/jsx/work/Details/Details.stories.d.ts.map +1 -1
  620. package/jsx/work/Details/Details.stories.jsx +60 -59
  621. package/jsx/work/Details/Details.stories.jsx.map +1 -1
  622. package/jsx/work/Glimpse/Glimpse.stories.d.ts.map +1 -1
  623. package/jsx/work/Glimpse/Glimpse.stories.jsx.map +1 -1
  624. package/jsx/work/SearchResults/SearchResults.stories.d.ts +1 -0
  625. package/jsx/work/SearchResults/SearchResults.stories.d.ts.map +1 -1
  626. package/jsx/work/SearchResults/SearchResults.stories.jsx +11 -9
  627. package/jsx/work/SearchResults/SearchResults.stories.jsx.map +1 -1
  628. package/jsx/work/Stages/Stages.mocks.d.ts +14 -0
  629. package/jsx/work/Stages/Stages.mocks.d.ts.map +1 -0
  630. package/jsx/work/Stages/Stages.mocks.jsx +40 -0
  631. package/jsx/work/Stages/Stages.mocks.jsx.map +1 -0
  632. package/jsx/work/Stages/Stages.stories.d.ts +1 -1
  633. package/jsx/work/Stages/Stages.stories.d.ts.map +1 -1
  634. package/jsx/work/Stages/Stages.stories.jsx +12 -46
  635. package/jsx/work/Stages/Stages.stories.jsx.map +1 -1
  636. package/jsx/work/Stakeholders/Stakeholders.mocks.d.ts.map +1 -1
  637. package/jsx/work/Stakeholders/Stakeholders.mocks.jsx +2 -2
  638. package/jsx/work/Stakeholders/Stakeholders.mocks.jsx.map +1 -1
  639. package/jsx/work/Stakeholders/Stakeholders.stories.d.ts +2 -3
  640. package/jsx/work/Stakeholders/Stakeholders.stories.d.ts.map +1 -1
  641. package/jsx/work/Stakeholders/Stakeholders.stories.jsx +1 -0
  642. package/jsx/work/Stakeholders/Stakeholders.stories.jsx.map +1 -1
  643. package/jsx/work/Tasks/TaskList.stories.d.ts.map +1 -1
  644. package/jsx/work/Tasks/TaskList.stories.jsx +3 -1
  645. package/jsx/work/Tasks/TaskList.stories.jsx.map +1 -1
  646. package/jsx/work/Tasks/Tasks.stories.d.ts +4 -0
  647. package/jsx/work/Tasks/Tasks.stories.d.ts.map +1 -1
  648. package/jsx/work/Tasks/Tasks.stories.jsx +21 -11
  649. package/jsx/work/Tasks/Tasks.stories.jsx.map +1 -1
  650. package/jsx/work/Timeline/Timeline.stories.d.ts +1 -0
  651. package/jsx/work/Timeline/Timeline.stories.d.ts.map +1 -1
  652. package/jsx/work/Timeline/Timeline.stories.jsx +29 -1
  653. package/jsx/work/Timeline/Timeline.stories.jsx.map +1 -1
  654. package/jsx/wss/AppShell/AppShell.mocks.d.ts +24 -0
  655. package/jsx/wss/AppShell/AppShell.mocks.d.ts.map +1 -0
  656. package/jsx/wss/AppShell/AppShell.mocks.jsx +64 -0
  657. package/jsx/wss/AppShell/AppShell.mocks.jsx.map +1 -0
  658. package/jsx/wss/AppShell/AppShell.stories.d.ts +17 -0
  659. package/jsx/wss/AppShell/AppShell.stories.d.ts.map +1 -0
  660. package/jsx/wss/AppShell/AppShell.stories.jsx +76 -0
  661. package/jsx/wss/AppShell/AppShell.stories.jsx.map +1 -0
  662. package/jsx/wss/AppShell/AppShell.styles.d.ts +2 -0
  663. package/jsx/wss/AppShell/AppShell.styles.d.ts.map +1 -0
  664. package/jsx/wss/AppShell/AppShell.styles.js +5 -0
  665. package/jsx/wss/AppShell/AppShell.styles.js.map +1 -0
  666. package/jsx/wss/QuickCreate/QuickCreate.stories.d.ts +10 -0
  667. package/jsx/wss/QuickCreate/QuickCreate.stories.d.ts.map +1 -0
  668. package/jsx/wss/QuickCreate/QuickCreate.stories.jsx +37 -0
  669. package/jsx/wss/QuickCreate/QuickCreate.stories.jsx.map +1 -0
  670. package/lib/build/AppHeader/AppHeader.stories.d.ts +1 -1
  671. package/lib/build/AppHeader/AppHeader.stories.d.ts.map +1 -1
  672. package/lib/build/AppHeader/AppHeader.stories.js +100 -75
  673. package/lib/build/AppHeader/AppHeader.stories.js.map +1 -1
  674. package/lib/build/AppShell/AppShell.mocks.d.ts +19 -0
  675. package/lib/build/AppShell/AppShell.mocks.d.ts.map +1 -1
  676. package/lib/build/AppShell/AppShell.mocks.js +32 -0
  677. package/lib/build/AppShell/AppShell.mocks.js.map +1 -1
  678. package/lib/build/AppShell/AppShell.stories.d.ts +2 -2
  679. package/lib/build/AppShell/AppShell.stories.d.ts.map +1 -1
  680. package/lib/build/AppShell/AppShell.stories.js +22 -45
  681. package/lib/build/AppShell/AppShell.stories.js.map +1 -1
  682. package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts +8 -0
  683. package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts.map +1 -0
  684. package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.js +85 -0
  685. package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.js.map +1 -0
  686. package/lib/build/DynamicContentEditor/FieldSelector.d.ts +14 -0
  687. package/lib/build/DynamicContentEditor/FieldSelector.d.ts.map +1 -0
  688. package/lib/build/DynamicContentEditor/FieldSelector.js +81 -0
  689. package/lib/build/DynamicContentEditor/FieldSelector.js.map +1 -0
  690. package/lib/build/ExpressionBuilder/ExpressionBuilder.mocks.d.ts +11 -0
  691. package/lib/build/ExpressionBuilder/ExpressionBuilder.mocks.d.ts.map +1 -0
  692. package/lib/build/ExpressionBuilder/ExpressionBuilder.mocks.js +136 -0
  693. package/lib/build/ExpressionBuilder/ExpressionBuilder.mocks.js.map +1 -0
  694. package/lib/build/ExpressionBuilder/ExpressionBuilder.stories.d.ts +18 -0
  695. package/lib/build/ExpressionBuilder/ExpressionBuilder.stories.d.ts.map +1 -0
  696. package/lib/build/ExpressionBuilder/ExpressionBuilder.stories.js +66 -0
  697. package/lib/build/ExpressionBuilder/ExpressionBuilder.stories.js.map +1 -0
  698. package/lib/build/FlowModeller/AddNodeUtils.mocks.d.ts +4 -4
  699. package/lib/build/FlowModeller/AddNodeUtils.mocks.d.ts.map +1 -1
  700. package/lib/build/FlowModeller/AddNodeUtils.mocks.js.map +1 -1
  701. package/lib/build/FlowModeller/FlowModeller.mocks.d.ts +21 -2
  702. package/lib/build/FlowModeller/FlowModeller.mocks.d.ts.map +1 -1
  703. package/lib/build/FlowModeller/FlowModeller.mocks.js +158 -33
  704. package/lib/build/FlowModeller/FlowModeller.mocks.js.map +1 -1
  705. package/lib/build/FlowModeller/FlowModeller.stories.d.ts +9 -10
  706. package/lib/build/FlowModeller/FlowModeller.stories.d.ts.map +1 -1
  707. package/lib/build/FlowModeller/FlowModeller.stories.js +254 -135
  708. package/lib/build/FlowModeller/FlowModeller.stories.js.map +1 -1
  709. package/lib/build/FlowModeller/FlowModeller.styles.d.ts +2 -0
  710. package/lib/build/FlowModeller/FlowModeller.styles.d.ts.map +1 -0
  711. package/lib/build/FlowModeller/FlowModeller.styles.js +8 -0
  712. package/lib/build/FlowModeller/FlowModeller.styles.js.map +1 -0
  713. package/lib/build/ItemLibrary/LibraryPicker.mocks.d.ts +1 -5
  714. package/lib/build/ItemLibrary/LibraryPicker.mocks.d.ts.map +1 -1
  715. package/lib/build/ItemLibrary/LibraryPicker.mocks.js +5 -10
  716. package/lib/build/ItemLibrary/LibraryPicker.mocks.js.map +1 -1
  717. package/lib/build/ItemLibrary/LibraryPicker.stories.d.ts +3 -7
  718. package/lib/build/ItemLibrary/LibraryPicker.stories.d.ts.map +1 -1
  719. package/lib/build/ItemLibrary/LibraryPicker.stories.js +1 -1
  720. package/lib/build/ItemLibrary/LibraryPicker.stories.js.map +1 -1
  721. package/lib/build/LifeCycle/LifeCycle.mocks.d.ts +3 -0
  722. package/lib/build/LifeCycle/LifeCycle.mocks.d.ts.map +1 -1
  723. package/lib/build/LifeCycle/LifeCycle.mocks.js +146 -18
  724. package/lib/build/LifeCycle/LifeCycle.mocks.js.map +1 -1
  725. package/lib/build/LifeCycle/LifeCycle.stories.d.ts +6 -9
  726. package/lib/build/LifeCycle/LifeCycle.stories.d.ts.map +1 -1
  727. package/lib/build/LifeCycle/LifeCycle.stories.js +115 -31
  728. package/lib/build/LifeCycle/LifeCycle.stories.js.map +1 -1
  729. package/lib/build/LifeCycle/utils.d.ts.map +1 -1
  730. package/lib/build/LifeCycle/utils.js +5 -4
  731. package/lib/build/LifeCycle/utils.js.map +1 -1
  732. package/lib/build/ObjectSelect/ObjectSelect.mocks.d.ts +63 -0
  733. package/lib/build/ObjectSelect/ObjectSelect.mocks.d.ts.map +1 -0
  734. package/lib/build/ObjectSelect/ObjectSelect.mocks.js +368 -0
  735. package/lib/build/ObjectSelect/ObjectSelect.mocks.js.map +1 -0
  736. package/lib/build/ObjectSelect/ObjectSelect.stories.d.ts +8 -0
  737. package/lib/build/ObjectSelect/ObjectSelect.stories.d.ts.map +1 -0
  738. package/lib/build/ObjectSelect/ObjectSelect.stories.js +229 -0
  739. package/lib/build/ObjectSelect/ObjectSelect.stories.js.map +1 -0
  740. package/lib/build/ObjectSelect/ObjectSelect.styles.d.ts +4 -0
  741. package/lib/build/ObjectSelect/ObjectSelect.styles.d.ts.map +1 -0
  742. package/lib/build/ObjectSelect/ObjectSelect.styles.js +27 -0
  743. package/lib/build/ObjectSelect/ObjectSelect.styles.js.map +1 -0
  744. package/lib/build/PageTemplates/GalleryPage.mocks.d.ts +46 -0
  745. package/lib/build/PageTemplates/GalleryPage.mocks.d.ts.map +1 -0
  746. package/lib/build/PageTemplates/GalleryPage.mocks.js +77 -0
  747. package/lib/build/PageTemplates/GalleryPage.mocks.js.map +1 -0
  748. package/lib/build/PageTemplates/GalleryPage.stories.d.ts.map +1 -1
  749. package/lib/build/PageTemplates/GalleryPage.stories.js +14 -92
  750. package/lib/build/PageTemplates/GalleryPage.stories.js.map +1 -1
  751. package/lib/build/PageTemplates/PageTemplates.mocks.d.ts +18 -0
  752. package/lib/build/PageTemplates/PageTemplates.mocks.d.ts.map +1 -0
  753. package/lib/build/PageTemplates/PageTemplates.mocks.js +248 -0
  754. package/lib/build/PageTemplates/PageTemplates.mocks.js.map +1 -0
  755. package/lib/build/PageTemplates/PageTemplates.stories.d.ts +4 -9
  756. package/lib/build/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
  757. package/lib/build/PageTemplates/PageTemplates.stories.js +115 -253
  758. package/lib/build/PageTemplates/PageTemplates.stories.js.map +1 -1
  759. package/lib/build/Workbench/Workbench.stories.d.ts +1 -0
  760. package/lib/build/Workbench/Workbench.stories.d.ts.map +1 -1
  761. package/lib/build/Workbench/Workbench.stories.js +210 -29
  762. package/lib/build/Workbench/Workbench.stories.js.map +1 -1
  763. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.mocks.d.ts +3 -0
  764. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.mocks.d.ts.map +1 -0
  765. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.mocks.js +15 -0
  766. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.mocks.js.map +1 -0
  767. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts +17 -8
  768. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts.map +1 -1
  769. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.js +78 -62
  770. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.js.map +1 -1
  771. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.styles.d.ts +5 -0
  772. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.styles.d.ts.map +1 -0
  773. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.styles.js +15 -0
  774. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.styles.js.map +1 -0
  775. package/lib/condition-builder/ConditionBuilder/props.mock.d.ts.map +1 -1
  776. package/lib/condition-builder/ConditionBuilder/props.mock.js +132 -31
  777. package/lib/condition-builder/ConditionBuilder/props.mock.js.map +1 -1
  778. package/lib/condition-builder/ConditionInput/ConditionInput.stories.d.ts +10 -0
  779. package/lib/condition-builder/ConditionInput/ConditionInput.stories.d.ts.map +1 -0
  780. package/lib/condition-builder/ConditionInput/ConditionInput.stories.js +41 -0
  781. package/lib/condition-builder/ConditionInput/ConditionInput.stories.js.map +1 -0
  782. package/lib/condition-builder/PromotedFilters/PromotedFilters.mocks.d.ts +4 -0
  783. package/lib/condition-builder/PromotedFilters/PromotedFilters.mocks.d.ts.map +1 -0
  784. package/lib/condition-builder/PromotedFilters/PromotedFilters.mocks.js +74 -0
  785. package/lib/condition-builder/PromotedFilters/PromotedFilters.mocks.js.map +1 -0
  786. package/lib/condition-builder/PromotedFilters/PromotedFilters.stories.d.ts +8 -0
  787. package/lib/condition-builder/PromotedFilters/PromotedFilters.stories.d.ts.map +1 -0
  788. package/lib/condition-builder/PromotedFilters/PromotedFilters.stories.js +24 -0
  789. package/lib/condition-builder/PromotedFilters/PromotedFilters.stories.js.map +1 -0
  790. package/lib/condition-builder/PromotedFilters/PromotedFilters.styles.d.ts +9 -0
  791. package/lib/condition-builder/PromotedFilters/PromotedFilters.styles.d.ts.map +1 -0
  792. package/lib/condition-builder/PromotedFilters/PromotedFilters.styles.js +35 -0
  793. package/lib/condition-builder/PromotedFilters/PromotedFilters.styles.js.map +1 -0
  794. package/lib/core/AdditionalInfo/AdditionalInfo.stories.d.ts +9 -0
  795. package/lib/core/AdditionalInfo/AdditionalInfo.stories.d.ts.map +1 -0
  796. package/lib/core/AdditionalInfo/AdditionalInfo.stories.js +16 -0
  797. package/lib/core/AdditionalInfo/AdditionalInfo.stories.js.map +1 -0
  798. package/lib/core/AppShell/AppShell.mocks.d.ts +1 -1
  799. package/lib/core/AppShell/AppShell.mocks.js +10 -10
  800. package/lib/core/AppShell/AppShell.mocks.js.map +1 -1
  801. package/lib/core/AppShell/AppShell.stories.d.ts +2 -0
  802. package/lib/core/AppShell/AppShell.stories.d.ts.map +1 -1
  803. package/lib/core/AppShell/AppShell.stories.js +52 -15
  804. package/lib/core/AppShell/AppShell.stories.js.map +1 -1
  805. package/lib/core/Avatar/Avatar.stories.js +6 -6
  806. package/lib/core/Avatar/Avatar.stories.js.map +1 -1
  807. package/lib/core/Backdrop/Backdrop.stories.js +2 -2
  808. package/lib/core/Backdrop/Backdrop.stories.js.map +1 -1
  809. package/lib/core/Badges/Alert.stories.js +1 -1
  810. package/lib/core/Badges/Alert.stories.js.map +1 -1
  811. package/lib/core/Badges/Count.stories.js +1 -1
  812. package/lib/core/Badges/Count.stories.js.map +1 -1
  813. package/lib/core/Badges/Keyboard.stories.d.ts +6 -0
  814. package/lib/core/Badges/Keyboard.stories.d.ts.map +1 -0
  815. package/lib/core/Badges/Keyboard.stories.js +16 -0
  816. package/lib/core/Badges/Keyboard.stories.js.map +1 -0
  817. package/lib/core/Badges/Selection.stories.d.ts +2 -3
  818. package/lib/core/Badges/Selection.stories.d.ts.map +1 -1
  819. package/lib/core/Badges/Selection.stories.js +1 -1
  820. package/lib/core/Badges/Selection.stories.js.map +1 -1
  821. package/lib/core/Badges/Status.stories.js +2 -2
  822. package/lib/core/Badges/Status.stories.js.map +1 -1
  823. package/lib/core/Badges/Tag.stories.d.ts +2 -3
  824. package/lib/core/Badges/Tag.stories.d.ts.map +1 -1
  825. package/lib/core/Badges/Tag.stories.js +1 -1
  826. package/lib/core/Badges/Tag.stories.js.map +1 -1
  827. package/lib/core/Banner/Banner.mocks.js +1 -1
  828. package/lib/core/Banner/Banner.mocks.js.map +1 -1
  829. package/lib/core/Banner/Banner.stories.d.ts +7 -18
  830. package/lib/core/Banner/Banner.stories.d.ts.map +1 -1
  831. package/lib/core/Banner/Banner.stories.js +13 -13
  832. package/lib/core/Banner/Banner.stories.js.map +1 -1
  833. package/lib/core/Boolean/BooleanDisplay.stories.js +1 -1
  834. package/lib/core/Boolean/BooleanDisplay.stories.js.map +1 -1
  835. package/lib/core/Breadcrumbs/Breadcrumbs.stories.d.ts +3 -4
  836. package/lib/core/Breadcrumbs/Breadcrumbs.stories.d.ts.map +1 -1
  837. package/lib/core/Breadcrumbs/Breadcrumbs.stories.js +2 -2
  838. package/lib/core/Breadcrumbs/Breadcrumbs.stories.js.map +1 -1
  839. package/lib/core/Button/Button.stories.d.ts +2 -3
  840. package/lib/core/Button/Button.stories.d.ts.map +1 -1
  841. package/lib/core/Button/Button.stories.js +8 -8
  842. package/lib/core/Button/Button.stories.js.map +1 -1
  843. package/lib/core/Card/Card.stories.d.ts +1 -2
  844. package/lib/core/Card/Card.stories.d.ts.map +1 -1
  845. package/lib/core/Card/Card.stories.js +5 -5
  846. package/lib/core/Card/Card.stories.js.map +1 -1
  847. package/lib/core/Checkbox/Checkbox.stories.d.ts +6 -2
  848. package/lib/core/Checkbox/Checkbox.stories.d.ts.map +1 -1
  849. package/lib/core/Checkbox/Checkbox.stories.js +27 -8
  850. package/lib/core/Checkbox/Checkbox.stories.js.map +1 -1
  851. package/lib/core/CheckboxGroup/CheckboxGroup.stories.d.ts +7 -3
  852. package/lib/core/CheckboxGroup/CheckboxGroup.stories.d.ts.map +1 -1
  853. package/lib/core/CheckboxGroup/CheckboxGroup.stories.js +41 -5
  854. package/lib/core/CheckboxGroup/CheckboxGroup.stories.js.map +1 -1
  855. package/lib/core/ColorPicker/ColorPicker.stories.d.ts +5 -3
  856. package/lib/core/ColorPicker/ColorPicker.stories.d.ts.map +1 -1
  857. package/lib/core/ColorPicker/ColorPicker.stories.js +17 -18
  858. package/lib/core/ColorPicker/ColorPicker.stories.js.map +1 -1
  859. package/lib/core/ColorPicker/ColorPicker.styles.d.ts +4 -0
  860. package/lib/core/ColorPicker/ColorPicker.styles.d.ts.map +1 -0
  861. package/lib/core/ColorPicker/ColorPicker.styles.js +11 -0
  862. package/lib/core/ColorPicker/ColorPicker.styles.js.map +1 -0
  863. package/lib/core/ComboBox/ComboBox.stories.d.ts +1 -0
  864. package/lib/core/ComboBox/ComboBox.stories.d.ts.map +1 -1
  865. package/lib/core/ComboBox/ComboBox.stories.js +46 -14
  866. package/lib/core/ComboBox/ComboBox.stories.js.map +1 -1
  867. package/lib/core/CompositeInput/CompositeInput.mocks.d.ts +8 -0
  868. package/lib/core/CompositeInput/CompositeInput.mocks.d.ts.map +1 -0
  869. package/lib/core/CompositeInput/CompositeInput.mocks.js +6 -0
  870. package/lib/core/CompositeInput/CompositeInput.mocks.js.map +1 -0
  871. package/lib/core/CompositeInput/CompositeInput.stories.d.ts +9 -0
  872. package/lib/core/CompositeInput/CompositeInput.stories.d.ts.map +1 -0
  873. package/lib/core/CompositeInput/CompositeInput.stories.js +55 -0
  874. package/lib/core/CompositeInput/CompositeInput.stories.js.map +1 -0
  875. package/lib/core/Configuration/Configuration.mocks.d.ts +7 -0
  876. package/lib/core/Configuration/Configuration.mocks.d.ts.map +1 -0
  877. package/lib/core/Configuration/Configuration.mocks.js +6 -0
  878. package/lib/core/Configuration/Configuration.mocks.js.map +1 -0
  879. package/lib/core/Configuration/Configuration.stories.d.ts +2 -3
  880. package/lib/core/Configuration/Configuration.stories.d.ts.map +1 -1
  881. package/lib/core/Configuration/Configuration.stories.js +14 -26
  882. package/lib/core/Configuration/Configuration.stories.js.map +1 -1
  883. package/lib/core/Configuration/Configuration.styles.d.ts +6 -0
  884. package/lib/core/Configuration/Configuration.styles.d.ts.map +1 -0
  885. package/lib/core/Configuration/Configuration.styles.js +12 -0
  886. package/lib/core/Configuration/Configuration.styles.js.map +1 -0
  887. package/lib/core/CreditCard/CreditCard.stories.d.ts +14 -0
  888. package/lib/core/CreditCard/CreditCard.stories.d.ts.map +1 -0
  889. package/lib/core/CreditCard/CreditCard.stories.js +53 -0
  890. package/lib/core/CreditCard/CreditCard.stories.js.map +1 -0
  891. package/lib/core/Currency/Currency.stories.d.ts +9 -3
  892. package/lib/core/Currency/Currency.stories.d.ts.map +1 -1
  893. package/lib/core/Currency/Currency.stories.js +59 -20
  894. package/lib/core/Currency/Currency.stories.js.map +1 -1
  895. package/lib/core/DateTime/DateTime.stories.d.ts +39 -9
  896. package/lib/core/DateTime/DateTime.stories.d.ts.map +1 -1
  897. package/lib/core/DateTime/DateTime.stories.js +153 -17
  898. package/lib/core/DateTime/DateTime.stories.js.map +1 -1
  899. package/lib/core/DateTime/DateTimeDisplay.stories.js +2 -2
  900. package/lib/core/DateTime/DateTimeDisplay.stories.js.map +1 -1
  901. package/lib/core/DateTime/DateTimePicker.stories.js +2 -2
  902. package/lib/core/DateTime/DateTimePicker.stories.js.map +1 -1
  903. package/lib/core/Dialog/Dialog.stories.d.ts +6 -0
  904. package/lib/core/Dialog/Dialog.stories.d.ts.map +1 -0
  905. package/lib/core/Dialog/Dialog.stories.js +47 -0
  906. package/lib/core/Dialog/Dialog.stories.js.map +1 -0
  907. package/lib/core/Drawer/Drawer.stories.js +4 -4
  908. package/lib/core/Drawer/Drawer.stories.js.map +1 -1
  909. package/lib/core/Email/EmailDisplay.stories.js +1 -1
  910. package/lib/core/Email/EmailDisplay.stories.js.map +1 -1
  911. package/lib/core/EmojiPicker/EmojiPicker.stories.js +3 -3
  912. package/lib/core/EmojiPicker/EmojiPicker.stories.js.map +1 -1
  913. package/lib/core/EmptyState/EmptyState.stories.js +1 -1
  914. package/lib/core/EmptyState/EmptyState.stories.js.map +1 -1
  915. package/lib/core/ErrorState/ErrorState.stories.js +1 -1
  916. package/lib/core/ErrorState/ErrorState.stories.js.map +1 -1
  917. package/lib/core/ExpandCollapse/ExpandCollapse.stories.js +2 -2
  918. package/lib/core/ExpandCollapse/ExpandCollapse.stories.js.map +1 -1
  919. package/lib/core/FieldGroup/FieldGroup.stories.d.ts +6 -4
  920. package/lib/core/FieldGroup/FieldGroup.stories.d.ts.map +1 -1
  921. package/lib/core/FieldGroup/FieldGroup.stories.js +7 -3
  922. package/lib/core/FieldGroup/FieldGroup.stories.js.map +1 -1
  923. package/lib/core/FieldGroup/FieldGroupList.mocks.d.ts +4 -0
  924. package/lib/core/FieldGroup/FieldGroupList.mocks.d.ts.map +1 -1
  925. package/lib/core/FieldGroup/FieldGroupList.mocks.js +47 -3
  926. package/lib/core/FieldGroup/FieldGroupList.mocks.js.map +1 -1
  927. package/lib/core/FieldGroup/FieldGroupList.stories.d.ts +9 -8
  928. package/lib/core/FieldGroup/FieldGroupList.stories.d.ts.map +1 -1
  929. package/lib/core/FieldGroup/FieldGroupList.stories.js +54 -67
  930. package/lib/core/FieldGroup/FieldGroupList.stories.js.map +1 -1
  931. package/lib/core/FieldValueList/FieldValueList.mocks.d.ts +3 -0
  932. package/lib/core/FieldValueList/FieldValueList.mocks.d.ts.map +1 -0
  933. package/lib/core/FieldValueList/FieldValueList.mocks.js +9 -0
  934. package/lib/core/FieldValueList/FieldValueList.mocks.js.map +1 -0
  935. package/lib/core/FieldValueList/FieldValueList.stories.d.ts +3 -2
  936. package/lib/core/FieldValueList/FieldValueList.stories.d.ts.map +1 -1
  937. package/lib/core/FieldValueList/FieldValueList.stories.js +35 -5
  938. package/lib/core/FieldValueList/FieldValueList.stories.js.map +1 -1
  939. package/lib/core/File/FileDisplay.stories.d.ts.map +1 -1
  940. package/lib/core/File/FileDisplay.stories.js +25 -37
  941. package/lib/core/File/FileDisplay.stories.js.map +1 -1
  942. package/lib/core/File/FileInput.stories.d.ts.map +1 -1
  943. package/lib/core/File/FileInput.stories.js +3 -3
  944. package/lib/core/File/FileInput.stories.js.map +1 -1
  945. package/lib/core/Flex/FlexContainer.stories.d.ts +1 -2
  946. package/lib/core/Flex/FlexContainer.stories.d.ts.map +1 -1
  947. package/lib/core/Flex/FlexContainer.stories.js +7 -7
  948. package/lib/core/Flex/FlexContainer.stories.js.map +1 -1
  949. package/lib/core/Flex/FlexItem.stories.js +3 -3
  950. package/lib/core/Flex/FlexItem.stories.js.map +1 -1
  951. package/lib/core/Form/Form.mocks.d.ts.map +1 -1
  952. package/lib/core/Form/Form.mocks.js +5 -5
  953. package/lib/core/Form/Form.mocks.js.map +1 -1
  954. package/lib/core/Form/Form.stories.js +10 -10
  955. package/lib/core/Form/Form.stories.js.map +1 -1
  956. package/lib/core/Grid/GridContainer.stories.d.ts +4 -5
  957. package/lib/core/Grid/GridContainer.stories.d.ts.map +1 -1
  958. package/lib/core/Grid/GridContainer.stories.js +9 -9
  959. package/lib/core/Grid/GridContainer.stories.js.map +1 -1
  960. package/lib/core/Grid/GridItem.stories.d.ts +1 -2
  961. package/lib/core/Grid/GridItem.stories.d.ts.map +1 -1
  962. package/lib/core/Grid/GridItem.stories.js +3 -3
  963. package/lib/core/Grid/GridItem.stories.js.map +1 -1
  964. package/lib/core/HTML/HTML.stories.d.ts +6 -0
  965. package/lib/core/HTML/HTML.stories.d.ts.map +1 -0
  966. package/lib/core/HTML/HTML.stories.js +14 -0
  967. package/lib/core/HTML/HTML.stories.js.map +1 -0
  968. package/lib/core/Icon/Icon.mocks.js +1 -1
  969. package/lib/core/Icon/Icon.mocks.js.map +1 -1
  970. package/lib/core/Icon/Icon.stories.d.ts +5 -6
  971. package/lib/core/Icon/Icon.stories.d.ts.map +1 -1
  972. package/lib/core/Icon/Icon.stories.js +12 -35
  973. package/lib/core/Icon/Icon.stories.js.map +1 -1
  974. package/lib/core/Icon/Icon.styles.d.ts +4 -0
  975. package/lib/core/Icon/Icon.styles.d.ts.map +1 -0
  976. package/lib/core/Icon/Icon.styles.js +25 -0
  977. package/lib/core/Icon/Icon.styles.js.map +1 -0
  978. package/lib/core/IconPicker/IconPicker.stories.d.ts.map +1 -1
  979. package/lib/core/IconPicker/IconPicker.stories.js +8 -11
  980. package/lib/core/IconPicker/IconPicker.stories.js.map +1 -1
  981. package/lib/core/Image/Image.stories.d.ts +2 -3
  982. package/lib/core/Image/Image.stories.d.ts.map +1 -1
  983. package/lib/core/Image/Image.stories.js +1 -1
  984. package/lib/core/Image/Image.stories.js.map +1 -1
  985. package/lib/core/Input/Input.stories.d.ts +2 -0
  986. package/lib/core/Input/Input.stories.d.ts.map +1 -1
  987. package/lib/core/Input/Input.stories.js +80 -4
  988. package/lib/core/Input/Input.stories.js.map +1 -1
  989. package/lib/core/Label/Label.stories.js +2 -2
  990. package/lib/core/Label/Label.stories.js.map +1 -1
  991. package/lib/core/Lightbox/Lightbox.stories.js +3 -3
  992. package/lib/core/Lightbox/Lightbox.stories.js.map +1 -1
  993. package/lib/core/Link/Link.stories.d.ts +1 -11
  994. package/lib/core/Link/Link.stories.d.ts.map +1 -1
  995. package/lib/core/Link/Link.stories.js +3 -3
  996. package/lib/core/Link/Link.stories.js.map +1 -1
  997. package/lib/core/List/CommaSeparatedList.stories.d.ts +2 -2
  998. package/lib/core/List/CommaSeparatedList.stories.d.ts.map +1 -1
  999. package/lib/core/List/CommaSeparatedList.stories.js +1 -1
  1000. package/lib/core/List/CommaSeparatedList.stories.js.map +1 -1
  1001. package/lib/core/List/OrderedList.stories.js +1 -1
  1002. package/lib/core/List/OrderedList.stories.js.map +1 -1
  1003. package/lib/core/List/UnorderedList.stories.js +1 -1
  1004. package/lib/core/List/UnorderedList.stories.js.map +1 -1
  1005. package/lib/core/ListToolbar/ListToolbar.mocks.d.ts +9 -0
  1006. package/lib/core/ListToolbar/ListToolbar.mocks.d.ts.map +1 -0
  1007. package/lib/core/ListToolbar/ListToolbar.mocks.js +50 -0
  1008. package/lib/core/ListToolbar/ListToolbar.mocks.js.map +1 -0
  1009. package/lib/core/ListToolbar/ListToolbar.stories.d.ts +10 -0
  1010. package/lib/core/ListToolbar/ListToolbar.stories.d.ts.map +1 -0
  1011. package/lib/core/ListToolbar/ListToolbar.stories.js +85 -0
  1012. package/lib/core/ListToolbar/ListToolbar.stories.js.map +1 -0
  1013. package/lib/core/Location/Location.stories.d.ts +4 -1
  1014. package/lib/core/Location/Location.stories.d.ts.map +1 -1
  1015. package/lib/core/Location/Location.stories.js +13 -6
  1016. package/lib/core/Location/Location.stories.js.map +1 -1
  1017. package/lib/core/Menu/Menu.stories.d.ts.map +1 -1
  1018. package/lib/core/Menu/Menu.stories.js +7 -6
  1019. package/lib/core/Menu/Menu.stories.js.map +1 -1
  1020. package/lib/core/MenuButton/MenuButton.stories.d.ts +6 -6
  1021. package/lib/core/MenuButton/MenuButton.stories.d.ts.map +1 -1
  1022. package/lib/core/MenuButton/MenuButton.stories.js +9 -9
  1023. package/lib/core/MenuButton/MenuButton.stories.js.map +1 -1
  1024. package/lib/core/MetaList/MetaList.stories.js +3 -3
  1025. package/lib/core/MetaList/MetaList.stories.js.map +1 -1
  1026. package/lib/core/Modal/Modal.mocks.d.ts.map +1 -1
  1027. package/lib/core/Modal/Modal.mocks.js +11 -11
  1028. package/lib/core/Modal/Modal.mocks.js.map +1 -1
  1029. package/lib/core/Modal/Modal.stories.d.ts +10 -5
  1030. package/lib/core/Modal/Modal.stories.d.ts.map +1 -1
  1031. package/lib/core/Modal/Modal.stories.js +40 -35
  1032. package/lib/core/Modal/Modal.stories.js.map +1 -1
  1033. package/lib/core/MultiStepForm/MultiStepForm.mocks.d.ts +34 -0
  1034. package/lib/core/MultiStepForm/MultiStepForm.mocks.d.ts.map +1 -0
  1035. package/lib/core/MultiStepForm/MultiStepForm.mocks.js +75 -0
  1036. package/lib/core/MultiStepForm/MultiStepForm.mocks.js.map +1 -0
  1037. package/lib/core/MultiStepForm/MultiStepForm.stories.d.ts +5 -0
  1038. package/lib/core/MultiStepForm/MultiStepForm.stories.d.ts.map +1 -0
  1039. package/lib/core/MultiStepForm/MultiStepForm.stories.js +187 -0
  1040. package/lib/core/MultiStepForm/MultiStepForm.stories.js.map +1 -0
  1041. package/lib/core/Number/Number.stories.d.ts +11 -6
  1042. package/lib/core/Number/Number.stories.d.ts.map +1 -1
  1043. package/lib/core/Number/Number.stories.js +137 -35
  1044. package/lib/core/Number/Number.stories.js.map +1 -1
  1045. package/lib/core/PageTemplates/PageTemplates.mocks.d.ts +1 -1
  1046. package/lib/core/PageTemplates/PageTemplates.mocks.d.ts.map +1 -1
  1047. package/lib/core/PageTemplates/PageTemplates.stories.d.ts +5 -3
  1048. package/lib/core/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
  1049. package/lib/core/PageTemplates/PageTemplates.stories.js +88 -42
  1050. package/lib/core/PageTemplates/PageTemplates.stories.js.map +1 -1
  1051. package/lib/core/PageTemplates/PageTemplates.styles.d.ts +1 -0
  1052. package/lib/core/PageTemplates/PageTemplates.styles.d.ts.map +1 -1
  1053. package/lib/core/PageTemplates/PageTemplates.styles.js +9 -0
  1054. package/lib/core/PageTemplates/PageTemplates.styles.js.map +1 -1
  1055. package/lib/core/Pagination/Pagination.stories.js +1 -1
  1056. package/lib/core/Pagination/Pagination.stories.js.map +1 -1
  1057. package/lib/core/Paragraph/ParagraphDisplay.stories.js +1 -1
  1058. package/lib/core/Paragraph/ParagraphDisplay.stories.js.map +1 -1
  1059. package/lib/core/Phone/Phone.stories.d.ts +4 -1
  1060. package/lib/core/Phone/Phone.stories.d.ts.map +1 -1
  1061. package/lib/core/Phone/Phone.stories.js +13 -4
  1062. package/lib/core/Phone/Phone.stories.js.map +1 -1
  1063. package/lib/core/Popover/Popover.stories.d.ts +1 -1
  1064. package/lib/core/Popover/Popover.stories.d.ts.map +1 -1
  1065. package/lib/core/Popover/Popover.stories.js +2 -2
  1066. package/lib/core/Popover/Popover.stories.js.map +1 -1
  1067. package/lib/core/Progress/Progress.stories.js +3 -3
  1068. package/lib/core/Progress/Progress.stories.js.map +1 -1
  1069. package/lib/core/RadioButton/RadioButton.stories.d.ts +6 -2
  1070. package/lib/core/RadioButton/RadioButton.stories.d.ts.map +1 -1
  1071. package/lib/core/RadioButton/RadioButton.stories.js +23 -6
  1072. package/lib/core/RadioButton/RadioButton.stories.js.map +1 -1
  1073. package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts +7 -3
  1074. package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts.map +1 -1
  1075. package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.js +41 -5
  1076. package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.js.map +1 -1
  1077. package/lib/core/Rating/Rating.stories.js +3 -3
  1078. package/lib/core/Rating/Rating.stories.js.map +1 -1
  1079. package/lib/core/SearchInput/SearchInput.mocks.d.ts +12 -0
  1080. package/lib/core/SearchInput/SearchInput.mocks.d.ts.map +1 -0
  1081. package/lib/core/SearchInput/SearchInput.mocks.js +25 -0
  1082. package/lib/core/SearchInput/SearchInput.mocks.js.map +1 -0
  1083. package/lib/core/SearchInput/SearchInput.stories.d.ts +1 -4
  1084. package/lib/core/SearchInput/SearchInput.stories.d.ts.map +1 -1
  1085. package/lib/core/SearchInput/SearchInput.stories.js +29 -15
  1086. package/lib/core/SearchInput/SearchInput.stories.js.map +1 -1
  1087. package/lib/core/Select/Select.stories.d.ts +1 -0
  1088. package/lib/core/Select/Select.stories.d.ts.map +1 -1
  1089. package/lib/core/Select/Select.stories.js +12 -5
  1090. package/lib/core/Select/Select.stories.js.map +1 -1
  1091. package/lib/core/Sentiment/Sentiment.stories.js +3 -3
  1092. package/lib/core/Sentiment/Sentiment.stories.js.map +1 -1
  1093. package/lib/core/Slider/Slider.stories.d.ts +4 -3
  1094. package/lib/core/Slider/Slider.stories.d.ts.map +1 -1
  1095. package/lib/core/Slider/Slider.stories.js +2 -2
  1096. package/lib/core/Slider/Slider.stories.js.map +1 -1
  1097. package/lib/core/SummaryItem/SummaryItem.stories.d.ts +5 -5
  1098. package/lib/core/SummaryItem/SummaryItem.stories.d.ts.map +1 -1
  1099. package/lib/core/SummaryItem/SummaryItem.stories.js +4 -4
  1100. package/lib/core/SummaryItem/SummaryItem.stories.js.map +1 -1
  1101. package/lib/core/SummaryList/SummaryList.mocks.js +2 -2
  1102. package/lib/core/SummaryList/SummaryList.mocks.js.map +1 -1
  1103. package/lib/core/SummaryList/SummaryList.stories.d.ts +2 -2
  1104. package/lib/core/SummaryList/SummaryList.stories.d.ts.map +1 -1
  1105. package/lib/core/SummaryList/SummaryList.stories.js +5 -5
  1106. package/lib/core/SummaryList/SummaryList.stories.js.map +1 -1
  1107. package/lib/core/Switch/Switch.stories.js +3 -3
  1108. package/lib/core/Switch/Switch.stories.js.map +1 -1
  1109. package/lib/core/Table/Table.mocks.d.ts +6 -0
  1110. package/lib/core/Table/Table.mocks.d.ts.map +1 -1
  1111. package/lib/core/Table/Table.mocks.js +135 -1
  1112. package/lib/core/Table/Table.mocks.js.map +1 -1
  1113. package/lib/core/Table/Table.stories.js +11 -11
  1114. package/lib/core/Table/Table.stories.js.map +1 -1
  1115. package/lib/core/Tabs/Tabs.stories.d.ts +5 -2
  1116. package/lib/core/Tabs/Tabs.stories.d.ts.map +1 -1
  1117. package/lib/core/Tabs/Tabs.stories.js +3 -3
  1118. package/lib/core/Tabs/Tabs.stories.js.map +1 -1
  1119. package/lib/core/Text/Text.stories.js +2 -2
  1120. package/lib/core/Text/Text.stories.js.map +1 -1
  1121. package/lib/core/TextArea/TextArea.stories.d.ts +4 -1
  1122. package/lib/core/TextArea/TextArea.stories.d.ts.map +1 -1
  1123. package/lib/core/TextArea/TextArea.stories.js +11 -4
  1124. package/lib/core/TextArea/TextArea.stories.js.map +1 -1
  1125. package/lib/core/Toaster/Toaster.stories.d.ts +2 -3
  1126. package/lib/core/Toaster/Toaster.stories.d.ts.map +1 -1
  1127. package/lib/core/Toaster/Toaster.stories.js +15 -19
  1128. package/lib/core/Toaster/Toaster.stories.js.map +1 -1
  1129. package/lib/core/Tooltip/Tooltip.stories.d.ts +3 -7
  1130. package/lib/core/Tooltip/Tooltip.stories.d.ts.map +1 -1
  1131. package/lib/core/Tooltip/Tooltip.stories.js +2 -2
  1132. package/lib/core/Tooltip/Tooltip.stories.js.map +1 -1
  1133. package/lib/core/Tree/Tree.mocks.d.ts +1 -1
  1134. package/lib/core/Tree/Tree.mocks.d.ts.map +1 -1
  1135. package/lib/core/Tree/Tree.stories.d.ts +1 -2
  1136. package/lib/core/Tree/Tree.stories.d.ts.map +1 -1
  1137. package/lib/core/Tree/Tree.stories.js +5 -5
  1138. package/lib/core/Tree/Tree.stories.js.map +1 -1
  1139. package/lib/core/URL/URL.stories.js +1 -1
  1140. package/lib/core/URL/URL.stories.js.map +1 -1
  1141. package/lib/cs/Article/Article.stories.d.ts +4 -13
  1142. package/lib/cs/Article/Article.stories.d.ts.map +1 -1
  1143. package/lib/cs/Article/Article.stories.js +9 -9
  1144. package/lib/cs/Article/Article.stories.js.map +1 -1
  1145. package/lib/cs/ArticleList/ArticleList.stories.d.ts +4 -14
  1146. package/lib/cs/ArticleList/ArticleList.stories.d.ts.map +1 -1
  1147. package/lib/cs/ArticleList/ArticleList.stories.js +12 -11
  1148. package/lib/cs/ArticleList/ArticleList.stories.js.map +1 -1
  1149. package/lib/cs/CSCaseView/{CSCaseView.mocks.d.ts → CSAppShell.mocks.d.ts} +17 -1
  1150. package/lib/cs/CSCaseView/CSAppShell.mocks.d.ts.map +1 -0
  1151. package/lib/cs/CSCaseView/{CSCaseView.mocks.js → CSAppShell.mocks.js} +57 -1
  1152. package/lib/cs/CSCaseView/CSAppShell.mocks.js.map +1 -0
  1153. package/lib/cs/CSCaseView/CSAppShell.stories.d.ts +5 -37
  1154. package/lib/cs/CSCaseView/CSAppShell.stories.d.ts.map +1 -1
  1155. package/lib/cs/CSCaseView/CSAppShell.stories.js +37 -67
  1156. package/lib/cs/CSCaseView/CSAppShell.stories.js.map +1 -1
  1157. package/lib/cs/CallControlPanel/CallControlPanel.mocks.d.ts +6 -5
  1158. package/lib/cs/CallControlPanel/CallControlPanel.mocks.d.ts.map +1 -1
  1159. package/lib/cs/CallControlPanel/CallControlPanel.mocks.js +138 -10
  1160. package/lib/cs/CallControlPanel/CallControlPanel.mocks.js.map +1 -1
  1161. package/lib/cs/CallControlPanel/CallControlPanel.stories.d.ts +6 -3
  1162. package/lib/cs/CallControlPanel/CallControlPanel.stories.d.ts.map +1 -1
  1163. package/lib/cs/CallControlPanel/CallControlPanel.stories.js +143 -98
  1164. package/lib/cs/CallControlPanel/CallControlPanel.stories.js.map +1 -1
  1165. package/lib/cs/DialPad/DialPad.stories.js +1 -1
  1166. package/lib/cs/DialPad/DialPad.stories.js.map +1 -1
  1167. package/lib/cs/IntelligentGuidance/IntelligentGuidance.stories.d.ts +4 -11
  1168. package/lib/cs/IntelligentGuidance/IntelligentGuidance.stories.d.ts.map +1 -1
  1169. package/lib/cs/IntelligentGuidance/IntelligentGuidance.stories.js +26 -26
  1170. package/lib/cs/IntelligentGuidance/IntelligentGuidance.stories.js.map +1 -1
  1171. package/lib/cs/InteractionNotification/InteractionNotification.stories.d.ts +7 -6
  1172. package/lib/cs/InteractionNotification/InteractionNotification.stories.d.ts.map +1 -1
  1173. package/lib/cs/InteractionNotification/InteractionNotification.stories.js +13 -5
  1174. package/lib/cs/InteractionNotification/InteractionNotification.stories.js.map +1 -1
  1175. package/lib/cs/InteractionTimer/InteractionTimer.mocks.d.ts +11 -0
  1176. package/lib/cs/InteractionTimer/InteractionTimer.mocks.d.ts.map +1 -0
  1177. package/lib/cs/InteractionTimer/InteractionTimer.mocks.js +29 -0
  1178. package/lib/cs/InteractionTimer/InteractionTimer.mocks.js.map +1 -0
  1179. package/lib/cs/InteractionTimer/InteractionTimer.stories.d.ts +3 -7
  1180. package/lib/cs/InteractionTimer/InteractionTimer.stories.d.ts.map +1 -1
  1181. package/lib/cs/InteractionTimer/InteractionTimer.stories.js +38 -43
  1182. package/lib/cs/InteractionTimer/InteractionTimer.stories.js.map +1 -1
  1183. package/lib/cs/TaskManager/TaskManager.mocks.d.ts +18 -0
  1184. package/lib/cs/TaskManager/TaskManager.mocks.d.ts.map +1 -1
  1185. package/lib/cs/TaskManager/TaskManager.mocks.js +93 -0
  1186. package/lib/cs/TaskManager/TaskManager.mocks.js.map +1 -1
  1187. package/lib/cs/TaskManager/TaskManager.stories.d.ts +8 -6
  1188. package/lib/cs/TaskManager/TaskManager.stories.d.ts.map +1 -1
  1189. package/lib/cs/TaskManager/TaskManager.stories.js +124 -57
  1190. package/lib/cs/TaskManager/TaskManager.stories.js.map +1 -1
  1191. package/lib/cs/TaskManager/TaskManager.styles.d.ts +3 -0
  1192. package/lib/cs/TaskManager/TaskManager.styles.d.ts.map +1 -0
  1193. package/lib/cs/TaskManager/TaskManager.styles.js +9 -0
  1194. package/lib/cs/TaskManager/TaskManager.styles.js.map +1 -0
  1195. package/lib/dnd/DragDropList/DragDropList.mocks.d.ts +15 -0
  1196. package/lib/dnd/DragDropList/DragDropList.mocks.d.ts.map +1 -0
  1197. package/lib/dnd/DragDropList/DragDropList.mocks.js +32 -0
  1198. package/lib/dnd/DragDropList/DragDropList.mocks.js.map +1 -0
  1199. package/lib/dnd/DragDropList/DragDropList.stories.d.ts +8 -9
  1200. package/lib/dnd/DragDropList/DragDropList.stories.d.ts.map +1 -1
  1201. package/lib/dnd/DragDropList/DragDropList.stories.js +16 -87
  1202. package/lib/dnd/DragDropList/DragDropList.stories.js.map +1 -1
  1203. package/lib/dnd/DragDropList/DragDropList.styles.d.ts +6 -0
  1204. package/lib/dnd/DragDropList/DragDropList.styles.d.ts.map +1 -0
  1205. package/lib/dnd/DragDropList/DragDropList.styles.js +32 -0
  1206. package/lib/dnd/DragDropList/DragDropList.styles.js.map +1 -0
  1207. package/lib/dnd/StandardDragDropList/Demo.d.ts +7 -0
  1208. package/lib/dnd/StandardDragDropList/Demo.d.ts.map +1 -0
  1209. package/lib/dnd/StandardDragDropList/Demo.js +151 -0
  1210. package/lib/dnd/StandardDragDropList/Demo.js.map +1 -0
  1211. package/lib/dnd/StandardDragDropList/GroupConfig.d.ts +10 -0
  1212. package/lib/dnd/StandardDragDropList/GroupConfig.d.ts.map +1 -0
  1213. package/lib/dnd/StandardDragDropList/GroupConfig.js +18 -0
  1214. package/lib/dnd/StandardDragDropList/GroupConfig.js.map +1 -0
  1215. package/lib/dnd/StandardDragDropList/ItemConfig.d.ts +12 -0
  1216. package/lib/dnd/StandardDragDropList/ItemConfig.d.ts.map +1 -0
  1217. package/lib/dnd/StandardDragDropList/ItemConfig.js +20 -0
  1218. package/lib/dnd/StandardDragDropList/ItemConfig.js.map +1 -0
  1219. package/lib/dnd/StandardDragDropList/Popover.d.ts +14 -0
  1220. package/lib/dnd/StandardDragDropList/Popover.d.ts.map +1 -0
  1221. package/lib/dnd/StandardDragDropList/Popover.js +33 -0
  1222. package/lib/dnd/StandardDragDropList/Popover.js.map +1 -0
  1223. package/lib/dnd/StandardDragDropList/SelectionMenu.d.ts +16 -0
  1224. package/lib/dnd/StandardDragDropList/SelectionMenu.d.ts.map +1 -0
  1225. package/lib/dnd/StandardDragDropList/SelectionMenu.js +100 -0
  1226. package/lib/dnd/StandardDragDropList/SelectionMenu.js.map +1 -0
  1227. package/lib/dnd/StandardDragDropList/StandardDragDropList.stories.d.ts +5 -0
  1228. package/lib/dnd/StandardDragDropList/StandardDragDropList.stories.d.ts.map +1 -0
  1229. package/lib/dnd/StandardDragDropList/StandardDragDropList.stories.js +13 -0
  1230. package/lib/dnd/StandardDragDropList/StandardDragDropList.stories.js.map +1 -0
  1231. package/lib/dnd/StandardDragDropList/mockData.d.ts +26 -0
  1232. package/lib/dnd/StandardDragDropList/mockData.d.ts.map +1 -0
  1233. package/lib/dnd/StandardDragDropList/mockData.js +78 -0
  1234. package/lib/dnd/StandardDragDropList/mockData.js.map +1 -0
  1235. package/lib/rte/Editor/Editor.mocks.d.ts +309 -0
  1236. package/lib/rte/Editor/Editor.mocks.d.ts.map +1 -0
  1237. package/lib/rte/Editor/Editor.mocks.js +26 -0
  1238. package/lib/rte/Editor/Editor.mocks.js.map +1 -0
  1239. package/lib/rte/Editor/Editor.stories.d.ts +7 -8
  1240. package/lib/rte/Editor/Editor.stories.d.ts.map +1 -1
  1241. package/lib/rte/Editor/Editor.stories.js +8 -28
  1242. package/lib/rte/Editor/Editor.stories.js.map +1 -1
  1243. package/lib/rte/RichTextEditor/RichTextEditor.mocks.js +5 -5
  1244. package/lib/rte/RichTextEditor/RichTextEditor.mocks.js.map +1 -1
  1245. package/lib/rte/RichTextEditor/RichTextEditor.stories.d.ts +6 -4
  1246. package/lib/rte/RichTextEditor/RichTextEditor.stories.d.ts.map +1 -1
  1247. package/lib/rte/RichTextEditor/RichTextEditor.stories.js +14 -7
  1248. package/lib/rte/RichTextEditor/RichTextEditor.stories.js.map +1 -1
  1249. package/lib/rte/RichTextEditor/RichTextViewer.stories.d.ts +5 -5
  1250. package/lib/rte/RichTextEditor/RichTextViewer.stories.d.ts.map +1 -1
  1251. package/lib/rte/RichTextEditor/RichTextViewer.stories.js +19 -6
  1252. package/lib/rte/RichTextEditor/RichTextViewer.stories.js.map +1 -1
  1253. package/lib/social/Chat/Chat.mocks.d.ts +1 -1
  1254. package/lib/social/Chat/Chat.mocks.js +0 -1
  1255. package/lib/social/Chat/Chat.mocks.js.map +1 -1
  1256. package/lib/social/Chat/Chat.stories.d.ts +6 -7
  1257. package/lib/social/Chat/Chat.stories.d.ts.map +1 -1
  1258. package/lib/social/Chat/Chat.stories.js +31 -31
  1259. package/lib/social/Chat/Chat.stories.js.map +1 -1
  1260. package/lib/social/Chat/RepeatingView.mocks.d.ts +14 -0
  1261. package/lib/social/Chat/RepeatingView.mocks.d.ts.map +1 -0
  1262. package/lib/social/Chat/RepeatingView.mocks.js +11 -0
  1263. package/lib/social/Chat/RepeatingView.mocks.js.map +1 -0
  1264. package/lib/social/Chat/RepeatingView.stories.d.ts +6 -17
  1265. package/lib/social/Chat/RepeatingView.stories.d.ts.map +1 -1
  1266. package/lib/social/Chat/RepeatingView.stories.js +18 -48
  1267. package/lib/social/Chat/RepeatingView.stories.js.map +1 -1
  1268. package/lib/social/Chat/RepeatingView.styles.d.ts +2 -0
  1269. package/lib/social/Chat/RepeatingView.styles.d.ts.map +1 -0
  1270. package/lib/social/Chat/RepeatingView.styles.js +22 -0
  1271. package/lib/social/Chat/RepeatingView.styles.js.map +1 -0
  1272. package/lib/social/Email/Email.mocks.d.ts +224 -3
  1273. package/lib/social/Email/Email.mocks.d.ts.map +1 -1
  1274. package/lib/social/Email/Email.mocks.js +602 -1
  1275. package/lib/social/Email/Email.mocks.js.map +1 -1
  1276. package/lib/social/Email/Email.stories.d.ts +40 -26
  1277. package/lib/social/Email/Email.stories.d.ts.map +1 -1
  1278. package/lib/social/Email/Email.stories.js +666 -683
  1279. package/lib/social/Email/Email.stories.js.map +1 -1
  1280. package/lib/social/Email/Email.styles.d.ts +3 -0
  1281. package/lib/social/Email/Email.styles.d.ts.map +1 -0
  1282. package/lib/social/Email/Email.styles.js +11 -0
  1283. package/lib/social/Email/Email.styles.js.map +1 -0
  1284. package/lib/social/Feed/Feed.mocks.d.ts +13 -18
  1285. package/lib/social/Feed/Feed.mocks.d.ts.map +1 -1
  1286. package/lib/social/Feed/Feed.mocks.js +45 -40
  1287. package/lib/social/Feed/Feed.mocks.js.map +1 -1
  1288. package/lib/social/Feed/Feed.stories.d.ts +8 -12
  1289. package/lib/social/Feed/Feed.stories.d.ts.map +1 -1
  1290. package/lib/social/Feed/Feed.stories.js +35 -29
  1291. package/lib/social/Feed/Feed.stories.js.map +1 -1
  1292. package/lib/social/Feed/FeedNewPost.stories.d.ts +7 -14
  1293. package/lib/social/Feed/FeedNewPost.stories.d.ts.map +1 -1
  1294. package/lib/social/Feed/FeedNewPost.stories.js +5 -4
  1295. package/lib/social/Feed/FeedNewPost.stories.js.map +1 -1
  1296. package/lib/social/Feed/FeedPost.stories.d.ts +4 -5
  1297. package/lib/social/Feed/FeedPost.stories.d.ts.map +1 -1
  1298. package/lib/social/Feed/FeedPost.stories.js +47 -36
  1299. package/lib/social/Feed/FeedPost.stories.js.map +1 -1
  1300. package/lib/social/Feed/FeedReply.stories.d.ts +10 -10
  1301. package/lib/social/Feed/FeedReply.stories.d.ts.map +1 -1
  1302. package/lib/social/Feed/FeedReply.stories.js +31 -26
  1303. package/lib/social/Feed/FeedReply.stories.js.map +1 -1
  1304. package/lib/social/Feed/FeedReplyInput.stories.d.ts +7 -12
  1305. package/lib/social/Feed/FeedReplyInput.stories.d.ts.map +1 -1
  1306. package/lib/social/Feed/FeedReplyInput.stories.js +5 -4
  1307. package/lib/social/Feed/FeedReplyInput.stories.js.map +1 -1
  1308. package/lib/tools/Clipboard/Clipboard.mocks.d.ts +6 -0
  1309. package/lib/tools/Clipboard/Clipboard.mocks.d.ts.map +1 -0
  1310. package/lib/tools/Clipboard/Clipboard.mocks.js +80 -0
  1311. package/lib/tools/Clipboard/Clipboard.mocks.js.map +1 -0
  1312. package/lib/tools/Clipboard/Clipboard.stories.d.ts +6 -0
  1313. package/lib/tools/Clipboard/Clipboard.stories.d.ts.map +1 -0
  1314. package/lib/tools/Clipboard/Clipboard.stories.js +69 -0
  1315. package/lib/tools/Clipboard/Clipboard.stories.js.map +1 -0
  1316. package/lib/tools/PreviewShell/PreviewShell.mocks.d.ts +9 -0
  1317. package/lib/tools/PreviewShell/PreviewShell.mocks.d.ts.map +1 -0
  1318. package/lib/tools/PreviewShell/PreviewShell.mocks.js +57 -0
  1319. package/lib/tools/PreviewShell/PreviewShell.mocks.js.map +1 -0
  1320. package/lib/tools/PreviewShell/PreviewShell.stories.d.ts +15 -0
  1321. package/lib/tools/PreviewShell/PreviewShell.stories.d.ts.map +1 -0
  1322. package/lib/tools/PreviewShell/PreviewShell.stories.js +108 -0
  1323. package/lib/tools/PreviewShell/PreviewShell.stories.js.map +1 -0
  1324. package/lib/tools/PreviewShell/PreviewShell.styles.d.ts +3 -0
  1325. package/lib/tools/PreviewShell/PreviewShell.styles.d.ts.map +1 -0
  1326. package/lib/tools/PreviewShell/PreviewShell.styles.js +7 -0
  1327. package/lib/tools/PreviewShell/PreviewShell.styles.js.map +1 -0
  1328. package/lib/work/AppAnnouncement/AppAnnouncement.stories.d.ts.map +1 -1
  1329. package/lib/work/AppAnnouncement/AppAnnouncement.stories.js +3 -1
  1330. package/lib/work/AppAnnouncement/AppAnnouncement.stories.js.map +1 -1
  1331. package/lib/work/CaseView/Attachments.mocks.js +15 -15
  1332. package/lib/work/CaseView/Attachments.mocks.js.map +1 -1
  1333. package/lib/work/CaseView/CaseView.mocks.d.ts.map +1 -1
  1334. package/lib/work/CaseView/CaseView.mocks.js +8 -8
  1335. package/lib/work/CaseView/CaseView.mocks.js.map +1 -1
  1336. package/lib/work/CaseView/CaseView.stories.d.ts +4 -11
  1337. package/lib/work/CaseView/CaseView.stories.d.ts.map +1 -1
  1338. package/lib/work/CaseView/CaseView.stories.js +36 -28
  1339. package/lib/work/CaseView/CaseView.stories.js.map +1 -1
  1340. package/lib/work/CaseView/Details.mocks.d.ts.map +1 -1
  1341. package/lib/work/CaseView/Details.mocks.js +2 -2
  1342. package/lib/work/CaseView/Details.mocks.js.map +1 -1
  1343. package/lib/work/CaseView/FileService.mock.js +1 -1
  1344. package/lib/work/CaseView/FileService.mock.js.map +1 -1
  1345. package/lib/work/CaseView/MobileCaseView.stories.d.ts +3 -9
  1346. package/lib/work/CaseView/MobileCaseView.stories.d.ts.map +1 -1
  1347. package/lib/work/CaseView/MobileCaseView.stories.js +1 -1
  1348. package/lib/work/CaseView/MobileCaseView.stories.js.map +1 -1
  1349. package/lib/work/CaseView/Pulse.mocks.d.ts +4 -3
  1350. package/lib/work/CaseView/Pulse.mocks.d.ts.map +1 -1
  1351. package/lib/work/CaseView/Pulse.mocks.js +4 -4
  1352. package/lib/work/CaseView/Pulse.mocks.js.map +1 -1
  1353. package/lib/work/ConfigurableLayout/ConfigurableLayout.mocks.d.ts +45 -0
  1354. package/lib/work/ConfigurableLayout/ConfigurableLayout.mocks.d.ts.map +1 -0
  1355. package/lib/work/ConfigurableLayout/ConfigurableLayout.mocks.js +165 -0
  1356. package/lib/work/ConfigurableLayout/ConfigurableLayout.mocks.js.map +1 -0
  1357. package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts +3 -8
  1358. package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts.map +1 -1
  1359. package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.js +6 -175
  1360. package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.js.map +1 -1
  1361. package/lib/work/ConfigurableLayout/ConfigurableLayout.styles.d.ts +4 -0
  1362. package/lib/work/ConfigurableLayout/ConfigurableLayout.styles.d.ts.map +1 -0
  1363. package/lib/work/ConfigurableLayout/ConfigurableLayout.styles.js +11 -0
  1364. package/lib/work/ConfigurableLayout/ConfigurableLayout.styles.js.map +1 -0
  1365. package/lib/work/Confirmation/Confirmation.stories.d.ts +3 -0
  1366. package/lib/work/Confirmation/Confirmation.stories.d.ts.map +1 -1
  1367. package/lib/work/Confirmation/Confirmation.stories.js +13 -9
  1368. package/lib/work/Confirmation/Confirmation.stories.js.map +1 -1
  1369. package/lib/work/Details/Details.stories.d.ts.map +1 -1
  1370. package/lib/work/Details/Details.stories.js +14 -56
  1371. package/lib/work/Details/Details.stories.js.map +1 -1
  1372. package/lib/work/Glimpse/Glimpse.stories.d.ts.map +1 -1
  1373. package/lib/work/Glimpse/Glimpse.stories.js +3 -3
  1374. package/lib/work/Glimpse/Glimpse.stories.js.map +1 -1
  1375. package/lib/work/SearchResults/SearchResults.mocks.js +4 -4
  1376. package/lib/work/SearchResults/SearchResults.mocks.js.map +1 -1
  1377. package/lib/work/SearchResults/SearchResults.stories.d.ts +1 -0
  1378. package/lib/work/SearchResults/SearchResults.stories.d.ts.map +1 -1
  1379. package/lib/work/SearchResults/SearchResults.stories.js +20 -18
  1380. package/lib/work/SearchResults/SearchResults.stories.js.map +1 -1
  1381. package/lib/work/Stages/Stages.mocks.d.ts +14 -0
  1382. package/lib/work/Stages/Stages.mocks.d.ts.map +1 -0
  1383. package/lib/work/Stages/Stages.mocks.js +39 -0
  1384. package/lib/work/Stages/Stages.mocks.js.map +1 -0
  1385. package/lib/work/Stages/Stages.stories.d.ts +1 -1
  1386. package/lib/work/Stages/Stages.stories.d.ts.map +1 -1
  1387. package/lib/work/Stages/Stages.stories.js +12 -44
  1388. package/lib/work/Stages/Stages.stories.js.map +1 -1
  1389. package/lib/work/Stakeholders/Stakeholders.mocks.d.ts.map +1 -1
  1390. package/lib/work/Stakeholders/Stakeholders.mocks.js +4 -4
  1391. package/lib/work/Stakeholders/Stakeholders.mocks.js.map +1 -1
  1392. package/lib/work/Stakeholders/Stakeholders.stories.d.ts +2 -3
  1393. package/lib/work/Stakeholders/Stakeholders.stories.d.ts.map +1 -1
  1394. package/lib/work/Stakeholders/Stakeholders.stories.js +2 -1
  1395. package/lib/work/Stakeholders/Stakeholders.stories.js.map +1 -1
  1396. package/lib/work/Tags/Tags.stories.js +1 -1
  1397. package/lib/work/Tags/Tags.stories.js.map +1 -1
  1398. package/lib/work/Tasks/TaskList.stories.d.ts.map +1 -1
  1399. package/lib/work/Tasks/TaskList.stories.js +6 -4
  1400. package/lib/work/Tasks/TaskList.stories.js.map +1 -1
  1401. package/lib/work/Tasks/Tasks.stories.d.ts +4 -0
  1402. package/lib/work/Tasks/Tasks.stories.d.ts.map +1 -1
  1403. package/lib/work/Tasks/Tasks.stories.js +29 -17
  1404. package/lib/work/Tasks/Tasks.stories.js.map +1 -1
  1405. package/lib/work/Timeline/Timeline.mocks.js +8 -8
  1406. package/lib/work/Timeline/Timeline.mocks.js.map +1 -1
  1407. package/lib/work/Timeline/Timeline.stories.d.ts +1 -0
  1408. package/lib/work/Timeline/Timeline.stories.d.ts.map +1 -1
  1409. package/lib/work/Timeline/Timeline.stories.js +24 -3
  1410. package/lib/work/Timeline/Timeline.stories.js.map +1 -1
  1411. package/lib/wss/AppShell/AppShell.mocks.d.ts +24 -0
  1412. package/lib/wss/AppShell/AppShell.mocks.d.ts.map +1 -0
  1413. package/lib/wss/AppShell/AppShell.mocks.js +59 -0
  1414. package/lib/wss/AppShell/AppShell.mocks.js.map +1 -0
  1415. package/lib/wss/AppShell/AppShell.stories.d.ts +17 -0
  1416. package/lib/wss/AppShell/AppShell.stories.d.ts.map +1 -0
  1417. package/lib/wss/AppShell/AppShell.stories.js +77 -0
  1418. package/lib/wss/AppShell/AppShell.stories.js.map +1 -0
  1419. package/lib/wss/AppShell/AppShell.styles.d.ts +2 -0
  1420. package/lib/wss/AppShell/AppShell.styles.d.ts.map +1 -0
  1421. package/lib/wss/AppShell/AppShell.styles.js +5 -0
  1422. package/lib/wss/AppShell/AppShell.styles.js.map +1 -0
  1423. package/lib/wss/QuickCreate/QuickCreate.stories.d.ts +10 -0
  1424. package/lib/wss/QuickCreate/QuickCreate.stories.d.ts.map +1 -0
  1425. package/lib/wss/QuickCreate/QuickCreate.stories.js +36 -0
  1426. package/lib/wss/QuickCreate/QuickCreate.stories.js.map +1 -0
  1427. package/package.json +22 -18
  1428. package/jsx/build/AppShell/AppShell.mocks.js.map +0 -1
  1429. package/jsx/build/FlowModeller/FlowModeller.mocks.js.map +0 -1
  1430. package/jsx/core/MultiStep/MultiStep.stories.d.ts +0 -6
  1431. package/jsx/core/MultiStep/MultiStep.stories.d.ts.map +0 -1
  1432. package/jsx/core/MultiStep/MultiStep.stories.jsx +0 -56
  1433. package/jsx/core/MultiStep/MultiStep.stories.jsx.map +0 -1
  1434. package/jsx/cs/CSCaseView/CSCaseView.mocks.d.ts.map +0 -1
  1435. package/jsx/cs/CSCaseView/CSCaseView.mocks.js.map +0 -1
  1436. package/jsx/social/Email/Email.mocks.js +0 -348
  1437. package/jsx/social/Email/Email.mocks.js.map +0 -1
  1438. package/lib/core/MultiStep/MultiStep.stories.d.ts +0 -6
  1439. package/lib/core/MultiStep/MultiStep.stories.d.ts.map +0 -1
  1440. package/lib/core/MultiStep/MultiStep.stories.js +0 -36
  1441. package/lib/core/MultiStep/MultiStep.stories.js.map +0 -1
  1442. package/lib/cs/CSCaseView/CSCaseView.mocks.d.ts.map +0 -1
  1443. package/lib/cs/CSCaseView/CSCaseView.mocks.js.map +0 -1
@@ -1,6 +1,6 @@
1
- import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { useContext, useState } from 'react';
3
- import { FileDisplay, FieldValueList, Image, Popover, ToasterContext, useElement, useOuterEvent, FileUploadItem } from '@pega/cosmos-react-core';
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { useContext } from 'react';
3
+ import { FileDisplay, FieldValueList, ToasterContext, FileUploadItem } from '@pega/cosmos-react-core';
4
4
  export default {
5
5
  title: 'Core/File/Display',
6
6
  component: FileDisplay,
@@ -27,40 +27,40 @@ export const FileDisplayTypes = (args) => {
27
27
  {
28
28
  id: '1',
29
29
  name: 'Image file',
30
- value: (_jsx(FileDisplay, { displayText: args.withDisplayText ? 'image.jpg' : undefined, value: args.withValue ? 'https://pbs.twimg.com/media/ENNN5PAXkAE-hag.jpg' : undefined, onPreview: handlePreview, onDownload: handleDownload }, void 0))
30
+ value: (_jsx(FileDisplay, { displayText: args.withDisplayText ? 'image.jpg' : undefined, value: args.withValue ? 'https://pbs.twimg.com/media/ENNN5PAXkAE-hag.jpg' : undefined, onPreview: handlePreview, onDownload: handleDownload }))
31
31
  },
32
32
  {
33
33
  id: '2',
34
34
  name: 'Video file',
35
- value: (_jsx(FileDisplay, { displayText: args.withDisplayText ? 'video.avi' : undefined, value: args.withValue ? 'https://pega.com/media/some-video.avi' : undefined, onPreview: handlePreview, onDownload: handleDownload }, void 0))
35
+ value: (_jsx(FileDisplay, { displayText: args.withDisplayText ? 'video.avi' : undefined, value: args.withValue ? 'https://pega.com/media/some-video.avi' : undefined, onPreview: handlePreview, onDownload: handleDownload }))
36
36
  },
37
37
  {
38
38
  id: '3',
39
39
  name: 'Audio file',
40
- value: (_jsx(FileDisplay, { displayText: args.withDisplayText ? 'recording.mp3' : undefined, value: args.withValue ? 'https://pega.com/media/sprint-review-recording.mp3' : undefined, onPreview: handlePreview, onDownload: handleDownload }, void 0))
40
+ value: (_jsx(FileDisplay, { displayText: args.withDisplayText ? 'recording.mp3' : undefined, value: args.withValue ? 'https://pega.com/media/sprint-review-recording.mp3' : undefined, onPreview: handlePreview, onDownload: handleDownload }))
41
41
  },
42
42
  {
43
43
  id: '4',
44
44
  name: 'Document file',
45
- value: (_jsx(FileDisplay, { displayText: args.withDisplayText ? 'document.doc' : undefined, value: args.withValue ? 'https://pega.com/media/document.doc' : undefined, onPreview: handlePreview, onDownload: handleDownload }, void 0))
45
+ value: (_jsx(FileDisplay, { displayText: args.withDisplayText ? 'document.doc' : undefined, value: args.withValue ? 'https://pega.com/media/document.doc' : undefined, onPreview: handlePreview, onDownload: handleDownload }))
46
46
  },
47
47
  {
48
48
  id: '5',
49
49
  name: 'PDF file',
50
- value: (_jsx(FileDisplay, { displayText: args.withDisplayText ? 'invoice.pdf' : undefined, value: args.withValue ? 'https://pega.com/media/invoice.pdf' : undefined, onPreview: handlePreview, onDownload: handleDownload }, void 0))
50
+ value: (_jsx(FileDisplay, { displayText: args.withDisplayText ? 'invoice.pdf' : undefined, value: args.withValue ? 'https://pega.com/media/invoice.pdf' : undefined, onPreview: handlePreview, onDownload: handleDownload }))
51
51
  },
52
52
  {
53
53
  id: '6',
54
54
  name: 'Presentation file',
55
- value: (_jsx(FileDisplay, { displayText: args.withDisplayText ? 'review.pps' : undefined, value: args.withValue ? 'https://pega.com/media/review.pps' : undefined, onPreview: handlePreview, onDownload: handleDownload }, void 0))
55
+ value: (_jsx(FileDisplay, { displayText: args.withDisplayText ? 'review.pps' : undefined, value: args.withValue ? 'https://pega.com/media/review.pps' : undefined, onPreview: handlePreview, onDownload: handleDownload }))
56
56
  },
57
57
  {
58
58
  id: '7',
59
59
  name: 'Spreadsheet file',
60
- value: (_jsx(FileDisplay, { displayText: args.withDisplayText ? 'welfare.xlsx' : undefined, value: args.withValue ? 'https://pega.com/media/welfare.xlsx' : undefined, onPreview: handlePreview, onDownload: handleDownload }, void 0))
60
+ value: (_jsx(FileDisplay, { displayText: args.withDisplayText ? 'welfare.xlsx' : undefined, value: args.withValue ? 'https://pega.com/media/welfare.xlsx' : undefined, onPreview: handlePreview, onDownload: handleDownload }))
61
61
  }
62
62
  ];
63
- return _jsx(FieldValueList, { fields: fields }, void 0);
63
+ return _jsx(FieldValueList, { fields: fields });
64
64
  };
65
65
  FileDisplayTypes.args = {
66
66
  withDisplayText: true
@@ -69,21 +69,15 @@ FileDisplayTypes.argTypes = {
69
69
  withDisplayText: { control: { type: 'boolean' } }
70
70
  };
71
71
  export const FileDisplayDemo = (args) => {
72
- const [buttonEl, setButtonEl] = useElement();
73
- const [popoverEl, setPopoverEl] = useElement();
74
- const [showPreview, setShowPreview] = useState(false);
75
- useOuterEvent('click', [buttonEl, popoverEl], () => setShowPreview(false));
76
- const imageSrc = 'https://www.pega.com/sites/default/files/styles/480/public/media/images/2021-02/pwi-2021-prevcard.jpg';
77
- const handlePreview = args.withPreview ? () => setShowPreview(true) : undefined;
72
+ const { push } = useContext(ToasterContext);
73
+ const handlePreview = args.withPreview
74
+ ? (url) => push({ content: `Previewed ${url}` })
75
+ : undefined;
78
76
  const handleDownload = args.withDownload
79
- ? () => {
80
- const element = document.createElement('a');
81
- element.href = imageSrc;
82
- element.download = 'cosmos_file_display_download.jpg';
83
- element.click();
84
- }
77
+ ? (url) => push({ content: `Downloaded ${url}` })
85
78
  : undefined;
86
- return (_jsxs(_Fragment, { children: [_jsx(FileDisplay, { ref: setButtonEl, variant: args.variant, displayText: args.displayText, value: args.withValue ? imageSrc : undefined, onPreview: handlePreview, onDownload: handleDownload }, void 0), _jsx(Popover, { ref: setPopoverEl, show: showPreview, target: buttonEl, children: _jsx(Image, { src: imageSrc, alt: args.displayText || 'Pega World iNspire' }, void 0) }, void 0)] }, void 0));
79
+ const imageSrc = 'https://www.pega.com/sites/default/files/styles/480/public/media/images/2021-02/pwi-2021-prevcard.jpg';
80
+ return (_jsx(FileDisplay, { variant: args.variant, displayText: args.displayText, value: args.withValue ? imageSrc : undefined, onPreview: handlePreview, onDownload: handleDownload }));
87
81
  };
88
82
  FileDisplayDemo.args = {
89
83
  variant: 'file',
@@ -94,21 +88,15 @@ FileDisplayDemo.argTypes = {
94
88
  displayText: { control: { type: 'text' } }
95
89
  };
96
90
  export const FileUploadItemDemo = (args) => {
97
- const [fileEl, setFileEl] = useElement();
98
- const [popoverEl, setPopoverEl] = useElement();
99
- const [showPreview, setShowPreview] = useState(false);
100
- useOuterEvent('click', [fileEl, popoverEl], () => setShowPreview(false));
101
- const imageSrc = 'https://www.pega.com/sites/default/files/styles/480/public/media/images/2021-02/pwi-2021-prevcard.jpg';
102
- const handlePreview = args.withPreview ? () => setShowPreview(true) : undefined;
91
+ const { push } = useContext(ToasterContext);
92
+ const handlePreview = args.withPreview
93
+ ? (url) => push({ content: `Previewed ${url}` })
94
+ : undefined;
103
95
  const handleDownload = args.withDownload
104
- ? () => {
105
- const element = document.createElement('a');
106
- element.href = imageSrc;
107
- element.download = 'cosmos_file_display_download.jpg';
108
- element.click();
109
- }
96
+ ? (url) => push({ content: `Downloaded ${url}` })
110
97
  : undefined;
111
- return (_jsxs(_Fragment, { children: [_jsx(FileUploadItem, { ref: setFileEl, name: args.name, meta: args.meta, error: args.error, progress: args.progress, thumbnail: imageSrc, onPreview: handlePreview, onDownload: handleDownload }, void 0), _jsx(Popover, { ref: setPopoverEl, show: showPreview, target: fileEl, strategy: 'fixed', children: _jsx(Image, { src: imageSrc, alt: args.name }, void 0) }, void 0)] }, void 0));
98
+ const imageSrc = 'https://www.pega.com/sites/default/files/styles/480/public/media/images/2021-02/pwi-2021-prevcard.jpg';
99
+ return (_jsx(FileUploadItem, { name: args.name, meta: args.meta, error: args.error, progress: args.progress, thumbnail: imageSrc, onPreview: handlePreview, onDownload: handleDownload }));
112
100
  };
113
101
  FileUploadItemDemo.args = {
114
102
  name: 'Pega World iNspire',
@@ -1 +1 @@
1
- {"version":3,"file":"FileDisplay.stories.js","sourceRoot":"","sources":["../../../src/core/File/FileDisplay.stories.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE7C,OAAO,EACL,WAAW,EAGX,cAAc,EACd,KAAK,EACL,OAAO,EACP,cAAc,EACd,UAAU,EACV,aAAa,EAEb,cAAc,EACf,MAAM,yBAAyB,CAAC;AAEjC,eAAe;IACb,KAAK,EAAE,mBAAmB;IAC1B,SAAS,EAAE,WAAW;IACtB,IAAI,EAAE;QACJ,SAAS,EAAE,IAAI;QACf,WAAW,EAAE,IAAI;QACjB,YAAY,EAAE,IAAI;KACnB;IACD,QAAQ,EAAE;QACR,SAAS,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;QAC3C,WAAW,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;QAC7C,YAAY,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;KAC/C;CACM,CAAC;AASV,MAAM,CAAC,MAAM,gBAAgB,GAAgC,CAAC,IAA0B,EAAE,EAAE;IAC1F,MAAM,EAAE,IAAI,EAAE,GAAG,UAAU,CAAC,cAAc,CAAC,CAAC;IAE5C,MAAM,aAAa,GAAG,IAAI,CAAC,WAAW;QACpC,CAAC,CAAC,CAAC,GAAyB,EAAE,EAAE,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,aAAa,GAAG,EAAE,EAAE,CAAC;QACtE,CAAC,CAAC,SAAS,CAAC;IAEd,MAAM,cAAc,GAAG,IAAI,CAAC,YAAY;QACtC,CAAC,CAAC,CAAC,GAAyB,EAAE,EAAE,CAAC,IAA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AM,EAAE,EAAE;IACnC,KAAK,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IACvC,QAAQ,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;CAC1C,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\nimport { useContext, useState } from 'react';\n\nimport {\n FileDisplay,\n FileDisplayProps,\n FileItemProps,\n FieldValueList,\n Image,\n Popover,\n ToasterContext,\n useElement,\n useOuterEvent,\n FileUploadItemProps,\n FileUploadItem\n} from '@pega/cosmos-react-core';\n\nexport default {\n title: 'Core/File/Display',\n component: FileDisplay,\n args: {\n withValue: true,\n withPreview: true,\n withDownload: true\n },\n argTypes: {\n withValue: { control: { type: 'boolean' } },\n withPreview: { control: { type: 'boolean' } },\n withDownload: { control: { type: 'boolean' } }\n }\n} as Meta;\n\ninterface FileDisplayDemoProps {\n withDisplayText?: boolean;\n withValue?: boolean;\n withPreview?: boolean;\n withDownload?: boolean;\n}\n\nexport const FileDisplayTypes: Story<FileDisplayDemoProps> = (args: FileDisplayDemoProps) => {\n const { push } = useContext(ToasterContext);\n\n const handlePreview = args.withPreview\n ? (url: FileItemProps['url']) => push({ content: `Previewed ${url}` })\n : undefined;\n\n const handleDownload = args.withDownload\n ? (url: FileItemProps['url']) => push({ content: `Downloaded ${url}` })\n : undefined;\n\n const fields = [\n {\n id: '1',\n name: 'Image file',\n value: (\n <FileDisplay\n displayText={args.withDisplayText ? 'image.jpg' : undefined}\n value={args.withValue ? 'https://pbs.twimg.com/media/ENNN5PAXkAE-hag.jpg' : undefined}\n onPreview={handlePreview}\n onDownload={handleDownload}\n />\n )\n },\n {\n id: '2',\n name: 'Video file',\n value: (\n <FileDisplay\n displayText={args.withDisplayText ? 'video.avi' : undefined}\n value={args.withValue ? 'https://pega.com/media/some-video.avi' : undefined}\n onPreview={handlePreview}\n onDownload={handleDownload}\n />\n )\n },\n {\n id: '3',\n name: 'Audio file',\n value: (\n <FileDisplay\n displayText={args.withDisplayText ? 'recording.mp3' : undefined}\n value={args.withValue ? 'https://pega.com/media/sprint-review-recording.mp3' : undefined}\n onPreview={handlePreview}\n onDownload={handleDownload}\n />\n )\n },\n {\n id: '4',\n name: 'Document file',\n value: (\n <FileDisplay\n displayText={args.withDisplayText ? 'document.doc' : undefined}\n value={args.withValue ? 'https://pega.com/media/document.doc' : undefined}\n onPreview={handlePreview}\n onDownload={handleDownload}\n />\n )\n },\n {\n id: '5',\n name: 'PDF file',\n value: (\n <FileDisplay\n displayText={args.withDisplayText ? 'invoice.pdf' : undefined}\n value={args.withValue ? 'https://pega.com/media/invoice.pdf' : undefined}\n onPreview={handlePreview}\n onDownload={handleDownload}\n />\n )\n },\n {\n id: '6',\n name: 'Presentation file',\n value: (\n <FileDisplay\n displayText={args.withDisplayText ? 'review.pps' : undefined}\n value={args.withValue ? 'https://pega.com/media/review.pps' : undefined}\n onPreview={handlePreview}\n onDownload={handleDownload}\n />\n )\n },\n {\n id: '7',\n name: 'Spreadsheet file',\n value: (\n <FileDisplay\n displayText={args.withDisplayText ? 'welfare.xlsx' : undefined}\n value={args.withValue ? 'https://pega.com/media/welfare.xlsx' : undefined}\n onPreview={handlePreview}\n onDownload={handleDownload}\n />\n )\n }\n ];\n\n return <FieldValueList fields={fields} />;\n};\n\nFileDisplayTypes.args = {\n withDisplayText: true\n};\n\nFileDisplayTypes.argTypes = {\n withDisplayText: { control: { type: 'boolean' } }\n};\n\nexport const FileDisplayDemo: Story<FileDisplayProps & FileDisplayDemoProps> = (\n args: FileDisplayProps & FileDisplayDemoProps\n) => {\n const [buttonEl, setButtonEl] = useElement();\n const [popoverEl, setPopoverEl] = useElement();\n const [showPreview, setShowPreview] = useState(false);\n\n useOuterEvent('click', [buttonEl, popoverEl], () => setShowPreview(false));\n\n const imageSrc =\n 'https://www.pega.com/sites/default/files/styles/480/public/media/images/2021-02/pwi-2021-prevcard.jpg';\n\n const handlePreview = args.withPreview ? () => setShowPreview(true) : undefined;\n\n const handleDownload = args.withDownload\n ? () => {\n const element = document.createElement('a');\n element.href = imageSrc;\n element.download = 'cosmos_file_display_download.jpg';\n element.click();\n }\n : undefined;\n\n return (\n <>\n <FileDisplay\n ref={setButtonEl}\n variant={args.variant}\n displayText={args.displayText}\n value={args.withValue ? imageSrc : undefined}\n onPreview={handlePreview}\n onDownload={handleDownload}\n />\n <Popover ref={setPopoverEl} show={showPreview} target={buttonEl}>\n <Image src={imageSrc} alt={args.displayText || 'Pega World iNspire'} />\n </Popover>\n </>\n );\n};\n\nFileDisplayDemo.args = {\n variant: 'file',\n displayText: 'Pega World iNspire'\n};\n\nFileDisplayDemo.argTypes = {\n variant: { options: ['file', 'text', 'link'], control: { type: 'radio' } },\n displayText: { control: { type: 'text' } }\n};\n\ninterface FileUploadItemDemoProps extends FileDisplayDemoProps {\n name: FileUploadItemProps['name'];\n meta?: FileUploadItemProps['meta'];\n error?: FileUploadItemProps['error'];\n progress?: FileUploadItemProps['progress'];\n}\n\nexport const FileUploadItemDemo: Story<FileUploadItemDemoProps> = (\n args: FileUploadItemDemoProps\n) => {\n const [fileEl, setFileEl] = useElement();\n const [popoverEl, setPopoverEl] = useElement();\n const [showPreview, setShowPreview] = useState(false);\n\n useOuterEvent('click', [fileEl, popoverEl], () => setShowPreview(false));\n\n const imageSrc =\n 'https://www.pega.com/sites/default/files/styles/480/public/media/images/2021-02/pwi-2021-prevcard.jpg';\n\n const handlePreview = args.withPreview ? () => setShowPreview(true) : undefined;\n\n const handleDownload = args.withDownload\n ? () => {\n const element = document.createElement('a');\n element.href = imageSrc;\n element.download = 'cosmos_file_display_download.jpg';\n element.click();\n }\n : undefined;\n\n return (\n <>\n <FileUploadItem\n ref={setFileEl}\n name={args.name}\n meta={args.meta}\n error={args.error}\n progress={args.progress}\n thumbnail={imageSrc}\n onPreview={handlePreview}\n onDownload={handleDownload}\n />\n <Popover ref={setPopoverEl} show={showPreview} target={fileEl} strategy='fixed'>\n <Image src={imageSrc} alt={args.name} />\n </Popover>\n </>\n );\n};\n\nFileUploadItemDemo.args = {\n name: 'Pega World iNspire',\n meta: 'Some additional information',\n error: false,\n progress: 100\n};\n\nFileUploadItemDemo.argTypes = {\n withValue: { table: { disable: true } },\n name: { control: { type: 'text' } },\n meta: { control: { type: 'text' } },\n error: { control: { type: 'boolean' } },\n progress: { control: { type: 'number' } }\n};\n"]}
1
+ {"version":3,"file":"FileDisplay.stories.js","sourceRoot":"","sources":["../../../src/core/File/FileDisplay.stories.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAEnC,OAAO,EACL,WAAW,EAGX,cAAc,EACd,cAAc,EAEd,cAAc,EACf,MAAM,yBAAyB,CAAC;AAEjC,eAAe;IACb,KAAK,EAAE,mBAAmB;IAC1B,SAAS,EAAE,WAAW;IACtB,IAAI,EAAE;QACJ,SAAS,EAAE,IAAI;QACf,WAAW,EAAE,IAAI;QACjB,YAAY,EAAE,IAAI;KACnB;IACD,QAAQ,EAAE;QACR,SAAS,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;QAC3C,WAAW,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;QAC7C,YAAY,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;KAC/C;CACM,CAAC;AASV,MAAM,CAAC,MAAM,gBAAgB,GAAgC,CAAC,IAA0B,EAAE,EAAE;IAC1F,MAAM,EAAE,IAAI,EAAE,GAAG,UAAU,CAAC,cAAc,CAAC,CAAC;IAE5C,MAAM,aAAa,GAAG,IAAI,CAAC,WAAW;QACpC,CAAC,CAAC,CAAC,GAAyB,EAAE,EAAE,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,aAAa,GAAG,EAAE,EAAE,CAAC;QACtE,CAAC,CAAC,SAAS,CAAC;IAEd,MAAM,cAAc,GAAG,IAAI,CAAC,YAAY;Q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AAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;IACnC,IAAI,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;IACnC,KAAK,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IACvC,QAAQ,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;CAC1C,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\nimport { useContext } from 'react';\n\nimport {\n FileDisplay,\n FileDisplayProps,\n FileItemProps,\n FieldValueList,\n ToasterContext,\n FileUploadItemProps,\n FileUploadItem\n} from '@pega/cosmos-react-core';\n\nexport default {\n title: 'Core/File/Display',\n component: FileDisplay,\n args: {\n withValue: true,\n withPreview: true,\n withDownload: true\n },\n argTypes: {\n withValue: { control: { type: 'boolean' } },\n withPreview: { control: { type: 'boolean' } },\n withDownload: { control: { type: 'boolean' } }\n }\n} as Meta;\n\ninterface FileDisplayDemoProps {\n withDisplayText?: boolean;\n withValue?: boolean;\n withPreview?: boolean;\n withDownload?: boolean;\n}\n\nexport const FileDisplayTypes: Story<FileDisplayDemoProps> = (args: FileDisplayDemoProps) => {\n const { push } = useContext(ToasterContext);\n\n const handlePreview = args.withPreview\n ? (url: FileItemProps['url']) => push({ content: `Previewed ${url}` })\n : undefined;\n\n const handleDownload = args.withDownload\n ? (url: FileItemProps['url']) => push({ content: `Downloaded ${url}` })\n : undefined;\n\n const fields = [\n {\n id: '1',\n name: 'Image file',\n value: (\n <FileDisplay\n displayText={args.withDisplayText ? 'image.jpg' : undefined}\n value={args.withValue ? 'https://pbs.twimg.com/media/ENNN5PAXkAE-hag.jpg' : undefined}\n onPreview={handlePreview}\n onDownload={handleDownload}\n />\n )\n },\n {\n id: '2',\n name: 'Video file',\n value: (\n <FileDisplay\n displayText={args.withDisplayText ? 'video.avi' : undefined}\n value={args.withValue ? 'https://pega.com/media/some-video.avi' : undefined}\n onPreview={handlePreview}\n onDownload={handleDownload}\n />\n )\n },\n {\n id: '3',\n name: 'Audio file',\n value: (\n <FileDisplay\n displayText={args.withDisplayText ? 'recording.mp3' : undefined}\n value={args.withValue ? 'https://pega.com/media/sprint-review-recording.mp3' : undefined}\n onPreview={handlePreview}\n onDownload={handleDownload}\n />\n )\n },\n {\n id: '4',\n name: 'Document file',\n value: (\n <FileDisplay\n displayText={args.withDisplayText ? 'document.doc' : undefined}\n value={args.withValue ? 'https://pega.com/media/document.doc' : undefined}\n onPreview={handlePreview}\n onDownload={handleDownload}\n />\n )\n },\n {\n id: '5',\n name: 'PDF file',\n value: (\n <FileDisplay\n displayText={args.withDisplayText ? 'invoice.pdf' : undefined}\n value={args.withValue ? 'https://pega.com/media/invoice.pdf' : undefined}\n onPreview={handlePreview}\n onDownload={handleDownload}\n />\n )\n },\n {\n id: '6',\n name: 'Presentation file',\n value: (\n <FileDisplay\n displayText={args.withDisplayText ? 'review.pps' : undefined}\n value={args.withValue ? 'https://pega.com/media/review.pps' : undefined}\n onPreview={handlePreview}\n onDownload={handleDownload}\n />\n )\n },\n {\n id: '7',\n name: 'Spreadsheet file',\n value: (\n <FileDisplay\n displayText={args.withDisplayText ? 'welfare.xlsx' : undefined}\n value={args.withValue ? 'https://pega.com/media/welfare.xlsx' : undefined}\n onPreview={handlePreview}\n onDownload={handleDownload}\n />\n )\n }\n ];\n\n return <FieldValueList fields={fields} />;\n};\n\nFileDisplayTypes.args = {\n withDisplayText: true\n};\n\nFileDisplayTypes.argTypes = {\n withDisplayText: { control: { type: 'boolean' } }\n};\n\nexport const FileDisplayDemo: Story<FileDisplayProps & FileDisplayDemoProps> = (\n args: FileDisplayProps & FileDisplayDemoProps\n) => {\n const { push } = useContext(ToasterContext);\n\n const handlePreview = args.withPreview\n ? (url: FileItemProps['url']) => push({ content: `Previewed ${url}` })\n : undefined;\n\n const handleDownload = args.withDownload\n ? (url: FileItemProps['url']) => push({ content: `Downloaded ${url}` })\n : undefined;\n\n const imageSrc =\n 'https://www.pega.com/sites/default/files/styles/480/public/media/images/2021-02/pwi-2021-prevcard.jpg';\n\n return (\n <FileDisplay\n variant={args.variant}\n displayText={args.displayText}\n value={args.withValue ? imageSrc : undefined}\n onPreview={handlePreview}\n onDownload={handleDownload}\n />\n );\n};\n\nFileDisplayDemo.args = {\n variant: 'file',\n displayText: 'Pega World iNspire'\n};\n\nFileDisplayDemo.argTypes = {\n variant: { options: ['file', 'text', 'link'], control: { type: 'radio' } },\n displayText: { control: { type: 'text' } }\n};\n\ninterface FileUploadItemDemoProps extends FileDisplayDemoProps {\n name: FileUploadItemProps['name'];\n meta?: FileUploadItemProps['meta'];\n error?: FileUploadItemProps['error'];\n progress?: FileUploadItemProps['progress'];\n}\n\nexport const FileUploadItemDemo: Story<FileUploadItemDemoProps> = (\n args: FileUploadItemDemoProps\n) => {\n const { push } = useContext(ToasterContext);\n\n const handlePreview = args.withPreview\n ? (url: FileItemProps['url']) => push({ content: `Previewed ${url}` })\n : undefined;\n\n const handleDownload = args.withDownload\n ? (url: FileItemProps['url']) => push({ content: `Downloaded ${url}` })\n : undefined;\n\n const imageSrc =\n 'https://www.pega.com/sites/default/files/styles/480/public/media/images/2021-02/pwi-2021-prevcard.jpg';\n\n return (\n <FileUploadItem\n name={args.name}\n meta={args.meta}\n error={args.error}\n progress={args.progress}\n thumbnail={imageSrc}\n onPreview={handlePreview}\n onDownload={handleDownload}\n />\n );\n};\n\nFileUploadItemDemo.args = {\n name: 'Pega World iNspire',\n meta: 'Some additional information',\n error: false,\n progress: 100\n};\n\nFileUploadItemDemo.argTypes = {\n withValue: { table: { disable: true } },\n name: { control: { type: 'text' } },\n meta: { control: { type: 'text' } },\n error: { control: { type: 'boolean' } },\n progress: { control: { type: 'number' } }\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"FileInput.stories.d.ts","sourceRoot":"","sources":["../../../src/core/File/FileInput.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAG/C,OAAO,EAEL,cAAc,EAGf,MAAM,yBAAyB,CAAC;;AAGjC,wBAGU;AAEV,UAAU,mBAAoB,SAAQ,cAAc;IAClD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,mBAAmB,CA+EpD,CAAC"}
1
+ {"version":3,"file":"FileInput.stories.d.ts","sourceRoot":"","sources":["../../../src/core/File/FileInput.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAG/C,OAAO,EAEL,cAAc,EAGf,MAAM,yBAAyB,CAAC;;AAIjC,wBAGU;AAEV,UAAU,mBAAoB,SAAQ,cAAc;IAClD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,mBAAmB,CA+EpD,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { useState, useMemo, useCallback, useRef, useContext } from 'react';
3
3
  import { FileInput, createUID, useAfterInitialEffect } from '@pega/cosmos-react-core';
4
- import { FileServiceContext } from '@pega/cosmos-react-demos/lib/work/CaseView/FileService.mock';
4
+ import { FileServiceContext } from '../../work/CaseView/FileService.mock';
5
5
  export default {
6
6
  title: 'Core/File/Input',
7
7
  component: FileInput
@@ -43,7 +43,7 @@ export const FileInputDemo = (args) => {
43
43
  }, [files.length]);
44
44
  const info = useMemo(() => {
45
45
  return hasError
46
- ? errCounts.current.invalidSize > 0 && (_jsx("div", { children: `File size must be less than ${sizeLimit}MB` }, void 0))
46
+ ? errCounts.current.invalidSize > 0 && (_jsx("div", { children: `File size must be less than ${sizeLimit}MB` }))
47
47
  : null;
48
48
  }, [hasError]);
49
49
  return (_jsx(FileInput, { label: args.label, labelHidden: args.labelHidden, multiple: args.multiple, status: hasError ? 'error' : undefined, info: info, required: args.required, disabled: args.disabled, onFilesAdded: onFilesAdded, files: files.map(file => {
@@ -57,7 +57,7 @@ export const FileInputDemo = (args) => {
57
57
  }
58
58
  };
59
59
  return file;
60
- }) }, void 0));
60
+ }) }));
61
61
  };
62
62
  FileInputDemo.args = {
63
63
  multiple: true,
@@ -1 +1 @@
1
- {"version":3,"file":"FileInput.stories.js","sourceRoot":"","sources":["../../../src/core/File/FileInput.stories.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAE3E,OAAO,EACL,SAAS,EAET,SAAS,EACT,qBAAqB,EACtB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,kBAAkB,EAAE,MAAM,6DAA6D,CAAC;AAEjG,eAAe;IACb,KAAK,EAAE,iBAAiB;IACxB,SAAS,EAAE,SAAS;CACb,CAAC;AAMV,MAAM,CAAC,MAAM,aAAa,GAA+B,CAAC,IAAyB,EAAE,EAAE;IACrF,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,GAAG,UAAU,CAAC,kBAAkB,CAAC,CAAC;IACrF,MAAM,SAAS,GAAG,MAAM,CAAC,EAAE,WAAW,EAAE,CAAC,EAAE,WAAW,EAAE,CAAC,EAAE,CAAC,CAAC;IAC7D,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAEhD,MAAM,SAAS,GAAG,IAAI,CAAC,SAAS,IAAI,GAAG,CAAC;IAExC,8EAA8E;IAC9E,MAAM,YAAY,GAAG,WAAW,CAC9B,CAAC,UAAkB,EAAE,EAAE;QACrB,SAAS,CAAC,OAAO,GAAG,EAAE,WAAW,EAAE,CAAC,EAAE,WAAW,EAAE,CAAC,EAAE,CAAC;QAEvD,MAAM,QAAQ,GAAG,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,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O,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IAC7C,QAAQ,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IAC1C,QAAQ,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;CAC3C,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\nimport { useState, useMemo, useCallback, useRef, useContext } from 'react';\n\nimport {\n FileInput,\n FileInputProps,\n createUID,\n useAfterInitialEffect\n} from '@pega/cosmos-react-core';\nimport { FileServiceContext } from '@pega/cosmos-react-demos/lib/work/CaseView/FileService.mock';\n\nexport default {\n title: 'Core/File/Input',\n component: FileInput\n} as Meta;\n\ninterface FileInputStoryProps extends FileInputProps {\n sizeLimit?: number;\n}\n\nexport const FileInputDemo: Story<FileInputStoryProps> = (args: FileInputStoryProps) => {\n const { files, attachFile, cancelFile, deleteFile } = useContext(FileServiceContext);\n const errCounts = useRef({ invalidType: 0, invalidSize: 0 });\n const [hasError, setHasError] = useState(false);\n\n const sizeLimit = args.sizeLimit || 100;\n\n // Fires anytime files are added to the input either through selection or drop\n const onFilesAdded = useCallback(\n (addedFiles: File[]) => {\n errCounts.current = { invalidType: 0, invalidSize: 0 };\n\n const newFiles = addedFiles.filter(f => {\n let isValidSize = true;\n\n if (f.size / 1000000 > sizeLimit) {\n errCounts.current.invalidSize += 1;\n isValidSize = false;\n }\n\n return isValidSize;\n });\n\n setHasError(newFiles.length < addedFiles.length);\n\n newFiles.forEach((File: File) => {\n const id = createUID();\n attachFile({\n id,\n thumbnail: File.type.startsWith('image') ? URL.createObjectURL(File) : undefined,\n name: File.name,\n category: '',\n File,\n onCancel: () => {\n cancelFile(id);\n }\n });\n });\n },\n [attachFile, deleteFile]\n );\n\n useAfterInitialEffect(() => {\n if (files.length === 0) setHasError(false);\n }, [files.length]);\n\n const info = useMemo(() => {\n return hasError\n ? errCounts.current.invalidSize > 0 && (\n <div>{`File size must be less than ${sizeLimit}MB`}</div>\n )\n : null;\n }, [hasError]);\n\n return (\n <FileInput\n label={args.label}\n labelHidden={args.labelHidden}\n multiple={args.multiple}\n status={hasError ? 'error' : undefined}\n info={info}\n required={args.required}\n disabled={args.disabled}\n onFilesAdded={onFilesAdded}\n files={files.map(file => {\n return {\n ...file,\n onCancel: undefined,\n onPreview: () => {},\n onDownload: () => {},\n onDelete: () => {\n deleteFile(file.id);\n }\n };\n\n return file;\n })}\n />\n );\n};\n\nFileInputDemo.args = {\n multiple: true,\n sizeLimit: 100,\n label: 'File input label',\n labelHidden: false,\n required: false,\n disabled: false\n};\n\nFileInputDemo.argTypes = {\n multiple: { control: { type: 'boolean' } },\n sizeLimit: { control: { type: 'number' } },\n label: { control: { type: 'text' } },\n labelHidden: { control: { type: 'boolean' } },\n required: { control: { type: 'boolean' } },\n disabled: { control: { type: 'boolean' } }\n};\n"]}
1
+ {"version":3,"file":"FileInput.stories.js","sourceRoot":"","sources":["../../../src/core/File/FileInput.stories.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAE3E,OAAO,EACL,SAAS,EAET,SAAS,EACT,qBAAqB,EACtB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAE1E,eAAe;IACb,KAAK,EAAE,iBAAiB;IACxB,SAAS,EAAE,SAAS;CACb,CAAC;AAMV,MAAM,CAAC,MAAM,aAAa,GAA+B,CAAC,IAAyB,EAAE,EAAE;IACrF,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,GAAG,UAAU,CAAC,kBAAkB,CAAC,CAAC;IACrF,MAAM,SAAS,GAAG,MAAM,CAAC,EAAE,WAAW,EAAE,CAAC,EAAE,WAAW,EAAE,CAAC,EAAE,CAAC,CAAC;IAC7D,MAAM,CAAC,QAAQ,E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AAK;IAClB,QAAQ,EAAE,KAAK;IACf,QAAQ,EAAE,KAAK;CAChB,CAAC;AAEF,aAAa,CAAC,QAAQ,GAAG;IACvB,QAAQ,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IAC1C,SAAS,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;IAC1C,KAAK,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;IACpC,WAAW,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IAC7C,QAAQ,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IAC1C,QAAQ,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;CAC3C,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\nimport { useState, useMemo, useCallback, useRef, useContext } from 'react';\n\nimport {\n FileInput,\n FileInputProps,\n createUID,\n useAfterInitialEffect\n} from '@pega/cosmos-react-core';\n\nimport { FileServiceContext } from '../../work/CaseView/FileService.mock';\n\nexport default {\n title: 'Core/File/Input',\n component: FileInput\n} as Meta;\n\ninterface FileInputStoryProps extends FileInputProps {\n sizeLimit?: number;\n}\n\nexport const FileInputDemo: Story<FileInputStoryProps> = (args: FileInputStoryProps) => {\n const { files, attachFile, cancelFile, deleteFile } = useContext(FileServiceContext);\n const errCounts = useRef({ invalidType: 0, invalidSize: 0 });\n const [hasError, setHasError] = useState(false);\n\n const sizeLimit = args.sizeLimit || 100;\n\n // Fires anytime files are added to the input either through selection or drop\n const onFilesAdded = useCallback(\n (addedFiles: File[]) => {\n errCounts.current = { invalidType: 0, invalidSize: 0 };\n\n const newFiles = addedFiles.filter(f => {\n let isValidSize = true;\n\n if (f.size / 1000000 > sizeLimit) {\n errCounts.current.invalidSize += 1;\n isValidSize = false;\n }\n\n return isValidSize;\n });\n\n setHasError(newFiles.length < addedFiles.length);\n\n newFiles.forEach((File: File) => {\n const id = createUID();\n attachFile({\n id,\n thumbnail: File.type.startsWith('image') ? URL.createObjectURL(File) : undefined,\n name: File.name,\n category: '',\n File,\n onCancel: () => {\n cancelFile(id);\n }\n });\n });\n },\n [attachFile, deleteFile]\n );\n\n useAfterInitialEffect(() => {\n if (files.length === 0) setHasError(false);\n }, [files.length]);\n\n const info = useMemo(() => {\n return hasError\n ? errCounts.current.invalidSize > 0 && (\n <div>{`File size must be less than ${sizeLimit}MB`}</div>\n )\n : null;\n }, [hasError]);\n\n return (\n <FileInput\n label={args.label}\n labelHidden={args.labelHidden}\n multiple={args.multiple}\n status={hasError ? 'error' : undefined}\n info={info}\n required={args.required}\n disabled={args.disabled}\n onFilesAdded={onFilesAdded}\n files={files.map(file => {\n return {\n ...file,\n onCancel: undefined,\n onPreview: () => {},\n onDownload: () => {},\n onDelete: () => {\n deleteFile(file.id);\n }\n };\n\n return file;\n })}\n />\n );\n};\n\nFileInputDemo.args = {\n multiple: true,\n sizeLimit: 100,\n label: 'File input label',\n labelHidden: false,\n required: false,\n disabled: false\n};\n\nFileInputDemo.argTypes = {\n multiple: { control: { type: 'boolean' } },\n sizeLimit: { control: { type: 'number' } },\n label: { control: { type: 'text' } },\n labelHidden: { control: { type: 'boolean' } },\n required: { control: { type: 'boolean' } },\n disabled: { control: { type: 'boolean' } }\n};\n"]}
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { Meta, Story } from '@storybook/react';
3
2
  import { FlexContainerProps } from '@pega/cosmos-react-core';
4
3
  declare const _default: Meta<import("@storybook/react").Args>;
@@ -18,5 +17,5 @@ export declare const Wrap: Story<FlexStoryProps>;
18
17
  export declare const Justify: Story<FlexStoryProps>;
19
18
  export declare const AlignItems: Story<FlexStoryProps>;
20
19
  export declare const AlignContent: Story<FlexStoryProps>;
21
- export declare const ResponsiveFlex: () => JSX.Element;
20
+ export declare const ResponsiveFlex: Story;
22
21
  //# sourceMappingURL=FlexContainer.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FlexContainer.stories.d.ts","sourceRoot":"","sources":["../../../src/core/Flex/FlexContainer.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,SAAS,CAAC,EAAE,kBAAkB,CAAC,WAAW,CAAC,CAAC;IAC5C,GAAG,CAAC,EAAE,kBAAkB,CAAC,KAAK,CAAC,CAAC;IAChC,GAAG,CAAC,EAAE,kBAAkB,CAAC,KAAK,CAAC,CAAC;IAChC,IAAI,CAAC,EAAE,kBAAkB,CAAC,MAAM,CAAC,CAAC;IAClC,OAAO,CAAC,EAAE,kBAAkB,CAAC,SAAS,CAAC,CAAC;IACxC,UAAU,CAAC,EAAE,kBAAkB,CAAC,YAAY,CAAC,CAAC;IAC9C,YAAY,CAAC,EAAE,kBAAkB,CAAC,cAAc,CAAC,CAAC;CACnD;AAED,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,cAAc,CAc3C,CAAC;AAaF,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,cAAc,CAc/C,CAAC;AAYF,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,cAAc,CAoBtC,CAAC;AAUF,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,cAAc,CAczC,CAAC;AAaF,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,cAAc,CAoB5C,CAAC;AAaF,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,cAAc,CAyB9C,CAAC;AAaF,eAAO,MAAM,cAAc,mBAsB1B,CAAC"}
1
+ {"version":3,"file":"FlexContainer.stories.d.ts","sourceRoot":"","sources":["../../../src/core/Flex/FlexContainer.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,SAAS,CAAC,EAAE,kBAAkB,CAAC,WAAW,CAAC,CAAC;IAC5C,GAAG,CAAC,EAAE,kBAAkB,CAAC,KAAK,CAAC,CAAC;IAChC,GAAG,CAAC,EAAE,kBAAkB,CAAC,KAAK,CAAC,CAAC;IAChC,IAAI,CAAC,EAAE,kBAAkB,CAAC,MAAM,CAAC,CAAC;IAClC,OAAO,CAAC,EAAE,kBAAkB,CAAC,SAAS,CAAC,CAAC;IACxC,UAAU,CAAC,EAAE,kBAAkB,CAAC,YAAY,CAAC,CAAC;IAC9C,YAAY,CAAC,EAAE,kBAAkB,CAAC,cAAc,CAAC,CAAC;CACnD;AAED,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,cAAc,CAc3C,CAAC;AAaF,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,cAAc,CAc/C,CAAC;AAYF,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,cAAc,CAoBtC,CAAC;AAUF,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,cAAc,CAczC,CAAC;AAaF,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,cAAc,CAoB5C,CAAC;AAaF,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,cAAc,CAyB9C,CAAC;AAaF,eAAO,MAAM,cAAc,EAAE,KAsB5B,CAAC"}
@@ -9,7 +9,7 @@ export default {
9
9
  }
10
10
  };
11
11
  export const Direction = (args) => {
12
- return (_jsxs(Flex, { container: { direction: args.direction, pad: 2 }, as: StyledFlexContainer, children: [_jsx(Flex, { item: { grow: 1 }, as: StyledFlexItem, children: _jsx(Text, { children: "Item 1" }, void 0) }, void 0), _jsx(Flex, { item: { grow: 1 }, as: StyledFlexItem, children: _jsx(Text, { children: "Item 2" }, void 0) }, void 0), _jsx(Flex, { item: { grow: 1 }, as: StyledFlexItem, children: _jsx(Text, { children: "Item 3" }, void 0) }, void 0)] }, void 0));
12
+ return (_jsxs(Flex, { container: { direction: args.direction, pad: 2 }, as: StyledFlexContainer, children: [_jsx(Flex, { item: { grow: 1 }, as: StyledFlexItem, children: _jsx(Text, { children: "Item 1" }) }), _jsx(Flex, { item: { grow: 1 }, as: StyledFlexItem, children: _jsx(Text, { children: "Item 2" }) }), _jsx(Flex, { item: { grow: 1 }, as: StyledFlexItem, children: _jsx(Text, { children: "Item 3" }) })] }));
13
13
  };
14
14
  Direction.args = {
15
15
  direction: 'row'
@@ -21,7 +21,7 @@ Direction.argTypes = {
21
21
  }
22
22
  };
23
23
  export const GapAndPadding = (args) => {
24
- return (_jsxs(Flex, { container: { pad: args.pad, gap: args.gap }, as: StyledFlexContainer, children: [_jsx(Flex, { item: { grow: 1 }, as: StyledFlexItem, children: _jsx(Text, { children: "Item 1" }, void 0) }, void 0), _jsx(Flex, { item: { grow: 1 }, as: StyledFlexItem, children: _jsx(Text, { children: "Item 2" }, void 0) }, void 0), _jsx(Flex, { item: { grow: 1 }, as: StyledFlexItem, children: _jsx(Text, { children: "Item 3" }, void 0) }, void 0)] }, void 0));
24
+ return (_jsxs(Flex, { container: { pad: args.pad, gap: args.gap }, as: StyledFlexContainer, children: [_jsx(Flex, { item: { grow: 1 }, as: StyledFlexItem, children: _jsx(Text, { children: "Item 1" }) }), _jsx(Flex, { item: { grow: 1 }, as: StyledFlexItem, children: _jsx(Text, { children: "Item 2" }) }), _jsx(Flex, { item: { grow: 1 }, as: StyledFlexItem, children: _jsx(Text, { children: "Item 3" }) })] }));
25
25
  };
26
26
  GapAndPadding.args = {
27
27
  pad: 1,
@@ -32,7 +32,7 @@ GapAndPadding.argTypes = {
32
32
  gap: { control: { type: 'number' } }
33
33
  };
34
34
  export const Wrap = (args) => {
35
- return (_jsxs(Flex, { container: { wrap: args.wrap, pad: 2 }, as: StyledFlexContainer, width: 35, children: [_jsx(Flex, { item: { grow: 1 }, as: StyledFlexItem, children: _jsx(Text, { children: "Item 1" }, void 0) }, void 0), _jsx(Flex, { item: { grow: 1 }, as: StyledFlexItem, children: _jsx(Text, { children: "Item 2" }, void 0) }, void 0), _jsx(Flex, { item: { grow: 1 }, as: StyledFlexItem, children: _jsx(Text, { children: "Item 3" }, void 0) }, void 0), _jsx(Flex, { item: { grow: 1 }, as: StyledFlexItem, children: _jsx(Text, { children: "Item 4" }, void 0) }, void 0), _jsx(Flex, { item: { grow: 1 }, as: StyledFlexItem, children: _jsx(Text, { children: "Item 5" }, void 0) }, void 0)] }, void 0));
35
+ return (_jsxs(Flex, { container: { wrap: args.wrap, pad: 2 }, as: StyledFlexContainer, width: 35, children: [_jsx(Flex, { item: { grow: 1 }, as: StyledFlexItem, children: _jsx(Text, { children: "Item 1" }) }), _jsx(Flex, { item: { grow: 1 }, as: StyledFlexItem, children: _jsx(Text, { children: "Item 2" }) }), _jsx(Flex, { item: { grow: 1 }, as: StyledFlexItem, children: _jsx(Text, { children: "Item 3" }) }), _jsx(Flex, { item: { grow: 1 }, as: StyledFlexItem, children: _jsx(Text, { children: "Item 4" }) }), _jsx(Flex, { item: { grow: 1 }, as: StyledFlexItem, children: _jsx(Text, { children: "Item 5" }) })] }));
36
36
  };
37
37
  Wrap.args = {
38
38
  wrap: 'nowrap'
@@ -41,7 +41,7 @@ Wrap.argTypes = {
41
41
  wrap: { options: ['nowrap', 'wrap', 'wrap-reverse'], control: { type: 'select' } }
42
42
  };
43
43
  export const Justify = (args) => {
44
- return (_jsxs(Flex, { container: { justify: args.justify, pad: 2 }, as: StyledFlexContainer, children: [_jsx(StyledFlexItem, { children: _jsx(Text, { children: "Item 1" }, void 0) }, void 0), _jsx(StyledFlexItem, { children: _jsx(Text, { children: "Item 2" }, void 0) }, void 0), _jsx(StyledFlexItem, { children: _jsx(Text, { children: "Item 3" }, void 0) }, void 0)] }, void 0));
44
+ return (_jsxs(Flex, { container: { justify: args.justify, pad: 2 }, as: StyledFlexContainer, children: [_jsx(StyledFlexItem, { children: _jsx(Text, { children: "Item 1" }) }), _jsx(StyledFlexItem, { children: _jsx(Text, { children: "Item 2" }) }), _jsx(StyledFlexItem, { children: _jsx(Text, { children: "Item 3" }) })] }));
45
45
  };
46
46
  Justify.args = {
47
47
  justify: 'start'
@@ -53,7 +53,7 @@ Justify.argTypes = {
53
53
  }
54
54
  };
55
55
  export const AlignItems = (args) => {
56
- return (_jsxs(Flex, { container: { alignItems: args.alignItems, pad: 2 }, as: StyledFlexContainer, height: 15, width: 30, children: [_jsx(Flex, { item: { grow: 1 }, as: StyledFlexItem, children: _jsx(Text, { children: "Item 1" }, void 0) }, void 0), _jsx(Flex, { item: { grow: 1 }, as: StyledFlexItem, noPadding: true, children: _jsx(Text, { children: "Item 2" }, void 0) }, void 0), _jsxs(Flex, { container: { direction: 'column' }, item: { grow: 1 }, as: StyledFlexItem, children: [_jsx(Text, { children: "Item 3 - First line" }, void 0), _jsx(Text, { children: "Item 3 - Second line" }, void 0)] }, void 0)] }, void 0));
56
+ return (_jsxs(Flex, { container: { alignItems: args.alignItems, pad: 2 }, as: StyledFlexContainer, height: 15, width: 30, children: [_jsx(Flex, { item: { grow: 1 }, as: StyledFlexItem, children: _jsx(Text, { children: "Item 1" }) }), _jsx(Flex, { item: { grow: 1 }, as: StyledFlexItem, noPadding: true, children: _jsx(Text, { children: "Item 2" }) }), _jsxs(Flex, { container: { direction: 'column' }, item: { grow: 1 }, as: StyledFlexItem, children: [_jsx(Text, { children: "Item 3 - First line" }), _jsx(Text, { children: "Item 3 - Second line" })] })] }));
57
57
  };
58
58
  AlignItems.args = {
59
59
  alignItems: 'stretch'
@@ -65,7 +65,7 @@ AlignItems.argTypes = {
65
65
  }
66
66
  };
67
67
  export const AlignContent = (args) => {
68
- return (_jsxs(Flex, { container: { alignContent: args.alignContent, wrap: 'wrap', pad: 2 }, as: StyledFlexContainer, height: 20, width: 30, children: [_jsx(Flex, { item: { grow: 1 }, as: StyledFlexItem, children: _jsx(Text, { children: "Item 1" }, void 0) }, void 0), _jsx(Flex, { item: { grow: 1 }, as: StyledFlexItem, children: _jsx(Text, { children: "Item 2" }, void 0) }, void 0), _jsx(Flex, { item: { grow: 1 }, as: StyledFlexItem, children: _jsx(Text, { children: "Item 3" }, void 0) }, void 0), _jsx(Flex, { item: { grow: 1 }, as: StyledFlexItem, children: _jsx(Text, { children: "Item 4" }, void 0) }, void 0), _jsx(Flex, { item: { grow: 1 }, as: StyledFlexItem, children: _jsx(Text, { children: "Item 5" }, void 0) }, void 0)] }, void 0));
68
+ return (_jsxs(Flex, { container: { alignContent: args.alignContent, wrap: 'wrap', pad: 2 }, as: StyledFlexContainer, height: 20, width: 30, children: [_jsx(Flex, { item: { grow: 1 }, as: StyledFlexItem, children: _jsx(Text, { children: "Item 1" }) }), _jsx(Flex, { item: { grow: 1 }, as: StyledFlexItem, children: _jsx(Text, { children: "Item 2" }) }), _jsx(Flex, { item: { grow: 1 }, as: StyledFlexItem, children: _jsx(Text, { children: "Item 3" }) }), _jsx(Flex, { item: { grow: 1 }, as: StyledFlexItem, children: _jsx(Text, { children: "Item 4" }) }), _jsx(Flex, { item: { grow: 1 }, as: StyledFlexItem, children: _jsx(Text, { children: "Item 5" }) })] }));
69
69
  };
70
70
  AlignContent.args = {
71
71
  alignContent: 'stretch'
@@ -77,6 +77,6 @@ AlignContent.argTypes = {
77
77
  }
78
78
  };
79
79
  export const ResponsiveFlex = () => {
80
- return (_jsxs(Flex, { container: { pad: 1, gap: 6 }, xl: { container: { gap: 12 } }, lg: { container: { gap: 9 } }, md: { container: { gap: 6 } }, sm: { container: { gap: 3 } }, xs: { container: { gap: 0 } }, as: StyledFlexContainer, children: [_jsx(Flex, { item: { grow: 1 }, as: StyledFlexItem, children: _jsx(Text, { children: "Item 1" }, void 0) }, void 0), _jsx(Flex, { item: { grow: 1 }, as: StyledFlexItem, children: _jsx(Text, { children: "Item 2" }, void 0) }, void 0), _jsx(Flex, { item: { grow: 1 }, as: StyledFlexItem, children: _jsx(Text, { children: "Item 3" }, void 0) }, void 0)] }, void 0));
80
+ return (_jsxs(Flex, { container: { pad: 1, gap: 6 }, xl: { container: { gap: 12 } }, lg: { container: { gap: 9 } }, md: { container: { gap: 6 } }, sm: { container: { gap: 3 } }, xs: { container: { gap: 0 } }, as: StyledFlexContainer, children: [_jsx(Flex, { item: { grow: 1 }, as: StyledFlexItem, children: _jsx(Text, { children: "Item 1" }) }), _jsx(Flex, { item: { grow: 1 }, as: StyledFlexItem, children: _jsx(Text, { children: "Item 2" }) }), _jsx(Flex, { item: { grow: 1 }, as: StyledFlexItem, children: _jsx(Text, { children: "Item 3" }) })] }));
81
81
  };
82
82
  //# sourceMappingURL=FlexContainer.stories.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"FlexContainer.stories.js","sourceRoot":"","sources":["../../../src/core/Flex/FlexContainer.stories.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,IAAI,EAAsB,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAEzE,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,SAAS,GAA0B,CAAC,IAAoB,EAAE,EAAE;IACvE,OAAO,CACL,MAAC,IAAI,IAAC,SAAS,EAAE,EAAE,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE,GAAG,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,mBAAmB,aAC7E,KAAC,IAAI,IAAC,IAAI,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,cAAc,YACzC,KAAC,IAAI,iCAAc,WACd,EACP,KAAC,IAAI,IAAC,IAAI,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,cAAc,YACzC,K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c,WACd,YACF,CACR,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\n\nimport { Flex, FlexContainerProps, Text } from '@pega/cosmos-react-core';\n\nimport { StyledFlexContainer, StyledFlexItem } from './Flex.styles';\n\nexport default {\n title: 'Core/Flex/Container',\n component: Flex,\n parameters: {\n layout: 'fullscreen'\n }\n} as Meta;\n\ninterface FlexStoryProps {\n direction?: FlexContainerProps['direction'];\n gap?: FlexContainerProps['gap'];\n pad?: FlexContainerProps['pad'];\n wrap?: FlexContainerProps['wrap'];\n justify?: FlexContainerProps['justify'];\n alignItems?: FlexContainerProps['alignItems'];\n alignContent?: FlexContainerProps['alignContent'];\n}\n\nexport const Direction: Story<FlexStoryProps> = (args: FlexStoryProps) => {\n return (\n <Flex container={{ direction: args.direction, pad: 2 }} as={StyledFlexContainer}>\n <Flex item={{ grow: 1 }} as={StyledFlexItem}>\n <Text>Item 1</Text>\n </Flex>\n <Flex item={{ grow: 1 }} as={StyledFlexItem}>\n <Text>Item 2</Text>\n </Flex>\n <Flex item={{ grow: 1 }} as={StyledFlexItem}>\n <Text>Item 3</Text>\n </Flex>\n </Flex>\n );\n};\n\nDirection.args = {\n direction: 'row'\n};\n\nDirection.argTypes = {\n direction: {\n options: ['row', 'column', 'row-reverse', 'column-reverse'],\n control: { type: 'select' }\n }\n};\n\nexport const GapAndPadding: Story<FlexStoryProps> = (args: FlexStoryProps) => {\n return (\n <Flex container={{ pad: args.pad, gap: args.gap }} as={StyledFlexContainer}>\n <Flex item={{ grow: 1 }} as={StyledFlexItem}>\n <Text>Item 1</Text>\n </Flex>\n <Flex item={{ grow: 1 }} as={StyledFlexItem}>\n <Text>Item 2</Text>\n </Flex>\n <Flex item={{ grow: 1 }} as={StyledFlexItem}>\n <Text>Item 3</Text>\n </Flex>\n </Flex>\n );\n};\n\nGapAndPadding.args = {\n pad: 1,\n gap: 1\n};\n\nGapAndPadding.argTypes = {\n pad: { control: { type: 'number' } },\n gap: { control: { type: 'number' } }\n};\n\nexport const Wrap: Story<FlexStoryProps> = (args: FlexStoryProps) => {\n return (\n <Flex container={{ wrap: args.wrap, pad: 2 }} as={StyledFlexContainer} width={35}>\n <Flex item={{ grow: 1 }} as={StyledFlexItem}>\n <Text>Item 1</Text>\n </Flex>\n <Flex item={{ grow: 1 }} as={StyledFlexItem}>\n <Text>Item 2</Text>\n </Flex>\n <Flex item={{ grow: 1 }} as={StyledFlexItem}>\n <Text>Item 3</Text>\n </Flex>\n <Flex item={{ grow: 1 }} as={StyledFlexItem}>\n <Text>Item 4</Text>\n </Flex>\n <Flex item={{ grow: 1 }} as={StyledFlexItem}>\n <Text>Item 5</Text>\n </Flex>\n </Flex>\n );\n};\n\nWrap.args = {\n wrap: 'nowrap'\n};\n\nWrap.argTypes = {\n wrap: { options: ['nowrap', 'wrap', 'wrap-reverse'], control: { type: 'select' } }\n};\n\nexport const Justify: Story<FlexStoryProps> = (args: FlexStoryProps) => {\n return (\n <Flex container={{ justify: args.justify, pad: 2 }} as={StyledFlexContainer}>\n <StyledFlexItem>\n <Text>Item 1</Text>\n </StyledFlexItem>\n <StyledFlexItem>\n <Text>Item 2</Text>\n </StyledFlexItem>\n <StyledFlexItem>\n <Text>Item 3</Text>\n </StyledFlexItem>\n </Flex>\n );\n};\n\nJustify.args = {\n justify: 'start'\n};\n\nJustify.argTypes = {\n justify: {\n options: ['start', 'end', 'center', 'between', 'around', 'evenly'],\n control: { type: 'select' }\n }\n};\n\nexport const AlignItems: Story<FlexStoryProps> = (args: FlexStoryProps) => {\n return (\n <Flex\n container={{ alignItems: args.alignItems, pad: 2 }}\n as={StyledFlexContainer}\n height={15}\n width={30}\n >\n <Flex item={{ grow: 1 }} as={StyledFlexItem}>\n <Text>Item 1</Text>\n </Flex>\n <Flex item={{ grow: 1 }} as={StyledFlexItem} noPadding>\n <Text>Item 2</Text>\n </Flex>\n <Flex container={{ direction: 'column' }} item={{ grow: 1 }} as={StyledFlexItem}>\n <Text>Item 3 - First line</Text>\n <Text>Item 3 - Second line</Text>\n </Flex>\n </Flex>\n );\n};\n\nAlignItems.args = {\n alignItems: 'stretch'\n};\n\nAlignItems.argTypes = {\n alignItems: {\n options: ['stretch', 'start', 'end', 'center', 'baseline'],\n control: { type: 'select' }\n }\n};\n\nexport const AlignContent: Story<FlexStoryProps> = (args: FlexStoryProps) => {\n return (\n <Flex\n container={{ alignContent: args.alignContent, wrap: 'wrap', pad: 2 }}\n as={StyledFlexContainer}\n height={20}\n width={30}\n >\n <Flex item={{ grow: 1 }} as={StyledFlexItem}>\n <Text>Item 1</Text>\n </Flex>\n <Flex item={{ grow: 1 }} as={StyledFlexItem}>\n <Text>Item 2</Text>\n </Flex>\n <Flex item={{ grow: 1 }} as={StyledFlexItem}>\n <Text>Item 3</Text>\n </Flex>\n <Flex item={{ grow: 1 }} as={StyledFlexItem}>\n <Text>Item 4</Text>\n </Flex>\n <Flex item={{ grow: 1 }} as={StyledFlexItem}>\n <Text>Item 5</Text>\n </Flex>\n </Flex>\n );\n};\n\nAlignContent.args = {\n alignContent: 'stretch'\n};\n\nAlignContent.argTypes = {\n alignContent: {\n options: ['stretch', 'start', 'end', 'center', 'between', 'around'],\n control: { type: 'select' }\n }\n};\n\nexport const ResponsiveFlex = () => {\n return (\n <Flex\n container={{ pad: 1, gap: 6 }}\n xl={{ container: { gap: 12 } }}\n lg={{ container: { gap: 9 } }}\n md={{ container: { gap: 6 } }}\n sm={{ container: { gap: 3 } }}\n xs={{ container: { gap: 0 } }}\n as={StyledFlexContainer}\n >\n <Flex item={{ grow: 1 }} as={StyledFlexItem}>\n <Text>Item 1</Text>\n </Flex>\n <Flex item={{ grow: 1 }} as={StyledFlexItem}>\n <Text>Item 2</Text>\n </Flex>\n <Flex item={{ grow: 1 }} as={StyledFlexItem}>\n <Text>Item 3</Text>\n </Flex>\n </Flex>\n );\n};\n"]}
1
+ {"version":3,"file":"FlexContainer.stories.js","sourceRoot":"","sources":["../../../src/core/Flex/FlexContainer.stories.tsx"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E,EAAE,EAC9B,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,EAAE,EAC7B,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,EAAE,EAC7B,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,EAAE,EAC7B,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,EAAE,EAC7B,EAAE,EAAE,mBAAmB,aAEvB,KAAC,IAAI,IAAC,IAAI,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,cAAc,YACzC,KAAC,IAAI,yBAAc,GACd,EACP,KAAC,IAAI,IAAC,IAAI,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,cAAc,YACzC,KAAC,IAAI,yBAAc,GACd,EACP,KAAC,IAAI,IAAC,IAAI,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,cAAc,YACzC,KAAC,IAAI,yBAAc,GACd,IACF,CACR,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\n\nimport { Flex, FlexContainerProps, Text } from '@pega/cosmos-react-core';\n\nimport { StyledFlexContainer, StyledFlexItem } from './Flex.styles';\n\nexport default {\n title: 'Core/Flex/Container',\n component: Flex,\n parameters: {\n layout: 'fullscreen'\n }\n} as Meta;\n\ninterface FlexStoryProps {\n direction?: FlexContainerProps['direction'];\n gap?: FlexContainerProps['gap'];\n pad?: FlexContainerProps['pad'];\n wrap?: FlexContainerProps['wrap'];\n justify?: FlexContainerProps['justify'];\n alignItems?: FlexContainerProps['alignItems'];\n alignContent?: FlexContainerProps['alignContent'];\n}\n\nexport const Direction: Story<FlexStoryProps> = (args: FlexStoryProps) => {\n return (\n <Flex container={{ direction: args.direction, pad: 2 }} as={StyledFlexContainer}>\n <Flex item={{ grow: 1 }} as={StyledFlexItem}>\n <Text>Item 1</Text>\n </Flex>\n <Flex item={{ grow: 1 }} as={StyledFlexItem}>\n <Text>Item 2</Text>\n </Flex>\n <Flex item={{ grow: 1 }} as={StyledFlexItem}>\n <Text>Item 3</Text>\n </Flex>\n </Flex>\n );\n};\n\nDirection.args = {\n direction: 'row'\n};\n\nDirection.argTypes = {\n direction: {\n options: ['row', 'column', 'row-reverse', 'column-reverse'],\n control: { type: 'select' }\n }\n};\n\nexport const GapAndPadding: Story<FlexStoryProps> = (args: FlexStoryProps) => {\n return (\n <Flex container={{ pad: args.pad, gap: args.gap }} as={StyledFlexContainer}>\n <Flex item={{ grow: 1 }} as={StyledFlexItem}>\n <Text>Item 1</Text>\n </Flex>\n <Flex item={{ grow: 1 }} as={StyledFlexItem}>\n <Text>Item 2</Text>\n </Flex>\n <Flex item={{ grow: 1 }} as={StyledFlexItem}>\n <Text>Item 3</Text>\n </Flex>\n </Flex>\n );\n};\n\nGapAndPadding.args = {\n pad: 1,\n gap: 1\n};\n\nGapAndPadding.argTypes = {\n pad: { control: { type: 'number' } },\n gap: { control: { type: 'number' } }\n};\n\nexport const Wrap: Story<FlexStoryProps> = (args: FlexStoryProps) => {\n return (\n <Flex container={{ wrap: args.wrap, pad: 2 }} as={StyledFlexContainer} width={35}>\n <Flex item={{ grow: 1 }} as={StyledFlexItem}>\n <Text>Item 1</Text>\n </Flex>\n <Flex item={{ grow: 1 }} as={StyledFlexItem}>\n <Text>Item 2</Text>\n </Flex>\n <Flex item={{ grow: 1 }} as={StyledFlexItem}>\n <Text>Item 3</Text>\n </Flex>\n <Flex item={{ grow: 1 }} as={StyledFlexItem}>\n <Text>Item 4</Text>\n </Flex>\n <Flex item={{ grow: 1 }} as={StyledFlexItem}>\n <Text>Item 5</Text>\n </Flex>\n </Flex>\n );\n};\n\nWrap.args = {\n wrap: 'nowrap'\n};\n\nWrap.argTypes = {\n wrap: { options: ['nowrap', 'wrap', 'wrap-reverse'], control: { type: 'select' } }\n};\n\nexport const Justify: Story<FlexStoryProps> = (args: FlexStoryProps) => {\n return (\n <Flex container={{ justify: args.justify, pad: 2 }} as={StyledFlexContainer}>\n <StyledFlexItem>\n <Text>Item 1</Text>\n </StyledFlexItem>\n <StyledFlexItem>\n <Text>Item 2</Text>\n </StyledFlexItem>\n <StyledFlexItem>\n <Text>Item 3</Text>\n </StyledFlexItem>\n </Flex>\n );\n};\n\nJustify.args = {\n justify: 'start'\n};\n\nJustify.argTypes = {\n justify: {\n options: ['start', 'end', 'center', 'between', 'around', 'evenly'],\n control: { type: 'select' }\n }\n};\n\nexport const AlignItems: Story<FlexStoryProps> = (args: FlexStoryProps) => {\n return (\n <Flex\n container={{ alignItems: args.alignItems, pad: 2 }}\n as={StyledFlexContainer}\n height={15}\n width={30}\n >\n <Flex item={{ grow: 1 }} as={StyledFlexItem}>\n <Text>Item 1</Text>\n </Flex>\n <Flex item={{ grow: 1 }} as={StyledFlexItem} noPadding>\n <Text>Item 2</Text>\n </Flex>\n <Flex container={{ direction: 'column' }} item={{ grow: 1 }} as={StyledFlexItem}>\n <Text>Item 3 - First line</Text>\n <Text>Item 3 - Second line</Text>\n </Flex>\n </Flex>\n );\n};\n\nAlignItems.args = {\n alignItems: 'stretch'\n};\n\nAlignItems.argTypes = {\n alignItems: {\n options: ['stretch', 'start', 'end', 'center', 'baseline'],\n control: { type: 'select' }\n }\n};\n\nexport const AlignContent: Story<FlexStoryProps> = (args: FlexStoryProps) => {\n return (\n <Flex\n container={{ alignContent: args.alignContent, wrap: 'wrap', pad: 2 }}\n as={StyledFlexContainer}\n height={20}\n width={30}\n >\n <Flex item={{ grow: 1 }} as={StyledFlexItem}>\n <Text>Item 1</Text>\n </Flex>\n <Flex item={{ grow: 1 }} as={StyledFlexItem}>\n <Text>Item 2</Text>\n </Flex>\n <Flex item={{ grow: 1 }} as={StyledFlexItem}>\n <Text>Item 3</Text>\n </Flex>\n <Flex item={{ grow: 1 }} as={StyledFlexItem}>\n <Text>Item 4</Text>\n </Flex>\n <Flex item={{ grow: 1 }} as={StyledFlexItem}>\n <Text>Item 5</Text>\n </Flex>\n </Flex>\n );\n};\n\nAlignContent.args = {\n alignContent: 'stretch'\n};\n\nAlignContent.argTypes = {\n alignContent: {\n options: ['stretch', 'start', 'end', 'center', 'between', 'around'],\n control: { type: 'select' }\n }\n};\n\nexport const ResponsiveFlex: Story = () => {\n return (\n <Flex\n container={{ pad: 1, gap: 6 }}\n xl={{ container: { gap: 12 } }}\n lg={{ container: { gap: 9 } }}\n md={{ container: { gap: 6 } }}\n sm={{ container: { gap: 3 } }}\n xs={{ container: { gap: 0 } }}\n as={StyledFlexContainer}\n >\n <Flex item={{ grow: 1 }} as={StyledFlexItem}>\n <Text>Item 1</Text>\n </Flex>\n <Flex item={{ grow: 1 }} as={StyledFlexItem}>\n <Text>Item 2</Text>\n </Flex>\n <Flex item={{ grow: 1 }} as={StyledFlexItem}>\n <Text>Item 3</Text>\n </Flex>\n </Flex>\n );\n};\n"]}
@@ -9,7 +9,7 @@ export default {
9
9
  }
10
10
  };
11
11
  export const AlignSelf = (args) => {
12
- return (_jsxs(Flex, { container: { alignItems: 'start', pad: 2 }, as: StyledFlexContainer, height: 10, children: [_jsx(Flex, { item: { grow: 1 }, as: StyledFlexItem, inActive: true, children: _jsx(Text, { children: "Item 1" }, void 0) }, void 0), _jsx(Flex, { item: { grow: 1, alignSelf: args.alignSelf }, as: StyledFlexItem, noPadding: true, children: _jsx(Text, { children: "Item 2" }, void 0) }, void 0), _jsxs(Flex, { container: { direction: 'column' }, item: { grow: 1 }, as: StyledFlexItem, inActive: true, children: [_jsx(Text, { children: "Item 3 - First line" }, void 0), _jsx(Text, { children: "Item 3 - Second line" }, void 0)] }, void 0)] }, void 0));
12
+ return (_jsxs(Flex, { container: { alignItems: 'start', pad: 2 }, as: StyledFlexContainer, height: 10, children: [_jsx(Flex, { item: { grow: 1 }, as: StyledFlexItem, inActive: true, children: _jsx(Text, { children: "Item 1" }) }), _jsx(Flex, { item: { grow: 1, alignSelf: args.alignSelf }, as: StyledFlexItem, noPadding: true, children: _jsx(Text, { children: "Item 2" }) }), _jsxs(Flex, { container: { direction: 'column' }, item: { grow: 1 }, as: StyledFlexItem, inActive: true, children: [_jsx(Text, { children: "Item 3 - First line" }), _jsx(Text, { children: "Item 3 - Second line" })] })] }));
13
13
  };
14
14
  AlignSelf.args = {
15
15
  alignSelf: 'auto'
@@ -21,7 +21,7 @@ AlignSelf.argTypes = {
21
21
  }
22
22
  };
23
23
  export const Grow = (args) => {
24
- return (_jsxs(Flex, { container: { pad: 2 }, as: StyledFlexContainer, children: [_jsx(Flex, { item: { grow: 1 }, as: StyledFlexItem, inActive: true, children: _jsx(Text, { children: "Grow: 1" }, void 0) }, void 0), _jsx(Flex, { item: { grow: args.grow }, as: StyledFlexItem, children: _jsxs(Text, { children: ["Grow: ", args.grow] }, void 0) }, void 0), _jsx(Flex, { item: { grow: 0 }, as: StyledFlexItem, inActive: true, children: _jsx(Text, { children: "Grow: 0" }, void 0) }, void 0)] }, void 0));
24
+ return (_jsxs(Flex, { container: { pad: 2 }, as: StyledFlexContainer, children: [_jsx(Flex, { item: { grow: 1 }, as: StyledFlexItem, inActive: true, children: _jsx(Text, { children: "Grow: 1" }) }), _jsx(Flex, { item: { grow: args.grow }, as: StyledFlexItem, children: _jsxs(Text, { children: ["Grow: ", args.grow] }) }), _jsx(Flex, { item: { grow: 0 }, as: StyledFlexItem, inActive: true, children: _jsx(Text, { children: "Grow: 0" }) })] }));
25
25
  };
26
26
  Grow.args = {
27
27
  grow: 0
@@ -30,7 +30,7 @@ Grow.argTypes = {
30
30
  grow: { control: { type: 'number' } }
31
31
  };
32
32
  export const Shrink = (args) => {
33
- return (_jsxs(Flex, { container: { pad: 2 }, as: StyledFlexContainer, width: 42, children: [_jsx(Flex, { item: { shrink: 1 }, as: StyledFlexItem, width: 15, inActive: true, children: _jsx(Text, { children: "Shrink: 1" }, void 0) }, void 0), _jsx(Flex, { item: { shrink: args.shrink }, as: StyledFlexItem, width: 15, children: _jsxs(Text, { children: ["Shrink: ", args.shrink] }, void 0) }, void 0), _jsx(Flex, { item: { shrink: 0 }, as: StyledFlexItem, width: 15, inActive: true, children: _jsx(Text, { children: "Shrink: 0" }, void 0) }, void 0)] }, void 0));
33
+ return (_jsxs(Flex, { container: { pad: 2 }, as: StyledFlexContainer, width: 42, children: [_jsx(Flex, { item: { shrink: 1 }, as: StyledFlexItem, width: 15, inActive: true, children: _jsx(Text, { children: "Shrink: 1" }) }), _jsx(Flex, { item: { shrink: args.shrink }, as: StyledFlexItem, width: 15, children: _jsxs(Text, { children: ["Shrink: ", args.shrink] }) }), _jsx(Flex, { item: { shrink: 0 }, as: StyledFlexItem, width: 15, inActive: true, children: _jsx(Text, { children: "Shrink: 0" }) })] }));
34
34
  };
35
35
  Shrink.args = {
36
36
  shrink: 0
@@ -1 +1 @@
1
- {"version":3,"file":"FlexItem.stories.js","sourceRoot":"","sources":["../../../src/core/Flex/FlexItem.stories.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,IAAI,EAAiB,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAEpE,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;AAQV,MAAM,CAAC,MAAM,SAAS,GAA0B,CAAC,IAAoB,EAAE,EAAE;IACvE,OAAO,CACL,MAAC,IAAI,IAAC,SAAS,EAAE,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,mBAAmB,EAAE,MAAM,EAAE,EAAE,aACnF,KAAC,IAAI,IAAC,IAAI,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,cAAc,EAAE,QAAQ,kBACnD,KAAC,IAAI,iCAAc,WACd,EACP,KAA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pega/cosmos-react-core';\n\nimport { StyledFlexContainer, StyledFlexItem } from './Flex.styles';\n\nexport default {\n title: 'Core/Flex/Item',\n component: Flex,\n parameters: {\n layout: 'fullscreen'\n }\n} as Meta;\n\ninterface FlexStoryProps {\n alignSelf?: FlexItemProps['alignSelf'];\n grow?: FlexItemProps['grow'];\n shrink?: FlexItemProps['shrink'];\n}\n\nexport const AlignSelf: Story<FlexStoryProps> = (args: FlexStoryProps) => {\n return (\n <Flex container={{ alignItems: 'start', pad: 2 }} as={StyledFlexContainer} height={10}>\n <Flex item={{ grow: 1 }} as={StyledFlexItem} inActive>\n <Text>Item 1</Text>\n </Flex>\n <Flex item={{ grow: 1, alignSelf: args.alignSelf }} as={StyledFlexItem} noPadding>\n <Text>Item 2</Text>\n </Flex>\n <Flex container={{ direction: 'column' }} item={{ grow: 1 }} as={StyledFlexItem} inActive>\n <Text>Item 3 - First line</Text>\n <Text>Item 3 - Second line</Text>\n </Flex>\n </Flex>\n );\n};\n\nAlignSelf.args = {\n alignSelf: 'auto'\n};\n\nAlignSelf.argTypes = {\n alignSelf: {\n options: ['auto', 'start', 'end', 'baseline', 'center', 'stretch'],\n control: { type: 'select' }\n }\n};\n\nexport const Grow: Story<FlexStoryProps> = (args: FlexStoryProps) => {\n return (\n <Flex container={{ pad: 2 }} as={StyledFlexContainer}>\n <Flex item={{ grow: 1 }} as={StyledFlexItem} inActive>\n <Text>Grow: 1</Text>\n </Flex>\n <Flex item={{ grow: args.grow }} as={StyledFlexItem}>\n <Text>Grow: {args.grow}</Text>\n </Flex>\n <Flex item={{ grow: 0 }} as={StyledFlexItem} inActive>\n <Text>Grow: 0</Text>\n </Flex>\n </Flex>\n );\n};\n\nGrow.args = {\n grow: 0\n};\n\nGrow.argTypes = {\n grow: { control: { type: 'number' } }\n};\n\nexport const Shrink: Story<FlexStoryProps> = (args: FlexStoryProps) => {\n return (\n <Flex container={{ pad: 2 }} as={StyledFlexContainer} width={42}>\n <Flex item={{ shrink: 1 }} as={StyledFlexItem} width={15} inActive>\n <Text>Shrink: 1</Text>\n </Flex>\n <Flex item={{ shrink: args.shrink }} as={StyledFlexItem} width={15}>\n <Text>Shrink: {args.shrink}</Text>\n </Flex>\n <Flex item={{ shrink: 0 }} as={StyledFlexItem} width={15} inActive>\n <Text>Shrink: 0</Text>\n </Flex>\n </Flex>\n );\n};\n\nShrink.args = {\n shrink: 0\n};\n\nShrink.argTypes = {\n shrink: { control: { type: 'number' } }\n};\n"]}
1
+ {"version":3,"file":"FlexItem.stories.js","sourceRoot":"","sources":["../../../src/core/Flex/FlexItem.stories.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,IAAI,EAAiB,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAEpE,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;AAQV,MAAM,CAAC,MAAM,SAAS,GAA0B,CAAC,IAAoB,EAAE,EAAE;IACvE,OAAO,CACL,MAAC,IAAI,IAAC,SAAS,EAAE,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,mBAAmB,EAAE,MAAM,EAAE,EAAE,aACnF,KAAC,IAAI,IAAC,IAAI,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,cAAc,EAAE,QAAQ,kBACnD,KAAC,IAAI,yBAAc,GACd,EACP,KAAC,IAAI,IAAC,IAAI,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE,EAAE,EAAE,EAAE,cAAc,EAAE,SAAS,kBAC/E,KAAC,IAAI,yBAAc,GACd,EACP,MAAC,IAAI,IAAC,SAAS,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,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E;CACtC,CAAC;AAEF,MAAM,CAAC,MAAM,MAAM,GAA0B,CAAC,IAAoB,EAAE,EAAE;IACpE,OAAO,CACL,MAAC,IAAI,IAAC,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,mBAAmB,EAAE,KAAK,EAAE,EAAE,aAC7D,KAAC,IAAI,IAAC,IAAI,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,cAAc,EAAE,KAAK,EAAE,EAAE,EAAE,QAAQ,kBAChE,KAAC,IAAI,4BAAiB,GACjB,EACP,KAAC,IAAI,IAAC,IAAI,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,EAAE,EAAE,EAAE,cAAc,EAAE,KAAK,EAAE,EAAE,YAChE,MAAC,IAAI,2BAAU,IAAI,CAAC,MAAM,IAAQ,GAC7B,EACP,KAAC,IAAI,IAAC,IAAI,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,cAAc,EAAE,KAAK,EAAE,EAAE,EAAE,QAAQ,kBAChE,KAAC,IAAI,4BAAiB,GACjB,IACF,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,IAAI,GAAG;IACZ,MAAM,EAAE,CAAC;CACV,CAAC;AAEF,MAAM,CAAC,QAAQ,GAAG;IAChB,MAAM,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;CACxC,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\n\nimport { Flex, FlexItemProps, Text } from '@pega/cosmos-react-core';\n\nimport { StyledFlexContainer, StyledFlexItem } from './Flex.styles';\n\nexport default {\n title: 'Core/Flex/Item',\n component: Flex,\n parameters: {\n layout: 'fullscreen'\n }\n} as Meta;\n\ninterface FlexStoryProps {\n alignSelf?: FlexItemProps['alignSelf'];\n grow?: FlexItemProps['grow'];\n shrink?: FlexItemProps['shrink'];\n}\n\nexport const AlignSelf: Story<FlexStoryProps> = (args: FlexStoryProps) => {\n return (\n <Flex container={{ alignItems: 'start', pad: 2 }} as={StyledFlexContainer} height={10}>\n <Flex item={{ grow: 1 }} as={StyledFlexItem} inActive>\n <Text>Item 1</Text>\n </Flex>\n <Flex item={{ grow: 1, alignSelf: args.alignSelf }} as={StyledFlexItem} noPadding>\n <Text>Item 2</Text>\n </Flex>\n <Flex container={{ direction: 'column' }} item={{ grow: 1 }} as={StyledFlexItem} inActive>\n <Text>Item 3 - First line</Text>\n <Text>Item 3 - Second line</Text>\n </Flex>\n </Flex>\n );\n};\n\nAlignSelf.args = {\n alignSelf: 'auto'\n};\n\nAlignSelf.argTypes = {\n alignSelf: {\n options: ['auto', 'start', 'end', 'baseline', 'center', 'stretch'],\n control: { type: 'select' }\n }\n};\n\nexport const Grow: Story<FlexStoryProps> = (args: FlexStoryProps) => {\n return (\n <Flex container={{ pad: 2 }} as={StyledFlexContainer}>\n <Flex item={{ grow: 1 }} as={StyledFlexItem} inActive>\n <Text>Grow: 1</Text>\n </Flex>\n <Flex item={{ grow: args.grow }} as={StyledFlexItem}>\n <Text>Grow: {args.grow}</Text>\n </Flex>\n <Flex item={{ grow: 0 }} as={StyledFlexItem} inActive>\n <Text>Grow: 0</Text>\n </Flex>\n </Flex>\n );\n};\n\nGrow.args = {\n grow: 0\n};\n\nGrow.argTypes = {\n grow: { control: { type: 'number' } }\n};\n\nexport const Shrink: Story<FlexStoryProps> = (args: FlexStoryProps) => {\n return (\n <Flex container={{ pad: 2 }} as={StyledFlexContainer} width={42}>\n <Flex item={{ shrink: 1 }} as={StyledFlexItem} width={15} inActive>\n <Text>Shrink: 1</Text>\n </Flex>\n <Flex item={{ shrink: args.shrink }} as={StyledFlexItem} width={15}>\n <Text>Shrink: {args.shrink}</Text>\n </Flex>\n <Flex item={{ shrink: 0 }} as={StyledFlexItem} width={15} inActive>\n <Text>Shrink: 0</Text>\n </Flex>\n </Flex>\n );\n};\n\nShrink.args = {\n shrink: 0\n};\n\nShrink.argTypes = {\n shrink: { control: { type: 'number' } }\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"Form.mocks.d.ts","sourceRoot":"","sources":["../../../src/core/Form/Form.mocks.tsx"],"names":[],"mappings":";AA+FA,eAAO,MAAM,WAAW;UAMhB,MAAM;iBACC,OAAO;;;wBA8IrB,CAAC"}
1
+ {"version":3,"file":"Form.mocks.d.ts","sourceRoot":"","sources":["../../../src/core/Form/Form.mocks.tsx"],"names":[],"mappings":";AAgGA,eAAO,MAAM,WAAW;UAMhB,MAAM;iBACC,OAAO;;;wBA+IrB,CAAC"}
@@ -2,8 +2,8 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
2
2
  import { useReducer, useRef, useContext } from 'react';
3
3
  import { Button, Checkbox, CheckboxGroup, Form, Grid, Input, RadioButton, RadioButtonGroup, Select, Option, TextArea, ToasterContext } from '@pega/cosmos-react-core';
4
4
  import { Editor as RichTextEditor } from '@pega/cosmos-react-rte';
5
- import { FileInputDemo } from '@pega/cosmos-react-demos/lib/core/File/FileInput.stories';
6
- import { FilterableSingleSelect as ComboboxFilterableStory } from '@pega/cosmos-react-demos/lib/core/ComboBox/ComboBox.stories';
5
+ import { FileInputDemo } from '../File/FileInput.stories';
6
+ import { FilterableSingleSelect as ComboboxFilterableStory } from '../ComboBox/ComboBox.stories';
7
7
  // Get initial field properties
8
8
  const initFields = () => {
9
9
  const common = { value: undefined, status: undefined };
@@ -75,7 +75,7 @@ export const FormContent = ({ cols, heading, description, showActions }) => {
75
75
  const canSubmit = fields.every(field => field.value && field.validator());
76
76
  const actions = (_jsxs(_Fragment, { children: [_jsx(Button, { name: 'Cancel', variant: 'secondary', onClick: () => {
77
77
  push({ content: 'Form cancelled!' });
78
- }, children: "Cancel" }, void 0), _jsx(Button, { name: 'Submit', type: 'submit', variant: 'primary', disabled: !canSubmit, children: "Submit" }, void 0)] }, void 0));
78
+ }, children: "Cancel" }), _jsx(Button, { name: 'Submit', type: 'submit', variant: 'primary', disabled: !canSubmit, children: "Submit" })] }));
79
79
  const onImageAdded = (image, id) => {
80
80
  const src = URL.createObjectURL(image);
81
81
  editorRef.current?.appendImage({ src, alt: image.name }, id);
@@ -83,7 +83,7 @@ export const FormContent = ({ cols, heading, description, showActions }) => {
83
83
  return (_jsx(Form, { actions: showActions ? actions : undefined, description: description, heading: heading, onSubmit: (e) => {
84
84
  e.preventDefault();
85
85
  push({ content: 'Form submitted!' });
86
- }, style: { margin: 'auto', maxWidth: '37.5rem' }, children: _jsxs(Grid, { container: { gap: 1, cols: `repeat(${cols}, minmax(0, 1fr))` }, children: [_jsx(Input, { name: 'name', label: 'Name', value: name.value, required: name.required, status: name.status, info: 'some help text here', onChange: (e) => setField({ ...e }), onBlur: (e) => setField({ ...e }), autoComplete: 'off' }, void 0), _jsx(Input, { name: 'email', value: email.value, type: 'email', label: 'Email', required: email.required, status: email.status, info: 'some help text here', onChange: (e) => setField({ ...e }), onBlur: (e) => setField({ ...e }), autoComplete: 'off' }, void 0), _jsx(Grid, { item: { colStartEnd: '1/-1' }, children: _jsx(CheckboxGroup, { name: 'visited', label: 'Places you have worked', children: ['Cambridge', 'Krakow', 'Hyderabad', 'Bangalore'].map(office => (_jsx(Checkbox, { label: office, onChange: (e) => setField({ ...e }) }, office))) }, void 0) }, void 0), _jsx(Grid, { item: { colStartEnd: '1/-1' }, children: _jsx(RadioButtonGroup, { name: 'meetings', label: 'Do you enjoy early morning meetings?', children: ['Yes', "No… no I don't"].map(option => (_jsx(RadioButton, { label: option, onChange: (e) => setField({ ...e }) }, option))) }, void 0) }, void 0), _jsxs(Select, { label: 'What would you like to eat?', info: 'FYI: options are limited', children: [_jsx(Option, { children: "choose meal\u2026" }, void 0), _jsx(Option, { children: "Pizza" }, void 0), _jsx(Option, { children: "Sandwich" }, void 0), _jsx(Option, { children: "Salad" }, void 0)] }, void 0), _jsx(Grid, { item: { colStartEnd: '1/-1' }, children: _jsx(TextArea, { name: 'notes', required: notes.required, label: 'Meeting Notes', status: notes.status, info: notes.info || notes.help, onChange: (e) => setField({ ...e }), onBlur: (e) => setField({ ...e }) }, void 0) }, void 0), _jsx(Grid, { item: { colStartEnd: '1/-1' }, children: _jsx(RichTextEditor, { label: 'Detailed meeting notes', info: 'The rich text editor can be used in forms, comments, and documents', toolbar: [
86
+ }, style: { margin: 'auto', maxWidth: '37.5rem' }, children: _jsxs(Grid, { container: { gap: 1, cols: `repeat(${cols}, minmax(0, 1fr))` }, children: [_jsx(Input, { name: 'name', label: 'Name', value: name.value, required: name.required, status: name.status, info: 'some help text here', onChange: (e) => setField({ ...e }), onBlur: (e) => setField({ ...e }), autoComplete: 'off' }), _jsx(Input, { name: 'email', value: email.value, type: 'email', label: 'Email', required: email.required, status: email.status, info: 'some help text here', onChange: (e) => setField({ ...e }), onBlur: (e) => setField({ ...e }), autoComplete: 'off' }), _jsx(Grid, { item: { colStartEnd: '1/-1' }, children: _jsx(CheckboxGroup, { name: 'visited', label: 'Places you have worked', children: ['Cambridge', 'Krakow', 'Hyderabad', 'Bangalore'].map(office => (_jsx(Checkbox, { label: office, onChange: (e) => setField({ ...e }) }, office))) }) }), _jsx(Grid, { item: { colStartEnd: '1/-1' }, children: _jsx(RadioButtonGroup, { name: 'meetings', label: 'Do you enjoy early morning meetings?', children: ['Yes', "No… no I don't"].map(option => (_jsx(RadioButton, { label: option, onChange: (e) => setField({ ...e }) }, option))) }) }), _jsxs(Select, { label: 'What would you like to eat?', info: 'FYI: options are limited', children: [_jsx(Option, { children: "choose meal\u2026" }), _jsx(Option, { children: "Pizza" }), _jsx(Option, { children: "Sandwich" }), _jsx(Option, { children: "Salad" })] }), _jsx(Grid, { item: { colStartEnd: '1/-1' }, children: _jsx(TextArea, { name: 'notes', required: notes.required, label: 'Meeting notes', status: notes.status, info: notes.info || notes.help, onChange: (e) => setField({ ...e }), onBlur: (e) => setField({ ...e }) }) }), _jsx(Grid, { item: { colStartEnd: '1/-1' }, children: _jsx(RichTextEditor, { label: 'Detailed meeting notes', info: 'The rich text editor can be used in forms, comments, and documents', toolbar: [
87
87
  'inline-styling',
88
88
  'headers',
89
89
  'tables',
@@ -92,6 +92,6 @@ export const FormContent = ({ cols, heading, description, showActions }) => {
92
92
  'lists',
93
93
  'cut-copy-paste',
94
94
  'indentation'
95
- ], onImageAdded: onImageAdded, ref: editorRef }, void 0) }, void 0), _jsx(Grid, { item: { colStartEnd: '1/-1' }, children: _jsx(FileInputDemo, {}, void 0) }, void 0), _jsx(ComboboxFilterableStory, {}, void 0)] }, void 0) }, void 0));
95
+ ], onImageAdded: onImageAdded, ref: editorRef }) }), _jsx(Grid, { item: { colStartEnd: '1/-1' }, children: _jsx(FileInputDemo, { label: 'Meeting attachments' }) }), _jsx(ComboboxFilterableStory, { label: 'Select a user' })] }) }));
96
96
  };
97
97
  //# sourceMappingURL=Form.mocks.js.map