@pega/cosmos-react-demos 3.0.0-dev.1.0 → 3.0.0-dev.10.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 (1160) hide show
  1. package/jsx/build/AppHeader/AppHeader.stories.d.ts.map +1 -1
  2. package/jsx/build/AppHeader/AppHeader.stories.jsx +6 -1
  3. package/jsx/build/AppHeader/AppHeader.stories.jsx.map +1 -1
  4. package/jsx/build/AppShell/AppShell.mocks.d.ts +19 -0
  5. package/jsx/build/AppShell/AppShell.mocks.d.ts.map +1 -1
  6. package/jsx/build/AppShell/{AppShell.mocks.js → AppShell.mocks.jsx} +33 -1
  7. package/jsx/build/AppShell/AppShell.mocks.jsx.map +1 -0
  8. package/jsx/build/AppShell/AppShell.stories.d.ts +2 -2
  9. package/jsx/build/AppShell/AppShell.stories.d.ts.map +1 -1
  10. package/jsx/build/AppShell/AppShell.stories.jsx +20 -45
  11. package/jsx/build/AppShell/AppShell.stories.jsx.map +1 -1
  12. package/jsx/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts +8 -0
  13. package/jsx/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts.map +1 -0
  14. package/jsx/build/DynamicContentEditor/DynamicContentEditor.stories.jsx +101 -0
  15. package/jsx/build/DynamicContentEditor/DynamicContentEditor.stories.jsx.map +1 -0
  16. package/jsx/build/DynamicContentEditor/FieldSelector.d.ts +11 -0
  17. package/jsx/build/DynamicContentEditor/FieldSelector.d.ts.map +1 -0
  18. package/jsx/build/DynamicContentEditor/FieldSelector.jsx +80 -0
  19. package/jsx/build/DynamicContentEditor/FieldSelector.jsx.map +1 -0
  20. package/jsx/build/FlowModeller/FlowModeller.mocks.d.ts +19 -2
  21. package/jsx/build/FlowModeller/FlowModeller.mocks.d.ts.map +1 -1
  22. package/jsx/build/FlowModeller/{FlowModeller.mocks.js → FlowModeller.mocks.jsx} +110 -28
  23. package/jsx/build/FlowModeller/FlowModeller.mocks.jsx.map +1 -0
  24. package/jsx/build/FlowModeller/FlowModeller.stories.d.ts +8 -10
  25. package/jsx/build/FlowModeller/FlowModeller.stories.d.ts.map +1 -1
  26. package/jsx/build/FlowModeller/FlowModeller.stories.jsx +159 -154
  27. package/jsx/build/FlowModeller/FlowModeller.stories.jsx.map +1 -1
  28. package/jsx/build/FlowModeller/FlowModeller.styles.d.ts +2 -0
  29. package/jsx/build/FlowModeller/FlowModeller.styles.d.ts.map +1 -0
  30. package/jsx/build/FlowModeller/FlowModeller.styles.js +8 -0
  31. package/jsx/build/FlowModeller/FlowModeller.styles.js.map +1 -0
  32. package/jsx/build/ItemLibrary/LibraryPicker.mocks.d.ts +1 -5
  33. package/jsx/build/ItemLibrary/LibraryPicker.mocks.d.ts.map +1 -1
  34. package/jsx/build/ItemLibrary/LibraryPicker.mocks.js +5 -10
  35. package/jsx/build/ItemLibrary/LibraryPicker.mocks.js.map +1 -1
  36. package/jsx/build/ItemLibrary/LibraryPicker.stories.d.ts +3 -7
  37. package/jsx/build/ItemLibrary/LibraryPicker.stories.d.ts.map +1 -1
  38. package/jsx/build/ItemLibrary/LibraryPicker.stories.jsx.map +1 -1
  39. package/jsx/build/LifeCycle/LifeCycle.mocks.d.ts +3 -0
  40. package/jsx/build/LifeCycle/LifeCycle.mocks.d.ts.map +1 -1
  41. package/jsx/build/LifeCycle/LifeCycle.mocks.js +106 -18
  42. package/jsx/build/LifeCycle/LifeCycle.mocks.js.map +1 -1
  43. package/jsx/build/LifeCycle/LifeCycle.stories.d.ts +6 -9
  44. package/jsx/build/LifeCycle/LifeCycle.stories.d.ts.map +1 -1
  45. package/jsx/build/LifeCycle/LifeCycle.stories.jsx +111 -27
  46. package/jsx/build/LifeCycle/LifeCycle.stories.jsx.map +1 -1
  47. package/jsx/build/LifeCycle/utils.d.ts.map +1 -1
  48. package/jsx/build/LifeCycle/utils.js +5 -4
  49. package/jsx/build/LifeCycle/utils.js.map +1 -1
  50. package/jsx/build/ObjectSelect/ObjectSelect.mocks.d.ts +46 -0
  51. package/jsx/build/ObjectSelect/ObjectSelect.mocks.d.ts.map +1 -0
  52. package/jsx/build/ObjectSelect/ObjectSelect.mocks.jsx +335 -0
  53. package/jsx/build/ObjectSelect/ObjectSelect.mocks.jsx.map +1 -0
  54. package/jsx/build/ObjectSelect/ObjectSelect.stories.d.ts +8 -0
  55. package/jsx/build/ObjectSelect/ObjectSelect.stories.d.ts.map +1 -0
  56. package/jsx/build/ObjectSelect/ObjectSelect.stories.jsx +169 -0
  57. package/jsx/build/ObjectSelect/ObjectSelect.stories.jsx.map +1 -0
  58. package/jsx/build/ObjectSelect/ObjectSelect.styles.d.ts +4 -0
  59. package/jsx/build/ObjectSelect/ObjectSelect.styles.d.ts.map +1 -0
  60. package/jsx/build/ObjectSelect/ObjectSelect.styles.js +27 -0
  61. package/jsx/build/ObjectSelect/ObjectSelect.styles.js.map +1 -0
  62. package/jsx/build/PageTemplates/GalleryPage.mocks.d.ts +46 -0
  63. package/jsx/build/PageTemplates/GalleryPage.mocks.d.ts.map +1 -0
  64. package/jsx/build/PageTemplates/GalleryPage.mocks.jsx +76 -0
  65. package/jsx/build/PageTemplates/GalleryPage.mocks.jsx.map +1 -0
  66. package/jsx/build/PageTemplates/GalleryPage.stories.d.ts.map +1 -1
  67. package/jsx/build/PageTemplates/GalleryPage.stories.jsx +14 -92
  68. package/jsx/build/PageTemplates/GalleryPage.stories.jsx.map +1 -1
  69. package/jsx/build/PageTemplates/PageTemplates.mocks.d.ts +18 -0
  70. package/jsx/build/PageTemplates/PageTemplates.mocks.d.ts.map +1 -0
  71. package/jsx/build/PageTemplates/PageTemplates.mocks.jsx +287 -0
  72. package/jsx/build/PageTemplates/PageTemplates.mocks.jsx.map +1 -0
  73. package/jsx/build/PageTemplates/PageTemplates.stories.d.ts +4 -9
  74. package/jsx/build/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
  75. package/jsx/build/PageTemplates/PageTemplates.stories.jsx +99 -277
  76. package/jsx/build/PageTemplates/PageTemplates.stories.jsx.map +1 -1
  77. package/jsx/build/Workbench/Workbench.stories.d.ts.map +1 -1
  78. package/jsx/build/Workbench/Workbench.stories.jsx +14 -27
  79. package/jsx/build/Workbench/Workbench.stories.jsx.map +1 -1
  80. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.mocks.d.ts +3 -0
  81. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.mocks.d.ts.map +1 -0
  82. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.mocks.js +13 -0
  83. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.mocks.js.map +1 -0
  84. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts +16 -8
  85. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts.map +1 -1
  86. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.jsx +59 -56
  87. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.jsx.map +1 -1
  88. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.styles.d.ts +5 -0
  89. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.styles.d.ts.map +1 -0
  90. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.styles.js +15 -0
  91. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.styles.js.map +1 -0
  92. package/jsx/condition-builder/ConditionBuilder/props.mock.d.ts.map +1 -1
  93. package/jsx/condition-builder/ConditionBuilder/props.mock.js +17 -2
  94. package/jsx/condition-builder/ConditionBuilder/props.mock.js.map +1 -1
  95. package/jsx/core/AppShell/AppShell.stories.d.ts +6 -0
  96. package/jsx/core/AppShell/AppShell.stories.d.ts.map +1 -1
  97. package/jsx/core/AppShell/AppShell.stories.jsx +28 -2
  98. package/jsx/core/AppShell/AppShell.stories.jsx.map +1 -1
  99. package/jsx/core/Avatar/Avatar.stories.d.ts +5 -0
  100. package/jsx/core/Avatar/Avatar.stories.d.ts.map +1 -1
  101. package/jsx/core/Avatar/Avatar.stories.jsx +27 -2
  102. package/jsx/core/Avatar/Avatar.stories.jsx.map +1 -1
  103. package/jsx/core/Badges/Keyboard.stories.d.ts +6 -0
  104. package/jsx/core/Badges/Keyboard.stories.d.ts.map +1 -0
  105. package/jsx/core/Badges/Keyboard.stories.jsx +17 -0
  106. package/jsx/core/Badges/Keyboard.stories.jsx.map +1 -0
  107. package/jsx/core/Badges/Selection.stories.d.ts +2 -3
  108. package/jsx/core/Badges/Selection.stories.d.ts.map +1 -1
  109. package/jsx/core/Badges/Selection.stories.jsx.map +1 -1
  110. package/jsx/core/Badges/Status.stories.d.ts +5 -0
  111. package/jsx/core/Badges/Status.stories.d.ts.map +1 -1
  112. package/jsx/core/Badges/Status.stories.jsx +25 -1
  113. package/jsx/core/Badges/Status.stories.jsx.map +1 -1
  114. package/jsx/core/Badges/Tag.stories.d.ts +2 -3
  115. package/jsx/core/Badges/Tag.stories.d.ts.map +1 -1
  116. package/jsx/core/Badges/Tag.stories.jsx.map +1 -1
  117. package/jsx/core/Banner/Banner.stories.d.ts +12 -19
  118. package/jsx/core/Banner/Banner.stories.d.ts.map +1 -1
  119. package/jsx/core/Banner/Banner.stories.jsx +24 -3
  120. package/jsx/core/Banner/Banner.stories.jsx.map +1 -1
  121. package/jsx/core/Breadcrumbs/Breadcrumbs.stories.d.ts +3 -4
  122. package/jsx/core/Breadcrumbs/Breadcrumbs.stories.d.ts.map +1 -1
  123. package/jsx/core/Breadcrumbs/Breadcrumbs.stories.jsx.map +1 -1
  124. package/jsx/core/Button/Button.stories.d.ts +10 -3
  125. package/jsx/core/Button/Button.stories.d.ts.map +1 -1
  126. package/jsx/core/Button/Button.stories.jsx +36 -7
  127. package/jsx/core/Button/Button.stories.jsx.map +1 -1
  128. package/jsx/core/Card/Card.stories.d.ts +6 -2
  129. package/jsx/core/Card/Card.stories.d.ts.map +1 -1
  130. package/jsx/core/Card/Card.stories.jsx +30 -1
  131. package/jsx/core/Card/Card.stories.jsx.map +1 -1
  132. package/jsx/core/Checkbox/Checkbox.stories.d.ts +12 -0
  133. package/jsx/core/Checkbox/Checkbox.stories.d.ts.map +1 -1
  134. package/jsx/core/Checkbox/Checkbox.stories.jsx +54 -1
  135. package/jsx/core/Checkbox/Checkbox.stories.jsx.map +1 -1
  136. package/jsx/core/CheckboxGroup/CheckboxGroup.stories.d.ts +3 -3
  137. package/jsx/core/CheckboxGroup/CheckboxGroup.stories.d.ts.map +1 -1
  138. package/jsx/core/CheckboxGroup/CheckboxGroup.stories.jsx.map +1 -1
  139. package/jsx/core/ColorPicker/ColorPicker.stories.d.ts +1 -2
  140. package/jsx/core/ColorPicker/ColorPicker.stories.d.ts.map +1 -1
  141. package/jsx/core/ColorPicker/ColorPicker.stories.jsx +2 -10
  142. package/jsx/core/ColorPicker/ColorPicker.stories.jsx.map +1 -1
  143. package/jsx/core/ColorPicker/ColorPicker.styles.d.ts +4 -0
  144. package/jsx/core/ColorPicker/ColorPicker.styles.d.ts.map +1 -0
  145. package/jsx/core/ColorPicker/ColorPicker.styles.js +11 -0
  146. package/jsx/core/ColorPicker/ColorPicker.styles.js.map +1 -0
  147. package/jsx/core/Configuration/Configuration.mocks.d.ts +7 -0
  148. package/jsx/core/Configuration/Configuration.mocks.d.ts.map +1 -0
  149. package/jsx/core/Configuration/Configuration.mocks.jsx +9 -0
  150. package/jsx/core/Configuration/Configuration.mocks.jsx.map +1 -0
  151. package/jsx/core/Configuration/Configuration.stories.d.ts +19 -3
  152. package/jsx/core/Configuration/Configuration.stories.d.ts.map +1 -1
  153. package/jsx/core/Configuration/Configuration.stories.jsx +96 -21
  154. package/jsx/core/Configuration/Configuration.stories.jsx.map +1 -1
  155. package/jsx/core/Configuration/Configuration.styles.d.ts +6 -0
  156. package/jsx/core/Configuration/Configuration.styles.d.ts.map +1 -0
  157. package/jsx/core/Configuration/Configuration.styles.js +12 -0
  158. package/jsx/core/Configuration/Configuration.styles.js.map +1 -0
  159. package/jsx/core/CreditCard/CreditCard.stories.d.ts +11 -0
  160. package/jsx/core/CreditCard/CreditCard.stories.d.ts.map +1 -0
  161. package/jsx/core/CreditCard/CreditCard.stories.jsx +45 -0
  162. package/jsx/core/CreditCard/CreditCard.stories.jsx.map +1 -0
  163. package/jsx/core/Currency/Currency.stories.d.ts +7 -4
  164. package/jsx/core/Currency/Currency.stories.d.ts.map +1 -1
  165. package/jsx/core/Currency/Currency.stories.jsx +30 -12
  166. package/jsx/core/Currency/Currency.stories.jsx.map +1 -1
  167. package/jsx/core/DateTime/DateTime.stories.d.ts.map +1 -1
  168. package/jsx/core/DateTime/DateTime.stories.jsx +2 -1
  169. package/jsx/core/DateTime/DateTime.stories.jsx.map +1 -1
  170. package/jsx/core/FieldGroup/FieldGroup.stories.d.ts +6 -4
  171. package/jsx/core/FieldGroup/FieldGroup.stories.d.ts.map +1 -1
  172. package/jsx/core/FieldGroup/FieldGroup.stories.jsx +8 -4
  173. package/jsx/core/FieldGroup/FieldGroup.stories.jsx.map +1 -1
  174. package/jsx/core/FieldGroup/FieldGroupList.mocks.d.ts +4 -0
  175. package/jsx/core/FieldGroup/FieldGroupList.mocks.d.ts.map +1 -1
  176. package/jsx/core/FieldGroup/FieldGroupList.mocks.jsx +70 -2
  177. package/jsx/core/FieldGroup/FieldGroupList.mocks.jsx.map +1 -1
  178. package/jsx/core/FieldGroup/FieldGroupList.stories.d.ts +9 -8
  179. package/jsx/core/FieldGroup/FieldGroupList.stories.d.ts.map +1 -1
  180. package/jsx/core/FieldGroup/FieldGroupList.stories.jsx +51 -88
  181. package/jsx/core/FieldGroup/FieldGroupList.stories.jsx.map +1 -1
  182. package/jsx/core/FieldValueList/FieldValueList.stories.d.ts +2 -2
  183. package/jsx/core/FieldValueList/FieldValueList.stories.d.ts.map +1 -1
  184. package/jsx/core/FieldValueList/FieldValueList.stories.jsx.map +1 -1
  185. package/jsx/core/File/FileDisplay.stories.d.ts.map +1 -1
  186. package/jsx/core/File/FileDisplay.stories.jsx +16 -38
  187. package/jsx/core/File/FileDisplay.stories.jsx.map +1 -1
  188. package/jsx/core/File/FileInput.stories.d.ts.map +1 -1
  189. package/jsx/core/File/FileInput.stories.jsx +1 -1
  190. package/jsx/core/File/FileInput.stories.jsx.map +1 -1
  191. package/jsx/core/Flex/FlexContainer.stories.d.ts +1 -2
  192. package/jsx/core/Flex/FlexContainer.stories.d.ts.map +1 -1
  193. package/jsx/core/Flex/FlexContainer.stories.jsx.map +1 -1
  194. package/jsx/core/Form/Form.mocks.d.ts.map +1 -1
  195. package/jsx/core/Form/Form.mocks.jsx +2 -2
  196. package/jsx/core/Form/Form.mocks.jsx.map +1 -1
  197. package/jsx/core/Form/Form.stories.d.ts +10 -0
  198. package/jsx/core/Form/Form.stories.d.ts.map +1 -1
  199. package/jsx/core/Form/Form.stories.jsx +42 -2
  200. package/jsx/core/Form/Form.stories.jsx.map +1 -1
  201. package/jsx/core/Grid/GridContainer.stories.d.ts +4 -5
  202. package/jsx/core/Grid/GridContainer.stories.d.ts.map +1 -1
  203. package/jsx/core/Grid/GridContainer.stories.jsx.map +1 -1
  204. package/jsx/core/Grid/GridItem.stories.d.ts +1 -2
  205. package/jsx/core/Grid/GridItem.stories.d.ts.map +1 -1
  206. package/jsx/core/Grid/GridItem.stories.jsx.map +1 -1
  207. package/jsx/core/HTML/HTML.stories.d.ts +6 -0
  208. package/jsx/core/HTML/HTML.stories.d.ts.map +1 -0
  209. package/jsx/core/HTML/HTML.stories.jsx +13 -0
  210. package/jsx/core/HTML/HTML.stories.jsx.map +1 -0
  211. package/jsx/core/Icon/Icon.stories.d.ts +5 -6
  212. package/jsx/core/Icon/Icon.stories.d.ts.map +1 -1
  213. package/jsx/core/Icon/Icon.stories.jsx +5 -27
  214. package/jsx/core/Icon/Icon.stories.jsx.map +1 -1
  215. package/jsx/core/Icon/Icon.styles.d.ts +4 -0
  216. package/jsx/core/Icon/Icon.styles.d.ts.map +1 -0
  217. package/jsx/core/Icon/Icon.styles.js +25 -0
  218. package/jsx/core/Icon/Icon.styles.js.map +1 -0
  219. package/jsx/core/IconPicker/IconPicker.stories.jsx +1 -1
  220. package/jsx/core/IconPicker/IconPicker.stories.jsx.map +1 -1
  221. package/jsx/core/Image/Image.stories.d.ts +2 -3
  222. package/jsx/core/Image/Image.stories.d.ts.map +1 -1
  223. package/jsx/core/Image/Image.stories.jsx.map +1 -1
  224. package/jsx/core/Input/Input.stories.d.ts +9 -0
  225. package/jsx/core/Input/Input.stories.d.ts.map +1 -1
  226. package/jsx/core/Input/Input.stories.jsx +40 -1
  227. package/jsx/core/Input/Input.stories.jsx.map +1 -1
  228. package/jsx/core/Label/Label.stories.d.ts +4 -0
  229. package/jsx/core/Label/Label.stories.d.ts.map +1 -1
  230. package/jsx/core/Label/Label.stories.jsx +18 -1
  231. package/jsx/core/Label/Label.stories.jsx.map +1 -1
  232. package/jsx/core/Link/Link.stories.d.ts +1 -11
  233. package/jsx/core/Link/Link.stories.d.ts.map +1 -1
  234. package/jsx/core/Link/Link.stories.jsx.map +1 -1
  235. package/jsx/core/List/CommaSeparatedList.stories.d.ts +2 -2
  236. package/jsx/core/List/CommaSeparatedList.stories.d.ts.map +1 -1
  237. package/jsx/core/List/CommaSeparatedList.stories.jsx.map +1 -1
  238. package/jsx/core/ListToolbar/ListToolbar.mocks.d.ts +9 -0
  239. package/jsx/core/ListToolbar/ListToolbar.mocks.d.ts.map +1 -0
  240. package/jsx/core/ListToolbar/ListToolbar.mocks.jsx +71 -0
  241. package/jsx/core/ListToolbar/ListToolbar.mocks.jsx.map +1 -0
  242. package/jsx/core/ListToolbar/ListToolbar.stories.d.ts +6 -0
  243. package/jsx/core/ListToolbar/ListToolbar.stories.d.ts.map +1 -0
  244. package/jsx/core/ListToolbar/ListToolbar.stories.jsx +87 -0
  245. package/jsx/core/ListToolbar/ListToolbar.stories.jsx.map +1 -0
  246. package/jsx/core/MenuButton/MenuButton.stories.d.ts +6 -6
  247. package/jsx/core/MenuButton/MenuButton.stories.d.ts.map +1 -1
  248. package/jsx/core/MenuButton/MenuButton.stories.jsx.map +1 -1
  249. package/jsx/core/Modal/Modal.mocks.d.ts.map +1 -1
  250. package/jsx/core/Modal/Modal.mocks.jsx +3 -3
  251. package/jsx/core/Modal/Modal.mocks.jsx.map +1 -1
  252. package/jsx/core/Modal/Modal.stories.d.ts +10 -5
  253. package/jsx/core/Modal/Modal.stories.d.ts.map +1 -1
  254. package/jsx/core/Modal/Modal.stories.jsx +34 -43
  255. package/jsx/core/Modal/Modal.stories.jsx.map +1 -1
  256. package/jsx/core/MultiStep/MultiStep.stories.d.ts +2 -3
  257. package/jsx/core/MultiStep/MultiStep.stories.d.ts.map +1 -1
  258. package/jsx/core/MultiStep/MultiStep.stories.jsx.map +1 -1
  259. package/jsx/core/Number/Number.stories.d.ts +10 -6
  260. package/jsx/core/Number/Number.stories.d.ts.map +1 -1
  261. package/jsx/core/Number/Number.stories.jsx +38 -19
  262. package/jsx/core/Number/Number.stories.jsx.map +1 -1
  263. package/jsx/core/PageTemplates/PageTemplates.stories.d.ts +5 -3
  264. package/jsx/core/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
  265. package/jsx/core/PageTemplates/PageTemplates.stories.jsx +85 -31
  266. package/jsx/core/PageTemplates/PageTemplates.stories.jsx.map +1 -1
  267. package/jsx/core/PageTemplates/PageTemplates.styles.d.ts +1 -0
  268. package/jsx/core/PageTemplates/PageTemplates.styles.d.ts.map +1 -1
  269. package/jsx/core/PageTemplates/PageTemplates.styles.js +9 -0
  270. package/jsx/core/PageTemplates/PageTemplates.styles.js.map +1 -1
  271. package/jsx/core/Phone/Phone.stories.d.ts.map +1 -1
  272. package/jsx/core/Phone/Phone.stories.jsx +3 -1
  273. package/jsx/core/Phone/Phone.stories.jsx.map +1 -1
  274. package/jsx/core/Popover/Popover.stories.d.ts +1 -1
  275. package/jsx/core/Popover/Popover.stories.d.ts.map +1 -1
  276. package/jsx/core/Popover/Popover.stories.jsx.map +1 -1
  277. package/jsx/core/Progress/Progress.stories.d.ts +4 -0
  278. package/jsx/core/Progress/Progress.stories.d.ts.map +1 -1
  279. package/jsx/core/Progress/Progress.stories.jsx +22 -1
  280. package/jsx/core/Progress/Progress.stories.jsx.map +1 -1
  281. package/jsx/core/RadioButton/RadioButton.stories.d.ts +12 -0
  282. package/jsx/core/RadioButton/RadioButton.stories.d.ts.map +1 -1
  283. package/jsx/core/RadioButton/RadioButton.stories.jsx +53 -1
  284. package/jsx/core/RadioButton/RadioButton.stories.jsx.map +1 -1
  285. package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts +3 -3
  286. package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts.map +1 -1
  287. package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.jsx.map +1 -1
  288. package/jsx/core/Rating/Rating.stories.d.ts +4 -0
  289. package/jsx/core/Rating/Rating.stories.d.ts.map +1 -1
  290. package/jsx/core/Rating/Rating.stories.jsx +18 -1
  291. package/jsx/core/Rating/Rating.stories.jsx.map +1 -1
  292. package/jsx/core/SearchInput/SearchInput.mocks.d.ts +12 -0
  293. package/jsx/core/SearchInput/SearchInput.mocks.d.ts.map +1 -0
  294. package/jsx/core/SearchInput/SearchInput.mocks.js +25 -0
  295. package/jsx/core/SearchInput/SearchInput.mocks.js.map +1 -0
  296. package/jsx/core/SearchInput/SearchInput.stories.d.ts +1 -0
  297. package/jsx/core/SearchInput/SearchInput.stories.d.ts.map +1 -1
  298. package/jsx/core/SearchInput/SearchInput.stories.jsx +30 -1
  299. package/jsx/core/SearchInput/SearchInput.stories.jsx.map +1 -1
  300. package/jsx/core/Select/Select.stories.d.ts +8 -0
  301. package/jsx/core/Select/Select.stories.d.ts.map +1 -1
  302. package/jsx/core/Select/Select.stories.jsx +35 -1
  303. package/jsx/core/Select/Select.stories.jsx.map +1 -1
  304. package/jsx/core/Sentiment/Sentiment.stories.d.ts +6 -0
  305. package/jsx/core/Sentiment/Sentiment.stories.d.ts.map +1 -1
  306. package/jsx/core/Sentiment/Sentiment.stories.jsx +32 -1
  307. package/jsx/core/Sentiment/Sentiment.stories.jsx.map +1 -1
  308. package/jsx/core/Slider/Slider.stories.d.ts +4 -3
  309. package/jsx/core/Slider/Slider.stories.d.ts.map +1 -1
  310. package/jsx/core/Slider/Slider.stories.jsx +1 -1
  311. package/jsx/core/Slider/Slider.stories.jsx.map +1 -1
  312. package/jsx/core/SummaryItem/SummaryItem.stories.d.ts +5 -5
  313. package/jsx/core/SummaryItem/SummaryItem.stories.d.ts.map +1 -1
  314. package/jsx/core/SummaryItem/SummaryItem.stories.jsx.map +1 -1
  315. package/jsx/core/SummaryList/SummaryList.stories.d.ts +2 -2
  316. package/jsx/core/SummaryList/SummaryList.stories.d.ts.map +1 -1
  317. package/jsx/core/SummaryList/SummaryList.stories.jsx.map +1 -1
  318. package/jsx/core/Switch/Switch.stories.d.ts +7 -0
  319. package/jsx/core/Switch/Switch.stories.d.ts.map +1 -1
  320. package/jsx/core/Switch/Switch.stories.jsx +34 -1
  321. package/jsx/core/Switch/Switch.stories.jsx.map +1 -1
  322. package/jsx/core/Table/Table.mocks.d.ts +6 -0
  323. package/jsx/core/Table/Table.mocks.d.ts.map +1 -1
  324. package/jsx/core/Table/Table.mocks.jsx +134 -0
  325. package/jsx/core/Table/Table.mocks.jsx.map +1 -1
  326. package/jsx/core/Table/Table.stories.d.ts +25 -0
  327. package/jsx/core/Table/Table.stories.d.ts.map +1 -1
  328. package/jsx/core/Table/Table.stories.jsx +120 -1
  329. package/jsx/core/Table/Table.stories.jsx.map +1 -1
  330. package/jsx/core/Tabs/Tabs.stories.d.ts +10 -2
  331. package/jsx/core/Tabs/Tabs.stories.d.ts.map +1 -1
  332. package/jsx/core/Tabs/Tabs.stories.jsx +39 -1
  333. package/jsx/core/Tabs/Tabs.stories.jsx.map +1 -1
  334. package/jsx/core/Text/Text.stories.d.ts +19 -0
  335. package/jsx/core/Text/Text.stories.d.ts.map +1 -1
  336. package/jsx/core/Text/Text.stories.jsx +112 -1
  337. package/jsx/core/Text/Text.stories.jsx.map +1 -1
  338. package/jsx/core/TextArea/TextArea.stories.d.ts +5 -0
  339. package/jsx/core/TextArea/TextArea.stories.d.ts.map +1 -1
  340. package/jsx/core/TextArea/TextArea.stories.jsx +22 -1
  341. package/jsx/core/TextArea/TextArea.stories.jsx.map +1 -1
  342. package/jsx/core/Toaster/Toaster.stories.d.ts +2 -3
  343. package/jsx/core/Toaster/Toaster.stories.d.ts.map +1 -1
  344. package/jsx/core/Toaster/Toaster.stories.jsx +17 -12
  345. package/jsx/core/Toaster/Toaster.stories.jsx.map +1 -1
  346. package/jsx/core/Tooltip/Tooltip.stories.d.ts +8 -6
  347. package/jsx/core/Tooltip/Tooltip.stories.d.ts.map +1 -1
  348. package/jsx/core/Tooltip/Tooltip.stories.jsx +28 -1
  349. package/jsx/core/Tooltip/Tooltip.stories.jsx.map +1 -1
  350. package/jsx/core/Tree/Tree.stories.d.ts +1 -2
  351. package/jsx/core/Tree/Tree.stories.d.ts.map +1 -1
  352. package/jsx/core/Tree/Tree.stories.jsx +2 -2
  353. package/jsx/core/Tree/Tree.stories.jsx.map +1 -1
  354. package/jsx/cs/Article/Article.stories.d.ts +4 -13
  355. package/jsx/cs/Article/Article.stories.d.ts.map +1 -1
  356. package/jsx/cs/Article/Article.stories.jsx.map +1 -1
  357. package/jsx/cs/ArticleList/ArticleList.stories.d.ts +4 -14
  358. package/jsx/cs/ArticleList/ArticleList.stories.d.ts.map +1 -1
  359. package/jsx/cs/ArticleList/ArticleList.stories.jsx +2 -1
  360. package/jsx/cs/ArticleList/ArticleList.stories.jsx.map +1 -1
  361. package/jsx/cs/CSCaseView/CSAppShell.stories.d.ts +3 -37
  362. package/jsx/cs/CSCaseView/CSAppShell.stories.d.ts.map +1 -1
  363. package/jsx/cs/CSCaseView/CSAppShell.stories.jsx +15 -42
  364. package/jsx/cs/CSCaseView/CSAppShell.stories.jsx.map +1 -1
  365. package/jsx/cs/CSCaseView/CSCaseView.mocks.d.ts +9 -0
  366. package/jsx/cs/CSCaseView/CSCaseView.mocks.d.ts.map +1 -1
  367. package/jsx/cs/CSCaseView/{CSCaseView.mocks.js → CSCaseView.mocks.jsx} +30 -1
  368. package/jsx/cs/CSCaseView/CSCaseView.mocks.jsx.map +1 -0
  369. package/jsx/cs/CallControlPanel/CallControlPanel.stories.d.ts +3 -2
  370. package/jsx/cs/CallControlPanel/CallControlPanel.stories.d.ts.map +1 -1
  371. package/jsx/cs/CallControlPanel/CallControlPanel.stories.jsx +20 -5
  372. package/jsx/cs/CallControlPanel/CallControlPanel.stories.jsx.map +1 -1
  373. package/jsx/cs/IntelligentGuidance/IntelligentGuidance.stories.d.ts +4 -11
  374. package/jsx/cs/IntelligentGuidance/IntelligentGuidance.stories.d.ts.map +1 -1
  375. package/jsx/cs/IntelligentGuidance/IntelligentGuidance.stories.jsx +11 -11
  376. package/jsx/cs/IntelligentGuidance/IntelligentGuidance.stories.jsx.map +1 -1
  377. package/jsx/cs/InteractionNotification/InteractionNotification.stories.d.ts +7 -6
  378. package/jsx/cs/InteractionNotification/InteractionNotification.stories.d.ts.map +1 -1
  379. package/jsx/cs/InteractionNotification/InteractionNotification.stories.jsx +13 -5
  380. package/jsx/cs/InteractionNotification/InteractionNotification.stories.jsx.map +1 -1
  381. package/jsx/cs/InteractionTimer/InteractionTimer.mocks.d.ts +11 -0
  382. package/jsx/cs/InteractionTimer/InteractionTimer.mocks.d.ts.map +1 -0
  383. package/jsx/cs/InteractionTimer/InteractionTimer.mocks.js +29 -0
  384. package/jsx/cs/InteractionTimer/InteractionTimer.mocks.js.map +1 -0
  385. package/jsx/cs/InteractionTimer/InteractionTimer.stories.d.ts +3 -7
  386. package/jsx/cs/InteractionTimer/InteractionTimer.stories.d.ts.map +1 -1
  387. package/jsx/cs/InteractionTimer/InteractionTimer.stories.jsx +38 -43
  388. package/jsx/cs/InteractionTimer/InteractionTimer.stories.jsx.map +1 -1
  389. package/jsx/cs/TaskManager/TaskManager.mocks.d.ts +6 -0
  390. package/jsx/cs/TaskManager/TaskManager.mocks.d.ts.map +1 -1
  391. package/jsx/cs/TaskManager/TaskManager.mocks.js +7 -0
  392. package/jsx/cs/TaskManager/TaskManager.mocks.js.map +1 -1
  393. package/jsx/cs/TaskManager/TaskManager.stories.d.ts +6 -5
  394. package/jsx/cs/TaskManager/TaskManager.stories.d.ts.map +1 -1
  395. package/jsx/cs/TaskManager/TaskManager.stories.jsx +26 -30
  396. package/jsx/cs/TaskManager/TaskManager.stories.jsx.map +1 -1
  397. package/jsx/cs/TaskManager/TaskManager.styles.d.ts +3 -0
  398. package/jsx/cs/TaskManager/TaskManager.styles.d.ts.map +1 -0
  399. package/jsx/cs/TaskManager/TaskManager.styles.js +8 -0
  400. package/jsx/cs/TaskManager/TaskManager.styles.js.map +1 -0
  401. package/jsx/dnd/DragDropList/DragDropList.mocks.d.ts +15 -0
  402. package/jsx/dnd/DragDropList/DragDropList.mocks.d.ts.map +1 -0
  403. package/jsx/dnd/DragDropList/DragDropList.mocks.jsx +33 -0
  404. package/jsx/dnd/DragDropList/DragDropList.mocks.jsx.map +1 -0
  405. package/jsx/dnd/DragDropList/DragDropList.stories.d.ts +8 -9
  406. package/jsx/dnd/DragDropList/DragDropList.stories.d.ts.map +1 -1
  407. package/jsx/dnd/DragDropList/DragDropList.stories.jsx +14 -78
  408. package/jsx/dnd/DragDropList/DragDropList.stories.jsx.map +1 -1
  409. package/jsx/dnd/DragDropList/DragDropList.styles.d.ts +6 -0
  410. package/jsx/dnd/DragDropList/DragDropList.styles.d.ts.map +1 -0
  411. package/jsx/dnd/DragDropList/DragDropList.styles.js +32 -0
  412. package/jsx/dnd/DragDropList/DragDropList.styles.js.map +1 -0
  413. package/jsx/rte/Editor/Editor.mocks.d.ts +309 -0
  414. package/jsx/rte/Editor/Editor.mocks.d.ts.map +1 -0
  415. package/jsx/rte/Editor/Editor.mocks.jsx +23 -0
  416. package/jsx/rte/Editor/Editor.mocks.jsx.map +1 -0
  417. package/jsx/rte/Editor/Editor.stories.d.ts +7 -8
  418. package/jsx/rte/Editor/Editor.stories.d.ts.map +1 -1
  419. package/jsx/rte/Editor/Editor.stories.jsx +3 -21
  420. package/jsx/rte/Editor/Editor.stories.jsx.map +1 -1
  421. package/jsx/rte/RichTextEditor/RichTextEditor.mocks.jsx.map +1 -1
  422. package/jsx/rte/RichTextEditor/RichTextEditor.stories.d.ts +2 -3
  423. package/jsx/rte/RichTextEditor/RichTextEditor.stories.d.ts.map +1 -1
  424. package/jsx/rte/RichTextEditor/RichTextEditor.stories.jsx.map +1 -1
  425. package/jsx/rte/RichTextEditor/RichTextViewer.stories.d.ts +5 -5
  426. package/jsx/rte/RichTextEditor/RichTextViewer.stories.d.ts.map +1 -1
  427. package/jsx/rte/RichTextEditor/RichTextViewer.stories.jsx +18 -1
  428. package/jsx/rte/RichTextEditor/RichTextViewer.stories.jsx.map +1 -1
  429. package/jsx/social/Chat/Chat.stories.d.ts +6 -7
  430. package/jsx/social/Chat/Chat.stories.d.ts.map +1 -1
  431. package/jsx/social/Chat/Chat.stories.jsx +7 -5
  432. package/jsx/social/Chat/Chat.stories.jsx.map +1 -1
  433. package/jsx/social/Chat/RepeatingView.mocks.d.ts +14 -0
  434. package/jsx/social/Chat/RepeatingView.mocks.d.ts.map +1 -0
  435. package/jsx/social/Chat/RepeatingView.mocks.js +11 -0
  436. package/jsx/social/Chat/RepeatingView.mocks.js.map +1 -0
  437. package/jsx/social/Chat/RepeatingView.stories.d.ts +6 -17
  438. package/jsx/social/Chat/RepeatingView.stories.d.ts.map +1 -1
  439. package/jsx/social/Chat/RepeatingView.stories.jsx +16 -46
  440. package/jsx/social/Chat/RepeatingView.stories.jsx.map +1 -1
  441. package/jsx/social/Chat/RepeatingView.styles.d.ts +2 -0
  442. package/jsx/social/Chat/RepeatingView.styles.d.ts.map +1 -0
  443. package/jsx/social/Chat/RepeatingView.styles.js +22 -0
  444. package/jsx/social/Chat/RepeatingView.styles.js.map +1 -0
  445. package/jsx/social/Email/Email.mocks.d.ts +172 -2
  446. package/jsx/social/Email/Email.mocks.d.ts.map +1 -1
  447. package/jsx/social/Email/Email.mocks.jsx +766 -0
  448. package/jsx/social/Email/Email.mocks.jsx.map +1 -0
  449. package/jsx/social/Email/Email.stories.d.ts +19 -25
  450. package/jsx/social/Email/Email.stories.d.ts.map +1 -1
  451. package/jsx/social/Email/Email.stories.jsx +156 -418
  452. package/jsx/social/Email/Email.stories.jsx.map +1 -1
  453. package/jsx/social/Email/Email.styles.d.ts +4 -0
  454. package/jsx/social/Email/Email.styles.d.ts.map +1 -0
  455. package/jsx/social/Email/Email.styles.js +14 -0
  456. package/jsx/social/Email/Email.styles.js.map +1 -0
  457. package/jsx/social/Feed/Feed.mocks.d.ts.map +1 -1
  458. package/jsx/social/Feed/Feed.mocks.jsx.map +1 -1
  459. package/jsx/social/Feed/Feed.stories.d.ts +6 -11
  460. package/jsx/social/Feed/Feed.stories.d.ts.map +1 -1
  461. package/jsx/social/Feed/Feed.stories.jsx +24 -19
  462. package/jsx/social/Feed/Feed.stories.jsx.map +1 -1
  463. package/jsx/social/Feed/FeedNewPost.stories.d.ts +7 -14
  464. package/jsx/social/Feed/FeedNewPost.stories.d.ts.map +1 -1
  465. package/jsx/social/Feed/FeedNewPost.stories.jsx.map +1 -1
  466. package/jsx/social/Feed/FeedPost.stories.d.ts +4 -5
  467. package/jsx/social/Feed/FeedPost.stories.d.ts.map +1 -1
  468. package/jsx/social/Feed/FeedPost.stories.jsx +30 -20
  469. package/jsx/social/Feed/FeedPost.stories.jsx.map +1 -1
  470. package/jsx/social/Feed/FeedReply.stories.d.ts +10 -10
  471. package/jsx/social/Feed/FeedReply.stories.d.ts.map +1 -1
  472. package/jsx/social/Feed/FeedReply.stories.jsx +21 -16
  473. package/jsx/social/Feed/FeedReply.stories.jsx.map +1 -1
  474. package/jsx/social/Feed/FeedReplyInput.stories.d.ts +7 -12
  475. package/jsx/social/Feed/FeedReplyInput.stories.d.ts.map +1 -1
  476. package/jsx/social/Feed/FeedReplyInput.stories.jsx.map +1 -1
  477. package/jsx/work/CaseView/CaseView.mocks.d.ts.map +1 -1
  478. package/jsx/work/CaseView/CaseView.mocks.jsx +1 -1
  479. package/jsx/work/CaseView/CaseView.mocks.jsx.map +1 -1
  480. package/jsx/work/CaseView/CaseView.stories.d.ts +4 -11
  481. package/jsx/work/CaseView/CaseView.stories.d.ts.map +1 -1
  482. package/jsx/work/CaseView/CaseView.stories.jsx +7 -7
  483. package/jsx/work/CaseView/CaseView.stories.jsx.map +1 -1
  484. package/jsx/work/CaseView/Details.mocks.d.ts.map +1 -1
  485. package/jsx/work/CaseView/Details.mocks.jsx +1 -1
  486. package/jsx/work/CaseView/Details.mocks.jsx.map +1 -1
  487. package/jsx/work/CaseView/MobileCaseView.stories.d.ts +3 -9
  488. package/jsx/work/CaseView/MobileCaseView.stories.d.ts.map +1 -1
  489. package/jsx/work/CaseView/MobileCaseView.stories.jsx.map +1 -1
  490. package/jsx/work/CaseView/Pulse.mocks.d.ts.map +1 -1
  491. package/jsx/work/CaseView/Pulse.mocks.jsx +1 -1
  492. package/jsx/work/CaseView/Pulse.mocks.jsx.map +1 -1
  493. package/jsx/work/ConfigurableLayout/ConfigurableLayout.mocks.d.ts +45 -0
  494. package/jsx/work/ConfigurableLayout/ConfigurableLayout.mocks.d.ts.map +1 -0
  495. package/jsx/work/ConfigurableLayout/ConfigurableLayout.mocks.jsx +166 -0
  496. package/jsx/work/ConfigurableLayout/ConfigurableLayout.mocks.jsx.map +1 -0
  497. package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts +3 -8
  498. package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts.map +1 -1
  499. package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.jsx +3 -175
  500. package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.jsx.map +1 -1
  501. package/jsx/work/ConfigurableLayout/ConfigurableLayout.styles.d.ts +4 -0
  502. package/jsx/work/ConfigurableLayout/ConfigurableLayout.styles.d.ts.map +1 -0
  503. package/jsx/work/ConfigurableLayout/ConfigurableLayout.styles.js +11 -0
  504. package/jsx/work/ConfigurableLayout/ConfigurableLayout.styles.js.map +1 -0
  505. package/jsx/work/Confirmation/Confirmation.stories.d.ts.map +1 -1
  506. package/jsx/work/Confirmation/Confirmation.stories.jsx +3 -3
  507. package/jsx/work/Confirmation/Confirmation.stories.jsx.map +1 -1
  508. package/jsx/work/Details/Details.stories.d.ts.map +1 -1
  509. package/jsx/work/Details/Details.stories.jsx +21 -16
  510. package/jsx/work/Details/Details.stories.jsx.map +1 -1
  511. package/jsx/work/Glimpse/Glimpse.stories.d.ts.map +1 -1
  512. package/jsx/work/Glimpse/Glimpse.stories.jsx.map +1 -1
  513. package/jsx/work/SearchResults/SearchResults.stories.d.ts.map +1 -1
  514. package/jsx/work/SearchResults/SearchResults.stories.jsx +1 -1
  515. package/jsx/work/SearchResults/SearchResults.stories.jsx.map +1 -1
  516. package/jsx/work/Stakeholders/Stakeholders.mocks.d.ts.map +1 -1
  517. package/jsx/work/Stakeholders/Stakeholders.mocks.jsx +2 -2
  518. package/jsx/work/Stakeholders/Stakeholders.mocks.jsx.map +1 -1
  519. package/jsx/work/Stakeholders/Stakeholders.stories.d.ts +2 -3
  520. package/jsx/work/Stakeholders/Stakeholders.stories.d.ts.map +1 -1
  521. package/jsx/work/Stakeholders/Stakeholders.stories.jsx +1 -0
  522. package/jsx/work/Stakeholders/Stakeholders.stories.jsx.map +1 -1
  523. package/jsx/work/Tasks/Tasks.stories.jsx +1 -1
  524. package/jsx/work/Tasks/Tasks.stories.jsx.map +1 -1
  525. package/jsx/work/Timeline/Timeline.stories.d.ts +1 -0
  526. package/jsx/work/Timeline/Timeline.stories.d.ts.map +1 -1
  527. package/jsx/work/Timeline/Timeline.stories.jsx +29 -1
  528. package/jsx/work/Timeline/Timeline.stories.jsx.map +1 -1
  529. package/lib/build/AppHeader/AppHeader.stories.d.ts.map +1 -1
  530. package/lib/build/AppHeader/AppHeader.stories.js +7 -2
  531. package/lib/build/AppHeader/AppHeader.stories.js.map +1 -1
  532. package/lib/build/AppShell/AppShell.mocks.d.ts +19 -0
  533. package/lib/build/AppShell/AppShell.mocks.d.ts.map +1 -1
  534. package/lib/build/AppShell/AppShell.mocks.js +32 -0
  535. package/lib/build/AppShell/AppShell.mocks.js.map +1 -1
  536. package/lib/build/AppShell/AppShell.stories.d.ts +2 -2
  537. package/lib/build/AppShell/AppShell.stories.d.ts.map +1 -1
  538. package/lib/build/AppShell/AppShell.stories.js +22 -45
  539. package/lib/build/AppShell/AppShell.stories.js.map +1 -1
  540. package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts +8 -0
  541. package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts.map +1 -0
  542. package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.js +85 -0
  543. package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.js.map +1 -0
  544. package/lib/build/DynamicContentEditor/FieldSelector.d.ts +14 -0
  545. package/lib/build/DynamicContentEditor/FieldSelector.d.ts.map +1 -0
  546. package/lib/build/DynamicContentEditor/FieldSelector.js +81 -0
  547. package/lib/build/DynamicContentEditor/FieldSelector.js.map +1 -0
  548. package/lib/build/FlowModeller/FlowModeller.mocks.d.ts +19 -2
  549. package/lib/build/FlowModeller/FlowModeller.mocks.d.ts.map +1 -1
  550. package/lib/build/FlowModeller/FlowModeller.mocks.js +81 -27
  551. package/lib/build/FlowModeller/FlowModeller.mocks.js.map +1 -1
  552. package/lib/build/FlowModeller/FlowModeller.stories.d.ts +8 -10
  553. package/lib/build/FlowModeller/FlowModeller.stories.d.ts.map +1 -1
  554. package/lib/build/FlowModeller/FlowModeller.stories.js +147 -138
  555. package/lib/build/FlowModeller/FlowModeller.stories.js.map +1 -1
  556. package/lib/build/FlowModeller/FlowModeller.styles.d.ts +2 -0
  557. package/lib/build/FlowModeller/FlowModeller.styles.d.ts.map +1 -0
  558. package/lib/build/FlowModeller/FlowModeller.styles.js +8 -0
  559. package/lib/build/FlowModeller/FlowModeller.styles.js.map +1 -0
  560. package/lib/build/ItemLibrary/LibraryPicker.mocks.d.ts +1 -5
  561. package/lib/build/ItemLibrary/LibraryPicker.mocks.d.ts.map +1 -1
  562. package/lib/build/ItemLibrary/LibraryPicker.mocks.js +5 -10
  563. package/lib/build/ItemLibrary/LibraryPicker.mocks.js.map +1 -1
  564. package/lib/build/ItemLibrary/LibraryPicker.stories.d.ts +3 -7
  565. package/lib/build/ItemLibrary/LibraryPicker.stories.d.ts.map +1 -1
  566. package/lib/build/ItemLibrary/LibraryPicker.stories.js +1 -1
  567. package/lib/build/ItemLibrary/LibraryPicker.stories.js.map +1 -1
  568. package/lib/build/LifeCycle/LifeCycle.mocks.d.ts +3 -0
  569. package/lib/build/LifeCycle/LifeCycle.mocks.d.ts.map +1 -1
  570. package/lib/build/LifeCycle/LifeCycle.mocks.js +106 -18
  571. package/lib/build/LifeCycle/LifeCycle.mocks.js.map +1 -1
  572. package/lib/build/LifeCycle/LifeCycle.stories.d.ts +6 -9
  573. package/lib/build/LifeCycle/LifeCycle.stories.d.ts.map +1 -1
  574. package/lib/build/LifeCycle/LifeCycle.stories.js +115 -31
  575. package/lib/build/LifeCycle/LifeCycle.stories.js.map +1 -1
  576. package/lib/build/LifeCycle/utils.d.ts.map +1 -1
  577. package/lib/build/LifeCycle/utils.js +5 -4
  578. package/lib/build/LifeCycle/utils.js.map +1 -1
  579. package/lib/build/ObjectSelect/ObjectSelect.mocks.d.ts +46 -0
  580. package/lib/build/ObjectSelect/ObjectSelect.mocks.d.ts.map +1 -0
  581. package/lib/build/ObjectSelect/ObjectSelect.mocks.js +308 -0
  582. package/lib/build/ObjectSelect/ObjectSelect.mocks.js.map +1 -0
  583. package/lib/build/ObjectSelect/ObjectSelect.stories.d.ts +8 -0
  584. package/lib/build/ObjectSelect/ObjectSelect.stories.d.ts.map +1 -0
  585. package/lib/build/ObjectSelect/ObjectSelect.stories.js +151 -0
  586. package/lib/build/ObjectSelect/ObjectSelect.stories.js.map +1 -0
  587. package/lib/build/ObjectSelect/ObjectSelect.styles.d.ts +4 -0
  588. package/lib/build/ObjectSelect/ObjectSelect.styles.d.ts.map +1 -0
  589. package/lib/build/ObjectSelect/ObjectSelect.styles.js +27 -0
  590. package/lib/build/ObjectSelect/ObjectSelect.styles.js.map +1 -0
  591. package/lib/build/PageTemplates/GalleryPage.mocks.d.ts +46 -0
  592. package/lib/build/PageTemplates/GalleryPage.mocks.d.ts.map +1 -0
  593. package/lib/build/PageTemplates/GalleryPage.mocks.js +77 -0
  594. package/lib/build/PageTemplates/GalleryPage.mocks.js.map +1 -0
  595. package/lib/build/PageTemplates/GalleryPage.stories.d.ts.map +1 -1
  596. package/lib/build/PageTemplates/GalleryPage.stories.js +14 -92
  597. package/lib/build/PageTemplates/GalleryPage.stories.js.map +1 -1
  598. package/lib/build/PageTemplates/PageTemplates.mocks.d.ts +18 -0
  599. package/lib/build/PageTemplates/PageTemplates.mocks.d.ts.map +1 -0
  600. package/lib/build/PageTemplates/PageTemplates.mocks.js +248 -0
  601. package/lib/build/PageTemplates/PageTemplates.mocks.js.map +1 -0
  602. package/lib/build/PageTemplates/PageTemplates.stories.d.ts +4 -9
  603. package/lib/build/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
  604. package/lib/build/PageTemplates/PageTemplates.stories.js +115 -253
  605. package/lib/build/PageTemplates/PageTemplates.stories.js.map +1 -1
  606. package/lib/build/Workbench/Workbench.stories.d.ts.map +1 -1
  607. package/lib/build/Workbench/Workbench.stories.js +26 -39
  608. package/lib/build/Workbench/Workbench.stories.js.map +1 -1
  609. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.mocks.d.ts +3 -0
  610. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.mocks.d.ts.map +1 -0
  611. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.mocks.js +13 -0
  612. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.mocks.js.map +1 -0
  613. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts +16 -8
  614. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts.map +1 -1
  615. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.js +59 -57
  616. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.js.map +1 -1
  617. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.styles.d.ts +5 -0
  618. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.styles.d.ts.map +1 -0
  619. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.styles.js +15 -0
  620. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.styles.js.map +1 -0
  621. package/lib/condition-builder/ConditionBuilder/props.mock.d.ts.map +1 -1
  622. package/lib/condition-builder/ConditionBuilder/props.mock.js +17 -2
  623. package/lib/condition-builder/ConditionBuilder/props.mock.js.map +1 -1
  624. package/lib/core/AppShell/AppShell.mocks.js +5 -5
  625. package/lib/core/AppShell/AppShell.mocks.js.map +1 -1
  626. package/lib/core/AppShell/AppShell.stories.d.ts +6 -0
  627. package/lib/core/AppShell/AppShell.stories.d.ts.map +1 -1
  628. package/lib/core/AppShell/AppShell.stories.js +33 -9
  629. package/lib/core/AppShell/AppShell.stories.js.map +1 -1
  630. package/lib/core/Avatar/Avatar.stories.d.ts +5 -0
  631. package/lib/core/Avatar/Avatar.stories.d.ts.map +1 -1
  632. package/lib/core/Avatar/Avatar.stories.js +30 -7
  633. package/lib/core/Avatar/Avatar.stories.js.map +1 -1
  634. package/lib/core/Backdrop/Backdrop.stories.js +2 -2
  635. package/lib/core/Backdrop/Backdrop.stories.js.map +1 -1
  636. package/lib/core/Badges/Alert.stories.js +1 -1
  637. package/lib/core/Badges/Alert.stories.js.map +1 -1
  638. package/lib/core/Badges/Count.stories.js +1 -1
  639. package/lib/core/Badges/Count.stories.js.map +1 -1
  640. package/lib/core/Badges/Keyboard.stories.d.ts +6 -0
  641. package/lib/core/Badges/Keyboard.stories.d.ts.map +1 -0
  642. package/lib/core/Badges/Keyboard.stories.js +16 -0
  643. package/lib/core/Badges/Keyboard.stories.js.map +1 -0
  644. package/lib/core/Badges/Selection.stories.d.ts +2 -3
  645. package/lib/core/Badges/Selection.stories.d.ts.map +1 -1
  646. package/lib/core/Badges/Selection.stories.js +1 -1
  647. package/lib/core/Badges/Selection.stories.js.map +1 -1
  648. package/lib/core/Badges/Status.stories.d.ts +5 -0
  649. package/lib/core/Badges/Status.stories.d.ts.map +1 -1
  650. package/lib/core/Badges/Status.stories.js +24 -2
  651. package/lib/core/Badges/Status.stories.js.map +1 -1
  652. package/lib/core/Badges/Tag.stories.d.ts +2 -3
  653. package/lib/core/Badges/Tag.stories.d.ts.map +1 -1
  654. package/lib/core/Badges/Tag.stories.js +1 -1
  655. package/lib/core/Badges/Tag.stories.js.map +1 -1
  656. package/lib/core/Banner/Banner.mocks.js +1 -1
  657. package/lib/core/Banner/Banner.mocks.js.map +1 -1
  658. package/lib/core/Banner/Banner.stories.d.ts +12 -19
  659. package/lib/core/Banner/Banner.stories.d.ts.map +1 -1
  660. package/lib/core/Banner/Banner.stories.js +30 -13
  661. package/lib/core/Banner/Banner.stories.js.map +1 -1
  662. package/lib/core/Boolean/BooleanDisplay.stories.js +1 -1
  663. package/lib/core/Boolean/BooleanDisplay.stories.js.map +1 -1
  664. package/lib/core/Breadcrumbs/Breadcrumbs.stories.d.ts +3 -4
  665. package/lib/core/Breadcrumbs/Breadcrumbs.stories.d.ts.map +1 -1
  666. package/lib/core/Breadcrumbs/Breadcrumbs.stories.js +2 -2
  667. package/lib/core/Breadcrumbs/Breadcrumbs.stories.js.map +1 -1
  668. package/lib/core/Button/Button.stories.d.ts +10 -3
  669. package/lib/core/Button/Button.stories.d.ts.map +1 -1
  670. package/lib/core/Button/Button.stories.js +35 -8
  671. package/lib/core/Button/Button.stories.js.map +1 -1
  672. package/lib/core/Card/Card.stories.d.ts +6 -2
  673. package/lib/core/Card/Card.stories.d.ts.map +1 -1
  674. package/lib/core/Card/Card.stories.js +22 -4
  675. package/lib/core/Card/Card.stories.js.map +1 -1
  676. package/lib/core/Checkbox/Checkbox.stories.d.ts +12 -0
  677. package/lib/core/Checkbox/Checkbox.stories.d.ts.map +1 -1
  678. package/lib/core/Checkbox/Checkbox.stories.js +54 -3
  679. package/lib/core/Checkbox/Checkbox.stories.js.map +1 -1
  680. package/lib/core/CheckboxGroup/CheckboxGroup.stories.d.ts +3 -3
  681. package/lib/core/CheckboxGroup/CheckboxGroup.stories.d.ts.map +1 -1
  682. package/lib/core/CheckboxGroup/CheckboxGroup.stories.js +3 -3
  683. package/lib/core/CheckboxGroup/CheckboxGroup.stories.js.map +1 -1
  684. package/lib/core/ColorPicker/ColorPicker.stories.d.ts +1 -2
  685. package/lib/core/ColorPicker/ColorPicker.stories.d.ts.map +1 -1
  686. package/lib/core/ColorPicker/ColorPicker.stories.js +7 -15
  687. package/lib/core/ColorPicker/ColorPicker.stories.js.map +1 -1
  688. package/lib/core/ColorPicker/ColorPicker.styles.d.ts +4 -0
  689. package/lib/core/ColorPicker/ColorPicker.styles.d.ts.map +1 -0
  690. package/lib/core/ColorPicker/ColorPicker.styles.js +11 -0
  691. package/lib/core/ColorPicker/ColorPicker.styles.js.map +1 -0
  692. package/lib/core/ComboBox/ComboBox.stories.js +6 -6
  693. package/lib/core/ComboBox/ComboBox.stories.js.map +1 -1
  694. package/lib/core/Configuration/Configuration.mocks.d.ts +7 -0
  695. package/lib/core/Configuration/Configuration.mocks.d.ts.map +1 -0
  696. package/lib/core/Configuration/Configuration.mocks.js +6 -0
  697. package/lib/core/Configuration/Configuration.mocks.js.map +1 -0
  698. package/lib/core/Configuration/Configuration.stories.d.ts +19 -3
  699. package/lib/core/Configuration/Configuration.stories.d.ts.map +1 -1
  700. package/lib/core/Configuration/Configuration.stories.js +71 -24
  701. package/lib/core/Configuration/Configuration.stories.js.map +1 -1
  702. package/lib/core/Configuration/Configuration.styles.d.ts +6 -0
  703. package/lib/core/Configuration/Configuration.styles.d.ts.map +1 -0
  704. package/lib/core/Configuration/Configuration.styles.js +12 -0
  705. package/lib/core/Configuration/Configuration.styles.js.map +1 -0
  706. package/lib/core/CreditCard/CreditCard.stories.d.ts +11 -0
  707. package/lib/core/CreditCard/CreditCard.stories.d.ts.map +1 -0
  708. package/lib/core/CreditCard/CreditCard.stories.js +46 -0
  709. package/lib/core/CreditCard/CreditCard.stories.js.map +1 -0
  710. package/lib/core/Currency/Currency.stories.d.ts +7 -4
  711. package/lib/core/Currency/Currency.stories.d.ts.map +1 -1
  712. package/lib/core/Currency/Currency.stories.js +32 -14
  713. package/lib/core/Currency/Currency.stories.js.map +1 -1
  714. package/lib/core/DateTime/DateTime.stories.d.ts.map +1 -1
  715. package/lib/core/DateTime/DateTime.stories.js +12 -10
  716. package/lib/core/DateTime/DateTime.stories.js.map +1 -1
  717. package/lib/core/DateTime/DateTimeDisplay.stories.js +2 -2
  718. package/lib/core/DateTime/DateTimeDisplay.stories.js.map +1 -1
  719. package/lib/core/DateTime/DateTimePicker.stories.js +2 -2
  720. package/lib/core/DateTime/DateTimePicker.stories.js.map +1 -1
  721. package/lib/core/Drawer/Drawer.stories.js +4 -4
  722. package/lib/core/Drawer/Drawer.stories.js.map +1 -1
  723. package/lib/core/Email/EmailDisplay.stories.js +1 -1
  724. package/lib/core/Email/EmailDisplay.stories.js.map +1 -1
  725. package/lib/core/EmojiPicker/EmojiPicker.stories.js +3 -3
  726. package/lib/core/EmojiPicker/EmojiPicker.stories.js.map +1 -1
  727. package/lib/core/EmptyState/EmptyState.stories.js +1 -1
  728. package/lib/core/EmptyState/EmptyState.stories.js.map +1 -1
  729. package/lib/core/ErrorState/ErrorState.stories.js +1 -1
  730. package/lib/core/ErrorState/ErrorState.stories.js.map +1 -1
  731. package/lib/core/ExpandCollapse/ExpandCollapse.stories.js +2 -2
  732. package/lib/core/ExpandCollapse/ExpandCollapse.stories.js.map +1 -1
  733. package/lib/core/FieldGroup/FieldGroup.stories.d.ts +6 -4
  734. package/lib/core/FieldGroup/FieldGroup.stories.d.ts.map +1 -1
  735. package/lib/core/FieldGroup/FieldGroup.stories.js +7 -3
  736. package/lib/core/FieldGroup/FieldGroup.stories.js.map +1 -1
  737. package/lib/core/FieldGroup/FieldGroupList.mocks.d.ts +4 -0
  738. package/lib/core/FieldGroup/FieldGroupList.mocks.d.ts.map +1 -1
  739. package/lib/core/FieldGroup/FieldGroupList.mocks.js +47 -3
  740. package/lib/core/FieldGroup/FieldGroupList.mocks.js.map +1 -1
  741. package/lib/core/FieldGroup/FieldGroupList.stories.d.ts +9 -8
  742. package/lib/core/FieldGroup/FieldGroupList.stories.d.ts.map +1 -1
  743. package/lib/core/FieldGroup/FieldGroupList.stories.js +54 -67
  744. package/lib/core/FieldGroup/FieldGroupList.stories.js.map +1 -1
  745. package/lib/core/FieldValueList/FieldValueList.stories.d.ts +2 -2
  746. package/lib/core/FieldValueList/FieldValueList.stories.d.ts.map +1 -1
  747. package/lib/core/FieldValueList/FieldValueList.stories.js +4 -4
  748. package/lib/core/FieldValueList/FieldValueList.stories.js.map +1 -1
  749. package/lib/core/File/FileDisplay.stories.d.ts.map +1 -1
  750. package/lib/core/File/FileDisplay.stories.js +25 -37
  751. package/lib/core/File/FileDisplay.stories.js.map +1 -1
  752. package/lib/core/File/FileInput.stories.d.ts.map +1 -1
  753. package/lib/core/File/FileInput.stories.js +3 -3
  754. package/lib/core/File/FileInput.stories.js.map +1 -1
  755. package/lib/core/Flex/FlexContainer.stories.d.ts +1 -2
  756. package/lib/core/Flex/FlexContainer.stories.d.ts.map +1 -1
  757. package/lib/core/Flex/FlexContainer.stories.js +7 -7
  758. package/lib/core/Flex/FlexContainer.stories.js.map +1 -1
  759. package/lib/core/Flex/FlexItem.stories.js +3 -3
  760. package/lib/core/Flex/FlexItem.stories.js.map +1 -1
  761. package/lib/core/Form/Form.mocks.d.ts.map +1 -1
  762. package/lib/core/Form/Form.mocks.js +5 -5
  763. package/lib/core/Form/Form.mocks.js.map +1 -1
  764. package/lib/core/Form/Form.stories.d.ts +10 -0
  765. package/lib/core/Form/Form.stories.d.ts.map +1 -1
  766. package/lib/core/Form/Form.stories.js +47 -9
  767. package/lib/core/Form/Form.stories.js.map +1 -1
  768. package/lib/core/Grid/GridContainer.stories.d.ts +4 -5
  769. package/lib/core/Grid/GridContainer.stories.d.ts.map +1 -1
  770. package/lib/core/Grid/GridContainer.stories.js +9 -9
  771. package/lib/core/Grid/GridContainer.stories.js.map +1 -1
  772. package/lib/core/Grid/GridItem.stories.d.ts +1 -2
  773. package/lib/core/Grid/GridItem.stories.d.ts.map +1 -1
  774. package/lib/core/Grid/GridItem.stories.js +3 -3
  775. package/lib/core/Grid/GridItem.stories.js.map +1 -1
  776. package/lib/core/HTML/HTML.stories.d.ts +6 -0
  777. package/lib/core/HTML/HTML.stories.d.ts.map +1 -0
  778. package/lib/core/HTML/HTML.stories.js +14 -0
  779. package/lib/core/HTML/HTML.stories.js.map +1 -0
  780. package/lib/core/Icon/Icon.mocks.js +1 -1
  781. package/lib/core/Icon/Icon.mocks.js.map +1 -1
  782. package/lib/core/Icon/Icon.stories.d.ts +5 -6
  783. package/lib/core/Icon/Icon.stories.d.ts.map +1 -1
  784. package/lib/core/Icon/Icon.stories.js +12 -35
  785. package/lib/core/Icon/Icon.stories.js.map +1 -1
  786. package/lib/core/Icon/Icon.styles.d.ts +4 -0
  787. package/lib/core/Icon/Icon.styles.d.ts.map +1 -0
  788. package/lib/core/Icon/Icon.styles.js +25 -0
  789. package/lib/core/Icon/Icon.styles.js.map +1 -0
  790. package/lib/core/IconPicker/IconPicker.stories.js +2 -2
  791. package/lib/core/IconPicker/IconPicker.stories.js.map +1 -1
  792. package/lib/core/Image/Image.stories.d.ts +2 -3
  793. package/lib/core/Image/Image.stories.d.ts.map +1 -1
  794. package/lib/core/Image/Image.stories.js +1 -1
  795. package/lib/core/Image/Image.stories.js.map +1 -1
  796. package/lib/core/Input/Input.stories.d.ts +9 -0
  797. package/lib/core/Input/Input.stories.d.ts.map +1 -1
  798. package/lib/core/Input/Input.stories.js +39 -2
  799. package/lib/core/Input/Input.stories.js.map +1 -1
  800. package/lib/core/Label/Label.stories.d.ts +4 -0
  801. package/lib/core/Label/Label.stories.d.ts.map +1 -1
  802. package/lib/core/Label/Label.stories.js +17 -2
  803. package/lib/core/Label/Label.stories.js.map +1 -1
  804. package/lib/core/Lightbox/Lightbox.stories.js +3 -3
  805. package/lib/core/Lightbox/Lightbox.stories.js.map +1 -1
  806. package/lib/core/Link/Link.stories.d.ts +1 -11
  807. package/lib/core/Link/Link.stories.d.ts.map +1 -1
  808. package/lib/core/Link/Link.stories.js +3 -3
  809. package/lib/core/Link/Link.stories.js.map +1 -1
  810. package/lib/core/List/CommaSeparatedList.stories.d.ts +2 -2
  811. package/lib/core/List/CommaSeparatedList.stories.d.ts.map +1 -1
  812. package/lib/core/List/CommaSeparatedList.stories.js +1 -1
  813. package/lib/core/List/CommaSeparatedList.stories.js.map +1 -1
  814. package/lib/core/List/OrderedList.stories.js +1 -1
  815. package/lib/core/List/OrderedList.stories.js.map +1 -1
  816. package/lib/core/List/UnorderedList.stories.js +1 -1
  817. package/lib/core/List/UnorderedList.stories.js.map +1 -1
  818. package/lib/core/ListToolbar/ListToolbar.mocks.d.ts +9 -0
  819. package/lib/core/ListToolbar/ListToolbar.mocks.d.ts.map +1 -0
  820. package/lib/core/ListToolbar/ListToolbar.mocks.js +50 -0
  821. package/lib/core/ListToolbar/ListToolbar.mocks.js.map +1 -0
  822. package/lib/core/ListToolbar/ListToolbar.stories.d.ts +6 -0
  823. package/lib/core/ListToolbar/ListToolbar.stories.d.ts.map +1 -0
  824. package/lib/core/ListToolbar/ListToolbar.stories.js +79 -0
  825. package/lib/core/ListToolbar/ListToolbar.stories.js.map +1 -0
  826. package/lib/core/Location/Location.stories.js +4 -4
  827. package/lib/core/Location/Location.stories.js.map +1 -1
  828. package/lib/core/Menu/Menu.stories.js +5 -5
  829. package/lib/core/Menu/Menu.stories.js.map +1 -1
  830. package/lib/core/MenuButton/MenuButton.stories.d.ts +6 -6
  831. package/lib/core/MenuButton/MenuButton.stories.d.ts.map +1 -1
  832. package/lib/core/MenuButton/MenuButton.stories.js +9 -9
  833. package/lib/core/MenuButton/MenuButton.stories.js.map +1 -1
  834. package/lib/core/MetaList/MetaList.stories.js +3 -3
  835. package/lib/core/MetaList/MetaList.stories.js.map +1 -1
  836. package/lib/core/Modal/Modal.mocks.d.ts.map +1 -1
  837. package/lib/core/Modal/Modal.mocks.js +11 -11
  838. package/lib/core/Modal/Modal.mocks.js.map +1 -1
  839. package/lib/core/Modal/Modal.stories.d.ts +10 -5
  840. package/lib/core/Modal/Modal.stories.d.ts.map +1 -1
  841. package/lib/core/Modal/Modal.stories.js +40 -35
  842. package/lib/core/Modal/Modal.stories.js.map +1 -1
  843. package/lib/core/MultiStep/MultiStep.stories.d.ts +2 -3
  844. package/lib/core/MultiStep/MultiStep.stories.d.ts.map +1 -1
  845. package/lib/core/MultiStep/MultiStep.stories.js +3 -3
  846. package/lib/core/MultiStep/MultiStep.stories.js.map +1 -1
  847. package/lib/core/Number/Number.stories.d.ts +10 -6
  848. package/lib/core/Number/Number.stories.d.ts.map +1 -1
  849. package/lib/core/Number/Number.stories.js +41 -22
  850. package/lib/core/Number/Number.stories.js.map +1 -1
  851. package/lib/core/PageTemplates/PageTemplates.stories.d.ts +5 -3
  852. package/lib/core/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
  853. package/lib/core/PageTemplates/PageTemplates.stories.js +88 -42
  854. package/lib/core/PageTemplates/PageTemplates.stories.js.map +1 -1
  855. package/lib/core/PageTemplates/PageTemplates.styles.d.ts +1 -0
  856. package/lib/core/PageTemplates/PageTemplates.styles.d.ts.map +1 -1
  857. package/lib/core/PageTemplates/PageTemplates.styles.js +9 -0
  858. package/lib/core/PageTemplates/PageTemplates.styles.js.map +1 -1
  859. package/lib/core/Pagination/Pagination.stories.js +1 -1
  860. package/lib/core/Pagination/Pagination.stories.js.map +1 -1
  861. package/lib/core/Paragraph/ParagraphDisplay.stories.js +1 -1
  862. package/lib/core/Paragraph/ParagraphDisplay.stories.js.map +1 -1
  863. package/lib/core/Phone/Phone.stories.d.ts.map +1 -1
  864. package/lib/core/Phone/Phone.stories.js +4 -2
  865. package/lib/core/Phone/Phone.stories.js.map +1 -1
  866. package/lib/core/Popover/Popover.stories.d.ts +1 -1
  867. package/lib/core/Popover/Popover.stories.d.ts.map +1 -1
  868. package/lib/core/Popover/Popover.stories.js +2 -2
  869. package/lib/core/Popover/Popover.stories.js.map +1 -1
  870. package/lib/core/Progress/Progress.stories.d.ts +4 -0
  871. package/lib/core/Progress/Progress.stories.d.ts.map +1 -1
  872. package/lib/core/Progress/Progress.stories.js +20 -3
  873. package/lib/core/Progress/Progress.stories.js.map +1 -1
  874. package/lib/core/RadioButton/RadioButton.stories.d.ts +12 -0
  875. package/lib/core/RadioButton/RadioButton.stories.d.ts.map +1 -1
  876. package/lib/core/RadioButton/RadioButton.stories.js +53 -3
  877. package/lib/core/RadioButton/RadioButton.stories.js.map +1 -1
  878. package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts +3 -3
  879. package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts.map +1 -1
  880. package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.js +3 -3
  881. package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.js.map +1 -1
  882. package/lib/core/Rating/Rating.stories.d.ts +4 -0
  883. package/lib/core/Rating/Rating.stories.d.ts.map +1 -1
  884. package/lib/core/Rating/Rating.stories.js +17 -2
  885. package/lib/core/Rating/Rating.stories.js.map +1 -1
  886. package/lib/core/SearchInput/SearchInput.mocks.d.ts +12 -0
  887. package/lib/core/SearchInput/SearchInput.mocks.d.ts.map +1 -0
  888. package/lib/core/SearchInput/SearchInput.mocks.js +25 -0
  889. package/lib/core/SearchInput/SearchInput.mocks.js.map +1 -0
  890. package/lib/core/SearchInput/SearchInput.stories.d.ts +1 -0
  891. package/lib/core/SearchInput/SearchInput.stories.d.ts.map +1 -1
  892. package/lib/core/SearchInput/SearchInput.stories.js +30 -1
  893. package/lib/core/SearchInput/SearchInput.stories.js.map +1 -1
  894. package/lib/core/Select/Select.stories.d.ts +8 -0
  895. package/lib/core/Select/Select.stories.d.ts.map +1 -1
  896. package/lib/core/Select/Select.stories.js +29 -2
  897. package/lib/core/Select/Select.stories.js.map +1 -1
  898. package/lib/core/Sentiment/Sentiment.stories.d.ts +6 -0
  899. package/lib/core/Sentiment/Sentiment.stories.d.ts.map +1 -1
  900. package/lib/core/Sentiment/Sentiment.stories.js +30 -3
  901. package/lib/core/Sentiment/Sentiment.stories.js.map +1 -1
  902. package/lib/core/Slider/Slider.stories.d.ts +4 -3
  903. package/lib/core/Slider/Slider.stories.d.ts.map +1 -1
  904. package/lib/core/Slider/Slider.stories.js +2 -2
  905. package/lib/core/Slider/Slider.stories.js.map +1 -1
  906. package/lib/core/SummaryItem/SummaryItem.stories.d.ts +5 -5
  907. package/lib/core/SummaryItem/SummaryItem.stories.d.ts.map +1 -1
  908. package/lib/core/SummaryItem/SummaryItem.stories.js +4 -4
  909. package/lib/core/SummaryItem/SummaryItem.stories.js.map +1 -1
  910. package/lib/core/SummaryList/SummaryList.mocks.js +2 -2
  911. package/lib/core/SummaryList/SummaryList.mocks.js.map +1 -1
  912. package/lib/core/SummaryList/SummaryList.stories.d.ts +2 -2
  913. package/lib/core/SummaryList/SummaryList.stories.d.ts.map +1 -1
  914. package/lib/core/SummaryList/SummaryList.stories.js +5 -5
  915. package/lib/core/SummaryList/SummaryList.stories.js.map +1 -1
  916. package/lib/core/Switch/Switch.stories.d.ts +7 -0
  917. package/lib/core/Switch/Switch.stories.d.ts.map +1 -1
  918. package/lib/core/Switch/Switch.stories.js +34 -3
  919. package/lib/core/Switch/Switch.stories.js.map +1 -1
  920. package/lib/core/Table/Table.mocks.d.ts +6 -0
  921. package/lib/core/Table/Table.mocks.d.ts.map +1 -1
  922. package/lib/core/Table/Table.mocks.js +135 -1
  923. package/lib/core/Table/Table.mocks.js.map +1 -1
  924. package/lib/core/Table/Table.stories.d.ts +25 -0
  925. package/lib/core/Table/Table.stories.d.ts.map +1 -1
  926. package/lib/core/Table/Table.stories.js +118 -6
  927. package/lib/core/Table/Table.stories.js.map +1 -1
  928. package/lib/core/Tabs/Tabs.stories.d.ts +10 -2
  929. package/lib/core/Tabs/Tabs.stories.d.ts.map +1 -1
  930. package/lib/core/Tabs/Tabs.stories.js +32 -3
  931. package/lib/core/Tabs/Tabs.stories.js.map +1 -1
  932. package/lib/core/Text/Text.stories.d.ts +19 -0
  933. package/lib/core/Text/Text.stories.d.ts.map +1 -1
  934. package/lib/core/Text/Text.stories.js +103 -3
  935. package/lib/core/Text/Text.stories.js.map +1 -1
  936. package/lib/core/TextArea/TextArea.stories.d.ts +5 -0
  937. package/lib/core/TextArea/TextArea.stories.d.ts.map +1 -1
  938. package/lib/core/TextArea/TextArea.stories.js +21 -2
  939. package/lib/core/TextArea/TextArea.stories.js.map +1 -1
  940. package/lib/core/Toaster/Toaster.stories.d.ts +2 -3
  941. package/lib/core/Toaster/Toaster.stories.d.ts.map +1 -1
  942. package/lib/core/Toaster/Toaster.stories.js +15 -19
  943. package/lib/core/Toaster/Toaster.stories.js.map +1 -1
  944. package/lib/core/Tooltip/Tooltip.stories.d.ts +8 -6
  945. package/lib/core/Tooltip/Tooltip.stories.d.ts.map +1 -1
  946. package/lib/core/Tooltip/Tooltip.stories.js +21 -2
  947. package/lib/core/Tooltip/Tooltip.stories.js.map +1 -1
  948. package/lib/core/Tree/Tree.stories.d.ts +1 -2
  949. package/lib/core/Tree/Tree.stories.d.ts.map +1 -1
  950. package/lib/core/Tree/Tree.stories.js +5 -5
  951. package/lib/core/Tree/Tree.stories.js.map +1 -1
  952. package/lib/core/URL/URL.stories.js +1 -1
  953. package/lib/core/URL/URL.stories.js.map +1 -1
  954. package/lib/cs/Article/Article.stories.d.ts +4 -13
  955. package/lib/cs/Article/Article.stories.d.ts.map +1 -1
  956. package/lib/cs/Article/Article.stories.js +9 -9
  957. package/lib/cs/Article/Article.stories.js.map +1 -1
  958. package/lib/cs/ArticleList/ArticleList.stories.d.ts +4 -14
  959. package/lib/cs/ArticleList/ArticleList.stories.d.ts.map +1 -1
  960. package/lib/cs/ArticleList/ArticleList.stories.js +12 -11
  961. package/lib/cs/ArticleList/ArticleList.stories.js.map +1 -1
  962. package/lib/cs/CSCaseView/CSAppShell.stories.d.ts +3 -37
  963. package/lib/cs/CSCaseView/CSAppShell.stories.d.ts.map +1 -1
  964. package/lib/cs/CSCaseView/CSAppShell.stories.js +24 -37
  965. package/lib/cs/CSCaseView/CSAppShell.stories.js.map +1 -1
  966. package/lib/cs/CSCaseView/CSCaseView.mocks.d.ts +9 -0
  967. package/lib/cs/CSCaseView/CSCaseView.mocks.d.ts.map +1 -1
  968. package/lib/cs/CSCaseView/CSCaseView.mocks.js +16 -0
  969. package/lib/cs/CSCaseView/CSCaseView.mocks.js.map +1 -1
  970. package/lib/cs/CallControlPanel/CallControlPanel.stories.d.ts +3 -2
  971. package/lib/cs/CallControlPanel/CallControlPanel.stories.d.ts.map +1 -1
  972. package/lib/cs/CallControlPanel/CallControlPanel.stories.js +22 -7
  973. package/lib/cs/CallControlPanel/CallControlPanel.stories.js.map +1 -1
  974. package/lib/cs/DialPad/DialPad.stories.js +1 -1
  975. package/lib/cs/DialPad/DialPad.stories.js.map +1 -1
  976. package/lib/cs/IntelligentGuidance/IntelligentGuidance.stories.d.ts +4 -11
  977. package/lib/cs/IntelligentGuidance/IntelligentGuidance.stories.d.ts.map +1 -1
  978. package/lib/cs/IntelligentGuidance/IntelligentGuidance.stories.js +26 -26
  979. package/lib/cs/IntelligentGuidance/IntelligentGuidance.stories.js.map +1 -1
  980. package/lib/cs/InteractionNotification/InteractionNotification.stories.d.ts +7 -6
  981. package/lib/cs/InteractionNotification/InteractionNotification.stories.d.ts.map +1 -1
  982. package/lib/cs/InteractionNotification/InteractionNotification.stories.js +13 -5
  983. package/lib/cs/InteractionNotification/InteractionNotification.stories.js.map +1 -1
  984. package/lib/cs/InteractionTimer/InteractionTimer.mocks.d.ts +11 -0
  985. package/lib/cs/InteractionTimer/InteractionTimer.mocks.d.ts.map +1 -0
  986. package/lib/cs/InteractionTimer/InteractionTimer.mocks.js +29 -0
  987. package/lib/cs/InteractionTimer/InteractionTimer.mocks.js.map +1 -0
  988. package/lib/cs/InteractionTimer/InteractionTimer.stories.d.ts +3 -7
  989. package/lib/cs/InteractionTimer/InteractionTimer.stories.d.ts.map +1 -1
  990. package/lib/cs/InteractionTimer/InteractionTimer.stories.js +38 -43
  991. package/lib/cs/InteractionTimer/InteractionTimer.stories.js.map +1 -1
  992. package/lib/cs/TaskManager/TaskManager.mocks.d.ts +6 -0
  993. package/lib/cs/TaskManager/TaskManager.mocks.d.ts.map +1 -1
  994. package/lib/cs/TaskManager/TaskManager.mocks.js +7 -0
  995. package/lib/cs/TaskManager/TaskManager.mocks.js.map +1 -1
  996. package/lib/cs/TaskManager/TaskManager.stories.d.ts +6 -5
  997. package/lib/cs/TaskManager/TaskManager.stories.d.ts.map +1 -1
  998. package/lib/cs/TaskManager/TaskManager.stories.js +34 -38
  999. package/lib/cs/TaskManager/TaskManager.stories.js.map +1 -1
  1000. package/lib/cs/TaskManager/TaskManager.styles.d.ts +3 -0
  1001. package/lib/cs/TaskManager/TaskManager.styles.d.ts.map +1 -0
  1002. package/lib/cs/TaskManager/TaskManager.styles.js +8 -0
  1003. package/lib/cs/TaskManager/TaskManager.styles.js.map +1 -0
  1004. package/lib/dnd/DragDropList/DragDropList.mocks.d.ts +15 -0
  1005. package/lib/dnd/DragDropList/DragDropList.mocks.d.ts.map +1 -0
  1006. package/lib/dnd/DragDropList/DragDropList.mocks.js +32 -0
  1007. package/lib/dnd/DragDropList/DragDropList.mocks.js.map +1 -0
  1008. package/lib/dnd/DragDropList/DragDropList.stories.d.ts +8 -9
  1009. package/lib/dnd/DragDropList/DragDropList.stories.d.ts.map +1 -1
  1010. package/lib/dnd/DragDropList/DragDropList.stories.js +16 -87
  1011. package/lib/dnd/DragDropList/DragDropList.stories.js.map +1 -1
  1012. package/lib/dnd/DragDropList/DragDropList.styles.d.ts +6 -0
  1013. package/lib/dnd/DragDropList/DragDropList.styles.d.ts.map +1 -0
  1014. package/lib/dnd/DragDropList/DragDropList.styles.js +32 -0
  1015. package/lib/dnd/DragDropList/DragDropList.styles.js.map +1 -0
  1016. package/lib/rte/Editor/Editor.mocks.d.ts +309 -0
  1017. package/lib/rte/Editor/Editor.mocks.d.ts.map +1 -0
  1018. package/lib/rte/Editor/Editor.mocks.js +26 -0
  1019. package/lib/rte/Editor/Editor.mocks.js.map +1 -0
  1020. package/lib/rte/Editor/Editor.stories.d.ts +7 -8
  1021. package/lib/rte/Editor/Editor.stories.d.ts.map +1 -1
  1022. package/lib/rte/Editor/Editor.stories.js +8 -28
  1023. package/lib/rte/Editor/Editor.stories.js.map +1 -1
  1024. package/lib/rte/RichTextEditor/RichTextEditor.mocks.js +5 -5
  1025. package/lib/rte/RichTextEditor/RichTextEditor.mocks.js.map +1 -1
  1026. package/lib/rte/RichTextEditor/RichTextEditor.stories.d.ts +2 -3
  1027. package/lib/rte/RichTextEditor/RichTextEditor.stories.d.ts.map +1 -1
  1028. package/lib/rte/RichTextEditor/RichTextEditor.stories.js +5 -5
  1029. package/lib/rte/RichTextEditor/RichTextEditor.stories.js.map +1 -1
  1030. package/lib/rte/RichTextEditor/RichTextViewer.stories.d.ts +5 -5
  1031. package/lib/rte/RichTextEditor/RichTextViewer.stories.d.ts.map +1 -1
  1032. package/lib/rte/RichTextEditor/RichTextViewer.stories.js +19 -6
  1033. package/lib/rte/RichTextEditor/RichTextViewer.stories.js.map +1 -1
  1034. package/lib/social/Chat/Chat.stories.d.ts +6 -7
  1035. package/lib/social/Chat/Chat.stories.d.ts.map +1 -1
  1036. package/lib/social/Chat/Chat.stories.js +31 -31
  1037. package/lib/social/Chat/Chat.stories.js.map +1 -1
  1038. package/lib/social/Chat/RepeatingView.mocks.d.ts +14 -0
  1039. package/lib/social/Chat/RepeatingView.mocks.d.ts.map +1 -0
  1040. package/lib/social/Chat/RepeatingView.mocks.js +11 -0
  1041. package/lib/social/Chat/RepeatingView.mocks.js.map +1 -0
  1042. package/lib/social/Chat/RepeatingView.stories.d.ts +6 -17
  1043. package/lib/social/Chat/RepeatingView.stories.d.ts.map +1 -1
  1044. package/lib/social/Chat/RepeatingView.stories.js +18 -48
  1045. package/lib/social/Chat/RepeatingView.stories.js.map +1 -1
  1046. package/lib/social/Chat/RepeatingView.styles.d.ts +2 -0
  1047. package/lib/social/Chat/RepeatingView.styles.d.ts.map +1 -0
  1048. package/lib/social/Chat/RepeatingView.styles.js +22 -0
  1049. package/lib/social/Chat/RepeatingView.styles.js.map +1 -0
  1050. package/lib/social/Email/Email.mocks.d.ts +172 -2
  1051. package/lib/social/Email/Email.mocks.d.ts.map +1 -1
  1052. package/lib/social/Email/Email.mocks.js +420 -1
  1053. package/lib/social/Email/Email.mocks.js.map +1 -1
  1054. package/lib/social/Email/Email.stories.d.ts +19 -25
  1055. package/lib/social/Email/Email.stories.d.ts.map +1 -1
  1056. package/lib/social/Email/Email.stories.js +148 -440
  1057. package/lib/social/Email/Email.stories.js.map +1 -1
  1058. package/lib/social/Email/Email.styles.d.ts +4 -0
  1059. package/lib/social/Email/Email.styles.d.ts.map +1 -0
  1060. package/lib/social/Email/Email.styles.js +14 -0
  1061. package/lib/social/Email/Email.styles.js.map +1 -0
  1062. package/lib/social/Feed/Feed.mocks.d.ts.map +1 -1
  1063. package/lib/social/Feed/Feed.mocks.js +40 -40
  1064. package/lib/social/Feed/Feed.mocks.js.map +1 -1
  1065. package/lib/social/Feed/Feed.stories.d.ts +6 -11
  1066. package/lib/social/Feed/Feed.stories.d.ts.map +1 -1
  1067. package/lib/social/Feed/Feed.stories.js +30 -25
  1068. package/lib/social/Feed/Feed.stories.js.map +1 -1
  1069. package/lib/social/Feed/FeedNewPost.stories.d.ts +7 -14
  1070. package/lib/social/Feed/FeedNewPost.stories.d.ts.map +1 -1
  1071. package/lib/social/Feed/FeedNewPost.stories.js +2 -2
  1072. package/lib/social/Feed/FeedNewPost.stories.js.map +1 -1
  1073. package/lib/social/Feed/FeedPost.stories.d.ts +4 -5
  1074. package/lib/social/Feed/FeedPost.stories.d.ts.map +1 -1
  1075. package/lib/social/Feed/FeedPost.stories.js +37 -27
  1076. package/lib/social/Feed/FeedPost.stories.js.map +1 -1
  1077. package/lib/social/Feed/FeedReply.stories.d.ts +10 -10
  1078. package/lib/social/Feed/FeedReply.stories.d.ts.map +1 -1
  1079. package/lib/social/Feed/FeedReply.stories.js +25 -20
  1080. package/lib/social/Feed/FeedReply.stories.js.map +1 -1
  1081. package/lib/social/Feed/FeedReplyInput.stories.d.ts +7 -12
  1082. package/lib/social/Feed/FeedReplyInput.stories.d.ts.map +1 -1
  1083. package/lib/social/Feed/FeedReplyInput.stories.js +2 -2
  1084. package/lib/social/Feed/FeedReplyInput.stories.js.map +1 -1
  1085. package/lib/work/AppAnnouncement/AppAnnouncement.stories.js +1 -1
  1086. package/lib/work/AppAnnouncement/AppAnnouncement.stories.js.map +1 -1
  1087. package/lib/work/CaseView/Attachments.mocks.js +15 -15
  1088. package/lib/work/CaseView/Attachments.mocks.js.map +1 -1
  1089. package/lib/work/CaseView/CaseView.mocks.d.ts.map +1 -1
  1090. package/lib/work/CaseView/CaseView.mocks.js +8 -8
  1091. package/lib/work/CaseView/CaseView.mocks.js.map +1 -1
  1092. package/lib/work/CaseView/CaseView.stories.d.ts +4 -11
  1093. package/lib/work/CaseView/CaseView.stories.d.ts.map +1 -1
  1094. package/lib/work/CaseView/CaseView.stories.js +28 -28
  1095. package/lib/work/CaseView/CaseView.stories.js.map +1 -1
  1096. package/lib/work/CaseView/Details.mocks.d.ts.map +1 -1
  1097. package/lib/work/CaseView/Details.mocks.js +2 -2
  1098. package/lib/work/CaseView/Details.mocks.js.map +1 -1
  1099. package/lib/work/CaseView/FileService.mock.js +1 -1
  1100. package/lib/work/CaseView/FileService.mock.js.map +1 -1
  1101. package/lib/work/CaseView/MobileCaseView.stories.d.ts +3 -9
  1102. package/lib/work/CaseView/MobileCaseView.stories.d.ts.map +1 -1
  1103. package/lib/work/CaseView/MobileCaseView.stories.js +1 -1
  1104. package/lib/work/CaseView/MobileCaseView.stories.js.map +1 -1
  1105. package/lib/work/CaseView/Pulse.mocks.d.ts.map +1 -1
  1106. package/lib/work/CaseView/Pulse.mocks.js +3 -3
  1107. package/lib/work/CaseView/Pulse.mocks.js.map +1 -1
  1108. package/lib/work/ConfigurableLayout/ConfigurableLayout.mocks.d.ts +45 -0
  1109. package/lib/work/ConfigurableLayout/ConfigurableLayout.mocks.d.ts.map +1 -0
  1110. package/lib/work/ConfigurableLayout/ConfigurableLayout.mocks.js +165 -0
  1111. package/lib/work/ConfigurableLayout/ConfigurableLayout.mocks.js.map +1 -0
  1112. package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts +3 -8
  1113. package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts.map +1 -1
  1114. package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.js +5 -175
  1115. package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.js.map +1 -1
  1116. package/lib/work/ConfigurableLayout/ConfigurableLayout.styles.d.ts +4 -0
  1117. package/lib/work/ConfigurableLayout/ConfigurableLayout.styles.d.ts.map +1 -0
  1118. package/lib/work/ConfigurableLayout/ConfigurableLayout.styles.js +11 -0
  1119. package/lib/work/ConfigurableLayout/ConfigurableLayout.styles.js.map +1 -0
  1120. package/lib/work/Confirmation/Confirmation.stories.d.ts.map +1 -1
  1121. package/lib/work/Confirmation/Confirmation.stories.js +4 -4
  1122. package/lib/work/Confirmation/Confirmation.stories.js.map +1 -1
  1123. package/lib/work/Details/Details.stories.d.ts.map +1 -1
  1124. package/lib/work/Details/Details.stories.js +56 -53
  1125. package/lib/work/Details/Details.stories.js.map +1 -1
  1126. package/lib/work/Glimpse/Glimpse.stories.d.ts.map +1 -1
  1127. package/lib/work/Glimpse/Glimpse.stories.js +3 -3
  1128. package/lib/work/Glimpse/Glimpse.stories.js.map +1 -1
  1129. package/lib/work/SearchResults/SearchResults.mocks.js +4 -4
  1130. package/lib/work/SearchResults/SearchResults.mocks.js.map +1 -1
  1131. package/lib/work/SearchResults/SearchResults.stories.d.ts.map +1 -1
  1132. package/lib/work/SearchResults/SearchResults.stories.js +12 -12
  1133. package/lib/work/SearchResults/SearchResults.stories.js.map +1 -1
  1134. package/lib/work/Stages/Stages.stories.js +2 -2
  1135. package/lib/work/Stages/Stages.stories.js.map +1 -1
  1136. package/lib/work/Stakeholders/Stakeholders.mocks.d.ts.map +1 -1
  1137. package/lib/work/Stakeholders/Stakeholders.mocks.js +4 -4
  1138. package/lib/work/Stakeholders/Stakeholders.mocks.js.map +1 -1
  1139. package/lib/work/Stakeholders/Stakeholders.stories.d.ts +2 -3
  1140. package/lib/work/Stakeholders/Stakeholders.stories.d.ts.map +1 -1
  1141. package/lib/work/Stakeholders/Stakeholders.stories.js +2 -1
  1142. package/lib/work/Stakeholders/Stakeholders.stories.js.map +1 -1
  1143. package/lib/work/Tags/Tags.stories.js +1 -1
  1144. package/lib/work/Tags/Tags.stories.js.map +1 -1
  1145. package/lib/work/Tasks/TaskList.stories.js +3 -3
  1146. package/lib/work/Tasks/TaskList.stories.js.map +1 -1
  1147. package/lib/work/Tasks/Tasks.stories.js +11 -11
  1148. package/lib/work/Tasks/Tasks.stories.js.map +1 -1
  1149. package/lib/work/Timeline/Timeline.mocks.js +8 -8
  1150. package/lib/work/Timeline/Timeline.mocks.js.map +1 -1
  1151. package/lib/work/Timeline/Timeline.stories.d.ts +1 -0
  1152. package/lib/work/Timeline/Timeline.stories.d.ts.map +1 -1
  1153. package/lib/work/Timeline/Timeline.stories.js +24 -3
  1154. package/lib/work/Timeline/Timeline.stories.js.map +1 -1
  1155. package/package.json +22 -18
  1156. package/jsx/build/AppShell/AppShell.mocks.js.map +0 -1
  1157. package/jsx/build/FlowModeller/FlowModeller.mocks.js.map +0 -1
  1158. package/jsx/cs/CSCaseView/CSCaseView.mocks.js.map +0 -1
  1159. package/jsx/social/Email/Email.mocks.js +0 -348
  1160. package/jsx/social/Email/Email.mocks.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"Form.mocks.js","sourceRoot":"","sources":["../../../src/core/Form/Form.mocks.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAsC,MAAM,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAE3F,OAAO,EACL,MAAM,EACN,QAAQ,EACR,aAAa,EACb,IAAI,EAEJ,IAAI,EACJ,KAAK,EACL,WAAW,EACX,gBAAgB,EAChB,MAAM,EACN,MAAM,EACN,QAAQ,EACR,cAAc,EACf,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,MAAM,IAAI,cAAc,EAEzB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,aAAa,EAAE,MAAM,0DAA0D,CAAC;AACzF,OAAO,EAAE,sBAAsB,IAAI,uBAAuB,EAAE,MAAM,6DAA6D,CAAC;AAQhI,+BAA+B;AAC/B,MAAM,UAAU,GAAG,GAAY,EAAE;IAC/B,MAAM,MAAM,GAAG,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC;IACvD,OAAO;QACL;YACE,GAAG,MAAM;YACT,IAAI,EAAE,MAAM;YACZ,QAAQ,EAAE,IAAI;YACd,KAAK,EAAE,kCAAkC;YACzC,SAAS;gBACP,IAAI,CAAC,IAAI,CAAC,KAAK;oBAAE,OAAO,KAAK,CAAC;gBAC9B,OAAO,mBAAmB,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YAC9C,CAAC;SACF;QACD;YACE,GAAG,MAAM;YACT,IAAI,EAAE,OAAO;YACb,QAAQ,EAAE,IAAI;YACd,KAAK,EAAE,2BAA2B;YAClC,SAAS;gBACP,IAAI,CAAC,IAAI,CAAC,KAAK;oBAAE,OAAO,KAAK,CAAC;gB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Ae,EACtB,KAAC,MAAM,mCAAkB,EACzB,KAAC,MAAM,gCAAe,YACf,EAET,KAAC,IAAI,IAAC,IAAI,EAAE,EAAE,WAAW,EAAE,MAAM,EAAE,YACjC,KAAC,QAAQ,IACP,IAAI,EAAC,OAAO,EACZ,QAAQ,EAAE,KAAK,CAAC,QAAQ,EACxB,KAAK,EAAC,eAAe,EACrB,MAAM,EAAE,KAAK,CAAC,MAAM,EACpB,IAAI,EAAE,KAAK,CAAC,IAAI,IAAI,KAAK,CAAC,IAAI,EAC9B,QAAQ,EAAE,CAAC,CAAmC,EAAE,EAAE,CAAC,QAAQ,CAAC,EAAE,GAAG,CAAC,EAAE,CAAC,EACrE,MAAM,EAAE,CAAC,CAA+B,EAAE,EAAE,CAAC,QAAQ,CAAC,EAAE,GAAG,CAAC,EAAE,CAAC,WAC/D,WACG,EAEP,KAAC,IAAI,IAAC,IAAI,EAAE,EAAE,WAAW,EAAE,MAAM,EAAE,YACjC,KAAC,cAAc,IACb,KAAK,EAAC,wBAAwB,EAC9B,IAAI,EAAC,oEAAoE,EACzE,OAAO,EAAE;4BACP,gBAAgB;4BAChB,SAAS;4BACT,QAAQ;4BACR,OAAO;4BACP,QAAQ;4BACR,OAAO;4BACP,gBAAgB;4BAChB,aAAa;yBACd,EACD,YAAY,EAAE,YAAY,EAC1B,GAAG,EAAE,SAAS,WACd,WACG,EACP,KAAC,IAAI,IAAC,IAAI,EAAE,EAAE,WAAW,EAAE,MAAM,EAAE,YACjC,KAAC,aAAa,aAAG,WACZ,EACP,KAAC,uBAAuB,aAAG,YACtB,WACF,CACR,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { useReducer, ChangeEvent, FocusEvent, FormEvent, useRef, useContext } from 'react';\n\nimport {\n Button,\n Checkbox,\n CheckboxGroup,\n Form,\n FormControlProps,\n Grid,\n Input,\n RadioButton,\n RadioButtonGroup,\n Select,\n Option,\n TextArea,\n ToasterContext\n} from '@pega/cosmos-react-core';\nimport {\n Editor as RichTextEditor,\n EditorState as RichTextEditorState\n} from '@pega/cosmos-react-rte';\nimport { FileInputDemo } from '@pega/cosmos-react-demos/lib/core/File/FileInput.stories';\nimport { FilterableSingleSelect as ComboboxFilterableStory } from '@pega/cosmos-react-demos/lib/core/ComboBox/ComboBox.stories';\n\ninterface Field extends FormControlProps {\n help?: string;\n error?: string;\n validator: (this: Field) => boolean;\n}\n\n// Get initial field properties\nconst initFields = (): Field[] => {\n const common = { value: undefined, status: undefined };\n return [\n {\n ...common,\n name: 'name',\n required: true,\n error: 'Please enter first and last name',\n validator() {\n if (!this.value) return false;\n return /^[a-z]+\\s[a-z]+$/i.test(this.value);\n }\n },\n {\n ...common,\n name: 'email',\n required: true,\n error: 'Enter a @pega.com address',\n validator() {\n if (!this.value) return false;\n return /^\\S+@pega\\.com$/.test(this.value);\n }\n },\n {\n ...common,\n name: 'notes',\n required: true,\n help: 'See how fast you can type 20 characters…go',\n error: 'You need to tell us more than 20 characters',\n validator() {\n if (!this.value) return false;\n return this.value.length >= 20;\n }\n }\n ];\n};\n\n// Handles setting of state for all fields\nconst fieldReducer = (\n fields: Field[],\n {\n target,\n type\n }:\n | ChangeEvent<HTMLInputElement | HTMLTextAreaElement>\n | FocusEvent<HTMLInputElement | HTMLTextAreaElement>\n) => {\n return fields.map(field => {\n if (field.name === target.name) {\n field.value = target.value;\n if (type === 'blur' || field.status === 'error') {\n if ((field.required || field.value) && !field.validator()) {\n field.status = 'error';\n field.info = field.error;\n } else {\n field.status = undefined;\n field.info = field.help;\n }\n }\n }\n return field;\n });\n};\n\nexport const FormContent = ({\n cols,\n heading,\n description,\n showActions\n}: {\n cols: number;\n showActions: boolean;\n heading?: string;\n description?: string;\n}) => {\n const editorRef = useRef<RichTextEditorState>(null);\n const [fields, setField] = useReducer(fieldReducer, undefined, initFields);\n const { push } = useContext(ToasterContext);\n\n const name = fields.find(field => field.name === 'name');\n const email = fields.find(field => field.name === 'email');\n const notes = fields.find(field => field.name === 'notes');\n\n if (!name || !email || !notes) return null;\n\n const canSubmit = fields.every(field => field.value && field.validator());\n\n const actions = (\n <>\n <Button\n name='Cancel'\n variant='secondary'\n onClick={() => {\n push({ content: 'Form cancelled!' });\n }}\n >\n Cancel\n </Button>\n <Button name='Submit' type='submit' variant='primary' disabled={!canSubmit}>\n Submit\n </Button>\n </>\n );\n\n const onImageAdded = (image: File, id: string) => {\n const src = URL.createObjectURL(image);\n editorRef.current?.appendImage({ src, alt: image.name }, id);\n };\n return (\n <Form\n actions={showActions ? actions : undefined}\n description={description}\n heading={heading}\n onSubmit={(e: FormEvent) => {\n e.preventDefault();\n push({ content: 'Form submitted!' });\n }}\n style={{ margin: 'auto', maxWidth: '37.5rem' }}\n >\n <Grid container={{ gap: 1, cols: `repeat(${cols}, minmax(0, 1fr))` }}>\n <Input\n name='name'\n label='Name'\n value={name.value}\n required={name.required}\n status={name.status}\n info='some help text here'\n onChange={(e: ChangeEvent<HTMLInputElement>) => setField({ ...e })}\n onBlur={(e: FocusEvent<HTMLInputElement>) => setField({ ...e })}\n autoComplete='off'\n />\n\n <Input\n name='email'\n value={email.value}\n type='email'\n label='Email'\n required={email.required}\n status={email.status}\n info='some help text here'\n onChange={(e: ChangeEvent<HTMLInputElement>) => setField({ ...e })}\n onBlur={(e: FocusEvent<HTMLInputElement>) => setField({ ...e })}\n autoComplete='off'\n />\n\n <Grid item={{ colStartEnd: '1/-1' }}>\n <CheckboxGroup name='visited' label='Places you have worked'>\n {['Cambridge', 'Krakow', 'Hyderabad', 'Bangalore'].map(office => (\n <Checkbox\n key={office}\n label={office}\n onChange={(e: ChangeEvent<HTMLInputElement>) => setField({ ...e })}\n />\n ))}\n </CheckboxGroup>\n </Grid>\n\n <Grid item={{ colStartEnd: '1/-1' }}>\n <RadioButtonGroup name='meetings' label='Do you enjoy early morning meetings?'>\n {['Yes', \"No… no I don't\"].map(option => (\n <RadioButton\n key={option}\n label={option}\n onChange={(e: ChangeEvent<HTMLInputElement>) => setField({ ...e })}\n />\n ))}\n </RadioButtonGroup>\n </Grid>\n\n <Select label='What would you like to eat?' info='FYI: options are limited'>\n <Option>choose meal…</Option>\n <Option>Pizza</Option>\n <Option>Sandwich</Option>\n <Option>Salad</Option>\n </Select>\n\n <Grid item={{ colStartEnd: '1/-1' }}>\n <TextArea\n name='notes'\n required={notes.required}\n label='Meeting Notes'\n status={notes.status}\n info={notes.info || notes.help}\n onChange={(e: ChangeEvent<HTMLTextAreaElement>) => setField({ ...e })}\n onBlur={(e: FocusEvent<HTMLInputElement>) => setField({ ...e })}\n />\n </Grid>\n\n <Grid item={{ colStartEnd: '1/-1' }}>\n <RichTextEditor\n label='Detailed meeting notes'\n info='The rich text editor can be used in forms, comments, and documents'\n toolbar={[\n 'inline-styling',\n 'headers',\n 'tables',\n 'links',\n 'images',\n 'lists',\n 'cut-copy-paste',\n 'indentation'\n ]}\n onImageAdded={onImageAdded}\n ref={editorRef}\n />\n </Grid>\n <Grid item={{ colStartEnd: '1/-1' }}>\n <FileInputDemo />\n </Grid>\n <ComboboxFilterableStory />\n </Grid>\n </Form>\n );\n};\n"]}
1
+ {"version":3,"file":"Form.mocks.js","sourceRoot":"","sources":["../../../src/core/Form/Form.mocks.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAsC,MAAM,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAE3F,OAAO,EACL,MAAM,EACN,QAAQ,EACR,aAAa,EACb,IAAI,EAEJ,IAAI,EACJ,KAAK,EACL,WAAW,EACX,gBAAgB,EAChB,MAAM,EACN,MAAM,EACN,QAAQ,EACR,cAAc,EACf,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,MAAM,IAAI,cAAc,EAEzB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,sBAAsB,IAAI,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAQjG,+BAA+B;AAC/B,MAAM,UAAU,GAAG,GAAY,EA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AAS;4BACT,QAAQ;4BACR,OAAO;4BACP,QAAQ;4BACR,OAAO;4BACP,gBAAgB;4BAChB,aAAa;yBACd,EACD,YAAY,EAAE,YAAY,EAC1B,GAAG,EAAE,SAAS,GACd,GACG,EACP,KAAC,IAAI,IAAC,IAAI,EAAE,EAAE,WAAW,EAAE,MAAM,EAAE,YACjC,KAAC,aAAa,KAAG,GACZ,EACP,KAAC,uBAAuB,KAAG,IACtB,GACF,CACR,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { useReducer, ChangeEvent, FocusEvent, FormEvent, useRef, useContext } from 'react';\n\nimport {\n Button,\n Checkbox,\n CheckboxGroup,\n Form,\n FormControlProps,\n Grid,\n Input,\n RadioButton,\n RadioButtonGroup,\n Select,\n Option,\n TextArea,\n ToasterContext\n} from '@pega/cosmos-react-core';\nimport {\n Editor as RichTextEditor,\n EditorState as RichTextEditorState\n} from '@pega/cosmos-react-rte';\n\nimport { FileInputDemo } from '../File/FileInput.stories';\nimport { FilterableSingleSelect as ComboboxFilterableStory } from '../ComboBox/ComboBox.stories';\n\ninterface Field extends FormControlProps {\n help?: string;\n error?: string;\n validator: (this: Field) => boolean;\n}\n\n// Get initial field properties\nconst initFields = (): Field[] => {\n const common = { value: undefined, status: undefined };\n return [\n {\n ...common,\n name: 'name',\n required: true,\n error: 'Please enter first and last name',\n validator() {\n if (!this.value) return false;\n return /^[a-z]+\\s[a-z]+$/i.test(this.value);\n }\n },\n {\n ...common,\n name: 'email',\n required: true,\n error: 'Enter a @pega.com address',\n validator() {\n if (!this.value) return false;\n return /^\\S+@pega\\.com$/.test(this.value);\n }\n },\n {\n ...common,\n name: 'notes',\n required: true,\n help: 'See how fast you can type 20 characters…go',\n error: 'You need to tell us more than 20 characters',\n validator() {\n if (!this.value) return false;\n return this.value.length >= 20;\n }\n }\n ];\n};\n\n// Handles setting of state for all fields\nconst fieldReducer = (\n fields: Field[],\n {\n target,\n type\n }:\n | ChangeEvent<HTMLInputElement | HTMLTextAreaElement>\n | FocusEvent<HTMLInputElement | HTMLTextAreaElement>\n) => {\n return fields.map(field => {\n if (field.name === target.name) {\n field.value = target.value;\n if (type === 'blur' || field.status === 'error') {\n if ((field.required || field.value) && !field.validator()) {\n field.status = 'error';\n field.info = field.error;\n } else {\n field.status = undefined;\n field.info = field.help;\n }\n }\n }\n return field;\n });\n};\n\nexport const FormContent = ({\n cols,\n heading,\n description,\n showActions\n}: {\n cols: number;\n showActions: boolean;\n heading?: string;\n description?: string;\n}) => {\n const editorRef = useRef<RichTextEditorState>(null);\n const [fields, setField] = useReducer(fieldReducer, undefined, initFields);\n const { push } = useContext(ToasterContext);\n\n const name = fields.find(field => field.name === 'name');\n const email = fields.find(field => field.name === 'email');\n const notes = fields.find(field => field.name === 'notes');\n\n if (!name || !email || !notes) return null;\n\n const canSubmit = fields.every(field => field.value && field.validator());\n\n const actions = (\n <>\n <Button\n name='Cancel'\n variant='secondary'\n onClick={() => {\n push({ content: 'Form cancelled!' });\n }}\n >\n Cancel\n </Button>\n <Button name='Submit' type='submit' variant='primary' disabled={!canSubmit}>\n Submit\n </Button>\n </>\n );\n\n const onImageAdded = (image: File, id: string) => {\n const src = URL.createObjectURL(image);\n editorRef.current?.appendImage({ src, alt: image.name }, id);\n };\n return (\n <Form\n actions={showActions ? actions : undefined}\n description={description}\n heading={heading}\n onSubmit={(e: FormEvent) => {\n e.preventDefault();\n push({ content: 'Form submitted!' });\n }}\n style={{ margin: 'auto', maxWidth: '37.5rem' }}\n >\n <Grid container={{ gap: 1, cols: `repeat(${cols}, minmax(0, 1fr))` }}>\n <Input\n name='name'\n label='Name'\n value={name.value}\n required={name.required}\n status={name.status}\n info='some help text here'\n onChange={(e: ChangeEvent<HTMLInputElement>) => setField({ ...e })}\n onBlur={(e: FocusEvent<HTMLInputElement>) => setField({ ...e })}\n autoComplete='off'\n />\n\n <Input\n name='email'\n value={email.value}\n type='email'\n label='Email'\n required={email.required}\n status={email.status}\n info='some help text here'\n onChange={(e: ChangeEvent<HTMLInputElement>) => setField({ ...e })}\n onBlur={(e: FocusEvent<HTMLInputElement>) => setField({ ...e })}\n autoComplete='off'\n />\n\n <Grid item={{ colStartEnd: '1/-1' }}>\n <CheckboxGroup name='visited' label='Places you have worked'>\n {['Cambridge', 'Krakow', 'Hyderabad', 'Bangalore'].map(office => (\n <Checkbox\n key={office}\n label={office}\n onChange={(e: ChangeEvent<HTMLInputElement>) => setField({ ...e })}\n />\n ))}\n </CheckboxGroup>\n </Grid>\n\n <Grid item={{ colStartEnd: '1/-1' }}>\n <RadioButtonGroup name='meetings' label='Do you enjoy early morning meetings?'>\n {['Yes', \"No… no I don't\"].map(option => (\n <RadioButton\n key={option}\n label={option}\n onChange={(e: ChangeEvent<HTMLInputElement>) => setField({ ...e })}\n />\n ))}\n </RadioButtonGroup>\n </Grid>\n\n <Select label='What would you like to eat?' info='FYI: options are limited'>\n <Option>choose meal…</Option>\n <Option>Pizza</Option>\n <Option>Sandwich</Option>\n <Option>Salad</Option>\n </Select>\n\n <Grid item={{ colStartEnd: '1/-1' }}>\n <TextArea\n name='notes'\n required={notes.required}\n label='Meeting Notes'\n status={notes.status}\n info={notes.info || notes.help}\n onChange={(e: ChangeEvent<HTMLTextAreaElement>) => setField({ ...e })}\n onBlur={(e: FocusEvent<HTMLInputElement>) => setField({ ...e })}\n />\n </Grid>\n\n <Grid item={{ colStartEnd: '1/-1' }}>\n <RichTextEditor\n label='Detailed meeting notes'\n info='The rich text editor can be used in forms, comments, and documents'\n toolbar={[\n 'inline-styling',\n 'headers',\n 'tables',\n 'links',\n 'images',\n 'lists',\n 'cut-copy-paste',\n 'indentation'\n ]}\n onImageAdded={onImageAdded}\n ref={editorRef}\n />\n </Grid>\n <Grid item={{ colStartEnd: '1/-1' }}>\n <FileInputDemo />\n </Grid>\n <ComboboxFilterableStory />\n </Grid>\n </Form>\n );\n};\n"]}
@@ -11,4 +11,14 @@ export declare const ThreeColumnForm: Story<FormStoryProps>;
11
11
  export declare const SimpleFormDemo: Story<FormStoryProps & {
12
12
  withBanners?: boolean;
13
13
  }>;
14
+ interface ConfigurableFormProps extends FormStoryProps {
15
+ foregroundColor?: string;
16
+ backgroundColor?: string;
17
+ borderColor?: string;
18
+ borderWidth?: string;
19
+ borderRadius?: number;
20
+ hoverBorderColor?: string;
21
+ focusBorderColor?: string;
22
+ }
23
+ export declare const ConfigurableForm: Story<ConfigurableFormProps>;
14
24
  //# sourceMappingURL=Form.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Form.stories.d.ts","sourceRoot":"","sources":["../../../src/core/Form/Form.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;;AAO/C,wBAeU;AACV,UAAU,cAAc;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,cAAc,CAE/C,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,cAAc,CAE/C,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,cAAc,CAEjD,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,cAAc,GAAG;IAAE,WAAW,CAAC,EAAE,OAAO,CAAA;CAAE,CA+D5E,CAAC"}
1
+ {"version":3,"file":"Form.stories.d.ts","sourceRoot":"","sources":["../../../src/core/Form/Form.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;;AAe/C,wBAcU;AACV,UAAU,cAAc;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,cAAc,CAE/C,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,cAAc,CAE/C,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,cAAc,CAEjD,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,cAAc,GAAG;IAAE,WAAW,CAAC,EAAE,OAAO,CAAA;CAAE,CA+D5E,CAAC;AAUF,UAAU,qBAAsB,SAAQ,cAAc;IACpD,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,qBAAqB,CAwBzD,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { useState } from 'react';
3
- import { Banner, Button, Flex, Form, FormField, Input } from '@pega/cosmos-react-core';
3
+ import { Banner, Button, Configuration, Flex, Form, FormField, Input } from '@pega/cosmos-react-core';
4
4
  import { FormContent } from './Form.mocks';
5
5
  export default {
6
6
  title: 'Core/Form',
@@ -8,7 +8,6 @@ export default {
8
8
  subcomponents: {
9
9
  FormField
10
10
  },
11
- includeStories: ['OneColumnForm', 'TwoColumnForm', 'ThreeColumnForm', 'SimpleFormDemo'],
12
11
  args: {
13
12
  heading: 'Form demo',
14
13
  description: ''
@@ -19,20 +18,20 @@ export default {
19
18
  }
20
19
  };
21
20
  export const OneColumnForm = (args) => {
22
- return _jsx(FormContent, { cols: 1, heading: args.heading, description: args.description, showActions: true }, void 0);
21
+ return _jsx(FormContent, { cols: 1, heading: args.heading, description: args.description, showActions: true });
23
22
  };
24
23
  export const TwoColumnForm = (args) => {
25
- return _jsx(FormContent, { cols: 2, heading: args.heading, description: args.description, showActions: true }, void 0);
24
+ return _jsx(FormContent, { cols: 2, heading: args.heading, description: args.description, showActions: true });
26
25
  };
27
26
  export const ThreeColumnForm = (args) => {
28
- return _jsx(FormContent, { cols: 3, heading: args.heading, description: args.description, showActions: true }, void 0);
27
+ return _jsx(FormContent, { cols: 3, heading: args.heading, description: args.description, showActions: true });
29
28
  };
30
29
  export const SimpleFormDemo = (args) => {
31
30
  const [inputValue, setInputValue] = useState('');
32
31
  const [success, setSuccess] = useState('');
33
- const actions = (_jsxs(_Fragment, { children: [_jsx(Button, { name: 'Cancel', variant: 'secondary', onClick: () => setInputValue(''), children: "Cancel" }, void 0), _jsx(Button, { name: 'Submit', type: 'submit', variant: 'primary', children: "Submit" }, void 0)] }, void 0));
34
- const successBanner = (_jsx(Banner, { id: 'success', variant: 'success', heading: 'Success', messages: ['Form submitted', `Input value: ${success}`] }, void 0));
35
- const errorBanner = (_jsx(Banner, { id: 'error', variant: 'urgent', heading: 'Error', messages: ['All required fields in the form must be completed.'] }, void 0));
32
+ const actions = (_jsxs(_Fragment, { children: [_jsx(Button, { name: 'Cancel', variant: 'secondary', onClick: () => setInputValue(''), children: "Cancel" }), _jsx(Button, { name: 'Submit', type: 'submit', variant: 'primary', children: "Submit" })] }));
33
+ const successBanner = (_jsx(Banner, { id: 'success', variant: 'success', heading: 'Success', messages: ['Form submitted', `Input value: ${success}`] }));
34
+ const errorBanner = (_jsx(Banner, { id: 'error', variant: 'urgent', heading: 'Error', messages: ['All required fields in the form must be completed.'] }));
36
35
  const banner = success ? successBanner : errorBanner;
37
36
  return (_jsx(Form, { banners: args.withBanners ? banner : undefined, actions: actions, heading: args.heading, description: args.description, onSubmit: (e) => {
38
37
  e.preventDefault();
@@ -41,7 +40,7 @@ export const SimpleFormDemo = (args) => {
41
40
  }, children: _jsx(Flex, { container: { direction: 'column', itemGap: 2 }, children: _jsx(Input, { label: 'Name', info: 'Enter your first name', required: true, value: inputValue, onChange: (e) => {
42
41
  setSuccess('');
43
42
  setInputValue(e.target.value);
44
- } }, void 0) }, void 0) }, void 0));
43
+ } }) }) }));
45
44
  };
46
45
  SimpleFormDemo.args = {
47
46
  withBanners: false
@@ -49,4 +48,43 @@ SimpleFormDemo.args = {
49
48
  SimpleFormDemo.argTypes = {
50
49
  withBanners: { control: { type: 'boolean' } }
51
50
  };
51
+ export const ConfigurableForm = (args) => {
52
+ return (_jsx(Configuration, { theme: {
53
+ components: {
54
+ 'form-control': {
55
+ 'foreground-color': args.foregroundColor,
56
+ 'background-color': args.backgroundColor,
57
+ 'border-color': args.borderColor,
58
+ 'border-width': args.borderWidth,
59
+ 'border-radius': args.borderRadius,
60
+ ':hover': {
61
+ 'border-color': args.hoverBorderColor
62
+ },
63
+ ':focus': {
64
+ 'border-color': args.focusBorderColor
65
+ }
66
+ }
67
+ }
68
+ }, children: _jsx(FormContent, { cols: 2, showActions: true }) }));
69
+ };
70
+ ConfigurableForm.args = {
71
+ foregroundColor: '#054a8a',
72
+ backgroundColor: '#e2f1ff',
73
+ borderColor: '#939393',
74
+ borderWidth: '0.0625rem',
75
+ borderRadius: 0.5,
76
+ hoverBorderColor: '#3f3f3f',
77
+ focusBorderColor: 'transparent'
78
+ };
79
+ ConfigurableForm.argTypes = {
80
+ foregroundColor: { control: { type: 'color' } },
81
+ backgroundColor: { control: { type: 'color' } },
82
+ borderColor: { control: { type: 'color' } },
83
+ borderWidth: { control: { type: 'text' } },
84
+ borderRadius: { control: { type: 'number' } },
85
+ hoverBorderColor: { control: { type: 'color' } },
86
+ focusBorderColor: { control: { type: 'color' } },
87
+ heading: { table: { disable: true } },
88
+ description: { table: { disable: true } }
89
+ };
52
90
  //# sourceMappingURL=Form.stories.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Form.stories.js","sourceRoot":"","sources":["../../../src/core/Form/Form.stories.tsx"],"names":[],"mappings":";AACA,OAAO,EAA0B,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEzD,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,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AAU,CAAC,CAAC;YACvB,aAAa,CAAC,EAAE,CAAC,CAAC;QACpB,CAAC,YAED,KAAC,IAAI,IAAC,SAAS,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,EAAE,YAClD,KAAC,KAAK,IACJ,KAAK,EAAC,MAAM,EACZ,IAAI,EAAC,uBAAuB,EAC5B,QAAQ,QACR,KAAK,EAAE,UAAU,EACjB,QAAQ,EAAE,CAAC,CAAgC,EAAE,EAAE;oBAC7C,UAAU,CAAC,EAAE,CAAC,CAAC;oBACf,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;gBAChC,CAAC,WACD,WACG,WACF,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,cAAc,CAAC,IAAI,GAAG;IACpB,WAAW,EAAE,KAAK;CACnB,CAAC;AAEF,cAAc,CAAC,QAAQ,GAAG;IACxB,WAAW,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;CAC9C,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\nimport { ChangeEvent, FormEvent, useState } from 'react';\n\nimport { Banner, Button, Flex, Form, FormField, Input } from '@pega/cosmos-react-core';\n\nimport { FormContent } from './Form.mocks';\n\nexport default {\n title: 'Core/Form',\n component: Form,\n subcomponents: {\n FormField\n },\n includeStories: ['OneColumnForm', 'TwoColumnForm', 'ThreeColumnForm', 'SimpleFormDemo'],\n args: {\n heading: 'Form demo',\n description: ''\n },\n argTypes: {\n heading: { control: { type: 'text' } },\n description: { control: { type: 'text' } }\n }\n} as Meta;\ninterface FormStoryProps {\n heading?: string;\n description?: string;\n}\n\nexport const OneColumnForm: Story<FormStoryProps> = (args: FormStoryProps) => {\n return <FormContent cols={1} heading={args.heading} description={args.description} showActions />;\n};\n\nexport const TwoColumnForm: Story<FormStoryProps> = (args: FormStoryProps) => {\n return <FormContent cols={2} heading={args.heading} description={args.description} showActions />;\n};\n\nexport const ThreeColumnForm: Story<FormStoryProps> = (args: FormStoryProps) => {\n return <FormContent cols={3} heading={args.heading} description={args.description} showActions />;\n};\n\nexport const SimpleFormDemo: Story<FormStoryProps & { withBanners?: boolean }> = (\n args: FormStoryProps & { withBanners?: boolean }\n) => {\n const [inputValue, setInputValue] = useState('');\n const [success, setSuccess] = useState('');\n\n const actions = (\n <>\n <Button name='Cancel' variant='secondary' onClick={() => setInputValue('')}>\n Cancel\n </Button>\n <Button name='Submit' type='submit' variant='primary'>\n Submit\n </Button>\n </>\n );\n\n const successBanner = (\n <Banner\n id='success'\n variant='success'\n heading='Success'\n messages={['Form submitted', `Input value: ${success}`]}\n />\n );\n\n const errorBanner = (\n <Banner\n id='error'\n variant='urgent'\n heading='Error'\n messages={['All required fields in the form must be completed.']}\n />\n );\n\n const banner = success ? successBanner : errorBanner;\n\n return (\n <Form\n banners={args.withBanners ? banner : undefined}\n actions={actions}\n heading={args.heading}\n description={args.description}\n onSubmit={(e: FormEvent) => {\n e.preventDefault();\n setSuccess(inputValue);\n setInputValue('');\n }}\n >\n <Flex container={{ direction: 'column', itemGap: 2 }}>\n <Input\n label='Name'\n info='Enter your first name'\n required\n value={inputValue}\n onChange={(e: ChangeEvent<HTMLInputElement>) => {\n setSuccess('');\n setInputValue(e.target.value);\n }}\n />\n </Flex>\n </Form>\n );\n};\n\nSimpleFormDemo.args = {\n withBanners: false\n};\n\nSimpleFormDemo.argTypes = {\n withBanners: { control: { type: 'boolean' } }\n};\n"]}
1
+ {"version":3,"file":"Form.stories.js","sourceRoot":"","sources":["../../../src/core/Form/Form.stories.tsx"],"names":[],"mappings":";AACA,OAAO,EAA0B,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEzD,OAAO,EACL,MAAM,EACN,MAAM,EACN,aAAa,EACb,IAAI,EACJ,IAAI,EACJ,SAAS,EACT,KAAK,EACN,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3C,eAAe;IACb,KAA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AChC,CAAC;AAEF,gBAAgB,CAAC,QAAQ,GAAG;IAC1B,eAAe,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE;IAC/C,eAAe,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE;IAC/C,WAAW,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE;IAC3C,WAAW,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;IAC1C,YAAY,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;IAC7C,gBAAgB,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE;IAChD,gBAAgB,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE;IAChD,OAAO,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;IACrC,WAAW,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;CAC1C,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\nimport { ChangeEvent, FormEvent, useState } from 'react';\n\nimport {\n Banner,\n Button,\n Configuration,\n Flex,\n Form,\n FormField,\n Input\n} from '@pega/cosmos-react-core';\n\nimport { FormContent } from './Form.mocks';\n\nexport default {\n title: 'Core/Form',\n component: Form,\n subcomponents: {\n FormField\n },\n args: {\n heading: 'Form demo',\n description: ''\n },\n argTypes: {\n heading: { control: { type: 'text' } },\n description: { control: { type: 'text' } }\n }\n} as Meta;\ninterface FormStoryProps {\n heading?: string;\n description?: string;\n}\n\nexport const OneColumnForm: Story<FormStoryProps> = (args: FormStoryProps) => {\n return <FormContent cols={1} heading={args.heading} description={args.description} showActions />;\n};\n\nexport const TwoColumnForm: Story<FormStoryProps> = (args: FormStoryProps) => {\n return <FormContent cols={2} heading={args.heading} description={args.description} showActions />;\n};\n\nexport const ThreeColumnForm: Story<FormStoryProps> = (args: FormStoryProps) => {\n return <FormContent cols={3} heading={args.heading} description={args.description} showActions />;\n};\n\nexport const SimpleFormDemo: Story<FormStoryProps & { withBanners?: boolean }> = (\n args: FormStoryProps & { withBanners?: boolean }\n) => {\n const [inputValue, setInputValue] = useState('');\n const [success, setSuccess] = useState('');\n\n const actions = (\n <>\n <Button name='Cancel' variant='secondary' onClick={() => setInputValue('')}>\n Cancel\n </Button>\n <Button name='Submit' type='submit' variant='primary'>\n Submit\n </Button>\n </>\n );\n\n const successBanner = (\n <Banner\n id='success'\n variant='success'\n heading='Success'\n messages={['Form submitted', `Input value: ${success}`]}\n />\n );\n\n const errorBanner = (\n <Banner\n id='error'\n variant='urgent'\n heading='Error'\n messages={['All required fields in the form must be completed.']}\n />\n );\n\n const banner = success ? successBanner : errorBanner;\n\n return (\n <Form\n banners={args.withBanners ? banner : undefined}\n actions={actions}\n heading={args.heading}\n description={args.description}\n onSubmit={(e: FormEvent) => {\n e.preventDefault();\n setSuccess(inputValue);\n setInputValue('');\n }}\n >\n <Flex container={{ direction: 'column', itemGap: 2 }}>\n <Input\n label='Name'\n info='Enter your first name'\n required\n value={inputValue}\n onChange={(e: ChangeEvent<HTMLInputElement>) => {\n setSuccess('');\n setInputValue(e.target.value);\n }}\n />\n </Flex>\n </Form>\n );\n};\n\nSimpleFormDemo.args = {\n withBanners: false\n};\n\nSimpleFormDemo.argTypes = {\n withBanners: { control: { type: 'boolean' } }\n};\n\ninterface ConfigurableFormProps extends FormStoryProps {\n foregroundColor?: string;\n backgroundColor?: string;\n borderColor?: string;\n borderWidth?: string;\n borderRadius?: number;\n hoverBorderColor?: string;\n focusBorderColor?: string;\n}\n\nexport const ConfigurableForm: Story<ConfigurableFormProps> = (args: ConfigurableFormProps) => {\n return (\n <Configuration\n theme={{\n components: {\n 'form-control': {\n 'foreground-color': args.foregroundColor,\n 'background-color': args.backgroundColor,\n 'border-color': args.borderColor,\n 'border-width': args.borderWidth,\n 'border-radius': args.borderRadius,\n ':hover': {\n 'border-color': args.hoverBorderColor\n },\n ':focus': {\n 'border-color': args.focusBorderColor\n }\n }\n }\n }}\n >\n <FormContent cols={2} showActions />\n </Configuration>\n );\n};\n\nConfigurableForm.args = {\n foregroundColor: '#054a8a',\n backgroundColor: '#e2f1ff',\n borderColor: '#939393',\n borderWidth: '0.0625rem',\n borderRadius: 0.5,\n hoverBorderColor: '#3f3f3f',\n focusBorderColor: 'transparent'\n};\n\nConfigurableForm.argTypes = {\n foregroundColor: { control: { type: 'color' } },\n backgroundColor: { control: { type: 'color' } },\n borderColor: { control: { type: 'color' } },\n borderWidth: { control: { type: 'text' } },\n borderRadius: { control: { type: 'number' } },\n hoverBorderColor: { control: { type: 'color' } },\n focusBorderColor: { control: { type: 'color' } },\n heading: { table: { disable: true } },\n description: { table: { disable: true } }\n};\n"]}
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { Meta, Story } from '@storybook/react';
3
2
  import { GridContainerProps } from '@pega/cosmos-react-core';
4
3
  declare const _default: Meta<import("@storybook/react").Args>;
@@ -12,13 +11,13 @@ interface GridStoryProps {
12
11
  alignItems?: GridContainerProps['alignItems'];
13
12
  alignContent?: GridContainerProps['alignContent'];
14
13
  }
15
- export declare const ColumnsAndRows: () => JSX.Element;
16
- export declare const Areas: () => JSX.Element;
17
- export declare const Template: () => JSX.Element;
14
+ export declare const ColumnsAndRows: Story;
15
+ export declare const Areas: Story;
16
+ export declare const Template: Story;
18
17
  export declare const GapsAndPadding: Story<GridStoryProps>;
19
18
  export declare const JustifyGridItems: Story<GridStoryProps>;
20
19
  export declare const JustifyGridContent: Story<GridStoryProps>;
21
20
  export declare const AlignGridItems: Story<GridStoryProps>;
22
21
  export declare const AlignGridContent: Story<GridStoryProps>;
23
- export declare const ResponsiveGrid: () => JSX.Element;
22
+ export declare const ResponsiveGrid: Story;
24
23
  //# sourceMappingURL=GridContainer.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"GridContainer.stories.d.ts","sourceRoot":"","sources":["../../../src/core/Grid/GridContainer.stories.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAE/C,OAAO,EAAQ,kBAAkB,EAAQ,MAAM,yBAAyB,CAAC;;AAIzE,wBAMU;AAEV,UAAU,cAAc;IACtB,MAAM,CAAC,EAAE,kBAAkB,CAAC,QAAQ,CAAC,CAAC;IACtC,MAAM,CAAC,EAAE,kBAAkB,CAAC,QAAQ,CAAC,CAAC;IACtC,GAAG,CAAC,EAAE,kBAAkB,CAAC,KAAK,CAAC,CAAC;IAChC,YAAY,CAAC,EAAE,kBAAkB,CAAC,cAAc,CAAC,CAAC;IAClD,cAAc,CAAC,EAAE,kBAAkB,CAAC,gBAAgB,CAAC,CAAC;IACtD,UAAU,CAAC,EAAE,kBAAkB,CAAC,YAAY,CAAC,CAAC;IAC9C,YAAY,CAAC,EAAE,kBAAkB,CAAC,cAAc,CAAC,CAAC;CACnD;AAED,eAAO,MAAM,cAAc,mBAkB1B,CAAC;AAEF,eAAO,MAAM,KAAK,mBA0BjB,CAAC;AAEF,eAAO,MAAM,QAAQ,mBAyBpB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,cAAc,CAoBhD,CAAC;AAcF,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,cAAc,CAmBlD,CAAC;AAUF,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,cAAc,CAkBpD,CAAC;AAaF,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,cAAc,CAmBhD,CAAC;AAUF,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,cAAc,CAoBlD,CAAC;AAaF,eAAO,MAAM,cAAc,mBAkB1B,CAAC"}
1
+ {"version":3,"file":"GridContainer.stories.d.ts","sourceRoot":"","sources":["../../../src/core/Grid/GridContainer.stories.tsx"],"names":[],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, 5, 6, 7, 8, 9, 10, 11, 12].map(index => (_jsx(StyledGridItem, { children: _jsxs(Text, { children: ["Item ", index] }, void 0) }, `colRows-${index}`))) }, void 0));
16
+ }, as: StyledGridContainer, height: 20, children: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12].map(index => (_jsx(StyledGridItem, { children: _jsxs(Text, { children: ["Item ", index] }) }, `colRows-${index}`))) }));
17
17
  };
18
18
  export const Areas = () => {
19
19
  return (_jsxs(Grid, { container: {
@@ -21,12 +21,12 @@ export const Areas = () => {
21
21
  rows: 'repeat(3, 3rem) auto',
22
22
  areas: '"sidebar header header" "sidebar . main" "sidebar . main" "sidebar footer footer"',
23
23
  pad: 2
24
- }, as: StyledGridContainer, height: 20, children: [_jsx(Grid, { item: { area: 'header' }, as: StyledGridItem, children: _jsx(Text, { children: "Header" }, void 0) }, void 0), _jsx(Grid, { item: { area: 'sidebar' }, as: StyledGridItem, children: _jsx(Text, { children: "Side" }, void 0) }, void 0), _jsx(Grid, { item: { area: 'main' }, as: StyledGridItem, children: _jsx(Text, { children: "Main" }, void 0) }, void 0), _jsx(Grid, { item: { area: 'footer' }, as: StyledGridItem, children: _jsx(Text, { children: "Footer" }, void 0) }, void 0)] }, void 0));
24
+ }, as: StyledGridContainer, height: 20, children: [_jsx(Grid, { item: { area: 'header' }, as: StyledGridItem, children: _jsx(Text, { children: "Header" }) }), _jsx(Grid, { item: { area: 'sidebar' }, as: StyledGridItem, children: _jsx(Text, { children: "Side" }) }), _jsx(Grid, { item: { area: 'main' }, as: StyledGridItem, children: _jsx(Text, { children: "Main" }) }), _jsx(Grid, { item: { area: 'footer' }, as: StyledGridItem, children: _jsx(Text, { children: "Footer" }) })] }));
25
25
  };
26
26
  export const Template = () => {
27
27
  const rowsAndAreas = '"sidebar header header" 3rem "sidebar . main" 3rem "sidebar . main" 3rem "sidebar footer footer" auto';
28
28
  const columns = '5rem 1fr 3fr';
29
- return (_jsxs(Grid, { container: { template: `${rowsAndAreas} / ${columns}`, pad: 2 }, as: StyledGridContainer, height: 20, children: [_jsx(Grid, { item: { area: 'header' }, as: StyledGridItem, children: _jsx(Text, { children: "Header" }, void 0) }, void 0), _jsx(Grid, { item: { area: 'sidebar' }, as: StyledGridItem, children: _jsx(Text, { children: "Side" }, void 0) }, void 0), _jsx(Grid, { item: { area: 'main' }, as: StyledGridItem, children: _jsx(Text, { children: "Main" }, void 0) }, void 0), _jsx(Grid, { item: { area: 'footer' }, as: StyledGridItem, children: _jsx(Text, { children: "Footer" }, void 0) }, void 0)] }, void 0));
29
+ return (_jsxs(Grid, { container: { template: `${rowsAndAreas} / ${columns}`, pad: 2 }, as: StyledGridContainer, height: 20, children: [_jsx(Grid, { item: { area: 'header' }, as: StyledGridItem, children: _jsx(Text, { children: "Header" }) }), _jsx(Grid, { item: { area: 'sidebar' }, as: StyledGridItem, children: _jsx(Text, { children: "Side" }) }), _jsx(Grid, { item: { area: 'main' }, as: StyledGridItem, children: _jsx(Text, { children: "Main" }) }), _jsx(Grid, { item: { area: 'footer' }, as: StyledGridItem, children: _jsx(Text, { children: "Footer" }) })] }));
30
30
  };
31
31
  export const GapsAndPadding = (args) => {
32
32
  return (_jsx(Grid, { container: {
@@ -35,7 +35,7 @@ export const GapsAndPadding = (args) => {
35
35
  rows: 'repeat(3, 3rem) auto',
36
36
  rowGap: args.rowGap,
37
37
  pad: args.pad
38
- }, as: StyledGridContainer, height: 20, children: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12].map(index => (_jsx(StyledGridItem, { children: _jsxs(Text, { children: ["Item ", index] }, void 0) }, `colRowGap-${index}`))) }, void 0));
38
+ }, as: StyledGridContainer, height: 20, children: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12].map(index => (_jsx(StyledGridItem, { children: _jsxs(Text, { children: ["Item ", index] }) }, `colRowGap-${index}`))) }));
39
39
  };
40
40
  GapsAndPadding.args = {
41
41
  pad: 1,
@@ -53,7 +53,7 @@ export const JustifyGridItems = (args) => {
53
53
  rows: 'repeat(3, 3rem) auto',
54
54
  justifyItems: args.justifyItems,
55
55
  pad: 2
56
- }, as: StyledGridContainer, height: 20, children: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12].map(index => (_jsx(StyledGridItem, { children: _jsxs(Text, { children: ["Item ", index] }, void 0) }, `justifyItems-${index}`))) }, void 0));
56
+ }, as: StyledGridContainer, height: 20, children: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12].map(index => (_jsx(StyledGridItem, { children: _jsxs(Text, { children: ["Item ", index] }) }, `justifyItems-${index}`))) }));
57
57
  };
58
58
  JustifyGridItems.args = {
59
59
  justifyItems: 'stretch'
@@ -67,7 +67,7 @@ export const JustifyGridContent = (args) => {
67
67
  rows: 'repeat(4, 3rem)',
68
68
  justifyContent: args.justifyContent,
69
69
  pad: 2
70
- }, as: StyledGridContainer, children: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12].map(index => (_jsx(StyledGridItem, { children: _jsxs(Text, { children: ["Item ", index] }, void 0) }, `justifyContent-${index}`))) }, void 0));
70
+ }, as: StyledGridContainer, children: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12].map(index => (_jsx(StyledGridItem, { children: _jsxs(Text, { children: ["Item ", index] }) }, `justifyContent-${index}`))) }));
71
71
  };
72
72
  JustifyGridContent.args = {
73
73
  justifyContent: 'start'
@@ -84,7 +84,7 @@ export const AlignGridItems = (args) => {
84
84
  rows: 'repeat(3, 5rem) auto',
85
85
  alignItems: args.alignItems,
86
86
  pad: 2
87
- }, as: StyledGridContainer, height: 20, children: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12].map(index => (_jsx(StyledGridItem, { children: _jsxs(Text, { children: ["Item ", index] }, void 0) }, `alignItems-${index}`))) }, void 0));
87
+ }, as: StyledGridContainer, height: 20, children: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12].map(index => (_jsx(StyledGridItem, { children: _jsxs(Text, { children: ["Item ", index] }) }, `alignItems-${index}`))) }));
88
88
  };
89
89
  AlignGridItems.args = {
90
90
  alignItems: 'stretch'
@@ -98,7 +98,7 @@ export const AlignGridContent = (args) => {
98
98
  rows: 'repeat(4, 3rem)',
99
99
  alignContent: args.alignContent,
100
100
  pad: 2
101
- }, as: StyledGridContainer, height: 30, fitContent: true, children: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12].map(index => (_jsx(StyledGridItem, { children: _jsxs(Text, { children: ["Item ", index] }, void 0) }, `alignContent-${index}`))) }, void 0));
101
+ }, as: StyledGridContainer, height: 30, fitContent: true, children: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12].map(index => (_jsx(StyledGridItem, { children: _jsxs(Text, { children: ["Item ", index] }) }, `alignContent-${index}`))) }));
102
102
  };
103
103
  AlignGridContent.args = {
104
104
  alignContent: 'start'
@@ -110,6 +110,6 @@ AlignGridContent.argTypes = {
110
110
  }
111
111
  };
112
112
  export const ResponsiveGrid = () => {
113
- return (_jsx(Grid, { container: { pad: 1, cols: 'repeat(3, 7rem)', rows: 'repeat(4, 3rem)' }, xl: { container: { cols: 'repeat(12, 1fr)', rows: 'repeat(1, 3rem)' } }, lg: { container: { cols: 'repeat(6, 1fr)', rows: 'repeat(2, 3rem)' } }, md: { container: { cols: 'repeat(4, 1fr)', rows: 'repeat(3, 3rem)' } }, sm: { container: { cols: 'repeat(3, 1fr)', rows: 'repeat(4, 3rem)' } }, xs: { container: { cols: 'repeat(2, 1fr)', rows: 'repeat(6, 3rem)' } }, as: StyledGridContainer, children: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12].map(index => (_jsx(StyledGridItem, { children: _jsxs(Text, { children: ["Item ", index] }, void 0) }, `colRows-${index}`))) }, void 0));
113
+ return (_jsx(Grid, { container: { pad: 1, cols: 'repeat(3, 7rem)', rows: 'repeat(4, 3rem)' }, xl: { container: { cols: 'repeat(12, 1fr)', rows: 'repeat(1, 3rem)' } }, lg: { container: { cols: 'repeat(6, 1fr)', rows: 'repeat(2, 3rem)' } }, md: { container: { cols: 'repeat(4, 1fr)', rows: 'repeat(3, 3rem)' } }, sm: { container: { cols: 'repeat(3, 1fr)', rows: 'repeat(4, 3rem)' } }, xs: { container: { cols: 'repeat(2, 1fr)', rows: 'repeat(6, 3rem)' } }, as: StyledGridContainer, children: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12].map(index => (_jsx(StyledGridItem, { children: _jsxs(Text, { children: ["Item ", index] }) }, `colRows-${index}`))) }));
114
114
  };
115
115
  //# sourceMappingURL=GridContainer.stories.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"GridContainer.stories.js","sourceRoot":"","sources":["../../../src/core/Grid/GridContainer.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,cAAc,GAAG,GAAG,EAAE;IACjC,OAAO,CACL,KAAC,IAAI,IACH,SAAS,EAAE;YACT,IAAI,EAAE,sCAAsC;YAC5C,IAAI,EAAE,sBAAsB;YAC5B,GAAG,EAAE,CAAC;SACP,EACD,EAAE,EAAE,mBAAmB,EACvB,MAAM,EAAE,EAAE,YAET,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,CACpD,KAAC,cAAc,cACb,MAAC,IAAI,wBAAO,KAAK,YAAQ,IADN,WAAW,KAAK,EAAE,CA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AE;KAC5B;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG,GAAG,EAAE;IACjC,OAAO,CACL,KAAC,IAAI,IACH,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,IAAI,EAAE,iBAAiB,EAAE,EACvE,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,IAAI,EAAE,iBAAiB,EAAE,IAAI,EAAE,iBAAiB,EAAE,EAAE,EACvE,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,IAAI,EAAE,gBAAgB,EAAE,IAAI,EAAE,iBAAiB,EAAE,EAAE,EACtE,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,IAAI,EAAE,gBAAgB,EAAE,IAAI,EAAE,iBAAiB,EAAE,EAAE,EACtE,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,IAAI,EAAE,gBAAgB,EAAE,IAAI,EAAE,iBAAiB,EAAE,EAAE,EACtE,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,IAAI,EAAE,gBAAgB,EAAE,IAAI,EAAE,iBAAiB,EAAE,EAAE,EACtE,EAAE,EAAE,mBAAmB,YAEtB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,CACpD,KAAC,cAAc,cACb,MAAC,IAAI,wBAAO,KAAK,YAAQ,IADN,WAAW,KAAK,EAAE,CAEtB,CAClB,CAAC,WACG,CACR,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\n\nimport { Grid, GridContainerProps, Text } from '@pega/cosmos-react-core';\n\nimport { StyledGridContainer, StyledGridItem } from './Grid.styles';\n\nexport default {\n title: 'Core/Grid/Container',\n component: Grid,\n parameters: {\n layout: 'fullscreen'\n }\n} as Meta;\n\ninterface GridStoryProps {\n colGap?: GridContainerProps['colGap'];\n rowGap?: GridContainerProps['rowGap'];\n pad?: GridContainerProps['pad'];\n justifyItems?: GridContainerProps['justifyItems'];\n justifyContent?: GridContainerProps['justifyContent'];\n alignItems?: GridContainerProps['alignItems'];\n alignContent?: GridContainerProps['alignContent'];\n}\n\nexport const ColumnsAndRows = () => {\n return (\n <Grid\n container={{\n cols: '7rem [line1] 1fr [line2] 3fr [line3]',\n rows: 'repeat(3, 3rem) auto',\n pad: 2\n }}\n as={StyledGridContainer}\n height={20}\n >\n {[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12].map(index => (\n <StyledGridItem key={`colRows-${index}`}>\n <Text>Item {index}</Text>\n </StyledGridItem>\n ))}\n </Grid>\n );\n};\n\nexport const Areas = () => {\n return (\n <Grid\n container={{\n cols: '5rem 1fr 3fr',\n rows: 'repeat(3, 3rem) auto',\n areas: '\"sidebar header header\" \"sidebar . main\" \"sidebar . main\" \"sidebar footer footer\"',\n pad: 2\n }}\n as={StyledGridContainer}\n height={20}\n >\n <Grid item={{ area: 'header' }} as={StyledGridItem}>\n <Text>Header</Text>\n </Grid>\n <Grid item={{ area: 'sidebar' }} as={StyledGridItem}>\n <Text>Side</Text>\n </Grid>\n <Grid item={{ area: 'main' }} as={StyledGridItem}>\n <Text>Main</Text>\n </Grid>\n <Grid item={{ area: 'footer' }} as={StyledGridItem}>\n <Text>Footer</Text>\n </Grid>\n </Grid>\n );\n};\n\nexport const Template = () => {\n const rowsAndAreas =\n '\"sidebar header header\" 3rem \"sidebar . main\" 3rem \"sidebar . main\" 3rem \"sidebar footer footer\" auto';\n const columns = '5rem 1fr 3fr';\n\n return (\n <Grid\n container={{ template: `${rowsAndAreas} / ${columns}`, pad: 2 }}\n as={StyledGridContainer}\n height={20}\n >\n <Grid item={{ area: 'header' }} as={StyledGridItem}>\n <Text>Header</Text>\n </Grid>\n <Grid item={{ area: 'sidebar' }} as={StyledGridItem}>\n <Text>Side</Text>\n </Grid>\n <Grid item={{ area: 'main' }} as={StyledGridItem}>\n <Text>Main</Text>\n </Grid>\n <Grid item={{ area: 'footer' }} as={StyledGridItem}>\n <Text>Footer</Text>\n </Grid>\n </Grid>\n );\n};\n\nexport const GapsAndPadding: Story<GridStoryProps> = (args: GridStoryProps) => {\n return (\n <Grid\n container={{\n cols: '7rem 1fr 3fr',\n colGap: args.colGap,\n rows: 'repeat(3, 3rem) auto',\n rowGap: args.rowGap,\n pad: args.pad\n }}\n as={StyledGridContainer}\n height={20}\n >\n {[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12].map(index => (\n <StyledGridItem key={`colRowGap-${index}`}>\n <Text>Item {index}</Text>\n </StyledGridItem>\n ))}\n </Grid>\n );\n};\n\nGapsAndPadding.args = {\n pad: 1,\n colGap: 1,\n rowGap: 1\n};\n\nGapsAndPadding.argTypes = {\n pad: { control: { type: 'number' } },\n colGap: { control: { type: 'number' } },\n rowGap: { control: { type: 'number' } }\n};\n\nexport const JustifyGridItems: Story<GridStoryProps> = (args: GridStoryProps) => {\n return (\n <Grid\n container={{\n cols: '7rem 1fr 3fr',\n rows: 'repeat(3, 3rem) auto',\n justifyItems: args.justifyItems,\n pad: 2\n }}\n as={StyledGridContainer}\n height={20}\n >\n {[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12].map(index => (\n <StyledGridItem key={`justifyItems-${index}`}>\n <Text>Item {index}</Text>\n </StyledGridItem>\n ))}\n </Grid>\n );\n};\n\nJustifyGridItems.args = {\n justifyItems: 'stretch'\n};\n\nJustifyGridItems.argTypes = {\n justifyItems: { options: ['stretch', 'start', 'center', 'end'], control: { type: 'select' } }\n};\n\nexport const JustifyGridContent: Story<GridStoryProps> = (args: GridStoryProps) => {\n return (\n <Grid\n container={{\n cols: 'repeat(3, 7rem)',\n rows: 'repeat(4, 3rem)',\n justifyContent: args.justifyContent,\n pad: 2\n }}\n as={StyledGridContainer}\n >\n {[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12].map(index => (\n <StyledGridItem key={`justifyContent-${index}`}>\n <Text>Item {index}</Text>\n </StyledGridItem>\n ))}\n </Grid>\n );\n};\n\nJustifyGridContent.args = {\n justifyContent: 'start'\n};\n\nJustifyGridContent.argTypes = {\n justifyContent: {\n options: ['start', 'end', 'center', 'around', 'between', 'evenly'],\n control: { type: 'select' }\n }\n};\n\nexport const AlignGridItems: Story<GridStoryProps> = (args: GridStoryProps) => {\n return (\n <Grid\n container={{\n cols: '7rem 1fr 3fr',\n rows: 'repeat(3, 5rem) auto',\n alignItems: args.alignItems,\n pad: 2\n }}\n as={StyledGridContainer}\n height={20}\n >\n {[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12].map(index => (\n <StyledGridItem key={`alignItems-${index}`}>\n <Text>Item {index}</Text>\n </StyledGridItem>\n ))}\n </Grid>\n );\n};\n\nAlignGridItems.args = {\n alignItems: 'stretch'\n};\n\nAlignGridItems.argTypes = {\n alignItems: { options: ['stretch', 'start', 'center', 'end'], control: { type: 'select' } }\n};\n\nexport const AlignGridContent: Story<GridStoryProps> = (args: GridStoryProps) => {\n return (\n <Grid\n container={{\n cols: 'repeat(3, 7rem)',\n rows: 'repeat(4, 3rem)',\n alignContent: args.alignContent,\n pad: 2\n }}\n as={StyledGridContainer}\n height={30}\n fitContent\n >\n {[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12].map(index => (\n <StyledGridItem key={`alignContent-${index}`}>\n <Text>Item {index}</Text>\n </StyledGridItem>\n ))}\n </Grid>\n );\n};\n\nAlignGridContent.args = {\n alignContent: 'start'\n};\n\nAlignGridContent.argTypes = {\n alignContent: {\n options: ['start', 'end', 'center', 'around', 'between', 'evenly'],\n control: { type: 'select' }\n }\n};\n\nexport const ResponsiveGrid = () => {\n return (\n <Grid\n container={{ pad: 1, cols: 'repeat(3, 7rem)', rows: 'repeat(4, 3rem)' }}\n xl={{ container: { cols: 'repeat(12, 1fr)', rows: 'repeat(1, 3rem)' } }}\n lg={{ container: { cols: 'repeat(6, 1fr)', rows: 'repeat(2, 3rem)' } }}\n md={{ container: { cols: 'repeat(4, 1fr)', rows: 'repeat(3, 3rem)' } }}\n sm={{ container: { cols: 'repeat(3, 1fr)', rows: 'repeat(4, 3rem)' } }}\n xs={{ container: { cols: 'repeat(2, 1fr)', rows: 'repeat(6, 3rem)' } }}\n as={StyledGridContainer}\n >\n {[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12].map(index => (\n <StyledGridItem key={`colRows-${index}`}>\n <Text>Item {index}</Text>\n </StyledGridItem>\n ))}\n </Grid>\n );\n};\n"]}
1
+ {"version":3,"file":"GridContainer.stories.js","sourceRoot":"","sources":["../../../src/core/Grid/GridContainer.stories.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,IAAI,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,cAAc,GAAU,GAAG,EAAE;IACxC,OAAO,CACL,KAAC,IAAI,IACH,SAAS,EAAE;YACT,IAAI,EAAE,sCAAsC;YAC5C,IAAI,EAAE,sBAAsB;YAC5B,GAAG,EAAE,CAAC;SACP,EACD,EAAE,EAAE,mBAAmB,EACvB,MAAM,EAAE,EAAE,YAET,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,CACpD,KAAC,cAAc,cACb,MAAC,IAAI,wBAAO,KAAK,IAAQ,IADN,W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AI,EAAE,QAAQ,EAAE;KAC5B;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAU,GAAG,EAAE;IACxC,OAAO,CACL,KAAC,IAAI,IACH,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,IAAI,EAAE,iBAAiB,EAAE,EACvE,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,IAAI,EAAE,iBAAiB,EAAE,IAAI,EAAE,iBAAiB,EAAE,EAAE,EACvE,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,IAAI,EAAE,gBAAgB,EAAE,IAAI,EAAE,iBAAiB,EAAE,EAAE,EACtE,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,IAAI,EAAE,gBAAgB,EAAE,IAAI,EAAE,iBAAiB,EAAE,EAAE,EACtE,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,IAAI,EAAE,gBAAgB,EAAE,IAAI,EAAE,iBAAiB,EAAE,EAAE,EACtE,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,IAAI,EAAE,gBAAgB,EAAE,IAAI,EAAE,iBAAiB,EAAE,EAAE,EACtE,EAAE,EAAE,mBAAmB,YAEtB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,CACpD,KAAC,cAAc,cACb,MAAC,IAAI,wBAAO,KAAK,IAAQ,IADN,WAAW,KAAK,EAAE,CAEtB,CAClB,CAAC,GACG,CACR,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\n\nimport { Grid, GridContainerProps, Text } from '@pega/cosmos-react-core';\n\nimport { StyledGridContainer, StyledGridItem } from './Grid.styles';\n\nexport default {\n title: 'Core/Grid/Container',\n component: Grid,\n parameters: {\n layout: 'fullscreen'\n }\n} as Meta;\n\ninterface GridStoryProps {\n colGap?: GridContainerProps['colGap'];\n rowGap?: GridContainerProps['rowGap'];\n pad?: GridContainerProps['pad'];\n justifyItems?: GridContainerProps['justifyItems'];\n justifyContent?: GridContainerProps['justifyContent'];\n alignItems?: GridContainerProps['alignItems'];\n alignContent?: GridContainerProps['alignContent'];\n}\n\nexport const ColumnsAndRows: Story = () => {\n return (\n <Grid\n container={{\n cols: '7rem [line1] 1fr [line2] 3fr [line3]',\n rows: 'repeat(3, 3rem) auto',\n pad: 2\n }}\n as={StyledGridContainer}\n height={20}\n >\n {[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12].map(index => (\n <StyledGridItem key={`colRows-${index}`}>\n <Text>Item {index}</Text>\n </StyledGridItem>\n ))}\n </Grid>\n );\n};\n\nexport const Areas: Story = () => {\n return (\n <Grid\n container={{\n cols: '5rem 1fr 3fr',\n rows: 'repeat(3, 3rem) auto',\n areas: '\"sidebar header header\" \"sidebar . main\" \"sidebar . main\" \"sidebar footer footer\"',\n pad: 2\n }}\n as={StyledGridContainer}\n height={20}\n >\n <Grid item={{ area: 'header' }} as={StyledGridItem}>\n <Text>Header</Text>\n </Grid>\n <Grid item={{ area: 'sidebar' }} as={StyledGridItem}>\n <Text>Side</Text>\n </Grid>\n <Grid item={{ area: 'main' }} as={StyledGridItem}>\n <Text>Main</Text>\n </Grid>\n <Grid item={{ area: 'footer' }} as={StyledGridItem}>\n <Text>Footer</Text>\n </Grid>\n </Grid>\n );\n};\n\nexport const Template: Story = () => {\n const rowsAndAreas =\n '\"sidebar header header\" 3rem \"sidebar . main\" 3rem \"sidebar . main\" 3rem \"sidebar footer footer\" auto';\n const columns = '5rem 1fr 3fr';\n\n return (\n <Grid\n container={{ template: `${rowsAndAreas} / ${columns}`, pad: 2 }}\n as={StyledGridContainer}\n height={20}\n >\n <Grid item={{ area: 'header' }} as={StyledGridItem}>\n <Text>Header</Text>\n </Grid>\n <Grid item={{ area: 'sidebar' }} as={StyledGridItem}>\n <Text>Side</Text>\n </Grid>\n <Grid item={{ area: 'main' }} as={StyledGridItem}>\n <Text>Main</Text>\n </Grid>\n <Grid item={{ area: 'footer' }} as={StyledGridItem}>\n <Text>Footer</Text>\n </Grid>\n </Grid>\n );\n};\n\nexport const GapsAndPadding: Story<GridStoryProps> = (args: GridStoryProps) => {\n return (\n <Grid\n container={{\n cols: '7rem 1fr 3fr',\n colGap: args.colGap,\n rows: 'repeat(3, 3rem) auto',\n rowGap: args.rowGap,\n pad: args.pad\n }}\n as={StyledGridContainer}\n height={20}\n >\n {[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12].map(index => (\n <StyledGridItem key={`colRowGap-${index}`}>\n <Text>Item {index}</Text>\n </StyledGridItem>\n ))}\n </Grid>\n );\n};\n\nGapsAndPadding.args = {\n pad: 1,\n colGap: 1,\n rowGap: 1\n};\n\nGapsAndPadding.argTypes = {\n pad: { control: { type: 'number' } },\n colGap: { control: { type: 'number' } },\n rowGap: { control: { type: 'number' } }\n};\n\nexport const JustifyGridItems: Story<GridStoryProps> = (args: GridStoryProps) => {\n return (\n <Grid\n container={{\n cols: '7rem 1fr 3fr',\n rows: 'repeat(3, 3rem) auto',\n justifyItems: args.justifyItems,\n pad: 2\n }}\n as={StyledGridContainer}\n height={20}\n >\n {[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12].map(index => (\n <StyledGridItem key={`justifyItems-${index}`}>\n <Text>Item {index}</Text>\n </StyledGridItem>\n ))}\n </Grid>\n );\n};\n\nJustifyGridItems.args = {\n justifyItems: 'stretch'\n};\n\nJustifyGridItems.argTypes = {\n justifyItems: { options: ['stretch', 'start', 'center', 'end'], control: { type: 'select' } }\n};\n\nexport const JustifyGridContent: Story<GridStoryProps> = (args: GridStoryProps) => {\n return (\n <Grid\n container={{\n cols: 'repeat(3, 7rem)',\n rows: 'repeat(4, 3rem)',\n justifyContent: args.justifyContent,\n pad: 2\n }}\n as={StyledGridContainer}\n >\n {[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12].map(index => (\n <StyledGridItem key={`justifyContent-${index}`}>\n <Text>Item {index}</Text>\n </StyledGridItem>\n ))}\n </Grid>\n );\n};\n\nJustifyGridContent.args = {\n justifyContent: 'start'\n};\n\nJustifyGridContent.argTypes = {\n justifyContent: {\n options: ['start', 'end', 'center', 'around', 'between', 'evenly'],\n control: { type: 'select' }\n }\n};\n\nexport const AlignGridItems: Story<GridStoryProps> = (args: GridStoryProps) => {\n return (\n <Grid\n container={{\n cols: '7rem 1fr 3fr',\n rows: 'repeat(3, 5rem) auto',\n alignItems: args.alignItems,\n pad: 2\n }}\n as={StyledGridContainer}\n height={20}\n >\n {[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12].map(index => (\n <StyledGridItem key={`alignItems-${index}`}>\n <Text>Item {index}</Text>\n </StyledGridItem>\n ))}\n </Grid>\n );\n};\n\nAlignGridItems.args = {\n alignItems: 'stretch'\n};\n\nAlignGridItems.argTypes = {\n alignItems: { options: ['stretch', 'start', 'center', 'end'], control: { type: 'select' } }\n};\n\nexport const AlignGridContent: Story<GridStoryProps> = (args: GridStoryProps) => {\n return (\n <Grid\n container={{\n cols: 'repeat(3, 7rem)',\n rows: 'repeat(4, 3rem)',\n alignContent: args.alignContent,\n pad: 2\n }}\n as={StyledGridContainer}\n height={30}\n fitContent\n >\n {[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12].map(index => (\n <StyledGridItem key={`alignContent-${index}`}>\n <Text>Item {index}</Text>\n </StyledGridItem>\n ))}\n </Grid>\n );\n};\n\nAlignGridContent.args = {\n alignContent: 'start'\n};\n\nAlignGridContent.argTypes = {\n alignContent: {\n options: ['start', 'end', 'center', 'around', 'between', 'evenly'],\n control: { type: 'select' }\n }\n};\n\nexport const ResponsiveGrid: Story = () => {\n return (\n <Grid\n container={{ pad: 1, cols: 'repeat(3, 7rem)', rows: 'repeat(4, 3rem)' }}\n xl={{ container: { cols: 'repeat(12, 1fr)', rows: 'repeat(1, 3rem)' } }}\n lg={{ container: { cols: 'repeat(6, 1fr)', rows: 'repeat(2, 3rem)' } }}\n md={{ container: { cols: 'repeat(4, 1fr)', rows: 'repeat(3, 3rem)' } }}\n sm={{ container: { cols: 'repeat(3, 1fr)', rows: 'repeat(4, 3rem)' } }}\n xs={{ container: { cols: 'repeat(2, 1fr)', rows: 'repeat(6, 3rem)' } }}\n as={StyledGridContainer}\n >\n {[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12].map(index => (\n <StyledGridItem key={`colRows-${index}`}>\n <Text>Item {index}</Text>\n </StyledGridItem>\n ))}\n </Grid>\n );\n};\n"]}
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { Meta, Story } from '@storybook/react';
3
2
  import { GridItemProps } from '@pega/cosmos-react-core';
4
3
  declare const _default: Meta<import("@storybook/react").Args>;
@@ -7,7 +6,7 @@ interface GridStoryProps {
7
6
  justifySelf?: GridItemProps['justifySelf'];
8
7
  alignSelf?: GridItemProps['alignSelf'];
9
8
  }
10
- export declare const StartAndEnd: () => JSX.Element;
9
+ export declare const StartAndEnd: Story;
11
10
  export declare const JustifyGridSelf: Story<GridStoryProps>;
12
11
  export declare const AlignGridSelf: Story<GridStoryProps>;
13
12
  //# sourceMappingURL=GridItem.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"GridItem.stories.d.ts","sourceRoot":"","sources":["../../../src/core/Grid/GridItem.stories.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAE/C,OAAO,EAAQ,aAAa,EAAQ,MAAM,yBAAyB,CAAC;;AAIpE,wBAMU;AAEV,UAAU,cAAc;IACtB,WAAW,CAAC,EAAE,aAAa,CAAC,aAAa,CAAC,CAAC;IAC3C,SAAS,CAAC,EAAE,aAAa,CAAC,WAAW,CAAC,CAAC;CACxC;AAED,eAAO,MAAM,WAAW,mBAkCvB,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,cAAc,CAcjD,CAAC;AAUF,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,cAAc,CAmB/C,CAAC"}
1
+ {"version":3,"file":"GridItem.stories.d.ts","sourceRoot":"","sources":["../../../src/core/Grid/GridItem.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAE/C,OAAO,EAAQ,aAAa,EAAQ,MAAM,yBAAyB,CAAC;;AAIpE,wBAMU;AAEV,UAAU,cAAc;IACtB,WAAW,CAAC,EAAE,aAAa,CAAC,aAAa,CAAC,CAAC;IAC3C,SAAS,CAAC,EAAE,aAAa,CAAC,WAAW,CAAC,CAAC;CACxC;AAED,eAAO,MAAM,WAAW,EAAE,KAkCzB,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,cAAc,CAcjD,CAAC;AAUF,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,cAAc,CAmB/C,CAAC"}
@@ -13,10 +13,10 @@ export const StartAndEnd = () => {
13
13
  cols: '[line0] 7rem [line1] 1fr [col2-end col3-start] 3fr [line3]',
14
14
  rows: 'repeat(3, 3rem) auto',
15
15
  pad: 2
16
- }, as: StyledGridContainer, height: 20, children: [_jsx(Grid, { item: { colStart: 'line0', colEnd: 'col3-start' }, as: StyledGridItem, children: _jsx(Text, { children: "Item 1" }, void 0) }, void 0), _jsx(StyledGridItem, { children: _jsx(Text, { children: "Item 2" }, void 0) }, void 0), _jsx(StyledGridItem, { children: _jsx(Text, { children: "Item 3" }, void 0) }, void 0), _jsx(Grid, { item: { colStart: 'line1', colEnd: 'line3' }, as: StyledGridItem, children: _jsx(Text, { children: "Item 4" }, void 0) }, void 0), _jsx(Grid, { item: { rowStart: '3', rowEnd: '5' }, as: StyledGridItem, children: _jsx(Text, { children: "Item 5" }, void 0) }, void 0), _jsx(Grid, { item: { colStart: '2', colEnd: 'span line3', rowStart: '3', rowEnd: 'span 2' }, as: StyledGridItem, children: _jsx(Text, { children: "Item 6" }, void 0) }, void 0)] }, void 0));
16
+ }, as: StyledGridContainer, height: 20, children: [_jsx(Grid, { item: { colStart: 'line0', colEnd: 'col3-start' }, as: StyledGridItem, children: _jsx(Text, { children: "Item 1" }) }), _jsx(StyledGridItem, { children: _jsx(Text, { children: "Item 2" }) }), _jsx(StyledGridItem, { children: _jsx(Text, { children: "Item 3" }) }), _jsx(Grid, { item: { colStart: 'line1', colEnd: 'line3' }, as: StyledGridItem, children: _jsx(Text, { children: "Item 4" }) }), _jsx(Grid, { item: { rowStart: '3', rowEnd: '5' }, as: StyledGridItem, children: _jsx(Text, { children: "Item 5" }) }), _jsx(Grid, { item: { colStart: '2', colEnd: 'span line3', rowStart: '3', rowEnd: 'span 2' }, as: StyledGridItem, children: _jsx(Text, { children: "Item 6" }) })] }));
17
17
  };
18
18
  export const JustifyGridSelf = (args) => {
19
- return (_jsxs(Grid, { container: { cols: '7rem 1fr 3fr', pad: 2 }, as: StyledGridContainer, children: [_jsx(StyledGridItem, { children: _jsx(Text, { children: "Item 1" }, void 0) }, void 0), _jsx(Grid, { item: { justifySelf: args.justifySelf }, as: StyledGridItem, editable: true, children: _jsx(Text, { children: "Item 2" }, void 0) }, void 0), _jsx(StyledGridItem, { children: _jsx(Text, { children: "Item 3" }, void 0) }, void 0)] }, void 0));
19
+ return (_jsxs(Grid, { container: { cols: '7rem 1fr 3fr', pad: 2 }, as: StyledGridContainer, children: [_jsx(StyledGridItem, { children: _jsx(Text, { children: "Item 1" }) }), _jsx(Grid, { item: { justifySelf: args.justifySelf }, as: StyledGridItem, editable: true, children: _jsx(Text, { children: "Item 2" }) }), _jsx(StyledGridItem, { children: _jsx(Text, { children: "Item 3" }) })] }));
20
20
  };
21
21
  JustifyGridSelf.args = {
22
22
  justifySelf: 'stretch'
@@ -25,7 +25,7 @@ JustifyGridSelf.argTypes = {
25
25
  justifySelf: { options: ['stretch', 'start', 'center', 'end'], control: { type: 'select' } }
26
26
  };
27
27
  export const AlignGridSelf = (args) => {
28
- return (_jsxs(Grid, { container: { cols: '7rem 1fr 3fr', pad: 2 }, as: StyledGridContainer, height: 10, fitContent: true, children: [_jsx(StyledGridItem, { children: _jsx(Text, { children: "Item 1" }, void 0) }, void 0), _jsx(Grid, { item: { alignSelf: args.alignSelf }, as: StyledGridItem, editable: true, children: _jsx(Text, { children: "Item 2" }, void 0) }, void 0), _jsx(StyledGridItem, { children: _jsx(Text, { children: "Item 3" }, void 0) }, void 0)] }, void 0));
28
+ return (_jsxs(Grid, { container: { cols: '7rem 1fr 3fr', pad: 2 }, as: StyledGridContainer, height: 10, fitContent: true, children: [_jsx(StyledGridItem, { children: _jsx(Text, { children: "Item 1" }) }), _jsx(Grid, { item: { alignSelf: args.alignSelf }, as: StyledGridItem, editable: true, children: _jsx(Text, { children: "Item 2" }) }), _jsx(StyledGridItem, { children: _jsx(Text, { children: "Item 3" }) })] }));
29
29
  };
30
30
  AlignGridSelf.args = {
31
31
  alignSelf: 'stretch'
@@ -1 +1 @@
1
- {"version":3,"file":"GridItem.stories.js","sourceRoot":"","sources":["../../../src/core/Grid/GridItem.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;AAOV,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,EAAE;IAC9B,OAAO,CACL,MAAC,IAAI,IACH,SAAS,EAAE;YACT,IAAI,EAAE,4DAA4D;YAClE,IAAI,EAAE,sBAAsB;YAC5B,GAAG,EAAE,CAAC;SACP,EACD,EAAE,EAAE,mBAAmB,E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;AACJ,CAAC,CAAC;AAEF,eAAe,CAAC,IAAI,GAAG;IACrB,WAAW,EAAE,SAAS;CACvB,CAAC;AAEF,eAAe,CAAC,QAAQ,GAAG;IACzB,WAAW,EAAE,EAAE,OAAO,EAAE,CAAC,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,KAAK,CAAC,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;CAC7F,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAA0B,CAAC,IAAoB,EAAE,EAAE;IAC3E,OAAO,CACL,MAAC,IAAI,IACH,SAAS,EAAE,EAAE,IAAI,EAAE,cAAc,EAAE,GAAG,EAAE,CAAC,EAAE,EAC3C,EAAE,EAAE,mBAAmB,EACvB,MAAM,EAAE,EAAE,EACV,UAAU,mBAEV,KAAC,cAAc,cACb,KAAC,IAAI,iCAAc,WACJ,EACjB,KAAC,IAAI,IAAC,IAAI,EAAE,EAAE,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE,EAAE,EAAE,EAAE,cAAc,EAAE,QAAQ,kBACrE,KAAC,IAAI,iCAAc,WACd,EACP,KAAC,cAAc,cACb,KAAC,IAAI,iCAAc,WACJ,YACZ,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,aAAa,CAAC,IAAI,GAAG;IACnB,SAAS,EAAE,SAAS;CACrB,CAAC;AAEF,aAAa,CAAC,QAAQ,GAAG;IACvB,SAAS,EAAE,EAAE,OAAO,EAAE,CAAC,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,KAAK,CAAC,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;CAC3F,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\n\nimport { Grid, GridItemProps, Text } from '@pega/cosmos-react-core';\n\nimport { StyledGridContainer, StyledGridItem } from './Grid.styles';\n\nexport default {\n title: 'Core/Grid/Item',\n component: Grid,\n parameters: {\n layout: 'fullscreen'\n }\n} as Meta;\n\ninterface GridStoryProps {\n justifySelf?: GridItemProps['justifySelf'];\n alignSelf?: GridItemProps['alignSelf'];\n}\n\nexport const StartAndEnd = () => {\n return (\n <Grid\n container={{\n cols: '[line0] 7rem [line1] 1fr [col2-end col3-start] 3fr [line3]',\n rows: 'repeat(3, 3rem) auto',\n pad: 2\n }}\n as={StyledGridContainer}\n height={20}\n >\n <Grid item={{ colStart: 'line0', colEnd: 'col3-start' }} as={StyledGridItem}>\n <Text>Item 1</Text>\n </Grid>\n <StyledGridItem>\n <Text>Item 2</Text>\n </StyledGridItem>\n <StyledGridItem>\n <Text>Item 3</Text>\n </StyledGridItem>\n <Grid item={{ colStart: 'line1', colEnd: 'line3' }} as={StyledGridItem}>\n <Text>Item 4</Text>\n </Grid>\n <Grid item={{ rowStart: '3', rowEnd: '5' }} as={StyledGridItem}>\n <Text>Item 5</Text>\n </Grid>\n <Grid\n item={{ colStart: '2', colEnd: 'span line3', rowStart: '3', rowEnd: 'span 2' }}\n as={StyledGridItem}\n >\n <Text>Item 6</Text>\n </Grid>\n </Grid>\n );\n};\n\nexport const JustifyGridSelf: Story<GridStoryProps> = (args: GridStoryProps) => {\n return (\n <Grid container={{ cols: '7rem 1fr 3fr', pad: 2 }} as={StyledGridContainer}>\n <StyledGridItem>\n <Text>Item 1</Text>\n </StyledGridItem>\n <Grid item={{ justifySelf: args.justifySelf }} as={StyledGridItem} editable>\n <Text>Item 2</Text>\n </Grid>\n <StyledGridItem>\n <Text>Item 3</Text>\n </StyledGridItem>\n </Grid>\n );\n};\n\nJustifyGridSelf.args = {\n justifySelf: 'stretch'\n};\n\nJustifyGridSelf.argTypes = {\n justifySelf: { options: ['stretch', 'start', 'center', 'end'], control: { type: 'select' } }\n};\n\nexport const AlignGridSelf: Story<GridStoryProps> = (args: GridStoryProps) => {\n return (\n <Grid\n container={{ cols: '7rem 1fr 3fr', pad: 2 }}\n as={StyledGridContainer}\n height={10}\n fitContent\n >\n <StyledGridItem>\n <Text>Item 1</Text>\n </StyledGridItem>\n <Grid item={{ alignSelf: args.alignSelf }} as={StyledGridItem} editable>\n <Text>Item 2</Text>\n </Grid>\n <StyledGridItem>\n <Text>Item 3</Text>\n </StyledGridItem>\n </Grid>\n );\n};\n\nAlignGridSelf.args = {\n alignSelf: 'stretch'\n};\n\nAlignGridSelf.argTypes = {\n alignSelf: { options: ['stretch', 'start', 'center', 'end'], control: { type: 'select' } }\n};\n"]}
1
+ {"version":3,"file":"GridItem.stories.js","sourceRoot":"","sources":["../../../src/core/Grid/GridItem.stories.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,IAAI,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;AAOV,MAAM,CAAC,MAAM,WAAW,GAAU,GAAG,EAAE;IACrC,OAAO,CACL,MAAC,IAAI,IACH,SAAS,EAAE;YACT,IAAI,EAAE,4DAA4D;YAClE,IAAI,EAAE,sBAAsB;YAC5B,GAAG,EAAE,CAAC;SACP,EACD,EAAE,EAAE,mBAAmB,EACvB,MAAM,EAAE,EAAE,aAEV,KAAC,IAAI,IAAC,IAAI,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,EAAE,EAAE,EAAE,cAAc,YACzE,KAAC,IAAI,yBAAc,GACd,EACP,KAAC,cAAc,cACb,KAAC,IAAI,yBAAc,GACJ,EACjB,KAAC,cAAc,cACb,KAAC,IAAI,yBAAc,GACJ,EACjB,KAAC,IAAI,IAAC,IAAI,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,cAAc,YACpE,KAAC,IAAI,yBAAc,GACd,EACP,KAAC,IAAI,IAAC,IAAI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AE,EAC3C,EAAE,EAAE,mBAAmB,EACvB,MAAM,EAAE,EAAE,EACV,UAAU,mBAEV,KAAC,cAAc,cACb,KAAC,IAAI,yBAAc,GACJ,EACjB,KAAC,IAAI,IAAC,IAAI,EAAE,EAAE,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE,EAAE,EAAE,EAAE,cAAc,EAAE,QAAQ,kBACrE,KAAC,IAAI,yBAAc,GACd,EACP,KAAC,cAAc,cACb,KAAC,IAAI,yBAAc,GACJ,IACZ,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,aAAa,CAAC,IAAI,GAAG;IACnB,SAAS,EAAE,SAAS;CACrB,CAAC;AAEF,aAAa,CAAC,QAAQ,GAAG;IACvB,SAAS,EAAE,EAAE,OAAO,EAAE,CAAC,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,KAAK,CAAC,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;CAC3F,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\n\nimport { Grid, GridItemProps, Text } from '@pega/cosmos-react-core';\n\nimport { StyledGridContainer, StyledGridItem } from './Grid.styles';\n\nexport default {\n title: 'Core/Grid/Item',\n component: Grid,\n parameters: {\n layout: 'fullscreen'\n }\n} as Meta;\n\ninterface GridStoryProps {\n justifySelf?: GridItemProps['justifySelf'];\n alignSelf?: GridItemProps['alignSelf'];\n}\n\nexport const StartAndEnd: Story = () => {\n return (\n <Grid\n container={{\n cols: '[line0] 7rem [line1] 1fr [col2-end col3-start] 3fr [line3]',\n rows: 'repeat(3, 3rem) auto',\n pad: 2\n }}\n as={StyledGridContainer}\n height={20}\n >\n <Grid item={{ colStart: 'line0', colEnd: 'col3-start' }} as={StyledGridItem}>\n <Text>Item 1</Text>\n </Grid>\n <StyledGridItem>\n <Text>Item 2</Text>\n </StyledGridItem>\n <StyledGridItem>\n <Text>Item 3</Text>\n </StyledGridItem>\n <Grid item={{ colStart: 'line1', colEnd: 'line3' }} as={StyledGridItem}>\n <Text>Item 4</Text>\n </Grid>\n <Grid item={{ rowStart: '3', rowEnd: '5' }} as={StyledGridItem}>\n <Text>Item 5</Text>\n </Grid>\n <Grid\n item={{ colStart: '2', colEnd: 'span line3', rowStart: '3', rowEnd: 'span 2' }}\n as={StyledGridItem}\n >\n <Text>Item 6</Text>\n </Grid>\n </Grid>\n );\n};\n\nexport const JustifyGridSelf: Story<GridStoryProps> = (args: GridStoryProps) => {\n return (\n <Grid container={{ cols: '7rem 1fr 3fr', pad: 2 }} as={StyledGridContainer}>\n <StyledGridItem>\n <Text>Item 1</Text>\n </StyledGridItem>\n <Grid item={{ justifySelf: args.justifySelf }} as={StyledGridItem} editable>\n <Text>Item 2</Text>\n </Grid>\n <StyledGridItem>\n <Text>Item 3</Text>\n </StyledGridItem>\n </Grid>\n );\n};\n\nJustifyGridSelf.args = {\n justifySelf: 'stretch'\n};\n\nJustifyGridSelf.argTypes = {\n justifySelf: { options: ['stretch', 'start', 'center', 'end'], control: { type: 'select' } }\n};\n\nexport const AlignGridSelf: Story<GridStoryProps> = (args: GridStoryProps) => {\n return (\n <Grid\n container={{ cols: '7rem 1fr 3fr', pad: 2 }}\n as={StyledGridContainer}\n height={10}\n fitContent\n >\n <StyledGridItem>\n <Text>Item 1</Text>\n </StyledGridItem>\n <Grid item={{ alignSelf: args.alignSelf }} as={StyledGridItem} editable>\n <Text>Item 2</Text>\n </Grid>\n <StyledGridItem>\n <Text>Item 3</Text>\n </StyledGridItem>\n </Grid>\n );\n};\n\nAlignGridSelf.args = {\n alignSelf: 'stretch'\n};\n\nAlignGridSelf.argTypes = {\n alignSelf: { options: ['stretch', 'start', 'center', 'end'], control: { type: 'select' } }\n};\n"]}
@@ -0,0 +1,6 @@
1
+ import { Meta, Story } from '@storybook/react';
2
+ import { HTMLProps } from '@pega/cosmos-react-core';
3
+ declare const _default: Meta<import("@storybook/react").Args>;
4
+ export default _default;
5
+ export declare const HTMLDemo: Story<HTMLProps>;
6
+ //# sourceMappingURL=HTML.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HTML.stories.d.ts","sourceRoot":"","sources":["../../../src/core/HTML/HTML.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAE/C,OAAO,EAAQ,SAAS,EAAE,MAAM,yBAAyB,CAAC;;AAE1D,wBAGU;AAEV,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAwD,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { HTML } from '@pega/cosmos-react-core';
3
+ export default {
4
+ title: 'Core/HTML',
5
+ component: HTML
6
+ };
7
+ export const HTMLDemo = (args) => _jsx(HTML, { content: args.content });
8
+ HTMLDemo.args = {
9
+ content: '<div><p>Hello, World!<p><ul><li>List item 1<ul><li>Sub list item 1</li></ul></li><li>List item 2</li></ul></div>'
10
+ };
11
+ HTMLDemo.argTypes = {
12
+ content: { control: { type: 'text' } }
13
+ };
14
+ //# sourceMappingURL=HTML.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HTML.stories.js","sourceRoot":"","sources":["../../../src/core/HTML/HTML.stories.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,IAAI,EAAa,MAAM,yBAAyB,CAAC;AAE1D,eAAe;IACb,KAAK,EAAE,WAAW;IAClB,SAAS,EAAE,IAAI;CACR,CAAC;AAEV,MAAM,CAAC,MAAM,QAAQ,GAAqB,CAAC,IAAe,EAAE,EAAE,CAAC,KAAC,IAAI,IAAC,OAAO,EAAE,IAAI,CAAC,OAAO,GAAI,CAAC;AAE/F,QAAQ,CAAC,IAAI,GAAG;IACd,OAAO,EACL,kHAAkH;CACrH,CAAC;AAEF,QAAQ,CAAC,QAAQ,GAAG;IAClB,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;CACvC,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\n\nimport { HTML, HTMLProps } from '@pega/cosmos-react-core';\n\nexport default {\n title: 'Core/HTML',\n component: HTML\n} as Meta;\n\nexport const HTMLDemo: Story<HTMLProps> = (args: HTMLProps) => <HTML content={args.content} />;\n\nHTMLDemo.args = {\n content:\n '<div><p>Hello, World!<p><ul><li>List item 1<ul><li>Sub list item 1</li></ul></li><li>List item 2</li></ul></div>'\n};\n\nHTMLDemo.argTypes = {\n content: { control: { type: 'text' } }\n};\n"]}
@@ -3,7 +3,7 @@ import { registerIcon } from '@pega/cosmos-react-core';
3
3
  export const createCustomIcon = (theme) => {
4
4
  registerIcon({
5
5
  name: 'custom-pega',
6
- Component: () => (_jsx("path", { fill: theme.base.palette.interactive, d: 'M12.9734375,9.91015625 C12.9734375,9.91015625 12.9734375,9.91015625 12.9734375,9.91015625 C13.5960937,9.2875 14.3625,9 15.3203125,9 C15.3203125,9 15.3203125,9 15.3203125,9 C16.2304688,9 16.9484375,9.2390625 17.5234375,9.76640625 C17.5234375,9.76640625 17.5234375,9.76640625 17.5234375,9.76640625 C17.5234375,9.76640625 16.8046875,10.7242188 16.8046875,10.7242188 C16.6132812,10.5328125 16.421875,10.3890625 16.1820313,10.3414063 C16.1820313,10.3414063 16.1820313,10.3414063 16.1820313,10.3414063 C15.9429687,10.2453125 15.703125,10.1976563 15.3679687,10.1976563 C15.3679687,10.1976563 15.3679687,10.1976563 15.3679687,10.1976563 C14.7929687,10.1976563 14.3140625,10.3890625 13.93125,10.7726563 C13.5484375,11.15625 13.35625,11.634375 13.35625,12.209375 C13.35625,12.209375 13.35625,12.209375 13.35625,12.209375 C13.35625,12.8320313 13.5476562,13.3109375 13.93125,13.69375 C13.93125,13.69375 13.93125,13.69375 13.93125,13.69375 C14.3625,14.0289063 14.7929688,14.2203125 15.271875,14.2203125 C15.271875,14.2203125 15.271875,14.2203125 15.271875,14.2203125 C15.7984375,14.2203125 16.2296875,14.1242188 16.5648438,13.9328125 C16.5648438,13.9328125 16.5648438,13.9328125 16.5648438,13.9328125 C16.5648438,13.9328125 16.5648438,12.7835938 16.5648438,12.7835938 C16.5648438,12.7835938 15.2242188,12.7835938 15.2242188,12.7835938 C15.2242188,12.7835938 15.2242188,11.6820313 15.2242188,11.6820313 C15.2242188,11.6820313 17.8585938,11.6820313 17.8585938,11.6820313 C17.8585938,11.6820313 17.8585938,14.4601563 17.8585938,14.4601563 C17.8585938,14.4601563 17.8109375,14.5078125 17.8109375,14.5078125 C17.2359375,15.1304688 16.421875,15.465625 15.3203125,15.465625 C15.3203125,15.465625 15.3203125,15.465625 15.3203125,15.465625 C14.4101563,15.465625 13.64375,15.178125 12.9734375,14.5554688 C12.9734375,14.5554688 12.9734375,14.5554688 12.9734375,14.5554688 C12.3507812,13.9328125 12.015625,13.11875 12.015625,12.2085938 C12.015625,12.2085938 12.015625,12.2085938 12.015625,12.2085938 C12.015625,11.2984375 12.3507812,10.5320313 12.9734375,9.909375 L12.9734375,9.91015625 Z M1,9.23984375 C1,9.23984375 3.39453125,9.23984375 3.39453125,9.23984375 C4.11328125,9.23984375 4.6875,9.43125 5.11875,9.81484375 C5.55,10.1984375 5.74140625,10.725 5.74140625,11.3476562 C5.74140625,11.3476562 5.74140625,11.3476562 5.74140625,11.3476562 C5.74140625,12.0179687 5.50234375,12.5453125 5.07109375,12.8804688 C4.5921875,13.2632812 4.0171875,13.4554687 3.29921875,13.4554687 C3.29921875,13.4554687 3.29921875,13.4554687 3.29921875,13.4554687 C3.29921875,13.4554687 2.29375,13.4554687 2.29375,13.4554687 C2.29375,13.4554687 2.29375,15.275 2.29375,15.275 C2.29375,15.275 1.00078125,15.275 1.00078125,15.275 C1.00078125,15.275 1.00078125,9.240625 1.00078125,9.240625 L1,9.23984375 Z M10.675,12.83125 C10.675,12.83125 8.040625,12.83125 8.040625,12.83125 C8.040625,12.83125 8.040625,14.0765625 8.040625,14.0765625 C8.040625,14.0765625 11.2976563,14.0765625 11.2976563,14.0765625 C11.2976563,14.0765625 11.2976563,15.2742188 11.2976563,15.2742188 C11.2976563,15.2742188 6.7,15.2742188 6.7,15.2742188 C6.7,15.2742188 6.7,9.23984375 6.7,9.23984375 C6.7,9.23984375 11.2976563,9.23984375 11.2976563,9.23984375 C11.2976563,9.23984375 11.2976563,10.4375 11.2976563,10.4375 C11.2976563,10.4375 8.040625,10.4375 8.040625,10.4375 C8.040625,10.4375 8.040625,11.6828125 8.040625,11.6828125 C8.040625,11.6828125 10.675,11.6828125 10.675,11.6828125 C10.675,11.6828125 10.675,12.8320312 10.675,12.8320312 L10.675,12.83125 Z M18.48125,15.2742187 C18.48125,15.2742187 21.0671875,9.23984375 21.0671875,9.23984375 C21.0671875,9.23984375 22.2648438,9.23984375 22.2648438,9.23984375 C22.2648438,9.23984375 24.8507813,15.2742187 24.8507813,15.2742187 C24.8507813,15.2742187 23.4617188,15.2742187 23.4617188,15.2742187 C23.4617188,15.2742187 22.8867188,13.9335937 22.8867188,13.9335937 C22.8867188,13.9335937 20.3960938,13.9335937 20.3960938,13.9335937 C20.3960938,13.9335937 19.8210938,15.2742187 19.8210938,15.2742187 C19.8210938,15.2742187 18.4804688,15.2742187 18.4804688,15.2742187 L18.48125,15.2742187 Z M23.8453125,9.23984375 C23.8453125,9.23984375 23.8453125,9.23984375 23.8453125,9.23984375 C24.1804687,9.23984375 24.3242188,9.38359375 24.3242188,9.67109375 C24.3242188,9.67109375 24.3242188,9.67109375 24.3242188,9.67109375 C24.3242188,10.00625 24.1804687,10.15 23.8453125,10.15 C23.8453125,10.15 23.8453125,10.15 23.8453125,10.15 C23.5578125,10.15 23.4140625,10.00625 23.4140625,9.67109375 C23.4140625,9.67109375 23.4140625,9.67109375 23.4140625,9.67109375 C23.4140625,9.38359375 23.5578125,9.23984375 23.8453125,9.23984375 Z M24.228125,9.67109375 C24.228125,9.67109375 24.228125,9.67109375 24.228125,9.67109375 C24.228125,9.43203125 24.084375,9.28828125 23.8453125,9.28828125 C23.60625,9.28828125 23.4625,9.43203125 23.4625,9.67109375 C23.4625,9.67109375 23.4625,9.67109375 23.4625,9.67109375 C23.4625,9.95859375 23.60625,10.1023437 23.8453125,10.1023437 C24.084375,10.1023437 24.228125,9.95859375 24.228125,9.67109375 Z M23.796875,9.76640625 C23.796875,9.76640625 23.796875,9.9578125 23.796875,9.9578125 C23.796875,9.9578125 23.7007812,9.9578125 23.7007812,9.9578125 C23.7007812,9.9578125 23.7007812,9.43125 23.7007812,9.43125 C23.7007812,9.43125 23.8445312,9.43125 23.8445312,9.43125 C23.8445312,9.43125 23.9882812,9.43125 23.9882812,9.43125 C24.0359375,9.47890625 24.0359375,9.52734375 24.0359375,9.575 C24.0359375,9.575 24.0359375,9.575 24.0359375,9.575 C24.0359375,9.62265625 24.0359375,9.62265625 23.9882812,9.67109375 C23.9882812,9.67109375 23.9882812,9.67109375 23.9882812,9.67109375 C23.9882812,9.67109375 23.940625,9.71875 23.940625,9.71875 C23.940625,9.71875 24.084375,9.9578125 24.084375,9.9578125 C24.084375,9.9578125 23.940625,9.9578125 23.940625,9.9578125 C23.940625,9.9578125 23.8445312,9.76640625 23.8445312,9.76640625 C23.8445312,9.76640625 23.796875,9.76640625 23.796875,9.76640625 L23.796875,9.76640625 Z M23.8453125,9.47890625 C23.8453125,9.47890625 23.7976562,9.47890625 23.7976562,9.47890625 C23.7976562,9.47890625 23.7976562,9.6703125 23.7976562,9.6703125 C23.7976562,9.6703125 23.8453125,9.6703125 23.8453125,9.6703125 C23.8929687,9.6703125 23.8929687,9.6703125 23.9414062,9.62265625 C23.9414062,9.62265625 23.9414062,9.62265625 23.9414062,9.62265625 C23.9414062,9.62265625 23.9414062,9.575 23.9414062,9.575 C23.9414062,9.575 23.9414062,9.52734375 23.9414062,9.52734375 C23.89375,9.4796875 23.89375,9.4796875 23.8453125,9.4796875 C23.8453125,9.4796875 23.8453125,9.4796875 23.8453125,9.4796875 L23.8453125,9.47890625 Z M3.346875,12.2570312 C4.065625,12.2570312 4.40078125,11.9695312 4.40078125,11.346875 C4.40078125,10.7242187 4.01796875,10.4367187 3.29921875,10.4367187 C3.29921875,10.4367187 3.29921875,10.4367187 3.29921875,10.4367187 C3.29921875,10.4367187 2.29375,10.4367187 2.29375,10.4367187 C2.29375,10.4367187 2.29375,12.25625 2.29375,12.25625 C2.29375,12.25625 3.34765625,12.25625 3.34765625,12.25625 L3.346875,12.2570312 Z M21.6421875,10.8203125 C21.6421875,10.8203125 20.828125,12.7835937 20.828125,12.7835937 C20.828125,12.7835937 22.45625,12.7835937 22.45625,12.7835937 C22.45625,12.7835937 21.6421875,10.8203125 21.6421875,10.8203125 L21.6421875,10.8203125 Z' }, void 0)),
6
+ Component: () => (_jsx("path", { fill: theme.base.palette.interactive, d: 'M12.9734375,9.91015625 C12.9734375,9.91015625 12.9734375,9.91015625 12.9734375,9.91015625 C13.5960937,9.2875 14.3625,9 15.3203125,9 C15.3203125,9 15.3203125,9 15.3203125,9 C16.2304688,9 16.9484375,9.2390625 17.5234375,9.76640625 C17.5234375,9.76640625 17.5234375,9.76640625 17.5234375,9.76640625 C17.5234375,9.76640625 16.8046875,10.7242188 16.8046875,10.7242188 C16.6132812,10.5328125 16.421875,10.3890625 16.1820313,10.3414063 C16.1820313,10.3414063 16.1820313,10.3414063 16.1820313,10.3414063 C15.9429687,10.2453125 15.703125,10.1976563 15.3679687,10.1976563 C15.3679687,10.1976563 15.3679687,10.1976563 15.3679687,10.1976563 C14.7929687,10.1976563 14.3140625,10.3890625 13.93125,10.7726563 C13.5484375,11.15625 13.35625,11.634375 13.35625,12.209375 C13.35625,12.209375 13.35625,12.209375 13.35625,12.209375 C13.35625,12.8320313 13.5476562,13.3109375 13.93125,13.69375 C13.93125,13.69375 13.93125,13.69375 13.93125,13.69375 C14.3625,14.0289063 14.7929688,14.2203125 15.271875,14.2203125 C15.271875,14.2203125 15.271875,14.2203125 15.271875,14.2203125 C15.7984375,14.2203125 16.2296875,14.1242188 16.5648438,13.9328125 C16.5648438,13.9328125 16.5648438,13.9328125 16.5648438,13.9328125 C16.5648438,13.9328125 16.5648438,12.7835938 16.5648438,12.7835938 C16.5648438,12.7835938 15.2242188,12.7835938 15.2242188,12.7835938 C15.2242188,12.7835938 15.2242188,11.6820313 15.2242188,11.6820313 C15.2242188,11.6820313 17.8585938,11.6820313 17.8585938,11.6820313 C17.8585938,11.6820313 17.8585938,14.4601563 17.8585938,14.4601563 C17.8585938,14.4601563 17.8109375,14.5078125 17.8109375,14.5078125 C17.2359375,15.1304688 16.421875,15.465625 15.3203125,15.465625 C15.3203125,15.465625 15.3203125,15.465625 15.3203125,15.465625 C14.4101563,15.465625 13.64375,15.178125 12.9734375,14.5554688 C12.9734375,14.5554688 12.9734375,14.5554688 12.9734375,14.5554688 C12.3507812,13.9328125 12.015625,13.11875 12.015625,12.2085938 C12.015625,12.2085938 12.015625,12.2085938 12.015625,12.2085938 C12.015625,11.2984375 12.3507812,10.5320313 12.9734375,9.909375 L12.9734375,9.91015625 Z M1,9.23984375 C1,9.23984375 3.39453125,9.23984375 3.39453125,9.23984375 C4.11328125,9.23984375 4.6875,9.43125 5.11875,9.81484375 C5.55,10.1984375 5.74140625,10.725 5.74140625,11.3476562 C5.74140625,11.3476562 5.74140625,11.3476562 5.74140625,11.3476562 C5.74140625,12.0179687 5.50234375,12.5453125 5.07109375,12.8804688 C4.5921875,13.2632812 4.0171875,13.4554687 3.29921875,13.4554687 C3.29921875,13.4554687 3.29921875,13.4554687 3.29921875,13.4554687 C3.29921875,13.4554687 2.29375,13.4554687 2.29375,13.4554687 C2.29375,13.4554687 2.29375,15.275 2.29375,15.275 C2.29375,15.275 1.00078125,15.275 1.00078125,15.275 C1.00078125,15.275 1.00078125,9.240625 1.00078125,9.240625 L1,9.23984375 Z M10.675,12.83125 C10.675,12.83125 8.040625,12.83125 8.040625,12.83125 C8.040625,12.83125 8.040625,14.0765625 8.040625,14.0765625 C8.040625,14.0765625 11.2976563,14.0765625 11.2976563,14.0765625 C11.2976563,14.0765625 11.2976563,15.2742188 11.2976563,15.2742188 C11.2976563,15.2742188 6.7,15.2742188 6.7,15.2742188 C6.7,15.2742188 6.7,9.23984375 6.7,9.23984375 C6.7,9.23984375 11.2976563,9.23984375 11.2976563,9.23984375 C11.2976563,9.23984375 11.2976563,10.4375 11.2976563,10.4375 C11.2976563,10.4375 8.040625,10.4375 8.040625,10.4375 C8.040625,10.4375 8.040625,11.6828125 8.040625,11.6828125 C8.040625,11.6828125 10.675,11.6828125 10.675,11.6828125 C10.675,11.6828125 10.675,12.8320312 10.675,12.8320312 L10.675,12.83125 Z M18.48125,15.2742187 C18.48125,15.2742187 21.0671875,9.23984375 21.0671875,9.23984375 C21.0671875,9.23984375 22.2648438,9.23984375 22.2648438,9.23984375 C22.2648438,9.23984375 24.8507813,15.2742187 24.8507813,15.2742187 C24.8507813,15.2742187 23.4617188,15.2742187 23.4617188,15.2742187 C23.4617188,15.2742187 22.8867188,13.9335937 22.8867188,13.9335937 C22.8867188,13.9335937 20.3960938,13.9335937 20.3960938,13.9335937 C20.3960938,13.9335937 19.8210938,15.2742187 19.8210938,15.2742187 C19.8210938,15.2742187 18.4804688,15.2742187 18.4804688,15.2742187 L18.48125,15.2742187 Z M23.8453125,9.23984375 C23.8453125,9.23984375 23.8453125,9.23984375 23.8453125,9.23984375 C24.1804687,9.23984375 24.3242188,9.38359375 24.3242188,9.67109375 C24.3242188,9.67109375 24.3242188,9.67109375 24.3242188,9.67109375 C24.3242188,10.00625 24.1804687,10.15 23.8453125,10.15 C23.8453125,10.15 23.8453125,10.15 23.8453125,10.15 C23.5578125,10.15 23.4140625,10.00625 23.4140625,9.67109375 C23.4140625,9.67109375 23.4140625,9.67109375 23.4140625,9.67109375 C23.4140625,9.38359375 23.5578125,9.23984375 23.8453125,9.23984375 Z M24.228125,9.67109375 C24.228125,9.67109375 24.228125,9.67109375 24.228125,9.67109375 C24.228125,9.43203125 24.084375,9.28828125 23.8453125,9.28828125 C23.60625,9.28828125 23.4625,9.43203125 23.4625,9.67109375 C23.4625,9.67109375 23.4625,9.67109375 23.4625,9.67109375 C23.4625,9.95859375 23.60625,10.1023437 23.8453125,10.1023437 C24.084375,10.1023437 24.228125,9.95859375 24.228125,9.67109375 Z M23.796875,9.76640625 C23.796875,9.76640625 23.796875,9.9578125 23.796875,9.9578125 C23.796875,9.9578125 23.7007812,9.9578125 23.7007812,9.9578125 C23.7007812,9.9578125 23.7007812,9.43125 23.7007812,9.43125 C23.7007812,9.43125 23.8445312,9.43125 23.8445312,9.43125 C23.8445312,9.43125 23.9882812,9.43125 23.9882812,9.43125 C24.0359375,9.47890625 24.0359375,9.52734375 24.0359375,9.575 C24.0359375,9.575 24.0359375,9.575 24.0359375,9.575 C24.0359375,9.62265625 24.0359375,9.62265625 23.9882812,9.67109375 C23.9882812,9.67109375 23.9882812,9.67109375 23.9882812,9.67109375 C23.9882812,9.67109375 23.940625,9.71875 23.940625,9.71875 C23.940625,9.71875 24.084375,9.9578125 24.084375,9.9578125 C24.084375,9.9578125 23.940625,9.9578125 23.940625,9.9578125 C23.940625,9.9578125 23.8445312,9.76640625 23.8445312,9.76640625 C23.8445312,9.76640625 23.796875,9.76640625 23.796875,9.76640625 L23.796875,9.76640625 Z M23.8453125,9.47890625 C23.8453125,9.47890625 23.7976562,9.47890625 23.7976562,9.47890625 C23.7976562,9.47890625 23.7976562,9.6703125 23.7976562,9.6703125 C23.7976562,9.6703125 23.8453125,9.6703125 23.8453125,9.6703125 C23.8929687,9.6703125 23.8929687,9.6703125 23.9414062,9.62265625 C23.9414062,9.62265625 23.9414062,9.62265625 23.9414062,9.62265625 C23.9414062,9.62265625 23.9414062,9.575 23.9414062,9.575 C23.9414062,9.575 23.9414062,9.52734375 23.9414062,9.52734375 C23.89375,9.4796875 23.89375,9.4796875 23.8453125,9.4796875 C23.8453125,9.4796875 23.8453125,9.4796875 23.8453125,9.4796875 L23.8453125,9.47890625 Z M3.346875,12.2570312 C4.065625,12.2570312 4.40078125,11.9695312 4.40078125,11.346875 C4.40078125,10.7242187 4.01796875,10.4367187 3.29921875,10.4367187 C3.29921875,10.4367187 3.29921875,10.4367187 3.29921875,10.4367187 C3.29921875,10.4367187 2.29375,10.4367187 2.29375,10.4367187 C2.29375,10.4367187 2.29375,12.25625 2.29375,12.25625 C2.29375,12.25625 3.34765625,12.25625 3.34765625,12.25625 L3.346875,12.2570312 Z M21.6421875,10.8203125 C21.6421875,10.8203125 20.828125,12.7835937 20.828125,12.7835937 C20.828125,12.7835937 22.45625,12.7835937 22.45625,12.7835937 C22.45625,12.7835937 21.6421875,10.8203125 21.6421875,10.8203125 L21.6421875,10.8203125 Z' })),
7
7
  viewBox: '0 0 25 25'
8
8
  });
9
9
  };