@pega/cosmos-react-demos 3.0.0-dev.9.0 → 3.0.0-rc.2

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 (987) hide show
  1. package/jsx/build/AppHeader/AppHeader.stories.d.ts +1 -1
  2. package/jsx/build/AppHeader/AppHeader.stories.d.ts.map +1 -1
  3. package/jsx/build/AppHeader/AppHeader.stories.jsx +102 -81
  4. package/jsx/build/AppHeader/AppHeader.stories.jsx.map +1 -1
  5. package/jsx/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts +1 -1
  6. package/jsx/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts.map +1 -1
  7. package/jsx/build/DynamicContentEditor/DynamicContentEditor.stories.jsx +22 -1
  8. package/jsx/build/DynamicContentEditor/DynamicContentEditor.stories.jsx.map +1 -1
  9. package/jsx/build/ExpressionBuilder/ExpressionBuilder.mocks.d.ts +60 -0
  10. package/jsx/build/ExpressionBuilder/ExpressionBuilder.mocks.d.ts.map +1 -0
  11. package/jsx/build/ExpressionBuilder/ExpressionBuilder.mocks.js +523 -0
  12. package/jsx/build/ExpressionBuilder/ExpressionBuilder.mocks.js.map +1 -0
  13. package/jsx/build/ExpressionBuilder/ExpressionBuilder.stories.d.ts +26 -0
  14. package/jsx/build/ExpressionBuilder/ExpressionBuilder.stories.d.ts.map +1 -0
  15. package/jsx/build/ExpressionBuilder/ExpressionBuilder.stories.jsx +339 -0
  16. package/jsx/build/ExpressionBuilder/ExpressionBuilder.stories.jsx.map +1 -0
  17. package/jsx/build/FlowModeller/AddNodeUtils.mocks.d.ts +4 -4
  18. package/jsx/build/FlowModeller/AddNodeUtils.mocks.d.ts.map +1 -1
  19. package/jsx/build/FlowModeller/AddNodeUtils.mocks.js.map +1 -1
  20. package/jsx/build/FlowModeller/FlowModeller.mocks.d.ts +4 -2
  21. package/jsx/build/FlowModeller/FlowModeller.mocks.d.ts.map +1 -1
  22. package/jsx/build/FlowModeller/FlowModeller.mocks.jsx +118 -33
  23. package/jsx/build/FlowModeller/FlowModeller.mocks.jsx.map +1 -1
  24. package/jsx/build/FlowModeller/FlowModeller.stories.d.ts +7 -2
  25. package/jsx/build/FlowModeller/FlowModeller.stories.d.ts.map +1 -1
  26. package/jsx/build/FlowModeller/FlowModeller.stories.jsx +246 -63
  27. package/jsx/build/FlowModeller/FlowModeller.stories.jsx.map +1 -1
  28. package/jsx/build/LifeCycle/LifeCycle.mocks.d.ts.map +1 -1
  29. package/jsx/build/LifeCycle/LifeCycle.mocks.js +40 -0
  30. package/jsx/build/LifeCycle/LifeCycle.mocks.js.map +1 -1
  31. package/jsx/build/ObjectSelect/ObjectSelect.mocks.d.ts +25 -8
  32. package/jsx/build/ObjectSelect/ObjectSelect.mocks.d.ts.map +1 -1
  33. package/jsx/build/ObjectSelect/ObjectSelect.mocks.jsx +129 -68
  34. package/jsx/build/ObjectSelect/ObjectSelect.mocks.jsx.map +1 -1
  35. package/jsx/build/ObjectSelect/ObjectSelect.stories.d.ts.map +1 -1
  36. package/jsx/build/ObjectSelect/ObjectSelect.stories.jsx +115 -26
  37. package/jsx/build/ObjectSelect/ObjectSelect.stories.jsx.map +1 -1
  38. package/jsx/build/PageTemplates/PageTemplates.mocks.d.ts.map +1 -1
  39. package/jsx/build/PageTemplates/PageTemplates.mocks.jsx +4 -4
  40. package/jsx/build/PageTemplates/PageTemplates.mocks.jsx.map +1 -1
  41. package/jsx/build/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
  42. package/jsx/build/PageTemplates/PageTemplates.stories.jsx +3 -3
  43. package/jsx/build/PageTemplates/PageTemplates.stories.jsx.map +1 -1
  44. package/jsx/build/Workbench/Workbench.stories.d.ts +1 -0
  45. package/jsx/build/Workbench/Workbench.stories.d.ts.map +1 -1
  46. package/jsx/build/Workbench/Workbench.stories.jsx +201 -4
  47. package/jsx/build/Workbench/Workbench.stories.jsx.map +1 -1
  48. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.mocks.d.ts +1 -1
  49. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.mocks.d.ts.map +1 -1
  50. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.mocks.js +3 -1
  51. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.mocks.js.map +1 -1
  52. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts +2 -1
  53. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts.map +1 -1
  54. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.jsx +47 -16
  55. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.jsx.map +1 -1
  56. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.styles.d.ts +1 -1
  57. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.styles.d.ts.map +1 -1
  58. package/jsx/condition-builder/ConditionBuilder/props.mock.d.ts.map +1 -1
  59. package/jsx/condition-builder/ConditionBuilder/props.mock.js +132 -31
  60. package/jsx/condition-builder/ConditionBuilder/props.mock.js.map +1 -1
  61. package/jsx/condition-builder/ConditionInput/ConditionInput.stories.d.ts +10 -0
  62. package/jsx/condition-builder/ConditionInput/ConditionInput.stories.d.ts.map +1 -0
  63. package/jsx/condition-builder/ConditionInput/ConditionInput.stories.jsx +40 -0
  64. package/jsx/condition-builder/ConditionInput/ConditionInput.stories.jsx.map +1 -0
  65. package/jsx/condition-builder/PromotedFilters/PromotedFilters.mocks.d.ts +4 -0
  66. package/jsx/condition-builder/PromotedFilters/PromotedFilters.mocks.d.ts.map +1 -0
  67. package/jsx/condition-builder/PromotedFilters/PromotedFilters.mocks.js +181 -0
  68. package/jsx/condition-builder/PromotedFilters/PromotedFilters.mocks.js.map +1 -0
  69. package/jsx/condition-builder/PromotedFilters/PromotedFilters.stories.d.ts +8 -0
  70. package/jsx/condition-builder/PromotedFilters/PromotedFilters.stories.d.ts.map +1 -0
  71. package/jsx/condition-builder/PromotedFilters/PromotedFilters.stories.jsx +31 -0
  72. package/jsx/condition-builder/PromotedFilters/PromotedFilters.stories.jsx.map +1 -0
  73. package/jsx/condition-builder/PromotedFilters/PromotedFilters.styles.d.ts +9 -0
  74. package/jsx/condition-builder/PromotedFilters/PromotedFilters.styles.d.ts.map +1 -0
  75. package/jsx/condition-builder/PromotedFilters/PromotedFilters.styles.js +35 -0
  76. package/jsx/condition-builder/PromotedFilters/PromotedFilters.styles.js.map +1 -0
  77. package/jsx/core/AdditionalInfo/AdditionalInfo.stories.d.ts +9 -0
  78. package/jsx/core/AdditionalInfo/AdditionalInfo.stories.d.ts.map +1 -0
  79. package/jsx/core/AdditionalInfo/AdditionalInfo.stories.jsx +25 -0
  80. package/jsx/core/AdditionalInfo/AdditionalInfo.stories.jsx.map +1 -0
  81. package/jsx/core/AppShell/AppShell.mocks.d.ts +1 -1
  82. package/jsx/core/AppShell/AppShell.mocks.jsx +5 -5
  83. package/jsx/core/AppShell/AppShell.mocks.jsx.map +1 -1
  84. package/jsx/core/AppShell/AppShell.stories.d.ts +2 -0
  85. package/jsx/core/AppShell/AppShell.stories.d.ts.map +1 -1
  86. package/jsx/core/AppShell/AppShell.stories.jsx +47 -13
  87. package/jsx/core/AppShell/AppShell.stories.jsx.map +1 -1
  88. package/jsx/core/Banner/Banner.stories.d.ts +0 -1
  89. package/jsx/core/Banner/Banner.stories.d.ts.map +1 -1
  90. package/jsx/core/Banner/Banner.stories.jsx +2 -10
  91. package/jsx/core/Banner/Banner.stories.jsx.map +1 -1
  92. package/jsx/core/Checkbox/Checkbox.stories.d.ts +6 -2
  93. package/jsx/core/Checkbox/Checkbox.stories.d.ts.map +1 -1
  94. package/jsx/core/Checkbox/Checkbox.stories.jsx +26 -7
  95. package/jsx/core/Checkbox/Checkbox.stories.jsx.map +1 -1
  96. package/jsx/core/CheckboxGroup/CheckboxGroup.stories.d.ts +6 -2
  97. package/jsx/core/CheckboxGroup/CheckboxGroup.stories.d.ts.map +1 -1
  98. package/jsx/core/CheckboxGroup/CheckboxGroup.stories.jsx +46 -5
  99. package/jsx/core/CheckboxGroup/CheckboxGroup.stories.jsx.map +1 -1
  100. package/jsx/core/ColorPicker/ColorPicker.stories.d.ts +4 -1
  101. package/jsx/core/ColorPicker/ColorPicker.stories.d.ts.map +1 -1
  102. package/jsx/core/ColorPicker/ColorPicker.stories.jsx +10 -3
  103. package/jsx/core/ColorPicker/ColorPicker.stories.jsx.map +1 -1
  104. package/jsx/core/ComboBox/ComboBox.stories.d.ts +1 -0
  105. package/jsx/core/ComboBox/ComboBox.stories.d.ts.map +1 -1
  106. package/jsx/core/ComboBox/ComboBox.stories.jsx +40 -8
  107. package/jsx/core/ComboBox/ComboBox.stories.jsx.map +1 -1
  108. package/jsx/core/CompositeInput/CompositeInput.mocks.d.ts +8 -0
  109. package/jsx/core/CompositeInput/CompositeInput.mocks.d.ts.map +1 -0
  110. package/jsx/core/CompositeInput/CompositeInput.mocks.jsx +8 -0
  111. package/jsx/core/CompositeInput/CompositeInput.mocks.jsx.map +1 -0
  112. package/jsx/core/CompositeInput/CompositeInput.stories.d.ts +9 -0
  113. package/jsx/core/CompositeInput/CompositeInput.stories.d.ts.map +1 -0
  114. package/jsx/core/CompositeInput/CompositeInput.stories.jsx +54 -0
  115. package/jsx/core/CompositeInput/CompositeInput.stories.jsx.map +1 -0
  116. package/jsx/core/CreditCard/CreditCard.stories.d.ts +4 -1
  117. package/jsx/core/CreditCard/CreditCard.stories.d.ts.map +1 -1
  118. package/jsx/core/CreditCard/CreditCard.stories.jsx +11 -4
  119. package/jsx/core/CreditCard/CreditCard.stories.jsx.map +1 -1
  120. package/jsx/core/Currency/Currency.stories.d.ts +6 -1
  121. package/jsx/core/Currency/Currency.stories.d.ts.map +1 -1
  122. package/jsx/core/Currency/Currency.stories.jsx +30 -7
  123. package/jsx/core/Currency/Currency.stories.jsx.map +1 -1
  124. package/jsx/core/DateTime/DateTime.stories.d.ts +41 -10
  125. package/jsx/core/DateTime/DateTime.stories.d.ts.map +1 -1
  126. package/jsx/core/DateTime/DateTime.stories.jsx +188 -17
  127. package/jsx/core/DateTime/DateTime.stories.jsx.map +1 -1
  128. package/jsx/core/DateTime/DateTimePicker.stories.d.ts.map +1 -1
  129. package/jsx/core/DateTime/DateTimePicker.stories.jsx +1 -1
  130. package/jsx/core/DateTime/DateTimePicker.stories.jsx.map +1 -1
  131. package/jsx/core/Dialog/Dialog.stories.d.ts +6 -0
  132. package/jsx/core/Dialog/Dialog.stories.d.ts.map +1 -0
  133. package/jsx/core/Dialog/Dialog.stories.jsx +79 -0
  134. package/jsx/core/Dialog/Dialog.stories.jsx.map +1 -0
  135. package/jsx/core/FieldGroup/FieldGroup.stories.d.ts +2 -0
  136. package/jsx/core/FieldGroup/FieldGroup.stories.d.ts.map +1 -1
  137. package/jsx/core/FieldGroup/FieldGroup.stories.jsx +12 -4
  138. package/jsx/core/FieldGroup/FieldGroup.stories.jsx.map +1 -1
  139. package/jsx/core/FieldGroup/FieldGroupList.stories.d.ts.map +1 -1
  140. package/jsx/core/FieldGroup/FieldGroupList.stories.jsx +4 -0
  141. package/jsx/core/FieldGroup/FieldGroupList.stories.jsx.map +1 -1
  142. package/jsx/core/FieldValueList/FieldValueList.stories.d.ts +1 -0
  143. package/jsx/core/FieldValueList/FieldValueList.stories.d.ts.map +1 -1
  144. package/jsx/core/FieldValueList/FieldValueList.stories.jsx +34 -2
  145. package/jsx/core/FieldValueList/FieldValueList.stories.jsx.map +1 -1
  146. package/jsx/core/FieldValueList/FieldValueList.styles.d.ts +2 -0
  147. package/jsx/core/FieldValueList/FieldValueList.styles.d.ts.map +1 -0
  148. package/jsx/core/FieldValueList/FieldValueList.styles.js +8 -0
  149. package/jsx/core/FieldValueList/FieldValueList.styles.js.map +1 -0
  150. package/jsx/core/File/FileDisplay.stories.d.ts.map +1 -1
  151. package/jsx/core/File/FileDisplay.stories.jsx +10 -5
  152. package/jsx/core/File/FileDisplay.stories.jsx.map +1 -1
  153. package/jsx/core/Form/Form.mocks.d.ts +6 -0
  154. package/jsx/core/Form/Form.mocks.d.ts.map +1 -1
  155. package/jsx/core/Form/Form.mocks.jsx +84 -7
  156. package/jsx/core/Form/Form.mocks.jsx.map +1 -1
  157. package/jsx/core/Form/Form.stories.d.ts +1 -0
  158. package/jsx/core/Form/Form.stories.d.ts.map +1 -1
  159. package/jsx/core/Form/Form.stories.jsx +4 -1
  160. package/jsx/core/Form/Form.stories.jsx.map +1 -1
  161. package/jsx/core/HTML/HTML.stories.jsx +1 -1
  162. package/jsx/core/HTML/HTML.stories.jsx.map +1 -1
  163. package/jsx/core/Icon/Icon.stories.jsx.map +1 -1
  164. package/jsx/core/IconPicker/IconPicker.stories.d.ts.map +1 -1
  165. package/jsx/core/IconPicker/IconPicker.stories.jsx +6 -9
  166. package/jsx/core/IconPicker/IconPicker.stories.jsx.map +1 -1
  167. package/jsx/core/Input/Input.stories.d.ts +2 -0
  168. package/jsx/core/Input/Input.stories.d.ts.map +1 -1
  169. package/jsx/core/Input/Input.stories.jsx +78 -2
  170. package/jsx/core/Input/Input.stories.jsx.map +1 -1
  171. package/jsx/core/Lightbox/Lightbox.stories.jsx +1 -1
  172. package/jsx/core/Lightbox/Lightbox.stories.jsx.map +1 -1
  173. package/jsx/core/Link/Link.stories.d.ts +1 -0
  174. package/jsx/core/Link/Link.stories.d.ts.map +1 -1
  175. package/jsx/core/Link/Link.stories.jsx +12 -1
  176. package/jsx/core/Link/Link.stories.jsx.map +1 -1
  177. package/jsx/core/ListToolbar/ListToolbar.stories.d.ts +7 -1
  178. package/jsx/core/ListToolbar/ListToolbar.stories.d.ts.map +1 -1
  179. package/jsx/core/ListToolbar/ListToolbar.stories.jsx +21 -6
  180. package/jsx/core/ListToolbar/ListToolbar.stories.jsx.map +1 -1
  181. package/jsx/core/Location/Location.stories.d.ts +4 -1
  182. package/jsx/core/Location/Location.stories.d.ts.map +1 -1
  183. package/jsx/core/Location/Location.stories.jsx +13 -6
  184. package/jsx/core/Location/Location.stories.jsx.map +1 -1
  185. package/jsx/core/Location/locationTestUtils.d.ts +3 -0
  186. package/jsx/core/Location/locationTestUtils.d.ts.map +1 -0
  187. package/jsx/core/Location/locationTestUtils.js +29 -0
  188. package/jsx/core/Location/locationTestUtils.js.map +1 -0
  189. package/jsx/core/Menu/Menu.stories.d.ts.map +1 -1
  190. package/jsx/core/Menu/Menu.stories.jsx +7 -6
  191. package/jsx/core/Menu/Menu.stories.jsx.map +1 -1
  192. package/jsx/core/Modal/Modal.stories.d.ts +10 -1
  193. package/jsx/core/Modal/Modal.stories.d.ts.map +1 -1
  194. package/jsx/core/Modal/Modal.stories.jsx +49 -26
  195. package/jsx/core/Modal/Modal.stories.jsx.map +1 -1
  196. package/jsx/core/MultiStepForm/MultiStepForm.mocks.d.ts +34 -0
  197. package/jsx/core/MultiStepForm/MultiStepForm.mocks.d.ts.map +1 -0
  198. package/jsx/core/MultiStepForm/MultiStepForm.mocks.jsx +124 -0
  199. package/jsx/core/MultiStepForm/MultiStepForm.mocks.jsx.map +1 -0
  200. package/jsx/core/{MultiStep/MultiStep.stories.d.ts → MultiStepForm/MultiStepForm.stories.d.ts} +2 -2
  201. package/jsx/core/MultiStepForm/MultiStepForm.stories.d.ts.map +1 -0
  202. package/jsx/core/MultiStepForm/MultiStepForm.stories.jsx +208 -0
  203. package/jsx/core/MultiStepForm/MultiStepForm.stories.jsx.map +1 -0
  204. package/jsx/core/Number/Number.stories.d.ts +5 -2
  205. package/jsx/core/Number/Number.stories.d.ts.map +1 -1
  206. package/jsx/core/Number/Number.stories.jsx +204 -24
  207. package/jsx/core/Number/Number.stories.jsx.map +1 -1
  208. package/jsx/core/PageTemplates/PageTemplates.mocks.d.ts +1 -1
  209. package/jsx/core/PageTemplates/PageTemplates.mocks.d.ts.map +1 -1
  210. package/jsx/core/Phone/Phone.stories.d.ts +4 -1
  211. package/jsx/core/Phone/Phone.stories.d.ts.map +1 -1
  212. package/jsx/core/Phone/Phone.stories.jsx +10 -3
  213. package/jsx/core/Phone/Phone.stories.jsx.map +1 -1
  214. package/jsx/core/Popover/Popover.stories.jsx +6 -6
  215. package/jsx/core/Popover/Popover.stories.jsx.map +1 -1
  216. package/jsx/core/RadioButton/RadioButton.stories.d.ts +6 -2
  217. package/jsx/core/RadioButton/RadioButton.stories.d.ts.map +1 -1
  218. package/jsx/core/RadioButton/RadioButton.stories.jsx +22 -5
  219. package/jsx/core/RadioButton/RadioButton.stories.jsx.map +1 -1
  220. package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts +6 -2
  221. package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts.map +1 -1
  222. package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.jsx +46 -5
  223. package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.jsx.map +1 -1
  224. package/jsx/core/SearchInput/SearchInput.mocks.d.ts +12 -0
  225. package/jsx/core/SearchInput/SearchInput.mocks.d.ts.map +1 -0
  226. package/jsx/core/SearchInput/SearchInput.mocks.js +25 -0
  227. package/jsx/core/SearchInput/SearchInput.mocks.js.map +1 -0
  228. package/jsx/core/SearchInput/SearchInput.stories.d.ts +1 -4
  229. package/jsx/core/SearchInput/SearchInput.stories.d.ts.map +1 -1
  230. package/jsx/core/SearchInput/SearchInput.stories.jsx +29 -17
  231. package/jsx/core/SearchInput/SearchInput.stories.jsx.map +1 -1
  232. package/jsx/core/Select/Select.stories.d.ts +1 -0
  233. package/jsx/core/Select/Select.stories.d.ts.map +1 -1
  234. package/jsx/core/Select/Select.stories.jsx +10 -3
  235. package/jsx/core/Select/Select.stories.jsx.map +1 -1
  236. package/jsx/core/SkipLinks/SkipLinks.stories.d.ts +6 -0
  237. package/jsx/core/SkipLinks/SkipLinks.stories.d.ts.map +1 -0
  238. package/jsx/core/SkipLinks/SkipLinks.stories.jsx +29 -0
  239. package/jsx/core/SkipLinks/SkipLinks.stories.jsx.map +1 -0
  240. package/jsx/core/SkipLinks/SkipLinks.styles.d.ts +2 -0
  241. package/jsx/core/SkipLinks/SkipLinks.styles.d.ts.map +1 -0
  242. package/jsx/core/SkipLinks/SkipLinks.styles.js +16 -0
  243. package/jsx/core/SkipLinks/SkipLinks.styles.js.map +1 -0
  244. package/jsx/core/SummaryList/SummaryList.stories.d.ts.map +1 -1
  245. package/jsx/core/SummaryList/SummaryList.stories.jsx +4 -4
  246. package/jsx/core/SummaryList/SummaryList.stories.jsx.map +1 -1
  247. package/jsx/core/Tabs/Tabs.stories.jsx +1 -1
  248. package/jsx/core/Tabs/Tabs.stories.jsx.map +1 -1
  249. package/jsx/core/TextArea/TextArea.stories.d.ts +4 -1
  250. package/jsx/core/TextArea/TextArea.stories.d.ts.map +1 -1
  251. package/jsx/core/TextArea/TextArea.stories.jsx +10 -3
  252. package/jsx/core/TextArea/TextArea.stories.jsx.map +1 -1
  253. package/jsx/core/Toaster/Toaster.stories.jsx +3 -3
  254. package/jsx/core/Toaster/Toaster.stories.jsx.map +1 -1
  255. package/jsx/core/Tree/Tree.mocks.d.ts +1 -1
  256. package/jsx/core/Tree/Tree.mocks.d.ts.map +1 -1
  257. package/jsx/core/Tree/Tree.stories.d.ts.map +1 -1
  258. package/jsx/core/Tree/Tree.stories.jsx +14 -0
  259. package/jsx/core/Tree/Tree.stories.jsx.map +1 -1
  260. package/jsx/cs/ArticleList/ArticleList.stories.d.ts.map +1 -1
  261. package/jsx/cs/ArticleList/ArticleList.stories.jsx +1 -1
  262. package/jsx/cs/ArticleList/ArticleList.stories.jsx.map +1 -1
  263. package/jsx/cs/CallControlPanel/CallControlPanel.mocks.d.ts +7 -2
  264. package/jsx/cs/CallControlPanel/CallControlPanel.mocks.d.ts.map +1 -1
  265. package/jsx/cs/CallControlPanel/CallControlPanel.mocks.js +151 -9
  266. package/jsx/cs/CallControlPanel/CallControlPanel.mocks.js.map +1 -1
  267. package/jsx/cs/CallControlPanel/CallControlPanel.stories.d.ts +5 -2
  268. package/jsx/cs/CallControlPanel/CallControlPanel.stories.d.ts.map +1 -1
  269. package/jsx/cs/CallControlPanel/CallControlPanel.stories.jsx +208 -90
  270. package/jsx/cs/CallControlPanel/CallControlPanel.stories.jsx.map +1 -1
  271. package/jsx/cs/IntelligentGuidance/IntelligentGuidance.stories.jsx +2 -2
  272. package/jsx/cs/IntelligentGuidance/IntelligentGuidance.stories.jsx.map +1 -1
  273. package/jsx/cs/InteractionNotification/InteractionNotification.stories.d.ts +1 -0
  274. package/jsx/cs/InteractionNotification/InteractionNotification.stories.d.ts.map +1 -1
  275. package/jsx/cs/InteractionNotification/InteractionNotification.stories.jsx +6 -6
  276. package/jsx/cs/InteractionNotification/InteractionNotification.stories.jsx.map +1 -1
  277. package/jsx/cs/InteractionTimer/InteractionTimer.mocks.js +5 -5
  278. package/jsx/cs/InteractionTimer/InteractionTimer.mocks.js.map +1 -1
  279. package/jsx/cs/InteractionTimer/InteractionTimer.stories.d.ts +1 -0
  280. package/jsx/cs/InteractionTimer/InteractionTimer.stories.d.ts.map +1 -1
  281. package/jsx/cs/InteractionTimer/InteractionTimer.stories.jsx +33 -14
  282. package/jsx/cs/InteractionTimer/InteractionTimer.stories.jsx.map +1 -1
  283. package/jsx/cs/TaskManager/TaskManager.mocks.d.ts +12 -0
  284. package/jsx/cs/TaskManager/TaskManager.mocks.d.ts.map +1 -1
  285. package/jsx/cs/TaskManager/TaskManager.mocks.js +86 -0
  286. package/jsx/cs/TaskManager/TaskManager.mocks.js.map +1 -1
  287. package/jsx/cs/TaskManager/TaskManager.stories.d.ts +2 -1
  288. package/jsx/cs/TaskManager/TaskManager.stories.d.ts.map +1 -1
  289. package/jsx/cs/TaskManager/TaskManager.stories.jsx +103 -25
  290. package/jsx/cs/TaskManager/TaskManager.stories.jsx.map +1 -1
  291. package/jsx/cs/TaskManager/TaskManager.styles.js +2 -1
  292. package/jsx/cs/TaskManager/TaskManager.styles.js.map +1 -1
  293. package/jsx/dnd/StandardDragDropList/Demo.d.ts +7 -0
  294. package/jsx/dnd/StandardDragDropList/Demo.d.ts.map +1 -0
  295. package/jsx/dnd/StandardDragDropList/Demo.jsx +158 -0
  296. package/jsx/dnd/StandardDragDropList/Demo.jsx.map +1 -0
  297. package/jsx/dnd/StandardDragDropList/GroupConfig.d.ts +10 -0
  298. package/jsx/dnd/StandardDragDropList/GroupConfig.d.ts.map +1 -0
  299. package/jsx/dnd/StandardDragDropList/GroupConfig.jsx +26 -0
  300. package/jsx/dnd/StandardDragDropList/GroupConfig.jsx.map +1 -0
  301. package/jsx/dnd/StandardDragDropList/ItemConfig.d.ts +12 -0
  302. package/jsx/dnd/StandardDragDropList/ItemConfig.d.ts.map +1 -0
  303. package/jsx/dnd/StandardDragDropList/ItemConfig.jsx +21 -0
  304. package/jsx/dnd/StandardDragDropList/ItemConfig.jsx.map +1 -0
  305. package/jsx/dnd/StandardDragDropList/Popover.d.ts +14 -0
  306. package/jsx/dnd/StandardDragDropList/Popover.d.ts.map +1 -0
  307. package/jsx/dnd/StandardDragDropList/Popover.jsx +51 -0
  308. package/jsx/dnd/StandardDragDropList/Popover.jsx.map +1 -0
  309. package/jsx/dnd/StandardDragDropList/SelectionMenu.d.ts +16 -0
  310. package/jsx/dnd/StandardDragDropList/SelectionMenu.d.ts.map +1 -0
  311. package/jsx/dnd/StandardDragDropList/SelectionMenu.jsx +104 -0
  312. package/jsx/dnd/StandardDragDropList/SelectionMenu.jsx.map +1 -0
  313. package/jsx/dnd/StandardDragDropList/StandardDragDropList.stories.d.ts +5 -0
  314. package/jsx/dnd/StandardDragDropList/StandardDragDropList.stories.d.ts.map +1 -0
  315. package/jsx/dnd/StandardDragDropList/StandardDragDropList.stories.jsx +15 -0
  316. package/jsx/dnd/StandardDragDropList/StandardDragDropList.stories.jsx.map +1 -0
  317. package/jsx/dnd/StandardDragDropList/mockData.d.ts +26 -0
  318. package/jsx/dnd/StandardDragDropList/mockData.d.ts.map +1 -0
  319. package/jsx/dnd/StandardDragDropList/mockData.js +77 -0
  320. package/jsx/dnd/StandardDragDropList/mockData.js.map +1 -0
  321. package/jsx/rte/Editor/Editor.stories.d.ts.map +1 -1
  322. package/jsx/rte/Editor/Editor.stories.jsx +1 -1
  323. package/jsx/rte/Editor/Editor.stories.jsx.map +1 -1
  324. package/jsx/rte/RichTextEditor/RichTextEditor.stories.d.ts +4 -1
  325. package/jsx/rte/RichTextEditor/RichTextEditor.stories.d.ts.map +1 -1
  326. package/jsx/rte/RichTextEditor/RichTextEditor.stories.jsx +11 -4
  327. package/jsx/rte/RichTextEditor/RichTextEditor.stories.jsx.map +1 -1
  328. package/jsx/rte/RichTextEditor/RichTextViewer.stories.d.ts.map +1 -1
  329. package/jsx/rte/RichTextEditor/RichTextViewer.stories.jsx +2 -2
  330. package/jsx/rte/RichTextEditor/RichTextViewer.stories.jsx.map +1 -1
  331. package/jsx/social/Chat/Chat.mocks.d.ts +15 -2
  332. package/jsx/social/Chat/Chat.mocks.d.ts.map +1 -1
  333. package/jsx/social/Chat/Chat.mocks.js +5 -6
  334. package/jsx/social/Chat/Chat.mocks.js.map +1 -1
  335. package/jsx/social/Chat/Chat.stories.d.ts.map +1 -1
  336. package/jsx/social/Chat/Chat.stories.jsx +91 -11
  337. package/jsx/social/Chat/Chat.stories.jsx.map +1 -1
  338. package/jsx/social/Email/Email.mocks.d.ts +70 -9
  339. package/jsx/social/Email/Email.mocks.d.ts.map +1 -1
  340. package/jsx/social/Email/Email.mocks.jsx +386 -55
  341. package/jsx/social/Email/Email.mocks.jsx.map +1 -1
  342. package/jsx/social/Email/Email.stories.d.ts +50 -11
  343. package/jsx/social/Email/Email.stories.d.ts.map +1 -1
  344. package/jsx/social/Email/Email.stories.jsx +851 -323
  345. package/jsx/social/Email/Email.stories.jsx.map +1 -1
  346. package/jsx/social/Email/Email.styles.d.ts +0 -1
  347. package/jsx/social/Email/Email.styles.d.ts.map +1 -1
  348. package/jsx/social/Email/Email.styles.js +0 -3
  349. package/jsx/social/Email/Email.styles.js.map +1 -1
  350. package/jsx/social/Feed/Feed.mocks.d.ts +13 -18
  351. package/jsx/social/Feed/Feed.mocks.d.ts.map +1 -1
  352. package/jsx/social/Feed/Feed.mocks.jsx +10 -5
  353. package/jsx/social/Feed/Feed.mocks.jsx.map +1 -1
  354. package/jsx/social/Feed/Feed.stories.d.ts +3 -2
  355. package/jsx/social/Feed/Feed.stories.d.ts.map +1 -1
  356. package/jsx/social/Feed/Feed.stories.jsx +12 -7
  357. package/jsx/social/Feed/Feed.stories.jsx.map +1 -1
  358. package/jsx/social/Feed/FeedNewPost.stories.d.ts.map +1 -1
  359. package/jsx/social/Feed/FeedNewPost.stories.jsx +4 -3
  360. package/jsx/social/Feed/FeedNewPost.stories.jsx.map +1 -1
  361. package/jsx/social/Feed/FeedPost.stories.d.ts.map +1 -1
  362. package/jsx/social/Feed/FeedPost.stories.jsx +12 -11
  363. package/jsx/social/Feed/FeedPost.stories.jsx.map +1 -1
  364. package/jsx/social/Feed/FeedReply.stories.d.ts +1 -1
  365. package/jsx/social/Feed/FeedReply.stories.d.ts.map +1 -1
  366. package/jsx/social/Feed/FeedReply.stories.jsx +7 -7
  367. package/jsx/social/Feed/FeedReply.stories.jsx.map +1 -1
  368. package/jsx/social/Feed/FeedReplyInput.stories.d.ts.map +1 -1
  369. package/jsx/social/Feed/FeedReplyInput.stories.jsx +4 -3
  370. package/jsx/social/Feed/FeedReplyInput.stories.jsx.map +1 -1
  371. package/jsx/tools/Clipboard/Clipboard.mocks.d.ts +6 -0
  372. package/jsx/tools/Clipboard/Clipboard.mocks.d.ts.map +1 -0
  373. package/jsx/tools/Clipboard/Clipboard.mocks.jsx +81 -0
  374. package/jsx/tools/Clipboard/Clipboard.mocks.jsx.map +1 -0
  375. package/jsx/tools/Clipboard/Clipboard.stories.d.ts +6 -0
  376. package/jsx/tools/Clipboard/Clipboard.stories.d.ts.map +1 -0
  377. package/jsx/tools/Clipboard/Clipboard.stories.jsx +69 -0
  378. package/jsx/tools/Clipboard/Clipboard.stories.jsx.map +1 -0
  379. package/jsx/tools/DevTools/DevTools.mocks.d.ts +3 -0
  380. package/jsx/tools/DevTools/DevTools.mocks.d.ts.map +1 -0
  381. package/jsx/tools/DevTools/DevTools.mocks.js +3 -0
  382. package/jsx/tools/DevTools/DevTools.mocks.js.map +1 -0
  383. package/jsx/tools/DevTools/DevTools.stories.d.ts +10 -0
  384. package/jsx/tools/DevTools/DevTools.stories.d.ts.map +1 -0
  385. package/jsx/tools/DevTools/DevTools.stories.jsx +35 -0
  386. package/jsx/tools/DevTools/DevTools.stories.jsx.map +1 -0
  387. package/jsx/tools/PreviewShell/PreviewShell.mocks.d.ts +9 -0
  388. package/jsx/tools/PreviewShell/PreviewShell.mocks.d.ts.map +1 -0
  389. package/jsx/tools/PreviewShell/PreviewShell.mocks.jsx +58 -0
  390. package/jsx/tools/PreviewShell/PreviewShell.mocks.jsx.map +1 -0
  391. package/jsx/tools/PreviewShell/PreviewShell.stories.d.ts +16 -0
  392. package/jsx/tools/PreviewShell/PreviewShell.stories.d.ts.map +1 -0
  393. package/jsx/tools/PreviewShell/PreviewShell.stories.jsx +153 -0
  394. package/jsx/tools/PreviewShell/PreviewShell.stories.jsx.map +1 -0
  395. package/jsx/tools/PreviewShell/PreviewShell.styles.d.ts +3 -0
  396. package/jsx/tools/PreviewShell/PreviewShell.styles.d.ts.map +1 -0
  397. package/jsx/tools/PreviewShell/PreviewShell.styles.js +7 -0
  398. package/jsx/tools/PreviewShell/PreviewShell.styles.js.map +1 -0
  399. package/jsx/work/AppAnnouncement/AppAnnouncement.stories.d.ts.map +1 -1
  400. package/jsx/work/AppAnnouncement/AppAnnouncement.stories.jsx +5 -4
  401. package/jsx/work/AppAnnouncement/AppAnnouncement.stories.jsx.map +1 -1
  402. package/jsx/work/CaseView/Attachments.mocks.jsx +5 -6
  403. package/jsx/work/CaseView/Attachments.mocks.jsx.map +1 -1
  404. package/jsx/work/CaseView/CaseView.mocks.d.ts +72 -2
  405. package/jsx/work/CaseView/CaseView.mocks.d.ts.map +1 -1
  406. package/jsx/work/CaseView/CaseView.mocks.jsx +201 -11
  407. package/jsx/work/CaseView/CaseView.mocks.jsx.map +1 -1
  408. package/jsx/work/CaseView/CaseView.stories.d.ts +4 -22
  409. package/jsx/work/CaseView/CaseView.stories.d.ts.map +1 -1
  410. package/jsx/work/CaseView/CaseView.stories.jsx +55 -230
  411. package/jsx/work/CaseView/CaseView.stories.jsx.map +1 -1
  412. package/jsx/work/CaseView/Pulse.mocks.d.ts +4 -3
  413. package/jsx/work/CaseView/Pulse.mocks.d.ts.map +1 -1
  414. package/jsx/work/CaseView/Pulse.mocks.jsx +2 -2
  415. package/jsx/work/CaseView/Pulse.mocks.jsx.map +1 -1
  416. package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts.map +1 -1
  417. package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.jsx +1 -0
  418. package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.jsx.map +1 -1
  419. package/jsx/work/Confirmation/Confirmation.stories.d.ts +3 -0
  420. package/jsx/work/Confirmation/Confirmation.stories.d.ts.map +1 -1
  421. package/jsx/work/Confirmation/Confirmation.stories.jsx +12 -8
  422. package/jsx/work/Confirmation/Confirmation.stories.jsx.map +1 -1
  423. package/jsx/work/Details/Details.stories.d.ts.map +1 -1
  424. package/jsx/work/Details/Details.stories.jsx +67 -64
  425. package/jsx/work/Details/Details.stories.jsx.map +1 -1
  426. package/jsx/work/SearchResults/SearchResults.mocks.d.ts +6 -0
  427. package/jsx/work/SearchResults/SearchResults.mocks.d.ts.map +1 -1
  428. package/jsx/work/SearchResults/SearchResults.mocks.jsx +39 -38
  429. package/jsx/work/SearchResults/SearchResults.mocks.jsx.map +1 -1
  430. package/jsx/work/SearchResults/SearchResults.stories.d.ts +1 -0
  431. package/jsx/work/SearchResults/SearchResults.stories.d.ts.map +1 -1
  432. package/jsx/work/SearchResults/SearchResults.stories.jsx +74 -44
  433. package/jsx/work/SearchResults/SearchResults.stories.jsx.map +1 -1
  434. package/jsx/work/Stages/Stages.mocks.d.ts +14 -0
  435. package/jsx/work/Stages/Stages.mocks.d.ts.map +1 -0
  436. package/jsx/work/Stages/Stages.mocks.jsx +40 -0
  437. package/jsx/work/Stages/Stages.mocks.jsx.map +1 -0
  438. package/jsx/work/Stages/Stages.stories.d.ts +1 -1
  439. package/jsx/work/Stages/Stages.stories.d.ts.map +1 -1
  440. package/jsx/work/Stages/Stages.stories.jsx +12 -46
  441. package/jsx/work/Stages/Stages.stories.jsx.map +1 -1
  442. package/jsx/work/Stakeholders/Stakeholders.stories.d.ts.map +1 -1
  443. package/jsx/work/Stakeholders/Stakeholders.stories.jsx +1 -0
  444. package/jsx/work/Stakeholders/Stakeholders.stories.jsx.map +1 -1
  445. package/jsx/work/Tasks/TaskList.stories.d.ts.map +1 -1
  446. package/jsx/work/Tasks/TaskList.stories.jsx +3 -1
  447. package/jsx/work/Tasks/TaskList.stories.jsx.map +1 -1
  448. package/jsx/work/Tasks/Tasks.stories.d.ts +4 -0
  449. package/jsx/work/Tasks/Tasks.stories.d.ts.map +1 -1
  450. package/jsx/work/Tasks/Tasks.stories.jsx +20 -10
  451. package/jsx/work/Tasks/Tasks.stories.jsx.map +1 -1
  452. package/jsx/work/Timeline/Timeline.stories.d.ts.map +1 -1
  453. package/jsx/work/Timeline/Timeline.stories.jsx +2 -1
  454. package/jsx/work/Timeline/Timeline.stories.jsx.map +1 -1
  455. package/jsx/wss/AppShell/AppShell.mocks.d.ts +35 -0
  456. package/jsx/wss/AppShell/AppShell.mocks.d.ts.map +1 -0
  457. package/jsx/wss/AppShell/AppShell.mocks.jsx +75 -0
  458. package/jsx/wss/AppShell/AppShell.mocks.jsx.map +1 -0
  459. package/jsx/wss/AppShell/AppShell.stories.d.ts +19 -0
  460. package/jsx/wss/AppShell/AppShell.stories.d.ts.map +1 -0
  461. package/jsx/wss/AppShell/AppShell.stories.jsx +68 -0
  462. package/jsx/wss/AppShell/AppShell.stories.jsx.map +1 -0
  463. package/jsx/wss/AppShell/AppShell.styles.d.ts +2 -0
  464. package/jsx/wss/AppShell/AppShell.styles.d.ts.map +1 -0
  465. package/jsx/wss/AppShell/AppShell.styles.js +5 -0
  466. package/jsx/wss/AppShell/AppShell.styles.js.map +1 -0
  467. package/jsx/wss/CaseView/CaseView.mocks.d.ts +13 -0
  468. package/jsx/wss/CaseView/CaseView.mocks.d.ts.map +1 -0
  469. package/jsx/wss/CaseView/CaseView.mocks.jsx +34 -0
  470. package/jsx/wss/CaseView/CaseView.mocks.jsx.map +1 -0
  471. package/jsx/wss/CaseView/CaseView.stories.d.ts +12 -0
  472. package/jsx/wss/CaseView/CaseView.stories.d.ts.map +1 -0
  473. package/jsx/wss/CaseView/CaseView.stories.jsx +69 -0
  474. package/jsx/wss/CaseView/CaseView.stories.jsx.map +1 -0
  475. package/jsx/wss/PageTemplates/PageTemplates.stories.d.ts +15 -0
  476. package/jsx/wss/PageTemplates/PageTemplates.stories.d.ts.map +1 -0
  477. package/jsx/wss/PageTemplates/PageTemplates.stories.jsx +48 -0
  478. package/jsx/wss/PageTemplates/PageTemplates.stories.jsx.map +1 -0
  479. package/jsx/wss/QuickCreate/QuickCreate.stories.d.ts +10 -0
  480. package/jsx/wss/QuickCreate/QuickCreate.stories.d.ts.map +1 -0
  481. package/jsx/wss/QuickCreate/QuickCreate.stories.jsx +37 -0
  482. package/jsx/wss/QuickCreate/QuickCreate.stories.jsx.map +1 -0
  483. package/lib/build/AppHeader/AppHeader.stories.d.ts +1 -1
  484. package/lib/build/AppHeader/AppHeader.stories.d.ts.map +1 -1
  485. package/lib/build/AppHeader/AppHeader.stories.js +100 -81
  486. package/lib/build/AppHeader/AppHeader.stories.js.map +1 -1
  487. package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts +1 -1
  488. package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts.map +1 -1
  489. package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.js +22 -1
  490. package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.js.map +1 -1
  491. package/lib/build/ExpressionBuilder/ExpressionBuilder.mocks.d.ts +60 -0
  492. package/lib/build/ExpressionBuilder/ExpressionBuilder.mocks.d.ts.map +1 -0
  493. package/lib/build/ExpressionBuilder/ExpressionBuilder.mocks.js +524 -0
  494. package/lib/build/ExpressionBuilder/ExpressionBuilder.mocks.js.map +1 -0
  495. package/lib/build/ExpressionBuilder/ExpressionBuilder.stories.d.ts +26 -0
  496. package/lib/build/ExpressionBuilder/ExpressionBuilder.stories.d.ts.map +1 -0
  497. package/lib/build/ExpressionBuilder/ExpressionBuilder.stories.js +336 -0
  498. package/lib/build/ExpressionBuilder/ExpressionBuilder.stories.js.map +1 -0
  499. package/lib/build/FlowModeller/AddNodeUtils.mocks.d.ts +4 -4
  500. package/lib/build/FlowModeller/AddNodeUtils.mocks.d.ts.map +1 -1
  501. package/lib/build/FlowModeller/AddNodeUtils.mocks.js.map +1 -1
  502. package/lib/build/FlowModeller/FlowModeller.mocks.d.ts +4 -2
  503. package/lib/build/FlowModeller/FlowModeller.mocks.d.ts.map +1 -1
  504. package/lib/build/FlowModeller/FlowModeller.mocks.js +117 -31
  505. package/lib/build/FlowModeller/FlowModeller.mocks.js.map +1 -1
  506. package/lib/build/FlowModeller/FlowModeller.stories.d.ts +7 -2
  507. package/lib/build/FlowModeller/FlowModeller.stories.d.ts.map +1 -1
  508. package/lib/build/FlowModeller/FlowModeller.stories.js +244 -64
  509. package/lib/build/FlowModeller/FlowModeller.stories.js.map +1 -1
  510. package/lib/build/LifeCycle/LifeCycle.mocks.d.ts.map +1 -1
  511. package/lib/build/LifeCycle/LifeCycle.mocks.js +40 -0
  512. package/lib/build/LifeCycle/LifeCycle.mocks.js.map +1 -1
  513. package/lib/build/ObjectSelect/ObjectSelect.mocks.d.ts +25 -8
  514. package/lib/build/ObjectSelect/ObjectSelect.mocks.d.ts.map +1 -1
  515. package/lib/build/ObjectSelect/ObjectSelect.mocks.js +122 -61
  516. package/lib/build/ObjectSelect/ObjectSelect.mocks.js.map +1 -1
  517. package/lib/build/ObjectSelect/ObjectSelect.stories.d.ts.map +1 -1
  518. package/lib/build/ObjectSelect/ObjectSelect.stories.js +116 -25
  519. package/lib/build/ObjectSelect/ObjectSelect.stories.js.map +1 -1
  520. package/lib/build/PageTemplates/PageTemplates.mocks.d.ts.map +1 -1
  521. package/lib/build/PageTemplates/PageTemplates.mocks.js +4 -4
  522. package/lib/build/PageTemplates/PageTemplates.mocks.js.map +1 -1
  523. package/lib/build/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
  524. package/lib/build/PageTemplates/PageTemplates.stories.js +3 -3
  525. package/lib/build/PageTemplates/PageTemplates.stories.js.map +1 -1
  526. package/lib/build/Workbench/Workbench.stories.d.ts +1 -0
  527. package/lib/build/Workbench/Workbench.stories.d.ts.map +1 -1
  528. package/lib/build/Workbench/Workbench.stories.js +196 -4
  529. package/lib/build/Workbench/Workbench.stories.js.map +1 -1
  530. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.mocks.d.ts +1 -1
  531. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.mocks.d.ts.map +1 -1
  532. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.mocks.js +3 -1
  533. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.mocks.js.map +1 -1
  534. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts +2 -1
  535. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts.map +1 -1
  536. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.js +29 -15
  537. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.js.map +1 -1
  538. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.styles.d.ts +1 -1
  539. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.styles.d.ts.map +1 -1
  540. package/lib/condition-builder/ConditionBuilder/props.mock.d.ts.map +1 -1
  541. package/lib/condition-builder/ConditionBuilder/props.mock.js +132 -31
  542. package/lib/condition-builder/ConditionBuilder/props.mock.js.map +1 -1
  543. package/lib/condition-builder/ConditionInput/ConditionInput.stories.d.ts +10 -0
  544. package/lib/condition-builder/ConditionInput/ConditionInput.stories.d.ts.map +1 -0
  545. package/lib/condition-builder/ConditionInput/ConditionInput.stories.js +41 -0
  546. package/lib/condition-builder/ConditionInput/ConditionInput.stories.js.map +1 -0
  547. package/lib/condition-builder/PromotedFilters/PromotedFilters.mocks.d.ts +4 -0
  548. package/lib/condition-builder/PromotedFilters/PromotedFilters.mocks.d.ts.map +1 -0
  549. package/lib/condition-builder/PromotedFilters/PromotedFilters.mocks.js +181 -0
  550. package/lib/condition-builder/PromotedFilters/PromotedFilters.mocks.js.map +1 -0
  551. package/lib/condition-builder/PromotedFilters/PromotedFilters.stories.d.ts +8 -0
  552. package/lib/condition-builder/PromotedFilters/PromotedFilters.stories.d.ts.map +1 -0
  553. package/lib/condition-builder/PromotedFilters/PromotedFilters.stories.js +24 -0
  554. package/lib/condition-builder/PromotedFilters/PromotedFilters.stories.js.map +1 -0
  555. package/lib/condition-builder/PromotedFilters/PromotedFilters.styles.d.ts +9 -0
  556. package/lib/condition-builder/PromotedFilters/PromotedFilters.styles.d.ts.map +1 -0
  557. package/lib/condition-builder/PromotedFilters/PromotedFilters.styles.js +35 -0
  558. package/lib/condition-builder/PromotedFilters/PromotedFilters.styles.js.map +1 -0
  559. package/lib/core/AdditionalInfo/AdditionalInfo.stories.d.ts +9 -0
  560. package/lib/core/AdditionalInfo/AdditionalInfo.stories.d.ts.map +1 -0
  561. package/lib/core/AdditionalInfo/AdditionalInfo.stories.js +16 -0
  562. package/lib/core/AdditionalInfo/AdditionalInfo.stories.js.map +1 -0
  563. package/lib/core/AppShell/AppShell.mocks.d.ts +1 -1
  564. package/lib/core/AppShell/AppShell.mocks.js +5 -5
  565. package/lib/core/AppShell/AppShell.mocks.js.map +1 -1
  566. package/lib/core/AppShell/AppShell.stories.d.ts +2 -0
  567. package/lib/core/AppShell/AppShell.stories.d.ts.map +1 -1
  568. package/lib/core/AppShell/AppShell.stories.js +47 -13
  569. package/lib/core/AppShell/AppShell.stories.js.map +1 -1
  570. package/lib/core/Banner/Banner.stories.d.ts +0 -1
  571. package/lib/core/Banner/Banner.stories.d.ts.map +1 -1
  572. package/lib/core/Banner/Banner.stories.js +2 -13
  573. package/lib/core/Banner/Banner.stories.js.map +1 -1
  574. package/lib/core/Checkbox/Checkbox.stories.d.ts +6 -2
  575. package/lib/core/Checkbox/Checkbox.stories.d.ts.map +1 -1
  576. package/lib/core/Checkbox/Checkbox.stories.js +26 -7
  577. package/lib/core/Checkbox/Checkbox.stories.js.map +1 -1
  578. package/lib/core/CheckboxGroup/CheckboxGroup.stories.d.ts +6 -2
  579. package/lib/core/CheckboxGroup/CheckboxGroup.stories.d.ts.map +1 -1
  580. package/lib/core/CheckboxGroup/CheckboxGroup.stories.js +40 -4
  581. package/lib/core/CheckboxGroup/CheckboxGroup.stories.js.map +1 -1
  582. package/lib/core/ColorPicker/ColorPicker.stories.d.ts +4 -1
  583. package/lib/core/ColorPicker/ColorPicker.stories.d.ts.map +1 -1
  584. package/lib/core/ColorPicker/ColorPicker.stories.js +10 -3
  585. package/lib/core/ColorPicker/ColorPicker.stories.js.map +1 -1
  586. package/lib/core/ComboBox/ComboBox.stories.d.ts +1 -0
  587. package/lib/core/ComboBox/ComboBox.stories.d.ts.map +1 -1
  588. package/lib/core/ComboBox/ComboBox.stories.js +40 -8
  589. package/lib/core/ComboBox/ComboBox.stories.js.map +1 -1
  590. package/lib/core/CompositeInput/CompositeInput.mocks.d.ts +8 -0
  591. package/lib/core/CompositeInput/CompositeInput.mocks.d.ts.map +1 -0
  592. package/lib/core/CompositeInput/CompositeInput.mocks.js +6 -0
  593. package/lib/core/CompositeInput/CompositeInput.mocks.js.map +1 -0
  594. package/lib/core/CompositeInput/CompositeInput.stories.d.ts +9 -0
  595. package/lib/core/CompositeInput/CompositeInput.stories.d.ts.map +1 -0
  596. package/lib/core/CompositeInput/CompositeInput.stories.js +55 -0
  597. package/lib/core/CompositeInput/CompositeInput.stories.js.map +1 -0
  598. package/lib/core/CreditCard/CreditCard.stories.d.ts +4 -1
  599. package/lib/core/CreditCard/CreditCard.stories.d.ts.map +1 -1
  600. package/lib/core/CreditCard/CreditCard.stories.js +11 -4
  601. package/lib/core/CreditCard/CreditCard.stories.js.map +1 -1
  602. package/lib/core/Currency/Currency.stories.d.ts +6 -1
  603. package/lib/core/Currency/Currency.stories.d.ts.map +1 -1
  604. package/lib/core/Currency/Currency.stories.js +30 -7
  605. package/lib/core/Currency/Currency.stories.js.map +1 -1
  606. package/lib/core/DateTime/DateTime.stories.d.ts +41 -10
  607. package/lib/core/DateTime/DateTime.stories.d.ts.map +1 -1
  608. package/lib/core/DateTime/DateTime.stories.js +188 -17
  609. package/lib/core/DateTime/DateTime.stories.js.map +1 -1
  610. package/lib/core/DateTime/DateTimePicker.stories.d.ts.map +1 -1
  611. package/lib/core/DateTime/DateTimePicker.stories.js +1 -1
  612. package/lib/core/DateTime/DateTimePicker.stories.js.map +1 -1
  613. package/lib/core/Dialog/Dialog.stories.d.ts +6 -0
  614. package/lib/core/Dialog/Dialog.stories.d.ts.map +1 -0
  615. package/lib/core/Dialog/Dialog.stories.js +47 -0
  616. package/lib/core/Dialog/Dialog.stories.js.map +1 -0
  617. package/lib/core/FieldGroup/FieldGroup.stories.d.ts +2 -0
  618. package/lib/core/FieldGroup/FieldGroup.stories.d.ts.map +1 -1
  619. package/lib/core/FieldGroup/FieldGroup.stories.js +11 -3
  620. package/lib/core/FieldGroup/FieldGroup.stories.js.map +1 -1
  621. package/lib/core/FieldGroup/FieldGroupList.stories.d.ts.map +1 -1
  622. package/lib/core/FieldGroup/FieldGroupList.stories.js +4 -0
  623. package/lib/core/FieldGroup/FieldGroupList.stories.js.map +1 -1
  624. package/lib/core/FieldValueList/FieldValueList.stories.d.ts +1 -0
  625. package/lib/core/FieldValueList/FieldValueList.stories.d.ts.map +1 -1
  626. package/lib/core/FieldValueList/FieldValueList.stories.js +32 -2
  627. package/lib/core/FieldValueList/FieldValueList.stories.js.map +1 -1
  628. package/lib/core/FieldValueList/FieldValueList.styles.d.ts +2 -0
  629. package/lib/core/FieldValueList/FieldValueList.styles.d.ts.map +1 -0
  630. package/lib/core/FieldValueList/FieldValueList.styles.js +8 -0
  631. package/lib/core/FieldValueList/FieldValueList.styles.js.map +1 -0
  632. package/lib/core/File/FileDisplay.stories.d.ts.map +1 -1
  633. package/lib/core/File/FileDisplay.stories.js +10 -5
  634. package/lib/core/File/FileDisplay.stories.js.map +1 -1
  635. package/lib/core/Form/Form.mocks.d.ts +6 -0
  636. package/lib/core/Form/Form.mocks.d.ts.map +1 -1
  637. package/lib/core/Form/Form.mocks.js +28 -5
  638. package/lib/core/Form/Form.mocks.js.map +1 -1
  639. package/lib/core/Form/Form.stories.d.ts +1 -0
  640. package/lib/core/Form/Form.stories.d.ts.map +1 -1
  641. package/lib/core/Form/Form.stories.js +4 -1
  642. package/lib/core/Form/Form.stories.js.map +1 -1
  643. package/lib/core/HTML/HTML.stories.js +1 -1
  644. package/lib/core/HTML/HTML.stories.js.map +1 -1
  645. package/lib/core/Icon/Icon.stories.js.map +1 -1
  646. package/lib/core/IconPicker/IconPicker.stories.d.ts.map +1 -1
  647. package/lib/core/IconPicker/IconPicker.stories.js +6 -9
  648. package/lib/core/IconPicker/IconPicker.stories.js.map +1 -1
  649. package/lib/core/Input/Input.stories.d.ts +2 -0
  650. package/lib/core/Input/Input.stories.d.ts.map +1 -1
  651. package/lib/core/Input/Input.stories.js +78 -2
  652. package/lib/core/Input/Input.stories.js.map +1 -1
  653. package/lib/core/Lightbox/Lightbox.stories.js +1 -1
  654. package/lib/core/Lightbox/Lightbox.stories.js.map +1 -1
  655. package/lib/core/Link/Link.stories.d.ts +1 -0
  656. package/lib/core/Link/Link.stories.d.ts.map +1 -1
  657. package/lib/core/Link/Link.stories.js +5 -1
  658. package/lib/core/Link/Link.stories.js.map +1 -1
  659. package/lib/core/ListToolbar/ListToolbar.stories.d.ts +7 -1
  660. package/lib/core/ListToolbar/ListToolbar.stories.d.ts.map +1 -1
  661. package/lib/core/ListToolbar/ListToolbar.stories.js +21 -6
  662. package/lib/core/ListToolbar/ListToolbar.stories.js.map +1 -1
  663. package/lib/core/Location/Location.stories.d.ts +4 -1
  664. package/lib/core/Location/Location.stories.d.ts.map +1 -1
  665. package/lib/core/Location/Location.stories.js +13 -6
  666. package/lib/core/Location/Location.stories.js.map +1 -1
  667. package/lib/core/Location/locationTestUtils.d.ts +3 -0
  668. package/lib/core/Location/locationTestUtils.d.ts.map +1 -0
  669. package/lib/core/Location/locationTestUtils.js +30 -0
  670. package/lib/core/Location/locationTestUtils.js.map +1 -0
  671. package/lib/core/Menu/Menu.stories.d.ts.map +1 -1
  672. package/lib/core/Menu/Menu.stories.js +7 -6
  673. package/lib/core/Menu/Menu.stories.js.map +1 -1
  674. package/lib/core/Modal/Modal.stories.d.ts +10 -1
  675. package/lib/core/Modal/Modal.stories.d.ts.map +1 -1
  676. package/lib/core/Modal/Modal.stories.js +49 -26
  677. package/lib/core/Modal/Modal.stories.js.map +1 -1
  678. package/lib/core/MultiStepForm/MultiStepForm.mocks.d.ts +34 -0
  679. package/lib/core/MultiStepForm/MultiStepForm.mocks.d.ts.map +1 -0
  680. package/lib/core/MultiStepForm/MultiStepForm.mocks.js +75 -0
  681. package/lib/core/MultiStepForm/MultiStepForm.mocks.js.map +1 -0
  682. package/lib/core/{MultiStep/MultiStep.stories.d.ts → MultiStepForm/MultiStepForm.stories.d.ts} +2 -2
  683. package/lib/core/MultiStepForm/MultiStepForm.stories.d.ts.map +1 -0
  684. package/lib/core/MultiStepForm/MultiStepForm.stories.js +187 -0
  685. package/lib/core/MultiStepForm/MultiStepForm.stories.js.map +1 -0
  686. package/lib/core/Number/Number.stories.d.ts +5 -2
  687. package/lib/core/Number/Number.stories.d.ts.map +1 -1
  688. package/lib/core/Number/Number.stories.js +204 -24
  689. package/lib/core/Number/Number.stories.js.map +1 -1
  690. package/lib/core/PageTemplates/PageTemplates.mocks.d.ts +1 -1
  691. package/lib/core/PageTemplates/PageTemplates.mocks.d.ts.map +1 -1
  692. package/lib/core/Phone/Phone.stories.d.ts +4 -1
  693. package/lib/core/Phone/Phone.stories.d.ts.map +1 -1
  694. package/lib/core/Phone/Phone.stories.js +10 -3
  695. package/lib/core/Phone/Phone.stories.js.map +1 -1
  696. package/lib/core/Popover/Popover.stories.js +1 -1
  697. package/lib/core/Popover/Popover.stories.js.map +1 -1
  698. package/lib/core/RadioButton/RadioButton.stories.d.ts +6 -2
  699. package/lib/core/RadioButton/RadioButton.stories.d.ts.map +1 -1
  700. package/lib/core/RadioButton/RadioButton.stories.js +22 -5
  701. package/lib/core/RadioButton/RadioButton.stories.js.map +1 -1
  702. package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts +6 -2
  703. package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts.map +1 -1
  704. package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.js +40 -4
  705. package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.js.map +1 -1
  706. package/lib/core/SearchInput/SearchInput.mocks.d.ts +12 -0
  707. package/lib/core/SearchInput/SearchInput.mocks.d.ts.map +1 -0
  708. package/lib/core/SearchInput/SearchInput.mocks.js +25 -0
  709. package/lib/core/SearchInput/SearchInput.mocks.js.map +1 -0
  710. package/lib/core/SearchInput/SearchInput.stories.d.ts +1 -4
  711. package/lib/core/SearchInput/SearchInput.stories.d.ts.map +1 -1
  712. package/lib/core/SearchInput/SearchInput.stories.js +29 -15
  713. package/lib/core/SearchInput/SearchInput.stories.js.map +1 -1
  714. package/lib/core/Select/Select.stories.d.ts +1 -0
  715. package/lib/core/Select/Select.stories.d.ts.map +1 -1
  716. package/lib/core/Select/Select.stories.js +10 -3
  717. package/lib/core/Select/Select.stories.js.map +1 -1
  718. package/lib/core/SkipLinks/SkipLinks.stories.d.ts +6 -0
  719. package/lib/core/SkipLinks/SkipLinks.stories.d.ts.map +1 -0
  720. package/lib/core/SkipLinks/SkipLinks.stories.js +28 -0
  721. package/lib/core/SkipLinks/SkipLinks.stories.js.map +1 -0
  722. package/lib/core/SkipLinks/SkipLinks.styles.d.ts +2 -0
  723. package/lib/core/SkipLinks/SkipLinks.styles.d.ts.map +1 -0
  724. package/lib/core/SkipLinks/SkipLinks.styles.js +16 -0
  725. package/lib/core/SkipLinks/SkipLinks.styles.js.map +1 -0
  726. package/lib/core/SummaryList/SummaryList.stories.d.ts.map +1 -1
  727. package/lib/core/SummaryList/SummaryList.stories.js +4 -4
  728. package/lib/core/SummaryList/SummaryList.stories.js.map +1 -1
  729. package/lib/core/Tabs/Tabs.stories.js +1 -1
  730. package/lib/core/Tabs/Tabs.stories.js.map +1 -1
  731. package/lib/core/TextArea/TextArea.stories.d.ts +4 -1
  732. package/lib/core/TextArea/TextArea.stories.d.ts.map +1 -1
  733. package/lib/core/TextArea/TextArea.stories.js +10 -3
  734. package/lib/core/TextArea/TextArea.stories.js.map +1 -1
  735. package/lib/core/Toaster/Toaster.stories.js +3 -3
  736. package/lib/core/Toaster/Toaster.stories.js.map +1 -1
  737. package/lib/core/Tree/Tree.mocks.d.ts +1 -1
  738. package/lib/core/Tree/Tree.mocks.d.ts.map +1 -1
  739. package/lib/core/Tree/Tree.stories.d.ts.map +1 -1
  740. package/lib/core/Tree/Tree.stories.js +16 -0
  741. package/lib/core/Tree/Tree.stories.js.map +1 -1
  742. package/lib/cs/ArticleList/ArticleList.stories.d.ts.map +1 -1
  743. package/lib/cs/ArticleList/ArticleList.stories.js +1 -1
  744. package/lib/cs/ArticleList/ArticleList.stories.js.map +1 -1
  745. package/lib/cs/CallControlPanel/CallControlPanel.mocks.d.ts +7 -2
  746. package/lib/cs/CallControlPanel/CallControlPanel.mocks.d.ts.map +1 -1
  747. package/lib/cs/CallControlPanel/CallControlPanel.mocks.js +151 -9
  748. package/lib/cs/CallControlPanel/CallControlPanel.mocks.js.map +1 -1
  749. package/lib/cs/CallControlPanel/CallControlPanel.stories.d.ts +5 -2
  750. package/lib/cs/CallControlPanel/CallControlPanel.stories.d.ts.map +1 -1
  751. package/lib/cs/CallControlPanel/CallControlPanel.stories.js +208 -94
  752. package/lib/cs/CallControlPanel/CallControlPanel.stories.js.map +1 -1
  753. package/lib/cs/IntelligentGuidance/IntelligentGuidance.stories.js +2 -2
  754. package/lib/cs/IntelligentGuidance/IntelligentGuidance.stories.js.map +1 -1
  755. package/lib/cs/InteractionNotification/InteractionNotification.stories.d.ts +1 -0
  756. package/lib/cs/InteractionNotification/InteractionNotification.stories.d.ts.map +1 -1
  757. package/lib/cs/InteractionNotification/InteractionNotification.stories.js +24 -22
  758. package/lib/cs/InteractionNotification/InteractionNotification.stories.js.map +1 -1
  759. package/lib/cs/InteractionTimer/InteractionTimer.mocks.js +5 -5
  760. package/lib/cs/InteractionTimer/InteractionTimer.mocks.js.map +1 -1
  761. package/lib/cs/InteractionTimer/InteractionTimer.stories.d.ts +1 -0
  762. package/lib/cs/InteractionTimer/InteractionTimer.stories.d.ts.map +1 -1
  763. package/lib/cs/InteractionTimer/InteractionTimer.stories.js +33 -14
  764. package/lib/cs/InteractionTimer/InteractionTimer.stories.js.map +1 -1
  765. package/lib/cs/TaskManager/TaskManager.mocks.d.ts +12 -0
  766. package/lib/cs/TaskManager/TaskManager.mocks.d.ts.map +1 -1
  767. package/lib/cs/TaskManager/TaskManager.mocks.js +86 -0
  768. package/lib/cs/TaskManager/TaskManager.mocks.js.map +1 -1
  769. package/lib/cs/TaskManager/TaskManager.stories.d.ts +2 -1
  770. package/lib/cs/TaskManager/TaskManager.stories.d.ts.map +1 -1
  771. package/lib/cs/TaskManager/TaskManager.stories.js +103 -25
  772. package/lib/cs/TaskManager/TaskManager.stories.js.map +1 -1
  773. package/lib/cs/TaskManager/TaskManager.styles.js +2 -1
  774. package/lib/cs/TaskManager/TaskManager.styles.js.map +1 -1
  775. package/lib/dnd/StandardDragDropList/Demo.d.ts +7 -0
  776. package/lib/dnd/StandardDragDropList/Demo.d.ts.map +1 -0
  777. package/lib/dnd/StandardDragDropList/Demo.js +151 -0
  778. package/lib/dnd/StandardDragDropList/Demo.js.map +1 -0
  779. package/lib/dnd/StandardDragDropList/GroupConfig.d.ts +10 -0
  780. package/lib/dnd/StandardDragDropList/GroupConfig.d.ts.map +1 -0
  781. package/lib/dnd/StandardDragDropList/GroupConfig.js +18 -0
  782. package/lib/dnd/StandardDragDropList/GroupConfig.js.map +1 -0
  783. package/lib/dnd/StandardDragDropList/ItemConfig.d.ts +12 -0
  784. package/lib/dnd/StandardDragDropList/ItemConfig.d.ts.map +1 -0
  785. package/lib/dnd/StandardDragDropList/ItemConfig.js +20 -0
  786. package/lib/dnd/StandardDragDropList/ItemConfig.js.map +1 -0
  787. package/lib/dnd/StandardDragDropList/Popover.d.ts +14 -0
  788. package/lib/dnd/StandardDragDropList/Popover.d.ts.map +1 -0
  789. package/lib/dnd/StandardDragDropList/Popover.js +33 -0
  790. package/lib/dnd/StandardDragDropList/Popover.js.map +1 -0
  791. package/lib/dnd/StandardDragDropList/SelectionMenu.d.ts +16 -0
  792. package/lib/dnd/StandardDragDropList/SelectionMenu.d.ts.map +1 -0
  793. package/lib/dnd/StandardDragDropList/SelectionMenu.js +100 -0
  794. package/lib/dnd/StandardDragDropList/SelectionMenu.js.map +1 -0
  795. package/lib/dnd/StandardDragDropList/StandardDragDropList.stories.d.ts +5 -0
  796. package/lib/dnd/StandardDragDropList/StandardDragDropList.stories.d.ts.map +1 -0
  797. package/lib/dnd/StandardDragDropList/StandardDragDropList.stories.js +13 -0
  798. package/lib/dnd/StandardDragDropList/StandardDragDropList.stories.js.map +1 -0
  799. package/lib/dnd/StandardDragDropList/mockData.d.ts +26 -0
  800. package/lib/dnd/StandardDragDropList/mockData.d.ts.map +1 -0
  801. package/lib/dnd/StandardDragDropList/mockData.js +78 -0
  802. package/lib/dnd/StandardDragDropList/mockData.js.map +1 -0
  803. package/lib/rte/Editor/Editor.stories.d.ts.map +1 -1
  804. package/lib/rte/Editor/Editor.stories.js +1 -1
  805. package/lib/rte/Editor/Editor.stories.js.map +1 -1
  806. package/lib/rte/RichTextEditor/RichTextEditor.stories.d.ts +4 -1
  807. package/lib/rte/RichTextEditor/RichTextEditor.stories.d.ts.map +1 -1
  808. package/lib/rte/RichTextEditor/RichTextEditor.stories.js +11 -4
  809. package/lib/rte/RichTextEditor/RichTextEditor.stories.js.map +1 -1
  810. package/lib/rte/RichTextEditor/RichTextViewer.stories.d.ts.map +1 -1
  811. package/lib/rte/RichTextEditor/RichTextViewer.stories.js +2 -2
  812. package/lib/rte/RichTextEditor/RichTextViewer.stories.js.map +1 -1
  813. package/lib/social/Chat/Chat.mocks.d.ts +15 -2
  814. package/lib/social/Chat/Chat.mocks.d.ts.map +1 -1
  815. package/lib/social/Chat/Chat.mocks.js +5 -6
  816. package/lib/social/Chat/Chat.mocks.js.map +1 -1
  817. package/lib/social/Chat/Chat.stories.d.ts.map +1 -1
  818. package/lib/social/Chat/Chat.stories.js +70 -8
  819. package/lib/social/Chat/Chat.stories.js.map +1 -1
  820. package/lib/social/Email/Email.mocks.d.ts +70 -9
  821. package/lib/social/Email/Email.mocks.d.ts.map +1 -1
  822. package/lib/social/Email/Email.mocks.js +386 -55
  823. package/lib/social/Email/Email.mocks.js.map +1 -1
  824. package/lib/social/Email/Email.stories.d.ts +50 -11
  825. package/lib/social/Email/Email.stories.d.ts.map +1 -1
  826. package/lib/social/Email/Email.stories.js +822 -348
  827. package/lib/social/Email/Email.stories.js.map +1 -1
  828. package/lib/social/Email/Email.styles.d.ts +0 -1
  829. package/lib/social/Email/Email.styles.d.ts.map +1 -1
  830. package/lib/social/Email/Email.styles.js +0 -3
  831. package/lib/social/Email/Email.styles.js.map +1 -1
  832. package/lib/social/Feed/Feed.mocks.d.ts +13 -18
  833. package/lib/social/Feed/Feed.mocks.d.ts.map +1 -1
  834. package/lib/social/Feed/Feed.mocks.js +10 -5
  835. package/lib/social/Feed/Feed.mocks.js.map +1 -1
  836. package/lib/social/Feed/Feed.stories.d.ts +3 -2
  837. package/lib/social/Feed/Feed.stories.d.ts.map +1 -1
  838. package/lib/social/Feed/Feed.stories.js +12 -7
  839. package/lib/social/Feed/Feed.stories.js.map +1 -1
  840. package/lib/social/Feed/FeedNewPost.stories.d.ts.map +1 -1
  841. package/lib/social/Feed/FeedNewPost.stories.js +4 -3
  842. package/lib/social/Feed/FeedNewPost.stories.js.map +1 -1
  843. package/lib/social/Feed/FeedPost.stories.d.ts.map +1 -1
  844. package/lib/social/Feed/FeedPost.stories.js +12 -11
  845. package/lib/social/Feed/FeedPost.stories.js.map +1 -1
  846. package/lib/social/Feed/FeedReply.stories.d.ts +1 -1
  847. package/lib/social/Feed/FeedReply.stories.d.ts.map +1 -1
  848. package/lib/social/Feed/FeedReply.stories.js +7 -7
  849. package/lib/social/Feed/FeedReply.stories.js.map +1 -1
  850. package/lib/social/Feed/FeedReplyInput.stories.d.ts.map +1 -1
  851. package/lib/social/Feed/FeedReplyInput.stories.js +4 -3
  852. package/lib/social/Feed/FeedReplyInput.stories.js.map +1 -1
  853. package/lib/tools/Clipboard/Clipboard.mocks.d.ts +6 -0
  854. package/lib/tools/Clipboard/Clipboard.mocks.d.ts.map +1 -0
  855. package/lib/tools/Clipboard/Clipboard.mocks.js +75 -0
  856. package/lib/tools/Clipboard/Clipboard.mocks.js.map +1 -0
  857. package/lib/tools/Clipboard/Clipboard.stories.d.ts +6 -0
  858. package/lib/tools/Clipboard/Clipboard.stories.d.ts.map +1 -0
  859. package/lib/tools/Clipboard/Clipboard.stories.js +78 -0
  860. package/lib/tools/Clipboard/Clipboard.stories.js.map +1 -0
  861. package/lib/tools/DevTools/DevTools.mocks.d.ts +3 -0
  862. package/lib/tools/DevTools/DevTools.mocks.d.ts.map +1 -0
  863. package/lib/tools/DevTools/DevTools.mocks.js +3 -0
  864. package/lib/tools/DevTools/DevTools.mocks.js.map +1 -0
  865. package/lib/tools/DevTools/DevTools.stories.d.ts +10 -0
  866. package/lib/tools/DevTools/DevTools.stories.d.ts.map +1 -0
  867. package/lib/tools/DevTools/DevTools.stories.js +31 -0
  868. package/lib/tools/DevTools/DevTools.stories.js.map +1 -0
  869. package/lib/tools/PreviewShell/PreviewShell.mocks.d.ts +9 -0
  870. package/lib/tools/PreviewShell/PreviewShell.mocks.d.ts.map +1 -0
  871. package/lib/tools/PreviewShell/PreviewShell.mocks.js +57 -0
  872. package/lib/tools/PreviewShell/PreviewShell.mocks.js.map +1 -0
  873. package/lib/tools/PreviewShell/PreviewShell.stories.d.ts +16 -0
  874. package/lib/tools/PreviewShell/PreviewShell.stories.d.ts.map +1 -0
  875. package/lib/tools/PreviewShell/PreviewShell.stories.js +154 -0
  876. package/lib/tools/PreviewShell/PreviewShell.stories.js.map +1 -0
  877. package/lib/tools/PreviewShell/PreviewShell.styles.d.ts +3 -0
  878. package/lib/tools/PreviewShell/PreviewShell.styles.d.ts.map +1 -0
  879. package/lib/tools/PreviewShell/PreviewShell.styles.js +7 -0
  880. package/lib/tools/PreviewShell/PreviewShell.styles.js.map +1 -0
  881. package/lib/work/AppAnnouncement/AppAnnouncement.stories.d.ts.map +1 -1
  882. package/lib/work/AppAnnouncement/AppAnnouncement.stories.js +5 -4
  883. package/lib/work/AppAnnouncement/AppAnnouncement.stories.js.map +1 -1
  884. package/lib/work/CaseView/Attachments.mocks.js +5 -6
  885. package/lib/work/CaseView/Attachments.mocks.js.map +1 -1
  886. package/lib/work/CaseView/CaseView.mocks.d.ts +72 -2
  887. package/lib/work/CaseView/CaseView.mocks.d.ts.map +1 -1
  888. package/lib/work/CaseView/CaseView.mocks.js +191 -11
  889. package/lib/work/CaseView/CaseView.mocks.js.map +1 -1
  890. package/lib/work/CaseView/CaseView.stories.d.ts +4 -22
  891. package/lib/work/CaseView/CaseView.stories.d.ts.map +1 -1
  892. package/lib/work/CaseView/CaseView.stories.js +50 -240
  893. package/lib/work/CaseView/CaseView.stories.js.map +1 -1
  894. package/lib/work/CaseView/Pulse.mocks.d.ts +4 -3
  895. package/lib/work/CaseView/Pulse.mocks.d.ts.map +1 -1
  896. package/lib/work/CaseView/Pulse.mocks.js +2 -2
  897. package/lib/work/CaseView/Pulse.mocks.js.map +1 -1
  898. package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts.map +1 -1
  899. package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.js +1 -0
  900. package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.js.map +1 -1
  901. package/lib/work/Confirmation/Confirmation.stories.d.ts +3 -0
  902. package/lib/work/Confirmation/Confirmation.stories.d.ts.map +1 -1
  903. package/lib/work/Confirmation/Confirmation.stories.js +12 -8
  904. package/lib/work/Confirmation/Confirmation.stories.js.map +1 -1
  905. package/lib/work/Details/Details.stories.d.ts.map +1 -1
  906. package/lib/work/Details/Details.stories.js +14 -59
  907. package/lib/work/Details/Details.stories.js.map +1 -1
  908. package/lib/work/SearchResults/SearchResults.mocks.d.ts +6 -0
  909. package/lib/work/SearchResults/SearchResults.mocks.d.ts.map +1 -1
  910. package/lib/work/SearchResults/SearchResults.mocks.js +39 -38
  911. package/lib/work/SearchResults/SearchResults.mocks.js.map +1 -1
  912. package/lib/work/SearchResults/SearchResults.stories.d.ts +1 -0
  913. package/lib/work/SearchResults/SearchResults.stories.d.ts.map +1 -1
  914. package/lib/work/SearchResults/SearchResults.stories.js +74 -44
  915. package/lib/work/SearchResults/SearchResults.stories.js.map +1 -1
  916. package/lib/work/Stages/Stages.mocks.d.ts +14 -0
  917. package/lib/work/Stages/Stages.mocks.d.ts.map +1 -0
  918. package/lib/work/Stages/Stages.mocks.js +39 -0
  919. package/lib/work/Stages/Stages.mocks.js.map +1 -0
  920. package/lib/work/Stages/Stages.stories.d.ts +1 -1
  921. package/lib/work/Stages/Stages.stories.d.ts.map +1 -1
  922. package/lib/work/Stages/Stages.stories.js +12 -44
  923. package/lib/work/Stages/Stages.stories.js.map +1 -1
  924. package/lib/work/Stakeholders/Stakeholders.stories.d.ts.map +1 -1
  925. package/lib/work/Stakeholders/Stakeholders.stories.js +1 -0
  926. package/lib/work/Stakeholders/Stakeholders.stories.js.map +1 -1
  927. package/lib/work/Tasks/TaskList.stories.d.ts.map +1 -1
  928. package/lib/work/Tasks/TaskList.stories.js +3 -1
  929. package/lib/work/Tasks/TaskList.stories.js.map +1 -1
  930. package/lib/work/Tasks/Tasks.stories.d.ts +4 -0
  931. package/lib/work/Tasks/Tasks.stories.d.ts.map +1 -1
  932. package/lib/work/Tasks/Tasks.stories.js +20 -8
  933. package/lib/work/Tasks/Tasks.stories.js.map +1 -1
  934. package/lib/work/Timeline/Timeline.stories.d.ts.map +1 -1
  935. package/lib/work/Timeline/Timeline.stories.js +2 -1
  936. package/lib/work/Timeline/Timeline.stories.js.map +1 -1
  937. package/lib/wss/AppShell/AppShell.mocks.d.ts +35 -0
  938. package/lib/wss/AppShell/AppShell.mocks.d.ts.map +1 -0
  939. package/lib/wss/AppShell/AppShell.mocks.js +70 -0
  940. package/lib/wss/AppShell/AppShell.mocks.js.map +1 -0
  941. package/lib/wss/AppShell/AppShell.stories.d.ts +19 -0
  942. package/lib/wss/AppShell/AppShell.stories.d.ts.map +1 -0
  943. package/lib/wss/AppShell/AppShell.stories.js +70 -0
  944. package/lib/wss/AppShell/AppShell.stories.js.map +1 -0
  945. package/lib/wss/AppShell/AppShell.styles.d.ts +2 -0
  946. package/lib/wss/AppShell/AppShell.styles.d.ts.map +1 -0
  947. package/lib/wss/AppShell/AppShell.styles.js +5 -0
  948. package/lib/wss/AppShell/AppShell.styles.js.map +1 -0
  949. package/lib/wss/CaseView/CaseView.mocks.d.ts +13 -0
  950. package/lib/wss/CaseView/CaseView.mocks.d.ts.map +1 -0
  951. package/lib/wss/CaseView/CaseView.mocks.js +35 -0
  952. package/lib/wss/CaseView/CaseView.mocks.js.map +1 -0
  953. package/lib/wss/CaseView/CaseView.stories.d.ts +12 -0
  954. package/lib/wss/CaseView/CaseView.stories.d.ts.map +1 -0
  955. package/lib/wss/CaseView/CaseView.stories.js +70 -0
  956. package/lib/wss/CaseView/CaseView.stories.js.map +1 -0
  957. package/lib/wss/PageTemplates/PageTemplates.stories.d.ts +15 -0
  958. package/lib/wss/PageTemplates/PageTemplates.stories.d.ts.map +1 -0
  959. package/lib/wss/PageTemplates/PageTemplates.stories.js +41 -0
  960. package/lib/wss/PageTemplates/PageTemplates.stories.js.map +1 -0
  961. package/lib/wss/QuickCreate/QuickCreate.stories.d.ts +10 -0
  962. package/lib/wss/QuickCreate/QuickCreate.stories.d.ts.map +1 -0
  963. package/lib/wss/QuickCreate/QuickCreate.stories.js +36 -0
  964. package/lib/wss/QuickCreate/QuickCreate.stories.js.map +1 -0
  965. package/package.json +11 -12
  966. package/jsx/core/MultiStep/MultiStep.stories.d.ts.map +0 -1
  967. package/jsx/core/MultiStep/MultiStep.stories.jsx +0 -56
  968. package/jsx/core/MultiStep/MultiStep.stories.jsx.map +0 -1
  969. package/jsx/cs/CSCaseView/CSAppShell.stories.d.ts +0 -11
  970. package/jsx/cs/CSCaseView/CSAppShell.stories.d.ts.map +0 -1
  971. package/jsx/cs/CSCaseView/CSAppShell.stories.jsx +0 -248
  972. package/jsx/cs/CSCaseView/CSAppShell.stories.jsx.map +0 -1
  973. package/jsx/cs/CSCaseView/CSCaseView.mocks.d.ts +0 -66
  974. package/jsx/cs/CSCaseView/CSCaseView.mocks.d.ts.map +0 -1
  975. package/jsx/cs/CSCaseView/CSCaseView.mocks.jsx +0 -253
  976. package/jsx/cs/CSCaseView/CSCaseView.mocks.jsx.map +0 -1
  977. package/lib/core/MultiStep/MultiStep.stories.d.ts.map +0 -1
  978. package/lib/core/MultiStep/MultiStep.stories.js +0 -36
  979. package/lib/core/MultiStep/MultiStep.stories.js.map +0 -1
  980. package/lib/cs/CSCaseView/CSAppShell.stories.d.ts +0 -11
  981. package/lib/cs/CSCaseView/CSAppShell.stories.d.ts.map +0 -1
  982. package/lib/cs/CSCaseView/CSAppShell.stories.js +0 -227
  983. package/lib/cs/CSCaseView/CSAppShell.stories.js.map +0 -1
  984. package/lib/cs/CSCaseView/CSCaseView.mocks.d.ts +0 -66
  985. package/lib/cs/CSCaseView/CSCaseView.mocks.d.ts.map +0 -1
  986. package/lib/cs/CSCaseView/CSCaseView.mocks.js +0 -240
  987. package/lib/cs/CSCaseView/CSCaseView.mocks.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"AppShell.stories.js","sourceRoot":"","sources":["../../../src/core/AppShell/AppShell.stories.tsx"],"names":[],"mappings":";AACA,OAAO,EAAc,UAAU,EAAa,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAErF,OAAO,EACL,QAAQ,EAER,YAAY,EAEZ,MAAM,EACN,SAAS,EACT,IAAI,EACJ,IAAI,EACJ,YAAY,EACZ,KAAK,EACL,MAAM,EACN,MAAM,EACN,KAAK,EACL,mBAAmB,EACnB,QAAQ,EACR,cAAc,EAEd,qBAAqB,EACrB,iBAAiB,EACjB,aAAa,EACd,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,aAAa,MAAM,mEAAmE,CAAC;AACnG,OAAO,KAAK,cAAc,MAAM,oEAAoE,CAAC;AAErG,OAAO,EACL,YAAY,EACZ,kBAAkB,EAClB,oBAAoB,EACpB,cAAc,EACd,YAAY,EACb,MAAM,kBAAkB,CAAC;AAE1B,YAAY,CAAC,aAAa,EAAE,cAAc,CAAC,CAAC;AAE5C,eAAe;IACb,KAAK,EAAE,gBAAgB;IACvB,SAAS,EAAE,QAAQ;IACnB,EAAE,EAAE,WAAW;IACf,UAAU,EAAE;QACV,MAAM,EAAE,YAAY;KACrB;CACM,CAAC;AAgCV,MAAM,CAAC,MAAM,YAAY,GAA8B,CAAC,IAAwB,EAAE,EAAE;IAClF,MAAM,eAAe,GAAG,CAAC,EAAE,QAAQ,EAAwB,EAAE,EAAE;QAC7D,MAAM,EAAE,YAAY,EAAE,GAAG,UAAU,CAAC,mBAAmB,CAAC,CAAC;QACzD,MAAM,EAAE,OAAO,EAAE,GAAG,UAAU,CAAC,YAAY,CAAC,CAAC;QAC7C,MAAM,EAA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E,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IACpD,oBAAoB,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IACtD,eAAe,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IACjD,YAAY,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IAC9C,cAAc,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IAChD,WAAW,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;CAC9C,CAAC;AAOF,MAAM,CAAC,MAAM,oBAAoB,GAAqC,CACpE,IAA+B,EAC/B,EAAE;IACF,OAAO,CACL,KAAC,aAAa,IACZ,KAAK,EAAE;YACL,UAAU,EAAE;gBACV,WAAW,EAAE;oBACX,GAAG,EAAE;wBACH,kBAAkB,EAAE,IAAI,CAAC,QAAQ;qBAClC;oBACD,MAAM,EAAE;wBACN,kBAAkB,EAAE,IAAI,CAAC,WAAW;qBACrC;iBACF;aACF;SACF,YAED,KAAC,YAAY,IAAC,SAAS,SAAG,GACZ,CACjB,CAAC;AACJ,CAAC,CAAC;AAEF,oBAAoB,CAAC,IAAI,GAAG;IAC1B,QAAQ,EAAE,SAAS;IACnB,WAAW,EAAE,SAAS;CACvB,CAAC;AAEF,oBAAoB,CAAC,QAAQ,GAAG;IAC9B,QAAQ,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE;IACxC,WAAW,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE;CAC5C,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\nimport { MouseEvent, useContext, FormEvent, useState, useMemo, useRef } from 'react';\n\nimport {\n AppShell,\n AppShellProps,\n AppShellList,\n DrawerItemProps,\n Button,\n DateInput,\n Grid,\n Icon,\n registerIcon,\n Input,\n Select,\n Option,\n Modal,\n ModalManagerContext,\n TextArea,\n ToasterContext,\n ForwardProps,\n useAfterInitialEffect,\n windowIsAvailable,\n Configuration\n} from '@pega/cosmos-react-core';\nimport * as bellSolidIcon from '@pega/cosmos-react-core/lib/components/Icon/icons/bell-solid.icon';\nimport * as clockSolidIcon from '@pega/cosmos-react-core/lib/components/Icon/icons/clock-solid.icon';\n\nimport {\n defaultLinks,\n defaultMainContent,\n defaultNotifications,\n defaultRecents,\n operatorData\n} from './AppShell.mocks';\n\nregisterIcon(bellSolidIcon, clockSolidIcon);\n\nexport default {\n title: 'Core/App Shell',\n component: AppShell,\n id: 'App Shell',\n parameters: {\n layout: 'fullscreen'\n }\n} as Meta;\n\ninterface AppShellStoryProps {\n /** Demo props */\n main?: AppShellProps['main'];\n appInfo?: AppShellProps['appInfo'];\n banners?: AppShellProps['banners'];\n cases?: AppShellProps['cases'];\n caseLinks?: AppShellProps['links'];\n createLinks?: any[];\n recentItems?: any[];\n utils?: AppShellProps['utils'];\n onLinkClick?: (name: string) => void;\n\n /** Storybook controls */\n appName?: AppShellProps['appInfo']['appName'];\n portalName?: AppShellProps['appInfo']['portalName'];\n href?: AppShellProps['appInfo']['href'];\n imageSrc?: AppShellProps['appInfo']['imageSrc'];\n fullImageSrc?: AppShellProps['appInfo']['fullImageSrc'];\n withSearch?: boolean;\n appHeader?: AppShellProps['appHeader'];\n environmentName?: string;\n environmentColor?: string;\n notificationsEmpty?: boolean;\n notificationsLoading?: boolean;\n casesTypesEmpty?: boolean;\n recentsEmpty?: boolean;\n recentsLoading?: boolean;\n pinsLoading?: boolean;\n}\n\nexport const AppShellDemo: Story<AppShellStoryProps> = (args: AppShellStoryProps) => {\n const CreateCaseModal = ({ caseType }: { caseType: string }) => {\n const { ModalContext } = useContext(ModalManagerContext);\n const { dismiss } = useContext(ModalContext);\n const { push: pushToaster } = useContext(ToasterContext);\n\n return (\n <Modal\n as='form'\n heading={`New ${caseType}`}\n actions={\n <>\n <Button onClick={dismiss}>Cancel</Button>\n <Button\n variant='primary'\n type='submit'\n onClick={(e: FormEvent) => {\n e.preventDefault();\n dismiss();\n pushToaster({ content: `${caseType} requested` });\n }}\n >\n Request\n </Button>\n </>\n }\n >\n <Grid container={{ rowGap: 2 }}>\n <DateInput label='Date Requested' info={null} />\n <Select label='Department'>\n <Option value=''>Select…</Option>\n <Option value='Fire'>Fire</Option>\n <Option value='Facilities'>Facilities</Option>\n <Option value='Parks'>Parks</Option>\n <Option value='Sanitation'>Sanitation</Option>\n <Option value='Parking &amp; Traffic'>Parking &amp; Traffic</Option>\n <Option value='Police'>Police</Option>\n <Option value='Courts'>Courts</Option>\n <Option value='Healthcare'>Healthcare</Option>\n <Option value='Energy'>Energy</Option>\n <Option value='Justice department'>Justice department</Option>\n <Option value='Environmental'>Environmental</Option>\n </Select>\n <TextArea label='Purpose of Purchase' />\n <Select label='Desired Make'>\n <Option value=''>Select...</Option>\n <Option value='Ford'>Ford</Option>\n <Option value='Dodge'>Dodge</Option>\n <Option value='Toyota'>Toyota</Option>\n <Option value='Tesla'>Tesla</Option>\n </Select>\n <Input label='Desired Make' />\n <Input\n type='number'\n min='2016'\n max='2021'\n label='Year'\n info='Must be within last 5 years'\n />\n <Input\n type='number'\n min='0.01'\n step='0.01'\n max='50000'\n label='Estimated Cost'\n info='May not exceed $50,000.00'\n />\n </Grid>\n </Modal>\n );\n };\n\n const caseLinks = args.caseLinks || defaultLinks;\n const showSearch = args.withSearch !== undefined ? args.withSearch : true;\n\n const { create: createModal } = useContext(ModalManagerContext);\n const [links, setLinks] = useState<AppShellProps['links']>(caseLinks);\n const [notifications, setNotifications] =\n useState<(DrawerItemProps & ForwardProps)[]>(defaultNotifications);\n const [recents, setRecents] = useState<(DrawerItemProps & ForwardProps)[]>(\n args.recentItems || defaultRecents\n );\n const [numNewNotifications, setNumNewNotifications] = useState(\n notifications.filter(x => x.unread).length\n );\n const [searchVal, setSearchVal] = useState('');\n\n useAfterInitialEffect(() => {\n setLinks(caseLinks);\n }, [caseLinks]);\n\n const linksWithHandlers = useMemo<AppShellProps['links']>(() => {\n return (links || []).map(link => ({\n ...link,\n onClick(e: MouseEvent<HTMLAnchorElement>) {\n e.preventDefault();\n setLinks((prevLinks = []) => {\n return prevLinks.map(prevLink => {\n return { ...link, active: prevLink.name === link.name };\n });\n });\n args.onLinkClick?.(link.name);\n }\n }));\n }, [links]);\n\n const defaultCreateLinks = ['Vehicle Purchase'].map(name => ({\n name,\n onClick: () => {\n createModal(CreateCaseModal, { caseType: name });\n }\n }));\n\n const handleNotificationClick = (passedId: string) => {\n setNotifications(cur =>\n cur.map(({ id, unread, ...item }) => ({\n id,\n unread: passedId === id ? false : unread,\n ...item\n }))\n );\n };\n\n const handlePinToggle = (passedId: string) => {\n setRecents(cur =>\n cur.map(({ id, pinned, ...item }) => ({\n id,\n pinned: passedId === id ? !pinned : pinned,\n ...item\n }))\n );\n };\n\n const notificationViewItems = [\n {\n id: '234',\n items: args.notificationsEmpty ? [] : notifications,\n loading: args.notificationsLoading,\n onItemClick: handleNotificationClick,\n viewAll: {\n href: '#'\n },\n emptyText: 'No notifications'\n }\n ];\n\n const recentViewItems = [\n {\n id: '456',\n items: recents.filter(x => x.pinned),\n loading: args.pinsLoading,\n onItemPinToggle: handlePinToggle,\n viewAll: {\n href: '#'\n },\n displayPins: true,\n headingText: 'Pinned items',\n emptyText: 'No pinned items'\n },\n {\n id: '789',\n items: args.recentsEmpty ? [] : recents,\n loading: args.recentsLoading,\n onItemPinToggle: handlePinToggle,\n viewAll: {\n href: '#'\n },\n displayPins: true,\n headingText: 'Recently viewed',\n emptyText: 'No recents'\n }\n ];\n\n const newNotificationCountTimerRef = useRef(NaN);\n\n const defaultUtils = [\n {\n name: 'Notifications',\n visual: <Icon name='bell-solid' />,\n count: args.notificationsEmpty ? 0 : numNewNotifications,\n drawerView: <AppShellList listView={notificationViewItems} />,\n onDrawerOpen: () => {\n clearInterval(newNotificationCountTimerRef.current);\n setNumNewNotifications(0);\n },\n onDrawerClose: () => {\n if (windowIsAvailable) {\n // Mock new notifications arriving on a minute interval after the drawer closes.\n // Let's face it, you're popular.\n newNotificationCountTimerRef.current = window.setInterval(() => {\n setNumNewNotifications(cur => cur + 2);\n }, 60000);\n }\n }\n },\n {\n name: 'Recents',\n visual: <Icon name='clock-solid' />,\n drawerView: <AppShellList listView={recentViewItems} />\n }\n ];\n\n return (\n <AppShell\n appInfo={\n args.appInfo || {\n href: args.href || 'https://www.pega.com/',\n imageSrc:\n args.imageSrc ||\n 'https://pbs.twimg.com/profile_images/1410341211978752004/pLYjGIa8_bigger.jpg',\n fullImageSrc:\n args.fullImageSrc ||\n 'https://www.pega.com/themes/custom/pegawww_theme/images/pega-logo.svg',\n appName: args.appName || 'Cosmos AppShell',\n portalName: args.portalName || 'Demo'\n }\n }\n searchInput={\n showSearch\n ? {\n onSearchChange: (value: string) => {\n setSearchVal(value);\n },\n value: searchVal\n }\n : undefined\n }\n appHeader={args.appHeader}\n caseTypes={args.casesTypesEmpty ? [] : args.createLinks || defaultCreateLinks}\n links={linksWithHandlers}\n main={args.main || defaultMainContent}\n cases={args.cases}\n banners={args.banners}\n operator={operatorData}\n utils={args.utils || defaultUtils}\n environment={\n args.environmentName\n ? {\n name: args.environmentName,\n color: args.environmentColor\n }\n : undefined\n }\n />\n );\n};\n\nAppShellDemo.args = {\n appName: 'Cosmos AppShell',\n portalName: 'Demo',\n href: 'https://www.pega.com/',\n imageSrc: 'https://pbs.twimg.com/profile_images/1410341211978752004/pLYjGIa8_bigger.jpg',\n fullImageSrc: 'https://www.pega.com/themes/custom/pegawww_theme/images/pega-logo.svg',\n withSearch: true,\n appHeader: true,\n environmentName: 'dev',\n environmentColor: '#FFDBDE',\n notificationsEmpty: false,\n notificationsLoading: false,\n casesTypesEmpty: false,\n recentsEmpty: false,\n recentsLoading: false,\n pinsLoading: false\n};\n\nAppShellDemo.argTypes = {\n appName: { control: { type: 'text' } },\n portalName: { control: { type: 'text' } },\n href: { control: { type: 'text' } },\n imageSrc: { control: { type: 'text' } },\n fullImageSrc: { control: { type: 'text' } },\n withSearch: { control: { type: 'boolean' } },\n appHeader: { control: { type: 'boolean' } },\n environmentName: { control: { type: 'text' } },\n environmentColor: { control: { type: 'color' } },\n notificationsEmpty: { control: { type: 'boolean' } },\n notificationsLoading: { control: { type: 'boolean' } },\n casesTypesEmpty: { control: { type: 'boolean' } },\n recentsEmpty: { control: { type: 'boolean' } },\n recentsLoading: { control: { type: 'boolean' } },\n pinsLoading: { control: { type: 'boolean' } }\n};\n\ninterface ConfigurableAppShellProps {\n navColor?: string;\n headerColor?: string;\n}\n\nexport const ConfigurableAppShell: Story<ConfigurableAppShellProps> = (\n args: ConfigurableAppShellProps\n) => {\n return (\n <Configuration\n theme={{\n components: {\n 'app-shell': {\n nav: {\n 'background-color': args.navColor\n },\n header: {\n 'background-color': args.headerColor\n }\n }\n }\n }}\n >\n <AppShellDemo appHeader />\n </Configuration>\n );\n};\n\nConfigurableAppShell.args = {\n navColor: '#252c32',\n headerColor: '#e2f1ff'\n};\n\nConfigurableAppShell.argTypes = {\n navColor: { control: { type: 'color' } },\n headerColor: { control: { type: 'color' } }\n};\n"]}
1
+ {"version":3,"file":"AppShell.stories.js","sourceRoot":"","sources":["../../../src/core/AppShell/AppShell.stories.tsx"],"names":[],"mappings":";AACA,OAAO,EAAyB,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAEzE,OAAO,EACL,QAAQ,EAER,YAAY,EAEZ,MAAM,EACN,SAAS,EACT,IAAI,EACJ,IAAI,EACJ,YAAY,EACZ,KAAK,EACL,MAAM,EACN,MAAM,EACN,KAAK,EACL,QAAQ,EACR,eAAe,EACf,UAAU,EAEV,qBAAqB,EACrB,eAAe,EACf,iBAAiB,EACjB,aAAa,EAEd,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,aAAa,MAAM,mEAAmE,CAAC;AACnG,OAAO,KAAK,cA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;aACF;SACF,YAED,KAAC,YAAY,IAAC,SAAS,SAAG,GACZ,CACjB,CAAC;AACJ,CAAC,CAAC;AAEF,oBAAoB,CAAC,IAAI,GAAG;IAC1B,QAAQ,EAAE,SAAS;IACnB,WAAW,EAAE,SAAS;CACvB,CAAC;AAEF,oBAAoB,CAAC,QAAQ,GAAG;IAC9B,QAAQ,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE;IACxC,WAAW,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE;CAC5C,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\nimport { MouseEvent, FormEvent, useState, useMemo, useRef } from 'react';\n\nimport {\n AppShell,\n AppShellProps,\n AppShellList,\n DrawerItemProps,\n Button,\n DateInput,\n Grid,\n Icon,\n registerIcon,\n Input,\n Select,\n Option,\n Modal,\n TextArea,\n useModalManager,\n useToaster,\n ForwardProps,\n useAfterInitialEffect,\n useModalContext,\n windowIsAvailable,\n Configuration,\n SearchInputProps\n} from '@pega/cosmos-react-core';\nimport * as bellSolidIcon from '@pega/cosmos-react-core/lib/components/Icon/icons/bell-solid.icon';\nimport * as clockSolidIcon from '@pega/cosmos-react-core/lib/components/Icon/icons/clock-solid.icon';\n\nimport { recentSearches, searchResults } from '../SearchInput/SearchInput.mocks';\n\nimport {\n defaultLinks,\n defaultMainContent,\n defaultNotifications,\n defaultRecents,\n operatorData\n} from './AppShell.mocks';\n\nregisterIcon(bellSolidIcon, clockSolidIcon);\n\nexport default {\n title: 'Core/App Shell',\n component: AppShell,\n id: 'App Shell',\n parameters: {\n layout: 'fullscreen'\n }\n} as Meta;\n\ninterface AppShellStoryProps {\n /** Demo props */\n main?: AppShellProps['main'];\n appInfo?: AppShellProps['appInfo'];\n searchPage?: AppShellProps['searchPage'];\n banners?: AppShellProps['banners'];\n cases?: AppShellProps['cases'];\n caseLinks?: AppShellProps['links'];\n createLinks?: any[];\n recentItems?: any[];\n utils?: AppShellProps['utils'];\n onLinkClick?: (name: string) => void;\n collapsedHoverMenus?: boolean;\n\n /** Storybook controls */\n appName?: AppShellProps['appInfo']['appName'];\n portalName?: AppShellProps['appInfo']['portalName'];\n href?: AppShellProps['appInfo']['href'];\n imageSrc?: AppShellProps['appInfo']['imageSrc'];\n fullImageSrc?: AppShellProps['appInfo']['fullImageSrc'];\n withSearch?: boolean;\n appHeader?: AppShellProps['appHeader'];\n environmentName?: string;\n environmentColor?: string;\n notificationsEmpty?: boolean;\n notificationsLoading?: boolean;\n casesTypesEmpty?: boolean;\n recentsEmpty?: boolean;\n recentsLoading?: boolean;\n pinsLoading?: boolean;\n}\n\nexport const AppShellDemo: Story<AppShellStoryProps> = (args: AppShellStoryProps) => {\n const CreateCaseModal = ({ caseType }: { caseType: string }) => {\n const { dismiss } = useModalContext();\n const { push: pushToaster } = useToaster();\n\n return (\n <Modal\n as='form'\n heading={`New ${caseType}`}\n actions={\n <>\n <Button onClick={dismiss}>Cancel</Button>\n <Button\n variant='primary'\n type='submit'\n onClick={(e: FormEvent) => {\n e.preventDefault();\n dismiss();\n pushToaster({ content: `${caseType} requested` });\n }}\n >\n Request\n </Button>\n </>\n }\n >\n <Grid container={{ rowGap: 2 }}>\n <DateInput label='Date Requested' info={null} />\n <Select label='Department'>\n <Option value=''>Select…</Option>\n <Option value='Fire'>Fire</Option>\n <Option value='Facilities'>Facilities</Option>\n <Option value='Parks'>Parks</Option>\n <Option value='Sanitation'>Sanitation</Option>\n <Option value='Parking &amp; Traffic'>Parking &amp; Traffic</Option>\n <Option value='Police'>Police</Option>\n <Option value='Courts'>Courts</Option>\n <Option value='Healthcare'>Healthcare</Option>\n <Option value='Energy'>Energy</Option>\n <Option value='Justice department'>Justice department</Option>\n <Option value='Environmental'>Environmental</Option>\n </Select>\n <TextArea label='Purpose of Purchase' />\n <Select label='Desired Make'>\n <Option value=''>Select...</Option>\n <Option value='Ford'>Ford</Option>\n <Option value='Dodge'>Dodge</Option>\n <Option value='Toyota'>Toyota</Option>\n <Option value='Tesla'>Tesla</Option>\n </Select>\n <Input label='Desired Make' />\n <Input\n type='number'\n min='2016'\n max='2021'\n label='Year'\n info='Must be within last 5 years'\n />\n <Input\n type='number'\n min='0.01'\n step='0.01'\n max='50000'\n label='Estimated Cost'\n info='May not exceed $50,000.00'\n />\n </Grid>\n </Modal>\n );\n };\n\n const caseLinks = args.caseLinks || defaultLinks;\n const showSearch = args.withSearch !== undefined ? args.withSearch : true;\n\n const { create: createModal } = useModalManager();\n const [links, setLinks] = useState<AppShellProps['links']>(caseLinks);\n const [notifications, setNotifications] =\n useState<(DrawerItemProps & ForwardProps)[]>(defaultNotifications);\n const [recents, setRecents] = useState<(DrawerItemProps & ForwardProps)[]>(\n args.recentItems || defaultRecents\n );\n const [numNewNotifications, setNumNewNotifications] = useState(\n notifications.filter(x => x.unread).length\n );\n const [searchVal, setSearchVal] = useState('');\n const [searchLoading, setSearchLoading] = useState(false);\n const [results, setResults] = useState<SearchInputProps['searchResults']>([]);\n const [searchTimeout, setSearchTimeout] = useState<number | null>();\n\n useAfterInitialEffect(() => {\n setLinks(caseLinks);\n }, [caseLinks]);\n\n const linksWithHandlers = useMemo<AppShellProps['links']>(() => {\n return (links || []).map(link => ({\n ...link,\n onClick(e: MouseEvent<HTMLAnchorElement>) {\n e.preventDefault();\n setLinks((prevLinks = []) => {\n return prevLinks.map(prevLink => {\n return { ...prevLink, active: prevLink.name === link.name };\n });\n });\n args.onLinkClick?.(link.name);\n }\n }));\n }, [links]);\n\n const defaultCreateLinks = [\n 'Vehicle Purchase',\n 'Vehicle Sale',\n 'Loan Refinance',\n 'Service Request',\n 'Trade In',\n 'Auction Invoice',\n 'Lender Approval',\n 'Inventory Audit',\n 'Sales Performance'\n ].map(name => ({\n name,\n onClick: () => {\n createModal(CreateCaseModal, { caseType: name });\n }\n }));\n\n const handleNotificationClick = (passedId: string) => {\n setNotifications(cur =>\n cur.map(({ id, unread, ...item }) => ({\n id,\n unread: passedId === id ? false : unread,\n ...item\n }))\n );\n };\n\n const handlePinToggle = (passedId: string) => {\n setRecents(cur =>\n cur.map(({ id, pinned, ...item }) => ({\n id,\n pinned: passedId === id ? !pinned : pinned,\n ...item\n }))\n );\n };\n\n const onSearch = (val: string) => {\n setSearchVal(val);\n if (searchTimeout) {\n clearTimeout(searchTimeout);\n setSearchTimeout(null);\n }\n setResults([]);\n if (val) {\n setSearchLoading(true);\n const timeout = setTimeout(() => {\n setSearchLoading(false);\n setResults(searchResults.filter(res => res.primary.includes(val)));\n }, 1000);\n setSearchTimeout(timeout as unknown as number);\n }\n };\n\n const notificationViewItems = [\n {\n id: '234',\n items: args.notificationsEmpty ? [] : notifications,\n loading: args.notificationsLoading,\n onItemClick: handleNotificationClick,\n viewAll: {\n href: '#'\n },\n emptyText: 'No notifications'\n }\n ];\n\n const recentViewItems = [\n {\n id: '456',\n items: recents.filter(x => x.pinned),\n loading: args.pinsLoading,\n onItemPinToggle: handlePinToggle,\n viewAll: {\n href: '#'\n },\n displayPins: true,\n headingText: 'Pinned items',\n emptyText: 'No pinned items'\n },\n {\n id: '789',\n items: args.recentsEmpty ? [] : recents,\n loading: args.recentsLoading,\n onItemPinToggle: handlePinToggle,\n viewAll: {\n href: '#'\n },\n displayPins: true,\n headingText: 'Recently viewed',\n emptyText: 'No recents'\n }\n ];\n\n const newNotificationCountTimerRef = useRef(NaN);\n\n const defaultUtils = [\n {\n name: 'Notifications',\n visual: <Icon name='bell-solid' />,\n count: args.notificationsEmpty ? 0 : numNewNotifications,\n drawerView: <AppShellList listView={notificationViewItems} />,\n onDrawerOpen: () => {\n clearInterval(newNotificationCountTimerRef.current);\n setNumNewNotifications(0);\n },\n onDrawerClose: () => {\n if (windowIsAvailable) {\n // Mock new notifications arriving on a minute interval after the drawer closes.\n // Let's face it, you're popular.\n newNotificationCountTimerRef.current = window.setInterval(() => {\n setNumNewNotifications(cur => cur + 2);\n }, 60000);\n }\n }\n },\n {\n name: 'Recents',\n visual: <Icon name='clock-solid' />,\n drawerView: <AppShellList listView={recentViewItems} />\n }\n ];\n\n return (\n <AppShell\n appInfo={\n args.appInfo || {\n href: args.href || 'https://www.pega.com/',\n imageSrc:\n args.imageSrc ||\n 'https://pbs.twimg.com/profile_images/1531984159698198531/bEniqFN1_bigger.jpg',\n fullImageSrc:\n args.fullImageSrc ||\n 'https://www.pega.com/themes/custom/pegawww_theme/images/pega-logo.svg',\n appName: args.appName || 'Cosmos AppShell',\n portalName: args.portalName || 'Demo'\n }\n }\n searchInput={\n showSearch\n ? {\n onSearchChange: (value: string) => {\n onSearch(value);\n },\n value: searchVal,\n searchResults: results,\n recentSearches,\n loading: searchLoading,\n filters: ['Story', 'Bug'],\n advancedSearchLink: { href: '/' }\n }\n : undefined\n }\n appHeader={args.appHeader}\n searchPage={args.searchPage}\n caseTypes={args.casesTypesEmpty ? [] : args.createLinks || defaultCreateLinks}\n links={linksWithHandlers}\n main={args.main || defaultMainContent}\n cases={args.cases}\n banners={args.banners}\n operator={operatorData}\n utils={args.utils || defaultUtils}\n environment={\n args.environmentName\n ? {\n name: args.environmentName,\n color: args.environmentColor\n }\n : undefined\n }\n collapsedHoverMenus={args.collapsedHoverMenus}\n />\n );\n};\n\nAppShellDemo.args = {\n appName: 'Cosmos AppShell',\n portalName: 'Demo',\n href: 'https://www.pega.com/',\n imageSrc: 'https://pbs.twimg.com/profile_images/1410341211978752004/pLYjGIa8_bigger.jpg',\n fullImageSrc: 'https://www.pega.com/themes/custom/pegawww_theme/images/pega-logo.svg',\n withSearch: true,\n appHeader: true,\n environmentName: 'dev',\n environmentColor: '#FFDBDE',\n notificationsEmpty: false,\n notificationsLoading: false,\n casesTypesEmpty: false,\n recentsEmpty: false,\n recentsLoading: false,\n pinsLoading: false\n};\n\nAppShellDemo.argTypes = {\n appName: { control: { type: 'text' } },\n portalName: { control: { type: 'text' } },\n href: { control: { type: 'text' } },\n imageSrc: { control: { type: 'text' } },\n fullImageSrc: { control: { type: 'text' } },\n withSearch: { control: { type: 'boolean' } },\n appHeader: { control: { type: 'boolean' } },\n environmentName: { control: { type: 'text' } },\n environmentColor: { control: { type: 'color' } },\n notificationsEmpty: { control: { type: 'boolean' } },\n notificationsLoading: { control: { type: 'boolean' } },\n casesTypesEmpty: { control: { type: 'boolean' } },\n recentsEmpty: { control: { type: 'boolean' } },\n recentsLoading: { control: { type: 'boolean' } },\n pinsLoading: { control: { type: 'boolean' } }\n};\n\ninterface ConfigurableAppShellProps {\n navColor?: string;\n headerColor?: string;\n}\n\nexport const ConfigurableAppShell: Story<ConfigurableAppShellProps> = (\n args: ConfigurableAppShellProps\n) => {\n return (\n <Configuration\n theme={{\n components: {\n 'app-shell': {\n nav: {\n 'background-color': args.navColor\n },\n header: {\n 'background-color': args.headerColor\n }\n }\n }\n }}\n >\n <AppShellDemo appHeader />\n </Configuration>\n );\n};\n\nConfigurableAppShell.args = {\n navColor: '#252c32',\n headerColor: '#e2f1ff'\n};\n\nConfigurableAppShell.argTypes = {\n navColor: { control: { type: 'color' } },\n headerColor: { control: { type: 'color' } }\n};\n"]}
@@ -10,6 +10,5 @@ interface ConfigurableErrorBannerProps {
10
10
  }
11
11
  export declare const ConfigurableErrorBanner: Story<ConfigurableErrorBannerProps>;
12
12
  export declare const ShownInForm: Story;
13
- export declare const ShownInCaseView: Story;
14
13
  export declare const ShownInAppShell: Story;
15
14
  //# sourceMappingURL=Banner.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Banner.stories.d.ts","sourceRoot":"","sources":["../../../src/core/Banner/Banner.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;;AAU/C,wBAGU;AAEV,eAAO,MAAM,aAAa,EAAE,KAiB3B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAczB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAa3B,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAkBxB,CAAC;AAEF,UAAU,4BAA4B;IACpC,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,eAAO,MAAM,uBAAuB,EAAE,KAAK,CAAC,4BAA4B,CA4BvE,CAAC;AAcF,eAAO,MAAM,WAAW,EAAE,KA6DzB,CAAC;AAKF,eAAO,MAAM,eAAe,EAAE,KAiB7B,CAAC;AASF,eAAO,MAAM,eAAe,EAAE,KAsB7B,CAAC"}
1
+ {"version":3,"file":"Banner.stories.d.ts","sourceRoot":"","sources":["../../../src/core/Banner/Banner.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;;AAS/C,wBAGU;AAEV,eAAO,MAAM,aAAa,EAAE,KAiB3B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAczB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAa3B,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAkBxB,CAAC;AAEF,UAAU,4BAA4B;IACpC,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,eAAO,MAAM,uBAAuB,EAAE,KAAK,CAAC,4BAA4B,CA4BvE,CAAC;AAcF,eAAO,MAAM,WAAW,EAAE,KA6DzB,CAAC;AAKF,eAAO,MAAM,eAAe,EAAE,KAsB7B,CAAC"}
@@ -2,7 +2,6 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
2
2
  import { useState, useCallback, useReducer } from 'react';
3
3
  import { Banner, Button, Configuration, Form, Input, Link } from '@pega/cosmos-react-core';
4
4
  import { AppShellDemo } from '../AppShell/AppShell.stories';
5
- import { CaseViewDemo } from '../../work/CaseView/CaseView.stories';
6
5
  import { demoFields, fieldReducer, formActions } from './Banner.mocks';
7
6
  export default {
8
7
  title: 'Core/Banner',
@@ -76,21 +75,11 @@ export const ShownInForm = () => {
76
75
  }) }));
77
76
  };
78
77
  // -----------------------------------------------------------------------------
79
- // CaseView story
80
- // -----------------------------------------------------------------------------
81
- export const ShownInCaseView = () => {
82
- const [hasBanner, setHasBanner] = useState(true);
83
- return (_jsx(CaseViewDemo, { banners: hasBanner && (_jsx(Banner, { id: 'case-view-error', heading: 'Waring', onDismiss: () => setHasBanner(false), variant: 'warning', messages: ['Your submission is missing some important documents.'] })) }));
84
- };
85
- ShownInCaseView.parameters = {
86
- layout: 'fullscreen'
87
- };
88
- // -----------------------------------------------------------------------------
89
78
  // AppShell story
90
79
  // -----------------------------------------------------------------------------
91
80
  export const ShownInAppShell = () => {
92
- const [hasBanner, setHasBanner] = useState([]);
93
- return (_jsx(AppShellDemo, { banners: hasBanner && (_jsx(Banner, { id: 'app-shell-banner-success', heading: '2 items uploaded successfully', onDismiss: () => setHasBanner([]), variant: 'success', messages: ['pega_data.json', 'business-earnings.xlsx'], action: _jsx(Link, { target: '_blank', href: 'https://www.pega.com', children: "Link Here!" }) })) }));
81
+ const [hasBanner, setHasBanner] = useState(true);
82
+ return (_jsx(AppShellDemo, { banners: hasBanner && (_jsx(Banner, { id: 'app-shell-banner-success', heading: '2 items uploaded successfully', onDismiss: () => setHasBanner(false), variant: 'success', messages: ['pega_data.json', 'business-earnings.xlsx'], action: _jsx(Link, { target: '_blank', href: 'https://www.pega.com', children: "Link Here!" }) })) }));
94
83
  };
95
84
  ShownInAppShell.parameters = {
96
85
  layout: 'fullscreen'
@@ -1 +1 @@
1
- {"version":3,"file":"Banner.stories.js","sourceRoot":"","sources":["../../../src/core/Banner/Banner.stories.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAa,UAAU,EAAE,MAAM,OAAO,CAAC;AAErE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAE3F,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAC;AAEpE,O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ACzC,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC;IAC/C,OAAO,CACL,KAAC,YAAY,IACX,OAAO,EACL,SAAS,IAAI,CACX,KAAC,MAAM,IACL,EAAE,EAAC,0BAA0B,EAC7B,OAAO,EAAC,+BAA+B,EACvC,SAAS,EAAE,GAAG,EAAE,CAAC,YAAY,CAAC,EAAE,CAAC,EACjC,OAAO,EAAC,SAAS,EACjB,QAAQ,EAAE,CAAC,gBAAgB,EAAE,wBAAwB,CAAC,EACtD,MAAM,EACJ,KAAC,IAAI,IAAC,MAAM,EAAC,QAAQ,EAAC,IAAI,EAAC,sBAAsB,2BAE1C,GAET,CACH,GAEH,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,CAAC,UAAU,GAAG;IAC3B,MAAM,EAAE,YAAY;CACrB,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\nimport { useState, useCallback, FormEvent, useReducer } from 'react';\n\nimport { Banner, Button, Configuration, Form, Input, Link } from '@pega/cosmos-react-core';\n\nimport { AppShellDemo } from '../AppShell/AppShell.stories';\nimport { CaseViewDemo } from '../../work/CaseView/CaseView.stories';\n\nimport { demoFields, DemoFormField, fieldReducer, formActions } from './Banner.mocks';\n\nexport default {\n title: 'Core/Banner',\n component: Banner\n} as Meta;\n\nexport const SuccessBanner: Story = () => {\n const [showBanner, setShowBanner] = useState(true);\n\n return (\n <>\n {!showBanner && <Button onClick={() => setShowBanner(true)}>Open banner</Button>}\n {showBanner && (\n <Banner\n id='success'\n variant='success'\n onDismiss={() => setShowBanner(false)}\n heading='2 items uploaded successfully'\n messages={['pega_data.json', 'business-earnings.xlsx']}\n />\n )}\n </>\n );\n};\n\nexport const ErrorBanner: Story = () => {\n return (\n <Banner\n id='error'\n variant='urgent'\n heading='Error'\n action={\n <div>\n <Button variant='link'>Try again</Button>\n </div>\n }\n messages={['Your request failed to send!', 'Please review your request and try again']}\n />\n );\n};\n\nexport const WarningBanner: Story = () => {\n return (\n <Banner\n id='warning'\n variant='warning'\n action={\n <div>\n <Button variant='link'>Why this matters</Button>\n </div>\n }\n messages={['Your submission is missing some important documents.']}\n />\n );\n};\n\nexport const InfoBanner: Story = () => {\n const [showBanner, setShowBanner] = useState(true);\n\n return (\n <>\n {!showBanner && <Button onClick={() => setShowBanner(true)}>Open banner</Button>}\n {showBanner && (\n <Banner\n id='info'\n variant='info'\n onDismiss={() => setShowBanner(false)}\n messages={[\n 'US-123456 is currently being modified by Jane Smith and may not be edited simultaneously.'\n ]}\n />\n )}\n </>\n );\n};\n\ninterface ConfigurableErrorBannerProps {\n background?: string;\n}\n\nexport const ConfigurableErrorBanner: Story<ConfigurableErrorBannerProps> = (\n args: ConfigurableErrorBannerProps\n) => {\n return (\n <Configuration\n theme={{\n components: {\n banner: {\n urgent: {\n background: args.background\n }\n }\n }\n }}\n >\n <Banner\n id='error'\n variant='urgent'\n heading='Error'\n action={\n <div>\n <Button variant='link'>Try again</Button>\n </div>\n }\n messages={['Your request failed to send!', 'Please review your request and try again']}\n />\n </Configuration>\n );\n};\n\nConfigurableErrorBanner.args = {\n background: '#d91c29'\n};\n\nConfigurableErrorBanner.argTypes = {\n background: { control: { type: 'color' } }\n};\n\n// -----------------------------------------------------------------------------\n// Form story\n// -----------------------------------------------------------------------------\n\nexport const ShownInForm: Story = () => {\n const [fields, setField] = useReducer(fieldReducer, demoFields);\n const [banner, setBanner] = useState<any>();\n\n const onSubmit = useCallback((e: FormEvent) => {\n e.preventDefault();\n const errorFields = fields.filter(field => !field.validator(field.value));\n let heading = 'Wow, great job!';\n let variant: 'success' | 'urgent' = 'success';\n let messages = fields.map(f => `${f.name} was typed perfectly`);\n let bannerAction;\n\n if (errorFields.length > 0) {\n heading = \"I'm sorry you're having trouble\";\n variant = 'urgent';\n messages = errorFields.map(f => `${f.name} was not typed correctly`);\n bannerAction = (\n <Link href='https://community.pega.com/support' target='_blank'>\n Visit Pega support for assistance\n </Link>\n );\n }\n\n setBanner(\n <Banner\n {...{\n heading,\n variant,\n messages,\n id: 'formBanner',\n action: bannerAction,\n onDismiss() {\n setBanner(false);\n }\n }}\n />\n );\n }, []);\n\n return (\n <Form\n banners={banner}\n actions={formActions}\n onSubmit={onSubmit}\n style={{ margin: 'auto', padding: '2.5rem', maxWidth: '37.5rem' }}\n >\n {fields.map((field: DemoFormField) => {\n return (\n <Input\n key={field.name}\n autoComplete='off'\n name={field.name}\n label={field.label}\n info={field.info}\n value={field.value}\n onChange={(e: InputEvent) => setField(e.target as any)}\n />\n );\n })}\n </Form>\n );\n};\n\n// -----------------------------------------------------------------------------\n// CaseView story\n// -----------------------------------------------------------------------------\nexport const ShownInCaseView: Story = () => {\n const [hasBanner, setHasBanner] = useState(true);\n return (\n <CaseViewDemo\n banners={\n hasBanner && (\n <Banner\n id='case-view-error'\n heading='Waring'\n onDismiss={() => setHasBanner(false)}\n variant='warning'\n messages={['Your submission is missing some important documents.']}\n />\n )\n }\n />\n );\n};\n\nShownInCaseView.parameters = {\n layout: 'fullscreen'\n};\n\n// -----------------------------------------------------------------------------\n// AppShell story\n// -----------------------------------------------------------------------------\nexport const ShownInAppShell: Story = () => {\n const [hasBanner, setHasBanner] = useState([]);\n return (\n <AppShellDemo\n banners={\n hasBanner && (\n <Banner\n id='app-shell-banner-success'\n heading='2 items uploaded successfully'\n onDismiss={() => setHasBanner([])}\n variant='success'\n messages={['pega_data.json', 'business-earnings.xlsx']}\n action={\n <Link target='_blank' href='https://www.pega.com'>\n Link Here!\n </Link>\n }\n />\n )\n }\n />\n );\n};\n\nShownInAppShell.parameters = {\n layout: 'fullscreen'\n};\n"]}
1
+ {"version":3,"file":"Banner.stories.js","sourceRoot":"","sources":["../../../src/core/Banner/Banner.stories.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAa,UAAU,EAAE,MAAM,OAAO,CAAC;AAErE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,IAAI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AsB,2BAE1C,GAET,CACH,GAEH,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,CAAC,UAAU,GAAG;IAC3B,MAAM,EAAE,YAAY;CACrB,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\nimport { useState, useCallback, FormEvent, useReducer } from 'react';\n\nimport { Banner, Button, Configuration, Form, Input, Link } from '@pega/cosmos-react-core';\n\nimport { AppShellDemo } from '../AppShell/AppShell.stories';\n\nimport { demoFields, DemoFormField, fieldReducer, formActions } from './Banner.mocks';\n\nexport default {\n title: 'Core/Banner',\n component: Banner\n} as Meta;\n\nexport const SuccessBanner: Story = () => {\n const [showBanner, setShowBanner] = useState(true);\n\n return (\n <>\n {!showBanner && <Button onClick={() => setShowBanner(true)}>Open banner</Button>}\n {showBanner && (\n <Banner\n id='success'\n variant='success'\n onDismiss={() => setShowBanner(false)}\n heading='2 items uploaded successfully'\n messages={['pega_data.json', 'business-earnings.xlsx']}\n />\n )}\n </>\n );\n};\n\nexport const ErrorBanner: Story = () => {\n return (\n <Banner\n id='error'\n variant='urgent'\n heading='Error'\n action={\n <div>\n <Button variant='link'>Try again</Button>\n </div>\n }\n messages={['Your request failed to send!', 'Please review your request and try again']}\n />\n );\n};\n\nexport const WarningBanner: Story = () => {\n return (\n <Banner\n id='warning'\n variant='warning'\n action={\n <div>\n <Button variant='link'>Why this matters</Button>\n </div>\n }\n messages={['Your submission is missing some important documents.']}\n />\n );\n};\n\nexport const InfoBanner: Story = () => {\n const [showBanner, setShowBanner] = useState(true);\n\n return (\n <>\n {!showBanner && <Button onClick={() => setShowBanner(true)}>Open banner</Button>}\n {showBanner && (\n <Banner\n id='info'\n variant='info'\n onDismiss={() => setShowBanner(false)}\n messages={[\n 'US-123456 is currently being modified by Jane Smith and may not be edited simultaneously.'\n ]}\n />\n )}\n </>\n );\n};\n\ninterface ConfigurableErrorBannerProps {\n background?: string;\n}\n\nexport const ConfigurableErrorBanner: Story<ConfigurableErrorBannerProps> = (\n args: ConfigurableErrorBannerProps\n) => {\n return (\n <Configuration\n theme={{\n components: {\n banner: {\n urgent: {\n background: args.background\n }\n }\n }\n }}\n >\n <Banner\n id='error'\n variant='urgent'\n heading='Error'\n action={\n <div>\n <Button variant='link'>Try again</Button>\n </div>\n }\n messages={['Your request failed to send!', 'Please review your request and try again']}\n />\n </Configuration>\n );\n};\n\nConfigurableErrorBanner.args = {\n background: '#d91c29'\n};\n\nConfigurableErrorBanner.argTypes = {\n background: { control: { type: 'color' } }\n};\n\n// -----------------------------------------------------------------------------\n// Form story\n// -----------------------------------------------------------------------------\n\nexport const ShownInForm: Story = () => {\n const [fields, setField] = useReducer(fieldReducer, demoFields);\n const [banner, setBanner] = useState<any>();\n\n const onSubmit = useCallback((e: FormEvent) => {\n e.preventDefault();\n const errorFields = fields.filter(field => !field.validator(field.value));\n let heading = 'Wow, great job!';\n let variant: 'success' | 'urgent' = 'success';\n let messages = fields.map(f => `${f.name} was typed perfectly`);\n let bannerAction;\n\n if (errorFields.length > 0) {\n heading = \"I'm sorry you're having trouble\";\n variant = 'urgent';\n messages = errorFields.map(f => `${f.name} was not typed correctly`);\n bannerAction = (\n <Link href='https://community.pega.com/support' target='_blank'>\n Visit Pega support for assistance\n </Link>\n );\n }\n\n setBanner(\n <Banner\n {...{\n heading,\n variant,\n messages,\n id: 'formBanner',\n action: bannerAction,\n onDismiss() {\n setBanner(false);\n }\n }}\n />\n );\n }, []);\n\n return (\n <Form\n banners={banner}\n actions={formActions}\n onSubmit={onSubmit}\n style={{ margin: 'auto', padding: '2.5rem', maxWidth: '37.5rem' }}\n >\n {fields.map((field: DemoFormField) => {\n return (\n <Input\n key={field.name}\n autoComplete='off'\n name={field.name}\n label={field.label}\n info={field.info}\n value={field.value}\n onChange={(e: InputEvent) => setField(e.target as any)}\n />\n );\n })}\n </Form>\n );\n};\n\n// -----------------------------------------------------------------------------\n// AppShell story\n// -----------------------------------------------------------------------------\nexport const ShownInAppShell: Story = () => {\n const [hasBanner, setHasBanner] = useState(true);\n return (\n <AppShellDemo\n banners={\n hasBanner && (\n <Banner\n id='app-shell-banner-success'\n heading='2 items uploaded successfully'\n onDismiss={() => setHasBanner(false)}\n variant='success'\n messages={['pega_data.json', 'business-earnings.xlsx']}\n action={\n <Link target='_blank' href='https://www.pega.com'>\n Link Here!\n </Link>\n }\n />\n )\n }\n />\n );\n};\n\nShownInAppShell.parameters = {\n layout: 'fullscreen'\n};\n"]}
@@ -2,8 +2,11 @@ import { Meta, Story } from '@storybook/react';
2
2
  import { RadioCheckProps } from '@pega/cosmos-react-core';
3
3
  declare const _default: Meta<import("@storybook/react").Args>;
4
4
  export default _default;
5
- export declare const DefaultCheckbox: Story<RadioCheckProps>;
6
- export declare const CheckboxCard: Story<RadioCheckProps>;
5
+ interface CheckboxStoryProps extends RadioCheckProps {
6
+ showAdditionalInfo: boolean;
7
+ }
8
+ export declare const DefaultCheckbox: Story<CheckboxStoryProps>;
9
+ export declare const CheckboxCard: Story<CheckboxStoryProps>;
7
10
  interface ConfigurableCheckboxProps extends RadioCheckProps {
8
11
  size?: string;
9
12
  backgroundColor?: string;
@@ -14,6 +17,7 @@ interface ConfigurableCheckboxProps extends RadioCheckProps {
14
17
  labelFontWeight?: string;
15
18
  checkedBackgroundColor?: string;
16
19
  checkedBorderColor?: string;
20
+ showAdditionalInfo?: boolean;
17
21
  }
18
22
  export declare const ConfigurableCheckbox: Story<ConfigurableCheckboxProps>;
19
23
  //# sourceMappingURL=Checkbox.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Checkbox.stories.d.ts","sourceRoot":"","sources":["../../../src/core/Checkbox/Checkbox.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAE/C,OAAO,EAA2B,eAAe,EAAE,MAAM,yBAAyB,CAAC;;AAEnF,wBAmBU;AAEV,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,eAAe,CAWlD,CAAC;AAEF,eAA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AAM,CAAC;IAChC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B;AAED,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,yBAAyB,CAwCjE,CAAC"}
@@ -9,7 +9,8 @@ export default {
9
9
  required: false,
10
10
  disabled: false,
11
11
  readOnly: false,
12
- indeterminate: false
12
+ indeterminate: false,
13
+ showAdditionalInfo: true
13
14
  },
14
15
  argTypes: {
15
16
  status: { options: [undefined, 'success', 'warning', 'error'], control: { type: 'select' } },
@@ -17,14 +18,25 @@ export default {
17
18
  required: { control: { type: 'boolean' } },
18
19
  disabled: { control: { type: 'boolean' } },
19
20
  readOnly: { control: { type: 'boolean' } },
20
- indeterminate: { control: { type: 'boolean' } }
21
+ indeterminate: { control: { type: 'boolean' } },
22
+ showAdditionalInfo: { control: { type: 'boolean' } }
21
23
  }
22
24
  };
23
25
  export const DefaultCheckbox = (args) => {
24
- return (_jsx(Checkbox, { status: args.status, label: args.label, required: args.required, disabled: args.disabled, readOnly: args.readOnly, indeterminate: args.indeterminate }));
26
+ return (_jsx(Checkbox, { additionalInfo: args.showAdditionalInfo
27
+ ? {
28
+ heading: 'Additional Info',
29
+ content: 'Some additional info'
30
+ }
31
+ : undefined, status: args.status, label: args.label, required: args.required, disabled: args.disabled, readOnly: args.readOnly, indeterminate: args.indeterminate }));
25
32
  };
26
33
  export const CheckboxCard = (args) => {
27
- return (_jsx(Checkbox, { variant: 'card', status: args.status, label: args.label, required: args.required, disabled: args.disabled, readOnly: args.readOnly, indeterminate: args.indeterminate }));
34
+ return (_jsx(Checkbox, { additionalInfo: args.showAdditionalInfo
35
+ ? {
36
+ heading: 'Additional Info',
37
+ content: 'Some additional info'
38
+ }
39
+ : undefined, variant: 'card', status: args.status, label: args.label, required: args.required, disabled: args.disabled, readOnly: args.readOnly, indeterminate: args.indeterminate }));
28
40
  };
29
41
  export const ConfigurableCheckbox = (args) => {
30
42
  return (_jsx(Configuration, { theme: {
@@ -47,7 +59,12 @@ export const ConfigurableCheckbox = (args) => {
47
59
  }
48
60
  }
49
61
  }
50
- }, children: _jsx(Checkbox, { label: 'Configurable Checkbox' }) }));
62
+ }, children: _jsx(Checkbox, { additionalInfo: args.showAdditionalInfo
63
+ ? {
64
+ heading: 'Additional Info',
65
+ content: 'Some additional info'
66
+ }
67
+ : undefined, label: 'Configurable Checkbox' }) }));
51
68
  };
52
69
  ConfigurableCheckbox.args = {
53
70
  size: '1.25rem',
@@ -58,7 +75,8 @@ ConfigurableCheckbox.args = {
58
75
  labelColor: '#939393',
59
76
  labelFontWeight: '400',
60
77
  checkedBackgroundColor: '#076bc9',
61
- checkedBorderColor: '#076bc9'
78
+ checkedBorderColor: '#076bc9',
79
+ showAdditionalInfo: true
62
80
  };
63
81
  ConfigurableCheckbox.argTypes = {
64
82
  size: { control: { type: 'text' } },
@@ -75,6 +93,7 @@ ConfigurableCheckbox.argTypes = {
75
93
  required: { table: { disable: true } },
76
94
  disabled: { table: { disable: true } },
77
95
  readOnly: { table: { disable: true } },
78
- indeterminate: { table: { disable: true } }
96
+ indeterminate: { table: { disable: true } },
97
+ showAdditionalInfo: { control: { type: 'boolean' } }
79
98
  };
80
99
  //# sourceMappingURL=Checkbox.stories.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Checkbox.stories.js","sourceRoot":"","sources":["../../../src/core/Checkbox/Checkbox.stories.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAmB,MAAM,yBAAyB,CAAC;AAEnF,eAAe;IACb,KAAK,EAAE,eAAe;IACtB,SAAS,EAAE,QAAQ;IACnB,IAAI,EAAE;QACJ,MAAM,EAAE,SAAS;QACjB,KAAK,EAAE,kBAAkB;QACzB,QAAQ,EAAE,KAAK;QACf,QAAQ,EAAE,KAAK;QACf,QAAQ,EAAE,KAAK;QACf,aAAa,EAAE,KAAK;KACrB;IACD,QAAQ,EAAE;QACR,MAAM,EAAE,EAA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AAE,IAAI,EAAE,MAAM,EAAE,EAAE;IAC1C,YAAY,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;IAC3C,UAAU,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE;IAC1C,eAAe,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;IAC9C,sBAAsB,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE;IACtD,kBAAkB,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE;IAClD,MAAM,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;IACpC,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;IACnC,QAAQ,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;IACtC,QAAQ,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;IACtC,QAAQ,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;IACtC,aAAa,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;CAC5C,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\n\nimport { Checkbox, Configuration, RadioCheckProps } from '@pega/cosmos-react-core';\n\nexport default {\n title: 'Core/Checkbox',\n component: Checkbox,\n args: {\n status: undefined,\n label: 'Check me, please',\n required: false,\n disabled: false,\n readOnly: false,\n indeterminate: false\n },\n argTypes: {\n status: { options: [undefined, 'success', 'warning', 'error'], control: { type: 'select' } },\n label: { control: { type: 'text' } },\n required: { control: { type: 'boolean' } },\n disabled: { control: { type: 'boolean' } },\n readOnly: { control: { type: 'boolean' } },\n indeterminate: { control: { type: 'boolean' } }\n }\n} as Meta;\n\nexport const DefaultCheckbox: Story<RadioCheckProps> = (args: RadioCheckProps) => {\n return (\n <Checkbox\n status={args.status}\n label={args.label}\n required={args.required}\n disabled={args.disabled}\n readOnly={args.readOnly}\n indeterminate={args.indeterminate}\n />\n );\n};\n\nexport const CheckboxCard: Story<RadioCheckProps> = (args: RadioCheckProps) => {\n return (\n <Checkbox\n variant='card'\n status={args.status}\n label={args.label}\n required={args.required}\n disabled={args.disabled}\n readOnly={args.readOnly}\n indeterminate={args.indeterminate}\n />\n );\n};\n\ninterface ConfigurableCheckboxProps extends RadioCheckProps {\n size?: string;\n backgroundColor?: string;\n borderColor?: string;\n borderWidth?: string;\n borderRadius?: string;\n labelColor?: string;\n labelFontWeight?: string;\n checkedBackgroundColor?: string;\n checkedBorderColor?: string;\n}\n\nexport const ConfigurableCheckbox: Story<ConfigurableCheckboxProps> = (\n args: ConfigurableCheckboxProps\n) => {\n return (\n <Configuration\n theme={{\n components: {\n checkbox: {\n 'border-radius': args.borderRadius\n },\n 'radio-check': {\n 'border-color': args.borderColor,\n 'border-width': args.borderWidth,\n 'background-color': args.backgroundColor,\n label: {\n color: args.labelColor,\n 'font-weight': args.labelFontWeight\n },\n size: args.size,\n ':checked': {\n 'background-color': args.checkedBackgroundColor,\n 'border-color': args.checkedBorderColor\n }\n }\n }\n }}\n >\n <Checkbox label='Configurable Checkbox' />\n </Configuration>\n );\n};\n\nConfigurableCheckbox.args = {\n size: '1.25rem',\n backgroundColor: '#ffffff',\n borderColor: '#939393',\n borderWidth: '0.0625rem',\n borderRadius: '0.5',\n labelColor: '#939393',\n labelFontWeight: '400',\n checkedBackgroundColor: '#076bc9',\n checkedBorderColor: '#076bc9'\n};\n\nConfigurableCheckbox.argTypes = {\n size: { control: { type: 'text' } },\n backgroundColor: { control: { type: 'color' } },\n borderColor: { control: { type: 'color' } },\n borderWidth: { control: { type: 'text' } },\n borderRadius: { control: { type: 'text' } },\n labelColor: { control: { type: 'color' } },\n labelFontWeight: { control: { type: 'text' } },\n checkedBackgroundColor: { control: { type: 'color' } },\n checkedBorderColor: { control: { type: 'color' } },\n status: { table: { disable: true } },\n label: { table: { disable: true } },\n required: { table: { disable: true } },\n disabled: { table: { disable: true } },\n readOnly: { table: { disable: true } },\n indeterminate: { table: { disable: true } }\n};\n"]}
1
+ {"version":3,"file":"Checkbox.stories.js","sourceRoot":"","sources":["../../../src/core/Checkbox/Checkbox.stories.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAmB,MAAM,yBAAyB,CAAC;AAEnF,eAAe;IACb,KAAK,EAAE,eAAe;IACtB,SAAS,EAAE,QAAQ;IACnB,IAAI,EAAE;QACJ,MAAM,EAAE,SAAS;QACjB,KAAK,EAAE,kBAAkB;QACzB,QAAQ,EAAE,KAAK;QACf,QAAQ,EAAE,KAAK;QACf,QAAQ,EAAE,KAAK;QACf,aAAa,EAAE,KAAK;QACpB,kBAAkB,EAAE,IAAI;KACzB;IACD,QAAQ,EAAE;QACR,MAAM,EAAE,EAAE,OAAO,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,OAAO,CAAC,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;QAC5F,KAAK,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;QACpC,QAAQ,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;QAC1C,QAAQ,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;QAC1C,QAAQ,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;QAC1C,aAAa,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;QAC/C,kBAAkB,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;KACrD;CACM,CAAC;AAMV,MAA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EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;IAC3C,UAAU,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE;IAC1C,eAAe,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;IAC9C,sBAAsB,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE;IACtD,kBAAkB,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE;IAClD,MAAM,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;IACpC,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;IACnC,QAAQ,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;IACtC,QAAQ,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;IACtC,QAAQ,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;IACtC,aAAa,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;IAC3C,kBAAkB,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;CACrD,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\n\nimport { Checkbox, Configuration, RadioCheckProps } from '@pega/cosmos-react-core';\n\nexport default {\n title: 'Core/Checkbox',\n component: Checkbox,\n args: {\n status: undefined,\n label: 'Check me, please',\n required: false,\n disabled: false,\n readOnly: false,\n indeterminate: false,\n showAdditionalInfo: true\n },\n argTypes: {\n status: { options: [undefined, 'success', 'warning', 'error'], control: { type: 'select' } },\n label: { control: { type: 'text' } },\n required: { control: { type: 'boolean' } },\n disabled: { control: { type: 'boolean' } },\n readOnly: { control: { type: 'boolean' } },\n indeterminate: { control: { type: 'boolean' } },\n showAdditionalInfo: { control: { type: 'boolean' } }\n }\n} as Meta;\n\ninterface CheckboxStoryProps extends RadioCheckProps {\n showAdditionalInfo: boolean;\n}\n\nexport const DefaultCheckbox: Story<CheckboxStoryProps> = (args: CheckboxStoryProps) => {\n return (\n <Checkbox\n additionalInfo={\n args.showAdditionalInfo\n ? {\n heading: 'Additional Info',\n content: 'Some additional info'\n }\n : undefined\n }\n status={args.status}\n label={args.label}\n required={args.required}\n disabled={args.disabled}\n readOnly={args.readOnly}\n indeterminate={args.indeterminate}\n />\n );\n};\n\nexport const CheckboxCard: Story<CheckboxStoryProps> = (args: CheckboxStoryProps) => {\n return (\n <Checkbox\n additionalInfo={\n args.showAdditionalInfo\n ? {\n heading: 'Additional Info',\n content: 'Some additional info'\n }\n : undefined\n }\n variant='card'\n status={args.status}\n label={args.label}\n required={args.required}\n disabled={args.disabled}\n readOnly={args.readOnly}\n indeterminate={args.indeterminate}\n />\n );\n};\n\ninterface ConfigurableCheckboxProps extends RadioCheckProps {\n size?: string;\n backgroundColor?: string;\n borderColor?: string;\n borderWidth?: string;\n borderRadius?: string;\n labelColor?: string;\n labelFontWeight?: string;\n checkedBackgroundColor?: string;\n checkedBorderColor?: string;\n showAdditionalInfo?: boolean;\n}\n\nexport const ConfigurableCheckbox: Story<ConfigurableCheckboxProps> = (\n args: ConfigurableCheckboxProps\n) => {\n return (\n <Configuration\n theme={{\n components: {\n checkbox: {\n 'border-radius': args.borderRadius\n },\n 'radio-check': {\n 'border-color': args.borderColor,\n 'border-width': args.borderWidth,\n 'background-color': args.backgroundColor,\n label: {\n color: args.labelColor,\n 'font-weight': args.labelFontWeight\n },\n size: args.size,\n ':checked': {\n 'background-color': args.checkedBackgroundColor,\n 'border-color': args.checkedBorderColor\n }\n }\n }\n }}\n >\n <Checkbox\n additionalInfo={\n args.showAdditionalInfo\n ? {\n heading: 'Additional Info',\n content: 'Some additional info'\n }\n : undefined\n }\n label='Configurable Checkbox'\n />\n </Configuration>\n );\n};\n\nConfigurableCheckbox.args = {\n size: '1.25rem',\n backgroundColor: '#ffffff',\n borderColor: '#939393',\n borderWidth: '0.0625rem',\n borderRadius: '0.5',\n labelColor: '#939393',\n labelFontWeight: '400',\n checkedBackgroundColor: '#076bc9',\n checkedBorderColor: '#076bc9',\n showAdditionalInfo: true\n};\n\nConfigurableCheckbox.argTypes = {\n size: { control: { type: 'text' } },\n backgroundColor: { control: { type: 'color' } },\n borderColor: { control: { type: 'color' } },\n borderWidth: { control: { type: 'text' } },\n borderRadius: { control: { type: 'text' } },\n labelColor: { control: { type: 'color' } },\n labelFontWeight: { control: { type: 'text' } },\n checkedBackgroundColor: { control: { type: 'color' } },\n checkedBorderColor: { control: { type: 'color' } },\n status: { table: { disable: true } },\n label: { table: { disable: true } },\n required: { table: { disable: true } },\n disabled: { table: { disable: true } },\n readOnly: { table: { disable: true } },\n indeterminate: { table: { disable: true } },\n showAdditionalInfo: { control: { type: 'boolean' } }\n};\n"]}
@@ -2,6 +2,10 @@ import { Meta, Story } from '@storybook/react';
2
2
  import { RadioCheckGroupProps, OmitStrict } from '@pega/cosmos-react-core';
3
3
  declare const _default: Meta<import("@storybook/react").Args>;
4
4
  export default _default;
5
- export declare const CheckboxGroupDemo: Story<OmitStrict<RadioCheckGroupProps, 'children'>>;
6
- export declare const CheckboxCardGroup: Story<OmitStrict<RadioCheckGroupProps, 'children'>>;
5
+ interface RadioCheckGroupStoryProps extends RadioCheckGroupProps {
6
+ showAdditionalInfo?: boolean;
7
+ showNestedAdditionalInfo?: boolean;
8
+ }
9
+ export declare const CheckboxGroupDemo: Story<OmitStrict<RadioCheckGroupStoryProps, 'children'>>;
10
+ export declare const CheckboxCardGroup: Story<OmitStrict<RadioCheckGroupStoryProps, 'children'>>;
7
11
  //# sourceMappingURL=CheckboxGroup.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CheckboxGroup.stories.d.ts","sourceRoot":"","sources":["../../../src/core/CheckboxGroup/CheckboxGroup.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAE/C,OAAO,EAML,oBAAoB,EAEpB,UAAU,EACX,MAAM,yBAAyB,CAAC;;AAIjC,wBAiBU;AAEV,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,UAAU,CAAC,oBAAoB,EAAE,UAAU,CAAC,CAmBjF,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,UAAU,CAAC,oBAAoB,EAAE,UAAU,CAAC,CAuEjF,CAAC"}
1
+ {"version":3,"file":"CheckboxGroup.stories.d.ts","sourceRoot":"","sources":["../../../src/core/CheckboxGroup/CheckboxGroup.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAE/C,OAAO,EAML,oBAAoB,EAEpB,UAAU,EACX,MAAM,yBAAyB,CAAC;;AAIjC,wBAqBU;AAEV,UAAU,yBAA0B,SAAQ,oBAAoB;IAC9D,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,wBAAwB,CAAC,EAAE,OAAO,CAAC;CACpC;AAED,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,UAAU,CAAC,yBAAyB,EAAE,UAAU,CAAC,CA+EtF,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,UAAU,CAAC,yBAAyB,EAAE,UAAU,CAAC,CAuFtF,CAAC"}
@@ -9,21 +9,57 @@ export default {
9
9
  inline: false,
10
10
  required: false,
11
11
  disabled: false,
12
- readOnly: false
12
+ readOnly: false,
13
+ showAdditionalInfo: true,
14
+ showNestedAdditionalInfo: false
13
15
  },
14
16
  argTypes: {
15
17
  labelHidden: { control: { type: 'boolean' } },
16
18
  inline: { control: { type: 'boolean' } },
17
19
  required: { control: { type: 'boolean' } },
18
20
  disabled: { control: { type: 'boolean' } },
19
- readOnly: { control: { type: 'boolean' } }
21
+ readOnly: { control: { type: 'boolean' } },
22
+ showAdditionalInfo: { control: { type: 'boolean' } },
23
+ showNestedAdditionalInfo: { control: { type: 'boolean' } }
20
24
  }
21
25
  };
22
26
  export const CheckboxGroupDemo = (args) => {
23
- return (_jsxs(CheckboxGroup, { label: 'What do you want to eat?', name: 'Fruit', labelHidden: args.labelHidden, inline: args.inline, required: args.required, disabled: args.disabled, readOnly: args.readOnly, children: [_jsx(Checkbox, { label: 'Banana', id: 'Banana', defaultChecked: true }), _jsx(Checkbox, { label: 'Apple', id: 'Apple' }), _jsx(Checkbox, { label: 'Mango', id: 'Mango' }), _jsx(Checkbox, { label: 'Orange', id: 'Orange' })] }));
27
+ return args.showNestedAdditionalInfo ? (_jsxs(CheckboxGroup, { additionalInfo: args.showAdditionalInfo
28
+ ? {
29
+ heading: 'Additional Info',
30
+ content: 'Some additional info'
31
+ }
32
+ : undefined, label: 'What do you want to eat?', name: 'Fruit', labelHidden: args.labelHidden, inline: args.inline, required: args.required, disabled: args.disabled, readOnly: args.readOnly, children: [_jsx(Checkbox, { additionalInfo: {
33
+ heading: 'Additional Info',
34
+ content: 'Some additional info'
35
+ }, label: 'Banana', id: 'Banana', defaultChecked: true }), _jsx(Checkbox, { additionalInfo: {
36
+ heading: 'Additional Info',
37
+ content: 'Some additional info'
38
+ }, label: 'Apple', id: 'Apple' }), _jsx(Checkbox, { additionalInfo: {
39
+ heading: 'Additional Info',
40
+ content: 'Some additional info'
41
+ }, label: 'Mango', id: 'Mango' }), _jsx(Checkbox, { additionalInfo: {
42
+ heading: 'Additional Info',
43
+ content: 'Some additional info'
44
+ }, label: 'Orange', id: 'Orange' })] })) : (_jsxs(CheckboxGroup, { additionalInfo: args.showAdditionalInfo
45
+ ? {
46
+ heading: 'Additional Info',
47
+ content: 'Some additional info'
48
+ }
49
+ : undefined, label: 'What do you want to eat?', name: 'Fruit', labelHidden: args.labelHidden, inline: args.inline, required: args.required, disabled: args.disabled, readOnly: args.readOnly, children: [_jsx(Checkbox, { label: 'Banana', id: 'Banana', defaultChecked: true }), _jsx(Checkbox, { label: 'Apple', id: 'Apple' }), _jsx(Checkbox, { label: 'Mango', id: 'Mango' }), _jsx(Checkbox, { label: 'Orange', id: 'Orange' })] }));
24
50
  };
25
51
  export const CheckboxCardGroup = (args) => {
26
- return (_jsxs(CheckboxGroup, { variant: 'card', label: 'Which visuals appear satisfying?', labelHidden: args.labelHidden, inline: args.inline, required: args.required, disabled: args.disabled, readOnly: args.readOnly, children: [_jsx(Checkbox, { label: _jsxs(Flex, { container: { direction: 'column', gap: 1 }, children: [_jsx(Text, { variant: 'h4', children: "A paragraph" }), _jsx(Paragraph, { children: "This is a paragraph of text. It is meant to appear visually satisfying amongst the other options in this group." })] }), id: 'paragraph', defaultChecked: true }), _jsx(Checkbox, { label: _jsxs(Flex, { container: { direction: 'column', gap: 1 }, children: [_jsx(Text, { variant: 'h4', children: "Space" }), _jsx(StyledImage, { src: 'https://thumbor.forbes.com/thumbor/960x0/https%3A%2F%2Fspecials-images.forbesimg.com%2Fdam%2Fimageserve%2F765877054%2F960x0.jpg%3Ffit%3Dscale', alt: 'space' })] }), id: 'space-photo' }), _jsx(Checkbox, { label: _jsxs(Flex, { container: { gap: 1, alignItems: 'start' }, children: [_jsx(StyledImage, { src: 'https://thumbor.forbes.com/thumbor/960x0/https%3A%2F%2Fspecials-images.forbesimg.com%2Fdam%2Fimageserve%2F765877054%2F960x0.jpg%3Ffit%3Dscale', alt: 'space' }), _jsxs(Flex, { container: { direction: 'column', gap: 1 }, children: [_jsx(Text, { variant: 'h4', children: "Space" }), _jsx(Paragraph, { children: "Space is the final frontier. There is so much to discover within Cosmos!" })] })] }), id: 'cosmos' }), _jsx(Checkbox, { label: _jsx(FieldGroup, { name: 'Gold service plan', children: _jsx(FieldValueList, { fields: [
52
+ return (_jsxs(CheckboxGroup, { additionalInfo: args.showAdditionalInfo
53
+ ? {
54
+ heading: 'Additional Info',
55
+ content: 'Some additional info'
56
+ }
57
+ : undefined, variant: 'card', label: 'Which visuals appear satisfying?', labelHidden: args.labelHidden, inline: args.inline, required: args.required, disabled: args.disabled, readOnly: args.readOnly, children: [_jsx(Checkbox, { additionalInfo: args.showNestedAdditionalInfo
58
+ ? {
59
+ heading: 'Additional Info',
60
+ content: 'Some additional info'
61
+ }
62
+ : undefined, label: _jsxs(Flex, { container: { direction: 'column', gap: 1 }, children: [_jsx(Text, { variant: 'h4', children: "A paragraph" }), _jsx(Paragraph, { children: "This is a paragraph of text. It is meant to appear visually satisfying amongst the other options in this group." })] }), id: 'paragraph', defaultChecked: true }), _jsx(Checkbox, { label: _jsxs(Flex, { container: { direction: 'column', gap: 1 }, children: [_jsx(Text, { variant: 'h4', children: "Space" }), _jsx(StyledImage, { src: 'https://thumbor.forbes.com/thumbor/960x0/https%3A%2F%2Fspecials-images.forbesimg.com%2Fdam%2Fimageserve%2F765877054%2F960x0.jpg%3Ffit%3Dscale', alt: 'space' })] }), id: 'space-photo' }), _jsx(Checkbox, { label: _jsxs(Flex, { container: { gap: 1, alignItems: 'start' }, children: [_jsx(StyledImage, { src: 'https://thumbor.forbes.com/thumbor/960x0/https%3A%2F%2Fspecials-images.forbesimg.com%2Fdam%2Fimageserve%2F765877054%2F960x0.jpg%3Ffit%3Dscale', alt: 'space' }), _jsxs(Flex, { container: { direction: 'column', gap: 1 }, children: [_jsx(Text, { variant: 'h4', children: "Space" }), _jsx(Paragraph, { children: "Space is the final frontier. There is so much to discover within Cosmos!" })] })] }), id: 'cosmos' }), _jsx(Checkbox, { label: _jsx(FieldGroup, { name: 'Gold service plan', children: _jsx(FieldValueList, { fields: [
27
63
  { id: 'service', name: 'Service length', value: '1 year' },
28
64
  { id: 'monthly-cost', name: 'Monthly cost', value: '$180.00' },
29
65
  { id: 'total-cost', name: 'Total cost', value: '$2,160.00' }
@@ -1 +1 @@
1
- {"version":3,"file":"CheckboxGroup.stories.js","sourceRoot":"","sources":["../../../src/core/CheckboxGroup/CheckboxGroup.stories.tsx"],"names":[],"mappings":";AA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+IAA+I,EACnJ,GAAG,EAAC,OAAO,GACX,EACF,MAAC,IAAI,IAAC,SAAS,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,EAAE,aAC9C,KAAC,IAAI,IAAC,OAAO,EAAC,IAAI,sBAAa,EAC/B,KAAC,SAAS,2FAEE,IACP,IACF,EAET,EAAE,EAAC,QAAQ,GACX,EACF,KAAC,QAAQ,IACP,KAAK,EACH,KAAC,UAAU,IAAC,IAAI,EAAC,mBAAmB,YAClC,KAAC,cAAc,IACb,MAAM,EAAE;4BACN,EAAE,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,gBAAgB,EAAE,KAAK,EAAE,QAAQ,EAAE;4BAC1D,EAAE,EAAE,EAAE,cAAc,EAAE,IAAI,EAAE,cAAc,EAAE,KAAK,EAAE,SAAS,EAAE;4BAC9D,EAAE,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,WAAW,EAAE;yBAC7D,GACD,GACS,EAEf,EAAE,EAAC,YAAY,GACf,IACY,CACjB,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\n\nimport {\n Checkbox,\n CheckboxGroup,\n FieldGroup,\n FieldValueList,\n Flex,\n RadioCheckGroupProps,\n Text,\n OmitStrict\n} from '@pega/cosmos-react-core';\n\nimport { Paragraph, StyledImage } from './CheckboxGroup.styles';\n\nexport default {\n title: 'Core/CheckboxGroup',\n component: CheckboxGroup,\n args: {\n labelHidden: false,\n inline: false,\n required: false,\n disabled: false,\n readOnly: false\n },\n argTypes: {\n labelHidden: { control: { type: 'boolean' } },\n inline: { control: { type: 'boolean' } },\n required: { control: { type: 'boolean' } },\n disabled: { control: { type: 'boolean' } },\n readOnly: { control: { type: 'boolean' } }\n }\n} as Meta;\n\nexport const CheckboxGroupDemo: Story<OmitStrict<RadioCheckGroupProps, 'children'>> = (\n args: OmitStrict<RadioCheckGroupProps, 'children'>\n) => {\n return (\n <CheckboxGroup\n label='What do you want to eat?'\n name='Fruit'\n labelHidden={args.labelHidden}\n inline={args.inline}\n required={args.required}\n disabled={args.disabled}\n readOnly={args.readOnly}\n >\n <Checkbox label='Banana' id='Banana' defaultChecked />\n <Checkbox label='Apple' id='Apple' />\n <Checkbox label='Mango' id='Mango' />\n <Checkbox label='Orange' id='Orange' />\n </CheckboxGroup>\n );\n};\n\nexport const CheckboxCardGroup: Story<OmitStrict<RadioCheckGroupProps, 'children'>> = (\n args: OmitStrict<RadioCheckGroupProps, 'children'>\n) => {\n return (\n <CheckboxGroup\n variant='card'\n label='Which visuals appear satisfying?'\n labelHidden={args.labelHidden}\n inline={args.inline}\n required={args.required}\n disabled={args.disabled}\n readOnly={args.readOnly}\n >\n <Checkbox\n label={\n <Flex container={{ direction: 'column', gap: 1 }}>\n <Text variant='h4'>A paragraph</Text>\n <Paragraph>\n This is a paragraph of text. It is meant to appear visually satisfying amongst the\n other options in this group.\n </Paragraph>\n </Flex>\n }\n id='paragraph'\n defaultChecked\n />\n <Checkbox\n label={\n <Flex container={{ direction: 'column', gap: 1 }}>\n <Text variant='h4'>Space</Text>\n <StyledImage\n src='https://thumbor.forbes.com/thumbor/960x0/https%3A%2F%2Fspecials-images.forbesimg.com%2Fdam%2Fimageserve%2F765877054%2F960x0.jpg%3Ffit%3Dscale'\n alt='space'\n />\n </Flex>\n }\n id='space-photo'\n />\n <Checkbox\n label={\n <Flex container={{ gap: 1, alignItems: 'start' }}>\n <StyledImage\n src='https://thumbor.forbes.com/thumbor/960x0/https%3A%2F%2Fspecials-images.forbesimg.com%2Fdam%2Fimageserve%2F765877054%2F960x0.jpg%3Ffit%3Dscale'\n alt='space'\n />\n <Flex container={{ direction: 'column', gap: 1 }}>\n <Text variant='h4'>Space</Text>\n <Paragraph>\n Space is the final frontier. There is so much to discover within Cosmos!\n </Paragraph>\n </Flex>\n </Flex>\n }\n id='cosmos'\n />\n <Checkbox\n label={\n <FieldGroup name='Gold service plan'>\n <FieldValueList\n fields={[\n { id: 'service', name: 'Service length', value: '1 year' },\n { id: 'monthly-cost', name: 'Monthly cost', value: '$180.00' },\n { id: 'total-cost', name: 'Total cost', value: '$2,160.00' }\n ]}\n />\n </FieldGroup>\n }\n id='phone-plan'\n />\n </CheckboxGroup>\n );\n};\n"]}
1
+ {"version":3,"file":"CheckboxGroup.stories.js","sourceRoot":"","sources":["../../../src/core/CheckboxGroup/CheckboxGroup.stories.tsx"],"names":[],"mappings":";AAEA,OAAO,EACL,QAAQ,EACR,aAAa,EACb,UAAU,EACV,cAAc,EACd,IAAI,EAEJ,IAAI,EAEL,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAEhE,eAAe;IACb,KAAK,EAAE,oBAAoB;IAC3B,SAAS,EAAE,aAAa;IACxB,IAAI,EAAE;QACJ,WAAW,EAAE,KAAK;QAClB,MAAM,EAAE,KAAK;QACb,QAAQ,EAAE,KAAK;QACf,QAAQ,EAAE,KAAK;QACf,QAAQ,EAAE,KAAK;QACf,kBAAkB,EAAE,IAAI;QACxB,wBAAwB,EAAE,KAAK;KAChC;IACD,QAAQ,EAAE;QACR,WAAW,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;QAC7C,MAAM,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;QACxC,QAAQ,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;QAC1C,QAAQ,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;QAC1C,QAAQ,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;QAC1C,kBAAkB,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;QACpD,wBAAwB,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,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AAc,EAAE,IAAI,EAAE,cAAc,EAAE,KAAK,EAAE,SAAS,EAAE;4BAC9D,EAAE,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,WAAW,EAAE;yBAC7D,GACD,GACS,EAEf,EAAE,EAAC,YAAY,GACf,IACY,CACjB,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\n\nimport {\n Checkbox,\n CheckboxGroup,\n FieldGroup,\n FieldValueList,\n Flex,\n RadioCheckGroupProps,\n Text,\n OmitStrict\n} from '@pega/cosmos-react-core';\n\nimport { Paragraph, StyledImage } from './CheckboxGroup.styles';\n\nexport default {\n title: 'Core/CheckboxGroup',\n component: CheckboxGroup,\n args: {\n labelHidden: false,\n inline: false,\n required: false,\n disabled: false,\n readOnly: false,\n showAdditionalInfo: true,\n showNestedAdditionalInfo: false\n },\n argTypes: {\n labelHidden: { control: { type: 'boolean' } },\n inline: { control: { type: 'boolean' } },\n required: { control: { type: 'boolean' } },\n disabled: { control: { type: 'boolean' } },\n readOnly: { control: { type: 'boolean' } },\n showAdditionalInfo: { control: { type: 'boolean' } },\n showNestedAdditionalInfo: { control: { type: 'boolean' } }\n }\n} as Meta;\n\ninterface RadioCheckGroupStoryProps extends RadioCheckGroupProps {\n showAdditionalInfo?: boolean;\n showNestedAdditionalInfo?: boolean;\n}\n\nexport const CheckboxGroupDemo: Story<OmitStrict<RadioCheckGroupStoryProps, 'children'>> = (\n args: OmitStrict<RadioCheckGroupStoryProps, 'children'>\n) => {\n return args.showNestedAdditionalInfo ? (\n <CheckboxGroup\n additionalInfo={\n args.showAdditionalInfo\n ? {\n heading: 'Additional Info',\n content: 'Some additional info'\n }\n : undefined\n }\n label='What do you want to eat?'\n name='Fruit'\n labelHidden={args.labelHidden}\n inline={args.inline}\n required={args.required}\n disabled={args.disabled}\n readOnly={args.readOnly}\n >\n <Checkbox\n additionalInfo={{\n heading: 'Additional Info',\n content: 'Some additional info'\n }}\n label='Banana'\n id='Banana'\n defaultChecked\n />\n <Checkbox\n additionalInfo={{\n heading: 'Additional Info',\n content: 'Some additional info'\n }}\n label='Apple'\n id='Apple'\n />\n <Checkbox\n additionalInfo={{\n heading: 'Additional Info',\n content: 'Some additional info'\n }}\n label='Mango'\n id='Mango'\n />\n <Checkbox\n additionalInfo={{\n heading: 'Additional Info',\n content: 'Some additional info'\n }}\n label='Orange'\n id='Orange'\n />\n </CheckboxGroup>\n ) : (\n <CheckboxGroup\n additionalInfo={\n args.showAdditionalInfo\n ? {\n heading: 'Additional Info',\n content: 'Some additional info'\n }\n : undefined\n }\n label='What do you want to eat?'\n name='Fruit'\n labelHidden={args.labelHidden}\n inline={args.inline}\n required={args.required}\n disabled={args.disabled}\n readOnly={args.readOnly}\n >\n <Checkbox label='Banana' id='Banana' defaultChecked />\n <Checkbox label='Apple' id='Apple' />\n <Checkbox label='Mango' id='Mango' />\n <Checkbox label='Orange' id='Orange' />\n </CheckboxGroup>\n );\n};\n\nexport const CheckboxCardGroup: Story<OmitStrict<RadioCheckGroupStoryProps, 'children'>> = (\n args: OmitStrict<RadioCheckGroupStoryProps, 'children'>\n) => {\n return (\n <CheckboxGroup\n additionalInfo={\n args.showAdditionalInfo\n ? {\n heading: 'Additional Info',\n content: 'Some additional info'\n }\n : undefined\n }\n variant='card'\n label='Which visuals appear satisfying?'\n labelHidden={args.labelHidden}\n inline={args.inline}\n required={args.required}\n disabled={args.disabled}\n readOnly={args.readOnly}\n >\n <Checkbox\n additionalInfo={\n args.showNestedAdditionalInfo\n ? {\n heading: 'Additional Info',\n content: 'Some additional info'\n }\n : undefined\n }\n label={\n <Flex container={{ direction: 'column', gap: 1 }}>\n <Text variant='h4'>A paragraph</Text>\n <Paragraph>\n This is a paragraph of text. It is meant to appear visually satisfying amongst the\n other options in this group.\n </Paragraph>\n </Flex>\n }\n id='paragraph'\n defaultChecked\n />\n <Checkbox\n label={\n <Flex container={{ direction: 'column', gap: 1 }}>\n <Text variant='h4'>Space</Text>\n <StyledImage\n src='https://thumbor.forbes.com/thumbor/960x0/https%3A%2F%2Fspecials-images.forbesimg.com%2Fdam%2Fimageserve%2F765877054%2F960x0.jpg%3Ffit%3Dscale'\n alt='space'\n />\n </Flex>\n }\n id='space-photo'\n />\n <Checkbox\n label={\n <Flex container={{ gap: 1, alignItems: 'start' }}>\n <StyledImage\n src='https://thumbor.forbes.com/thumbor/960x0/https%3A%2F%2Fspecials-images.forbesimg.com%2Fdam%2Fimageserve%2F765877054%2F960x0.jpg%3Ffit%3Dscale'\n alt='space'\n />\n <Flex container={{ direction: 'column', gap: 1 }}>\n <Text variant='h4'>Space</Text>\n <Paragraph>\n Space is the final frontier. There is so much to discover within Cosmos!\n </Paragraph>\n </Flex>\n </Flex>\n }\n id='cosmos'\n />\n <Checkbox\n label={\n <FieldGroup name='Gold service plan'>\n <FieldValueList\n fields={[\n { id: 'service', name: 'Service length', value: '1 year' },\n { id: 'monthly-cost', name: 'Monthly cost', value: '$180.00' },\n { id: 'total-cost', name: 'Total cost', value: '$2,160.00' }\n ]}\n />\n </FieldGroup>\n }\n id='phone-plan'\n />\n </CheckboxGroup>\n );\n};\n"]}
@@ -2,6 +2,9 @@ import { Meta, Story } from '@storybook/react';
2
2
  import { ColorPickerProps } from '@pega/cosmos-react-core';
3
3
  declare const _default: Meta<import("@storybook/react").Args>;
4
4
  export default _default;
5
- export declare const ColorPickerDemo: Story<ColorPickerProps>;
5
+ interface ColorPickerStoryProps extends ColorPickerProps {
6
+ showAdditionalInfo?: boolean;
7
+ }
8
+ export declare const ColorPickerDemo: Story<ColorPickerStoryProps>;
6
9
  export declare const MultiColor: Story;
7
10
  //# sourceMappingURL=ColorPicker.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ColorPicker.stories.d.ts","sourceRoot":"","sources":["../../../src/core/ColorPicker/ColorPicker.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAG/C,OAAO,EAAe,gBAAgB,EAA8B,MAAM,yBAAyB,CAAC;;AAIpG,wBAGU;AAEV,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,gBAAgB,CAoBnD,CAAC;AA0BF,eAAO,MAAM,UAAU,EAAE,KA2ExB,CAAC"}
1
+ {"version":3,"file":"ColorPicker.stories.d.ts","sourceRoot":"","sources":["../../../src/core/ColorPicker/ColorPicker.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAG/C,OAAO,EAAe,gBAAgB,EAA8B,MAAM,yBAAyB,CAAC;;AAIpG,wBAGU;AAEV,UAAU,qBAAsB,SAAQ,gBAAgB;IACtD,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B;AAED,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,qBAAqB,CA4BxD,CAAC;AA4BF,eAAO,MAAM,UAAU,EAAE,KA2ExB,CAAC"}
@@ -8,7 +8,12 @@ export default {
8
8
  };
9
9
  export const ColorPickerDemo = (args) => {
10
10
  const [value, setValue] = useState('#10a5ac');
11
- return (_jsx(ColorPicker, { label: args.label, labelHidden: args.labelHidden, info: args.info, status: args.status, swatchOnly: args.swatchOnly, inline: args.inline, required: args.required, disabled: args.disabled, readOnly: args.readOnly, value: value, onChange: e => {
11
+ return (_jsx(ColorPicker, { additionalInfo: args.showAdditionalInfo
12
+ ? {
13
+ heading: 'Additional Info',
14
+ content: 'Select a color from the dropdown or by entering its hex code.'
15
+ }
16
+ : undefined, label: args.label, labelHidden: args.labelHidden, info: args.info, status: args.status, swatchOnly: args.swatchOnly, inline: args.inline, required: args.required, disabled: args.disabled, readOnly: args.readOnly, value: value, onChange: e => {
12
17
  setValue(e.hex);
13
18
  } }));
14
19
  };
@@ -21,7 +26,8 @@ ColorPickerDemo.args = {
21
26
  inline: false,
22
27
  required: false,
23
28
  disabled: false,
24
- readOnly: false
29
+ readOnly: false,
30
+ showAdditionalInfo: true
25
31
  };
26
32
  ColorPickerDemo.argTypes = {
27
33
  label: { control: { type: 'text' } },
@@ -32,7 +38,8 @@ ColorPickerDemo.argTypes = {
32
38
  inline: { control: { type: 'boolean' } },
33
39
  required: { control: { type: 'boolean' } },
34
40
  disabled: { control: { type: 'boolean' } },
35
- readOnly: { control: { type: 'boolean' } }
41
+ readOnly: { control: { type: 'boolean' } },
42
+ showAdditionalInfo: { control: { type: 'boolean' } }
36
43
  };
37
44
  export const MultiColor = () => {
38
45
  const { base: { palette } } = useTheme();
@@ -1 +1 @@
1
- {"version":3,"file":"ColorPicker.stories.js","sourceRoot":"","sources":["../../../src/core/ColorPicker/ColorPicker.stories.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,EAAE,WAAW,EAAoB,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAEpG,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD,eAAe;IACb,KAAK,EAAE,kBAAkB;IACzB,SAAS,EAAE,WAAW;CACf,CAAC;AAEV,MAAM,CAAC,MAAM,eAAe,GAA4B,CAAC,IAAsB,EAAE,EAAE;IACjF,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAC,SAAS,CAAC,CAAC;IAE9C,OAAO,CACL,KAAC,WAAW,IACV,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,WAAW,EAAE,IAAI,CAAC,WAAW,EAC7B,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,UAAU,EAAE,IAAI,CAAC,UAAU,EAC3B,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,QAAQ,EAAE,IAAI,CAAC,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CACd,OAAO,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;4CACtB,IAAI,CAAC,KAAK,CAAC;gDAAE,OAAO,QAAQ,CAAC;4CAC7B,OAAO,CAAC,CAAC;wCACX,CAAC,CAAC,CAAC;oCACL,CAAC,CAAC,CAAC;gCACL,CAAC,GACD,IAdM,GAAG,CAeP,CACP,CAAC;oBACJ,CAAC,CAAC,GACD,GACE,EAEP,KAAC,IAAI,IACH,SAAS,EAAE;oBACT,IAAI,EAAE,iBAAiB;oBACvB,GAAG,EAAE,KAAK;iBACX,YAEA,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,CAAC,EAAE,EAAE;oBACvB,MAAM,GAAG,GAAG,SAAS,CAAC,EAAE,CAAC;oBACzB,OAAO,CACL,KAAC,IAAI,IACH,SAAS,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,EACtD,EAAE,EAAE,eAAe,EACnB,KAAK,EAAE,KAAK,YAGZ,KAAC,IAAI,IAAC,OAAO,EAAC,IAAI,EAAC,EAAE,EAAC,MAAM,YACzB,KAAK,GACD,IAJF,GAAG,CAKH,CACR,CAAC;gBACJ,CAAC,CAAC,GACG,IACF,CACR,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\nimport { useMemo, useState } from 'react';\n\nimport { ColorPicker, ColorPickerProps, Flex, Grid, Text, useTheme } from '@pega/cosmos-react-core';\n\nimport { StyledColorPane } from './ColorPicker.styles';\n\nexport default {\n title: 'Core/ColorPicker',\n component: ColorPicker\n} as Meta;\n\nexport const ColorPickerDemo: Story<ColorPickerProps> = (args: ColorPickerProps) => {\n const [value, setValue] = useState('#10a5ac');\n\n return (\n <ColorPicker\n label={args.label}\n labelHidden={args.labelHidden}\n info={args.info}\n status={args.status}\n swatchOnly={args.swatchOnly}\n inline={args.inline}\n required={args.required}\n disabled={args.disabled}\n readOnly={args.readOnly}\n value={value}\n onChange={e => {\n setValue(e.hex);\n }}\n />\n );\n};\n\nColorPickerDemo.args = {\n label: 'ColorPicker label',\n labelHidden: false,\n info: 'Pick a color',\n status: undefined,\n swatchOnly: false,\n inline: false,\n required: false,\n disabled: false,\n readOnly: false\n};\n\nColorPickerDemo.argTypes = {\n label: { control: { type: 'text' } },\n labelHidden: { control: { type: 'boolean' } },\n info: { control: { type: 'text' } },\n status: { options: [undefined, 'success', 'warning', 'error'], control: { type: 'select' } },\n swatchOnly: { control: { type: 'boolean' } },\n inline: { control: { type: 'boolean' } },\n required: { control: { type: 'boolean' } },\n disabled: { control: { type: 'boolean' } },\n readOnly: { control: { type: 'boolean' } }\n};\n\nexport const MultiColor: Story = () => {\n const {\n base: { palette }\n } = useTheme();\n\n const opaqueColors = useMemo(\n () =>\n Object.entries(palette).filter(([, color]) => {\n return /^#[0-9A-F]{6}$/i.test(color);\n }),\n [palette]\n );\n\n const [values, setValues] = useState(() => opaqueColors.map(([, color]) => color));\n\n return (\n <Grid container={{ rows: '1fr 2fr' }} style={{ height: '100vh' }}>\n <Grid\n container={{\n cols: '1fr 1fr 1fr 1fr',\n alignItems: 'center',\n colGap: 4,\n rowGap: 1\n }}\n style={{ padding: '1rem' }}\n >\n <>\n {values.map((color, i) => {\n const key = `color-${i}`;\n return (\n <div key={key}>\n <ColorPicker\n inline\n label={opaqueColors[i][0]}\n value={color}\n onChange={e => {\n const newColor = e.hex;\n setValues(cur => {\n return cur.map((c, j) => {\n if (i === j) return newColor;\n return c;\n });\n });\n }}\n />\n </div>\n );\n })}\n </>\n </Grid>\n\n <Grid\n container={{\n cols: '1fr 1fr 1fr 1fr',\n gap: 0.125\n }}\n >\n {values.map((color, i) => {\n const key = `color-${i}`;\n return (\n <Flex\n container={{ justify: 'center', alignItems: 'center' }}\n as={StyledColorPane}\n color={color}\n key={key}\n >\n <Text variant='h1' as='span'>\n {color}\n </Text>\n </Flex>\n );\n })}\n </Grid>\n </Grid>\n );\n};\n"]}
1
+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,QAAQ,CAAC;4CAC7B,OAAO,CAAC,CAAC;wCACX,CAAC,CAAC,CAAC;oCACL,CAAC,CAAC,CAAC;gCACL,CAAC,GACD,IAdM,GAAG,CAeP,CACP,CAAC;oBACJ,CAAC,CAAC,GACD,GACE,EAEP,KAAC,IAAI,IACH,SAAS,EAAE;oBACT,IAAI,EAAE,iBAAiB;oBACvB,GAAG,EAAE,KAAK;iBACX,YAEA,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,CAAC,EAAE,EAAE;oBACvB,MAAM,GAAG,GAAG,SAAS,CAAC,EAAE,CAAC;oBACzB,OAAO,CACL,KAAC,IAAI,IACH,SAAS,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,EACtD,EAAE,EAAE,eAAe,EACnB,KAAK,EAAE,KAAK,YAGZ,KAAC,IAAI,IAAC,OAAO,EAAC,IAAI,EAAC,EAAE,EAAC,MAAM,YACzB,KAAK,GACD,IAJF,GAAG,CAKH,CACR,CAAC;gBACJ,CAAC,CAAC,GACG,IACF,CACR,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\nimport { useMemo, useState } from 'react';\n\nimport { ColorPicker, ColorPickerProps, Flex, Grid, Text, useTheme } from '@pega/cosmos-react-core';\n\nimport { StyledColorPane } from './ColorPicker.styles';\n\nexport default {\n title: 'Core/ColorPicker',\n component: ColorPicker\n} as Meta;\n\ninterface ColorPickerStoryProps extends ColorPickerProps {\n showAdditionalInfo?: boolean;\n}\n\nexport const ColorPickerDemo: Story<ColorPickerStoryProps> = (args: ColorPickerStoryProps) => {\n const [value, setValue] = useState('#10a5ac');\n\n return (\n <ColorPicker\n additionalInfo={\n args.showAdditionalInfo\n ? {\n heading: 'Additional Info',\n content: 'Select a color from the dropdown or by entering its hex code.'\n }\n : undefined\n }\n label={args.label}\n labelHidden={args.labelHidden}\n info={args.info}\n status={args.status}\n swatchOnly={args.swatchOnly}\n inline={args.inline}\n required={args.required}\n disabled={args.disabled}\n readOnly={args.readOnly}\n value={value}\n onChange={e => {\n setValue(e.hex);\n }}\n />\n );\n};\n\nColorPickerDemo.args = {\n label: 'ColorPicker label',\n labelHidden: false,\n info: 'Pick a color',\n status: undefined,\n swatchOnly: false,\n inline: false,\n required: false,\n disabled: false,\n readOnly: false,\n showAdditionalInfo: true\n};\n\nColorPickerDemo.argTypes = {\n label: { control: { type: 'text' } },\n labelHidden: { control: { type: 'boolean' } },\n info: { control: { type: 'text' } },\n status: { options: [undefined, 'success', 'warning', 'error'], control: { type: 'select' } },\n swatchOnly: { control: { type: 'boolean' } },\n inline: { control: { type: 'boolean' } },\n required: { control: { type: 'boolean' } },\n disabled: { control: { type: 'boolean' } },\n readOnly: { control: { type: 'boolean' } },\n showAdditionalInfo: { control: { type: 'boolean' } }\n};\n\nexport const MultiColor: Story = () => {\n const {\n base: { palette }\n } = useTheme();\n\n const opaqueColors = useMemo(\n () =>\n Object.entries(palette).filter(([, color]) => {\n return /^#[0-9A-F]{6}$/i.test(color);\n }),\n [palette]\n );\n\n const [values, setValues] = useState(() => opaqueColors.map(([, color]) => color));\n\n return (\n <Grid container={{ rows: '1fr 2fr' }} style={{ height: '100vh' }}>\n <Grid\n container={{\n cols: '1fr 1fr 1fr 1fr',\n alignItems: 'center',\n colGap: 4,\n rowGap: 1\n }}\n style={{ padding: '1rem' }}\n >\n <>\n {values.map((color, i) => {\n const key = `color-${i}`;\n return (\n <div key={key}>\n <ColorPicker\n inline\n label={opaqueColors[i][0]}\n value={color}\n onChange={e => {\n const newColor = e.hex;\n setValues(cur => {\n return cur.map((c, j) => {\n if (i === j) return newColor;\n return c;\n });\n });\n }}\n />\n </div>\n );\n })}\n </>\n </Grid>\n\n <Grid\n container={{\n cols: '1fr 1fr 1fr 1fr',\n gap: 0.125\n }}\n >\n {values.map((color, i) => {\n const key = `color-${i}`;\n return (\n <Flex\n container={{ justify: 'center', alignItems: 'center' }}\n as={StyledColorPane}\n color={color}\n key={key}\n >\n <Text variant='h1' as='span'>\n {color}\n </Text>\n </Flex>\n );\n })}\n </Grid>\n </Grid>\n );\n};\n"]}