@pega/cosmos-react-demos 6.5.3 → 6.6.1

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 (899) hide show
  1. package/lib/core/Form/Form.mocks.d.ts.map +1 -1
  2. package/lib/core/Form/Form.mocks.js +1 -1
  3. package/lib/core/Form/Form.mocks.js.map +1 -1
  4. package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts +1 -3
  5. package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts.map +1 -1
  6. package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.js.map +1 -1
  7. package/package.json +7 -7
  8. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.mocks.d.ts +0 -3
  9. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.mocks.d.ts.map +0 -1
  10. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.mocks.js +0 -15
  11. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.mocks.js.map +0 -1
  12. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts +0 -19
  13. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts.map +0 -1
  14. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.jsx +0 -297
  15. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.jsx.map +0 -1
  16. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.styles.d.ts +0 -5
  17. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.styles.d.ts.map +0 -1
  18. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.styles.js +0 -15
  19. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.styles.js.map +0 -1
  20. package/jsx/condition-builder/ConditionBuilder/props.mock.d.ts +0 -6
  21. package/jsx/condition-builder/ConditionBuilder/props.mock.d.ts.map +0 -1
  22. package/jsx/condition-builder/ConditionBuilder/props.mock.js +0 -229
  23. package/jsx/condition-builder/ConditionBuilder/props.mock.js.map +0 -1
  24. package/jsx/condition-builder/ConditionInput/ConditionInput.stories.d.ts +0 -10
  25. package/jsx/condition-builder/ConditionInput/ConditionInput.stories.d.ts.map +0 -1
  26. package/jsx/condition-builder/ConditionInput/ConditionInput.stories.jsx +0 -40
  27. package/jsx/condition-builder/ConditionInput/ConditionInput.stories.jsx.map +0 -1
  28. package/jsx/condition-builder/PromotedFilters/PromotedFilters.mocks.d.ts +0 -4
  29. package/jsx/condition-builder/PromotedFilters/PromotedFilters.mocks.d.ts.map +0 -1
  30. package/jsx/condition-builder/PromotedFilters/PromotedFilters.mocks.js +0 -233
  31. package/jsx/condition-builder/PromotedFilters/PromotedFilters.mocks.js.map +0 -1
  32. package/jsx/condition-builder/PromotedFilters/PromotedFilters.stories.d.ts +0 -8
  33. package/jsx/condition-builder/PromotedFilters/PromotedFilters.stories.d.ts.map +0 -1
  34. package/jsx/condition-builder/PromotedFilters/PromotedFilters.stories.jsx +0 -31
  35. package/jsx/condition-builder/PromotedFilters/PromotedFilters.stories.jsx.map +0 -1
  36. package/jsx/condition-builder/PromotedFilters/PromotedFilters.styles.d.ts +0 -9
  37. package/jsx/condition-builder/PromotedFilters/PromotedFilters.styles.d.ts.map +0 -1
  38. package/jsx/condition-builder/PromotedFilters/PromotedFilters.styles.js +0 -35
  39. package/jsx/condition-builder/PromotedFilters/PromotedFilters.styles.js.map +0 -1
  40. package/jsx/core/AIButton/AIButton.mocks.d.ts +0 -22
  41. package/jsx/core/AIButton/AIButton.mocks.d.ts.map +0 -1
  42. package/jsx/core/AIButton/AIButton.mocks.js +0 -136
  43. package/jsx/core/AIButton/AIButton.mocks.js.map +0 -1
  44. package/jsx/core/AIButton/AIButton.stories.d.ts +0 -23
  45. package/jsx/core/AIButton/AIButton.stories.d.ts.map +0 -1
  46. package/jsx/core/AIButton/AIButton.stories.jsx +0 -306
  47. package/jsx/core/AIButton/AIButton.stories.jsx.map +0 -1
  48. package/jsx/core/AdditionalInfo/AdditionalInfo.stories.d.ts +0 -9
  49. package/jsx/core/AdditionalInfo/AdditionalInfo.stories.d.ts.map +0 -1
  50. package/jsx/core/AdditionalInfo/AdditionalInfo.stories.jsx +0 -25
  51. package/jsx/core/AdditionalInfo/AdditionalInfo.stories.jsx.map +0 -1
  52. package/jsx/core/AppShell/AppShell.mocks.d.ts +0 -15
  53. package/jsx/core/AppShell/AppShell.mocks.d.ts.map +0 -1
  54. package/jsx/core/AppShell/AppShell.mocks.jsx +0 -132
  55. package/jsx/core/AppShell/AppShell.mocks.jsx.map +0 -1
  56. package/jsx/core/AppShell/AppShell.stories.d.ts +0 -39
  57. package/jsx/core/AppShell/AppShell.stories.d.ts.map +0 -1
  58. package/jsx/core/AppShell/AppShell.stories.jsx +0 -266
  59. package/jsx/core/AppShell/AppShell.stories.jsx.map +0 -1
  60. package/jsx/core/AppShell/AppShell.styles.d.ts +0 -2
  61. package/jsx/core/AppShell/AppShell.styles.d.ts.map +0 -1
  62. package/jsx/core/AppShell/AppShell.styles.js +0 -5
  63. package/jsx/core/AppShell/AppShell.styles.js.map +0 -1
  64. package/jsx/core/Avatar/Avatar.stories.d.ts +0 -15
  65. package/jsx/core/Avatar/Avatar.stories.d.ts.map +0 -1
  66. package/jsx/core/Avatar/Avatar.stories.jsx +0 -75
  67. package/jsx/core/Avatar/Avatar.stories.jsx.map +0 -1
  68. package/jsx/core/Backdrop/Backdrop.stories.d.ts +0 -7
  69. package/jsx/core/Backdrop/Backdrop.stories.d.ts.map +0 -1
  70. package/jsx/core/Backdrop/Backdrop.stories.jsx +0 -43
  71. package/jsx/core/Backdrop/Backdrop.stories.jsx.map +0 -1
  72. package/jsx/core/Badges/Alert.stories.d.ts +0 -6
  73. package/jsx/core/Badges/Alert.stories.d.ts.map +0 -1
  74. package/jsx/core/Badges/Alert.stories.jsx +0 -15
  75. package/jsx/core/Badges/Alert.stories.jsx.map +0 -1
  76. package/jsx/core/Badges/Count.stories.d.ts +0 -6
  77. package/jsx/core/Badges/Count.stories.d.ts.map +0 -1
  78. package/jsx/core/Badges/Count.stories.jsx +0 -20
  79. package/jsx/core/Badges/Count.stories.jsx.map +0 -1
  80. package/jsx/core/Badges/Keyboard.stories.d.ts +0 -6
  81. package/jsx/core/Badges/Keyboard.stories.d.ts.map +0 -1
  82. package/jsx/core/Badges/Keyboard.stories.jsx +0 -17
  83. package/jsx/core/Badges/Keyboard.stories.jsx.map +0 -1
  84. package/jsx/core/Badges/Selection.stories.d.ts +0 -5
  85. package/jsx/core/Badges/Selection.stories.d.ts.map +0 -1
  86. package/jsx/core/Badges/Selection.stories.jsx +0 -9
  87. package/jsx/core/Badges/Selection.stories.jsx.map +0 -1
  88. package/jsx/core/Badges/Status.stories.d.ts +0 -11
  89. package/jsx/core/Badges/Status.stories.d.ts.map +0 -1
  90. package/jsx/core/Badges/Status.stories.jsx +0 -43
  91. package/jsx/core/Badges/Status.stories.jsx.map +0 -1
  92. package/jsx/core/Badges/Tag.stories.d.ts +0 -5
  93. package/jsx/core/Badges/Tag.stories.d.ts.map +0 -1
  94. package/jsx/core/Badges/Tag.stories.jsx +0 -9
  95. package/jsx/core/Badges/Tag.stories.jsx.map +0 -1
  96. package/jsx/core/Banner/Banner.mocks.d.ts +0 -18
  97. package/jsx/core/Banner/Banner.mocks.d.ts.map +0 -1
  98. package/jsx/core/Banner/Banner.mocks.jsx +0 -41
  99. package/jsx/core/Banner/Banner.mocks.jsx.map +0 -1
  100. package/jsx/core/Banner/Banner.stories.d.ts +0 -18
  101. package/jsx/core/Banner/Banner.stories.d.ts.map +0 -1
  102. package/jsx/core/Banner/Banner.stories.jsx +0 -156
  103. package/jsx/core/Banner/Banner.stories.jsx.map +0 -1
  104. package/jsx/core/Boolean/BooleanDisplay.stories.d.ts +0 -6
  105. package/jsx/core/Boolean/BooleanDisplay.stories.d.ts.map +0 -1
  106. package/jsx/core/Boolean/BooleanDisplay.stories.jsx +0 -19
  107. package/jsx/core/Boolean/BooleanDisplay.stories.jsx.map +0 -1
  108. package/jsx/core/Breadcrumbs/Breadcrumbs.mocks.d.ts +0 -2
  109. package/jsx/core/Breadcrumbs/Breadcrumbs.mocks.d.ts.map +0 -1
  110. package/jsx/core/Breadcrumbs/Breadcrumbs.mocks.js +0 -8
  111. package/jsx/core/Breadcrumbs/Breadcrumbs.mocks.js.map +0 -1
  112. package/jsx/core/Breadcrumbs/Breadcrumbs.stories.d.ts +0 -11
  113. package/jsx/core/Breadcrumbs/Breadcrumbs.stories.d.ts.map +0 -1
  114. package/jsx/core/Breadcrumbs/Breadcrumbs.stories.jsx +0 -69
  115. package/jsx/core/Breadcrumbs/Breadcrumbs.stories.jsx.map +0 -1
  116. package/jsx/core/Breadcrumbs/Breadcrumbs.styles.d.ts +0 -2
  117. package/jsx/core/Breadcrumbs/Breadcrumbs.styles.d.ts.map +0 -1
  118. package/jsx/core/Breadcrumbs/Breadcrumbs.styles.js +0 -12
  119. package/jsx/core/Breadcrumbs/Breadcrumbs.styles.js.map +0 -1
  120. package/jsx/core/Button/Button.stories.d.ts +0 -18
  121. package/jsx/core/Button/Button.stories.d.ts.map +0 -1
  122. package/jsx/core/Button/Button.stories.jsx +0 -119
  123. package/jsx/core/Button/Button.stories.jsx.map +0 -1
  124. package/jsx/core/Card/Card.stories.d.ts +0 -12
  125. package/jsx/core/Card/Card.stories.d.ts.map +0 -1
  126. package/jsx/core/Card/Card.stories.jsx +0 -85
  127. package/jsx/core/Card/Card.stories.jsx.map +0 -1
  128. package/jsx/core/Card/Card.styles.d.ts +0 -2
  129. package/jsx/core/Card/Card.styles.d.ts.map +0 -1
  130. package/jsx/core/Card/Card.styles.js +0 -5
  131. package/jsx/core/Card/Card.styles.js.map +0 -1
  132. package/jsx/core/Checkbox/Checkbox.stories.d.ts +0 -23
  133. package/jsx/core/Checkbox/Checkbox.stories.d.ts.map +0 -1
  134. package/jsx/core/Checkbox/Checkbox.stories.jsx +0 -100
  135. package/jsx/core/Checkbox/Checkbox.stories.jsx.map +0 -1
  136. package/jsx/core/CheckboxGroup/CheckboxGroup.stories.d.ts +0 -11
  137. package/jsx/core/CheckboxGroup/CheckboxGroup.stories.d.ts.map +0 -1
  138. package/jsx/core/CheckboxGroup/CheckboxGroup.stories.jsx +0 -99
  139. package/jsx/core/CheckboxGroup/CheckboxGroup.stories.jsx.map +0 -1
  140. package/jsx/core/CheckboxGroup/CheckboxGroup.styles.d.ts +0 -4
  141. package/jsx/core/CheckboxGroup/CheckboxGroup.styles.d.ts.map +0 -1
  142. package/jsx/core/CheckboxGroup/CheckboxGroup.styles.js +0 -9
  143. package/jsx/core/CheckboxGroup/CheckboxGroup.styles.js.map +0 -1
  144. package/jsx/core/ColorPicker/ColorPicker.stories.d.ts +0 -10
  145. package/jsx/core/ColorPicker/ColorPicker.stories.d.ts.map +0 -1
  146. package/jsx/core/ColorPicker/ColorPicker.stories.jsx +0 -89
  147. package/jsx/core/ColorPicker/ColorPicker.stories.jsx.map +0 -1
  148. package/jsx/core/ColorPicker/ColorPicker.styles.d.ts +0 -4
  149. package/jsx/core/ColorPicker/ColorPicker.styles.d.ts.map +0 -1
  150. package/jsx/core/ColorPicker/ColorPicker.styles.js +0 -11
  151. package/jsx/core/ColorPicker/ColorPicker.styles.js.map +0 -1
  152. package/jsx/core/ComboBox/ComboBox.mocks.d.ts +0 -26
  153. package/jsx/core/ComboBox/ComboBox.mocks.d.ts.map +0 -1
  154. package/jsx/core/ComboBox/ComboBox.mocks.jsx +0 -58
  155. package/jsx/core/ComboBox/ComboBox.mocks.jsx.map +0 -1
  156. package/jsx/core/ComboBox/ComboBox.stories.d.ts +0 -24
  157. package/jsx/core/ComboBox/ComboBox.stories.d.ts.map +0 -1
  158. package/jsx/core/ComboBox/ComboBox.stories.jsx +0 -369
  159. package/jsx/core/ComboBox/ComboBox.stories.jsx.map +0 -1
  160. package/jsx/core/CompositeInput/CompositeInput.mocks.d.ts +0 -8
  161. package/jsx/core/CompositeInput/CompositeInput.mocks.d.ts.map +0 -1
  162. package/jsx/core/CompositeInput/CompositeInput.mocks.jsx +0 -8
  163. package/jsx/core/CompositeInput/CompositeInput.mocks.jsx.map +0 -1
  164. package/jsx/core/CompositeInput/CompositeInput.stories.d.ts +0 -9
  165. package/jsx/core/CompositeInput/CompositeInput.stories.d.ts.map +0 -1
  166. package/jsx/core/CompositeInput/CompositeInput.stories.jsx +0 -52
  167. package/jsx/core/CompositeInput/CompositeInput.stories.jsx.map +0 -1
  168. package/jsx/core/Configuration/Configuration.mocks.d.ts +0 -7
  169. package/jsx/core/Configuration/Configuration.mocks.d.ts.map +0 -1
  170. package/jsx/core/Configuration/Configuration.mocks.jsx +0 -9
  171. package/jsx/core/Configuration/Configuration.mocks.jsx.map +0 -1
  172. package/jsx/core/Configuration/Configuration.stories.d.ts +0 -25
  173. package/jsx/core/Configuration/Configuration.stories.d.ts.map +0 -1
  174. package/jsx/core/Configuration/Configuration.stories.jsx +0 -196
  175. package/jsx/core/Configuration/Configuration.stories.jsx.map +0 -1
  176. package/jsx/core/Configuration/Configuration.styles.d.ts +0 -6
  177. package/jsx/core/Configuration/Configuration.styles.d.ts.map +0 -1
  178. package/jsx/core/Configuration/Configuration.styles.js +0 -12
  179. package/jsx/core/Configuration/Configuration.styles.js.map +0 -1
  180. package/jsx/core/CreditCard/CreditCard.stories.d.ts +0 -14
  181. package/jsx/core/CreditCard/CreditCard.stories.d.ts.map +0 -1
  182. package/jsx/core/CreditCard/CreditCard.stories.jsx +0 -50
  183. package/jsx/core/CreditCard/CreditCard.stories.jsx.map +0 -1
  184. package/jsx/core/Currency/Currency.stories.d.ts +0 -19
  185. package/jsx/core/Currency/Currency.stories.d.ts.map +0 -1
  186. package/jsx/core/Currency/Currency.stories.jsx +0 -105
  187. package/jsx/core/Currency/Currency.stories.jsx.map +0 -1
  188. package/jsx/core/DangerButton/DangerButton.stories.d.ts +0 -6
  189. package/jsx/core/DangerButton/DangerButton.stories.d.ts.map +0 -1
  190. package/jsx/core/DangerButton/DangerButton.stories.jsx +0 -17
  191. package/jsx/core/DangerButton/DangerButton.stories.jsx.map +0 -1
  192. package/jsx/core/DateTime/DateTime.stories.d.ts +0 -51
  193. package/jsx/core/DateTime/DateTime.stories.d.ts.map +0 -1
  194. package/jsx/core/DateTime/DateTime.stories.jsx +0 -291
  195. package/jsx/core/DateTime/DateTime.stories.jsx.map +0 -1
  196. package/jsx/core/DateTime/DateTimeDisplay.stories.d.ts +0 -7
  197. package/jsx/core/DateTime/DateTimeDisplay.stories.d.ts.map +0 -1
  198. package/jsx/core/DateTime/DateTimeDisplay.stories.jsx +0 -54
  199. package/jsx/core/DateTime/DateTimeDisplay.stories.jsx.map +0 -1
  200. package/jsx/core/DateTime/DateTimePicker.stories.d.ts +0 -7
  201. package/jsx/core/DateTime/DateTimePicker.stories.d.ts.map +0 -1
  202. package/jsx/core/DateTime/DateTimePicker.stories.jsx +0 -34
  203. package/jsx/core/DateTime/DateTimePicker.stories.jsx.map +0 -1
  204. package/jsx/core/Dialog/Dialog.stories.d.ts +0 -7
  205. package/jsx/core/Dialog/Dialog.stories.d.ts.map +0 -1
  206. package/jsx/core/Dialog/Dialog.stories.jsx +0 -15
  207. package/jsx/core/Dialog/Dialog.stories.jsx.map +0 -1
  208. package/jsx/core/Dialog/FormDialog.mocks.d.ts +0 -27
  209. package/jsx/core/Dialog/FormDialog.mocks.d.ts.map +0 -1
  210. package/jsx/core/Dialog/FormDialog.mocks.jsx +0 -194
  211. package/jsx/core/Dialog/FormDialog.mocks.jsx.map +0 -1
  212. package/jsx/core/Dialog/InfoDialog.mocks.d.ts +0 -4
  213. package/jsx/core/Dialog/InfoDialog.mocks.d.ts.map +0 -1
  214. package/jsx/core/Dialog/InfoDialog.mocks.jsx +0 -64
  215. package/jsx/core/Dialog/InfoDialog.mocks.jsx.map +0 -1
  216. package/jsx/core/Drawer/Drawer.stories.d.ts +0 -7
  217. package/jsx/core/Drawer/Drawer.stories.d.ts.map +0 -1
  218. package/jsx/core/Drawer/Drawer.stories.jsx +0 -98
  219. package/jsx/core/Drawer/Drawer.stories.jsx.map +0 -1
  220. package/jsx/core/Drawer/Drawer.styles.d.ts +0 -2
  221. package/jsx/core/Drawer/Drawer.styles.d.ts.map +0 -1
  222. package/jsx/core/Drawer/Drawer.styles.js +0 -11
  223. package/jsx/core/Drawer/Drawer.styles.js.map +0 -1
  224. package/jsx/core/Email/EmailDisplay.stories.d.ts +0 -6
  225. package/jsx/core/Email/EmailDisplay.stories.d.ts.map +0 -1
  226. package/jsx/core/Email/EmailDisplay.stories.jsx +0 -19
  227. package/jsx/core/Email/EmailDisplay.stories.jsx.map +0 -1
  228. package/jsx/core/EmojiPicker/EmojiPicker.stories.d.ts +0 -8
  229. package/jsx/core/EmojiPicker/EmojiPicker.stories.d.ts.map +0 -1
  230. package/jsx/core/EmojiPicker/EmojiPicker.stories.jsx +0 -53
  231. package/jsx/core/EmojiPicker/EmojiPicker.stories.jsx.map +0 -1
  232. package/jsx/core/EmptyState/EmptyState.stories.d.ts +0 -6
  233. package/jsx/core/EmptyState/EmptyState.stories.d.ts.map +0 -1
  234. package/jsx/core/EmptyState/EmptyState.stories.jsx +0 -18
  235. package/jsx/core/EmptyState/EmptyState.stories.jsx.map +0 -1
  236. package/jsx/core/ErrorState/ErrorState.stories.d.ts +0 -9
  237. package/jsx/core/ErrorState/ErrorState.stories.d.ts.map +0 -1
  238. package/jsx/core/ErrorState/ErrorState.stories.jsx +0 -20
  239. package/jsx/core/ErrorState/ErrorState.stories.jsx.map +0 -1
  240. package/jsx/core/ExpandCollapse/ExpandCollapse.stories.d.ts +0 -7
  241. package/jsx/core/ExpandCollapse/ExpandCollapse.stories.d.ts.map +0 -1
  242. package/jsx/core/ExpandCollapse/ExpandCollapse.stories.jsx +0 -73
  243. package/jsx/core/ExpandCollapse/ExpandCollapse.stories.jsx.map +0 -1
  244. package/jsx/core/ExpandCollapse/ExpandCollapse.styles.d.ts +0 -4
  245. package/jsx/core/ExpandCollapse/ExpandCollapse.styles.d.ts.map +0 -1
  246. package/jsx/core/ExpandCollapse/ExpandCollapse.styles.js +0 -17
  247. package/jsx/core/ExpandCollapse/ExpandCollapse.styles.js.map +0 -1
  248. package/jsx/core/FieldGroup/FieldGroup.stories.d.ts +0 -20
  249. package/jsx/core/FieldGroup/FieldGroup.stories.d.ts.map +0 -1
  250. package/jsx/core/FieldGroup/FieldGroup.stories.jsx +0 -93
  251. package/jsx/core/FieldGroup/FieldGroup.stories.jsx.map +0 -1
  252. package/jsx/core/FieldGroup/FieldGroupList.mocks.d.ts +0 -25
  253. package/jsx/core/FieldGroup/FieldGroupList.mocks.d.ts.map +0 -1
  254. package/jsx/core/FieldGroup/FieldGroupList.mocks.jsx +0 -109
  255. package/jsx/core/FieldGroup/FieldGroupList.mocks.jsx.map +0 -1
  256. package/jsx/core/FieldGroup/FieldGroupList.stories.d.ts +0 -12
  257. package/jsx/core/FieldGroup/FieldGroupList.stories.d.ts.map +0 -1
  258. package/jsx/core/FieldGroup/FieldGroupList.stories.jsx +0 -134
  259. package/jsx/core/FieldGroup/FieldGroupList.stories.jsx.map +0 -1
  260. package/jsx/core/FieldValueList/FieldValueList.mocks.d.ts +0 -20
  261. package/jsx/core/FieldValueList/FieldValueList.mocks.d.ts.map +0 -1
  262. package/jsx/core/FieldValueList/FieldValueList.mocks.jsx +0 -54
  263. package/jsx/core/FieldValueList/FieldValueList.mocks.jsx.map +0 -1
  264. package/jsx/core/FieldValueList/FieldValueList.stories.d.ts +0 -11
  265. package/jsx/core/FieldValueList/FieldValueList.stories.d.ts.map +0 -1
  266. package/jsx/core/FieldValueList/FieldValueList.stories.jsx +0 -37
  267. package/jsx/core/FieldValueList/FieldValueList.stories.jsx.map +0 -1
  268. package/jsx/core/FieldValueList/FieldValueList.styles.d.ts +0 -2
  269. package/jsx/core/FieldValueList/FieldValueList.styles.d.ts.map +0 -1
  270. package/jsx/core/FieldValueList/FieldValueList.styles.js +0 -8
  271. package/jsx/core/FieldValueList/FieldValueList.styles.js.map +0 -1
  272. package/jsx/core/File/FileDisplay.stories.d.ts +0 -20
  273. package/jsx/core/File/FileDisplay.stories.d.ts.map +0 -1
  274. package/jsx/core/File/FileDisplay.stories.jsx +0 -140
  275. package/jsx/core/File/FileDisplay.stories.jsx.map +0 -1
  276. package/jsx/core/File/FileInput.stories.d.ts +0 -10
  277. package/jsx/core/File/FileInput.stories.d.ts.map +0 -1
  278. package/jsx/core/File/FileInput.stories.jsx +0 -103
  279. package/jsx/core/File/FileInput.stories.jsx.map +0 -1
  280. package/jsx/core/File/FileService.mock.d.ts +0 -28
  281. package/jsx/core/File/FileService.mock.d.ts.map +0 -1
  282. package/jsx/core/File/FileService.mock.jsx +0 -139
  283. package/jsx/core/File/FileService.mock.jsx.map +0 -1
  284. package/jsx/core/File/MockFileInput.d.ts +0 -6
  285. package/jsx/core/File/MockFileInput.d.ts.map +0 -1
  286. package/jsx/core/File/MockFileInput.jsx +0 -24
  287. package/jsx/core/File/MockFileInput.jsx.map +0 -1
  288. package/jsx/core/Flex/Flex.styles.d.ts +0 -10
  289. package/jsx/core/Flex/Flex.styles.d.ts.map +0 -1
  290. package/jsx/core/Flex/Flex.styles.js +0 -41
  291. package/jsx/core/Flex/Flex.styles.js.map +0 -1
  292. package/jsx/core/Flex/FlexContainer.stories.d.ts +0 -21
  293. package/jsx/core/Flex/FlexContainer.stories.d.ts.map +0 -1
  294. package/jsx/core/Flex/FlexContainer.stories.jsx +0 -164
  295. package/jsx/core/Flex/FlexContainer.stories.jsx.map +0 -1
  296. package/jsx/core/Flex/FlexItem.stories.d.ts +0 -13
  297. package/jsx/core/Flex/FlexItem.stories.d.ts.map +0 -1
  298. package/jsx/core/Flex/FlexItem.stories.jsx +0 -71
  299. package/jsx/core/Flex/FlexItem.stories.jsx.map +0 -1
  300. package/jsx/core/Form/Form.mocks.d.ts +0 -14
  301. package/jsx/core/Form/Form.mocks.d.ts.map +0 -1
  302. package/jsx/core/Form/Form.mocks.jsx +0 -265
  303. package/jsx/core/Form/Form.mocks.jsx.map +0 -1
  304. package/jsx/core/Form/Form.stories.d.ts +0 -25
  305. package/jsx/core/Form/Form.stories.d.ts.map +0 -1
  306. package/jsx/core/Form/Form.stories.jsx +0 -106
  307. package/jsx/core/Form/Form.stories.jsx.map +0 -1
  308. package/jsx/core/Grid/Grid.styles.d.ts +0 -6
  309. package/jsx/core/Grid/Grid.styles.d.ts.map +0 -1
  310. package/jsx/core/Grid/Grid.styles.js +0 -36
  311. package/jsx/core/Grid/Grid.styles.js.map +0 -1
  312. package/jsx/core/Grid/GridContainer.stories.d.ts +0 -23
  313. package/jsx/core/Grid/GridContainer.stories.d.ts.map +0 -1
  314. package/jsx/core/Grid/GridContainer.stories.jsx +0 -168
  315. package/jsx/core/Grid/GridContainer.stories.jsx.map +0 -1
  316. package/jsx/core/Grid/GridItem.stories.d.ts +0 -12
  317. package/jsx/core/Grid/GridItem.stories.d.ts.map +0 -1
  318. package/jsx/core/Grid/GridItem.stories.jsx +0 -74
  319. package/jsx/core/Grid/GridItem.stories.jsx.map +0 -1
  320. package/jsx/core/HTML/HTML.stories.d.ts +0 -6
  321. package/jsx/core/HTML/HTML.stories.d.ts.map +0 -1
  322. package/jsx/core/HTML/HTML.stories.jsx +0 -13
  323. package/jsx/core/HTML/HTML.stories.jsx.map +0 -1
  324. package/jsx/core/Icon/Icon.mocks.d.ts +0 -26
  325. package/jsx/core/Icon/Icon.mocks.d.ts.map +0 -1
  326. package/jsx/core/Icon/Icon.mocks.jsx +0 -32
  327. package/jsx/core/Icon/Icon.mocks.jsx.map +0 -1
  328. package/jsx/core/Icon/Icon.stories.d.ts +0 -21
  329. package/jsx/core/Icon/Icon.stories.d.ts.map +0 -1
  330. package/jsx/core/Icon/Icon.stories.jsx +0 -112
  331. package/jsx/core/Icon/Icon.stories.jsx.map +0 -1
  332. package/jsx/core/Icon/Icon.styles.d.ts +0 -4
  333. package/jsx/core/Icon/Icon.styles.d.ts.map +0 -1
  334. package/jsx/core/Icon/Icon.styles.js +0 -25
  335. package/jsx/core/Icon/Icon.styles.js.map +0 -1
  336. package/jsx/core/IconPicker/IconPicker.stories.d.ts +0 -6
  337. package/jsx/core/IconPicker/IconPicker.stories.d.ts.map +0 -1
  338. package/jsx/core/IconPicker/IconPicker.stories.jsx +0 -35
  339. package/jsx/core/IconPicker/IconPicker.stories.jsx.map +0 -1
  340. package/jsx/core/Image/Image.stories.d.ts +0 -5
  341. package/jsx/core/Image/Image.stories.d.ts.map +0 -1
  342. package/jsx/core/Image/Image.stories.jsx +0 -9
  343. package/jsx/core/Image/Image.stories.jsx.map +0 -1
  344. package/jsx/core/Input/Input.stories.d.ts +0 -20
  345. package/jsx/core/Input/Input.stories.d.ts.map +0 -1
  346. package/jsx/core/Input/Input.stories.jsx +0 -159
  347. package/jsx/core/Input/Input.stories.jsx.map +0 -1
  348. package/jsx/core/Label/Label.stories.d.ts +0 -10
  349. package/jsx/core/Label/Label.stories.d.ts.map +0 -1
  350. package/jsx/core/Label/Label.stories.jsx +0 -33
  351. package/jsx/core/Label/Label.stories.jsx.map +0 -1
  352. package/jsx/core/Lightbox/Lightbox.mocks.d.ts +0 -22
  353. package/jsx/core/Lightbox/Lightbox.mocks.d.ts.map +0 -1
  354. package/jsx/core/Lightbox/Lightbox.mocks.js +0 -97
  355. package/jsx/core/Lightbox/Lightbox.mocks.js.map +0 -1
  356. package/jsx/core/Lightbox/Lightbox.stories.d.ts +0 -10
  357. package/jsx/core/Lightbox/Lightbox.stories.d.ts.map +0 -1
  358. package/jsx/core/Lightbox/Lightbox.stories.jsx +0 -70
  359. package/jsx/core/Lightbox/Lightbox.stories.jsx.map +0 -1
  360. package/jsx/core/Link/Link.stories.d.ts +0 -13
  361. package/jsx/core/Link/Link.stories.d.ts.map +0 -1
  362. package/jsx/core/Link/Link.stories.jsx +0 -43
  363. package/jsx/core/Link/Link.stories.jsx.map +0 -1
  364. package/jsx/core/List/CommaSeparatedList.stories.d.ts +0 -6
  365. package/jsx/core/List/CommaSeparatedList.stories.d.ts.map +0 -1
  366. package/jsx/core/List/CommaSeparatedList.stories.jsx +0 -31
  367. package/jsx/core/List/CommaSeparatedList.stories.jsx.map +0 -1
  368. package/jsx/core/List/OrderedList.stories.d.ts +0 -10
  369. package/jsx/core/List/OrderedList.stories.d.ts.map +0 -1
  370. package/jsx/core/List/OrderedList.stories.jsx +0 -38
  371. package/jsx/core/List/OrderedList.stories.jsx.map +0 -1
  372. package/jsx/core/List/UnorderedList.stories.d.ts +0 -10
  373. package/jsx/core/List/UnorderedList.stories.d.ts.map +0 -1
  374. package/jsx/core/List/UnorderedList.stories.jsx +0 -38
  375. package/jsx/core/List/UnorderedList.stories.jsx.map +0 -1
  376. package/jsx/core/ListToolbar/ListToolbar.mocks.d.ts +0 -9
  377. package/jsx/core/ListToolbar/ListToolbar.mocks.d.ts.map +0 -1
  378. package/jsx/core/ListToolbar/ListToolbar.mocks.jsx +0 -58
  379. package/jsx/core/ListToolbar/ListToolbar.mocks.jsx.map +0 -1
  380. package/jsx/core/ListToolbar/ListToolbar.stories.d.ts +0 -17
  381. package/jsx/core/ListToolbar/ListToolbar.stories.d.ts.map +0 -1
  382. package/jsx/core/ListToolbar/ListToolbar.stories.jsx +0 -141
  383. package/jsx/core/ListToolbar/ListToolbar.stories.jsx.map +0 -1
  384. package/jsx/core/LiveLog/LiveLog.mocks.d.ts +0 -5
  385. package/jsx/core/LiveLog/LiveLog.mocks.d.ts.map +0 -1
  386. package/jsx/core/LiveLog/LiveLog.mocks.jsx +0 -47
  387. package/jsx/core/LiveLog/LiveLog.mocks.jsx.map +0 -1
  388. package/jsx/core/LiveLog/LiveLog.stories.d.ts +0 -9
  389. package/jsx/core/LiveLog/LiveLog.stories.d.ts.map +0 -1
  390. package/jsx/core/LiveLog/LiveLog.stories.jsx +0 -19
  391. package/jsx/core/LiveLog/LiveLog.stories.jsx.map +0 -1
  392. package/jsx/core/Location/Location.stories.d.ts +0 -15
  393. package/jsx/core/Location/Location.stories.d.ts.map +0 -1
  394. package/jsx/core/Location/Location.stories.jsx +0 -142
  395. package/jsx/core/Location/Location.stories.jsx.map +0 -1
  396. package/jsx/core/Location/locationTestUtils.d.ts +0 -3
  397. package/jsx/core/Location/locationTestUtils.d.ts.map +0 -1
  398. package/jsx/core/Location/locationTestUtils.js +0 -29
  399. package/jsx/core/Location/locationTestUtils.js.map +0 -1
  400. package/jsx/core/Menu/Menu.mocks.d.ts +0 -4
  401. package/jsx/core/Menu/Menu.mocks.d.ts.map +0 -1
  402. package/jsx/core/Menu/Menu.mocks.js +0 -179
  403. package/jsx/core/Menu/Menu.mocks.js.map +0 -1
  404. package/jsx/core/Menu/Menu.stories.d.ts +0 -18
  405. package/jsx/core/Menu/Menu.stories.d.ts.map +0 -1
  406. package/jsx/core/Menu/Menu.stories.jsx +0 -196
  407. package/jsx/core/Menu/Menu.stories.jsx.map +0 -1
  408. package/jsx/core/Menu/Menu.styles.d.ts +0 -2
  409. package/jsx/core/Menu/Menu.styles.d.ts.map +0 -1
  410. package/jsx/core/Menu/Menu.styles.js +0 -6
  411. package/jsx/core/Menu/Menu.styles.js.map +0 -1
  412. package/jsx/core/MenuButton/MenuButton.stories.d.ts +0 -16
  413. package/jsx/core/MenuButton/MenuButton.stories.d.ts.map +0 -1
  414. package/jsx/core/MenuButton/MenuButton.stories.jsx +0 -188
  415. package/jsx/core/MenuButton/MenuButton.stories.jsx.map +0 -1
  416. package/jsx/core/MetaList/MetaList.stories.d.ts +0 -9
  417. package/jsx/core/MetaList/MetaList.stories.d.ts.map +0 -1
  418. package/jsx/core/MetaList/MetaList.stories.jsx +0 -24
  419. package/jsx/core/MetaList/MetaList.stories.jsx.map +0 -1
  420. package/jsx/core/Modal/Modal.mocks.d.ts +0 -4
  421. package/jsx/core/Modal/Modal.mocks.d.ts.map +0 -1
  422. package/jsx/core/Modal/Modal.mocks.jsx +0 -44
  423. package/jsx/core/Modal/Modal.mocks.jsx.map +0 -1
  424. package/jsx/core/Modal/Modal.stories.d.ts +0 -36
  425. package/jsx/core/Modal/Modal.stories.d.ts.map +0 -1
  426. package/jsx/core/Modal/Modal.stories.jsx +0 -332
  427. package/jsx/core/Modal/Modal.stories.jsx.map +0 -1
  428. package/jsx/core/MultiStepForm/MultiStepForm.mocks.d.ts +0 -70
  429. package/jsx/core/MultiStepForm/MultiStepForm.mocks.d.ts.map +0 -1
  430. package/jsx/core/MultiStepForm/MultiStepForm.mocks.jsx +0 -401
  431. package/jsx/core/MultiStepForm/MultiStepForm.mocks.jsx.map +0 -1
  432. package/jsx/core/MultiStepForm/MultiStepForm.stories.d.ts +0 -7
  433. package/jsx/core/MultiStepForm/MultiStepForm.stories.d.ts.map +0 -1
  434. package/jsx/core/MultiStepForm/MultiStepForm.stories.jsx +0 -133
  435. package/jsx/core/MultiStepForm/MultiStepForm.stories.jsx.map +0 -1
  436. package/jsx/core/NoValue/NoValue.stories.d.ts +0 -6
  437. package/jsx/core/NoValue/NoValue.stories.d.ts.map +0 -1
  438. package/jsx/core/NoValue/NoValue.stories.jsx +0 -30
  439. package/jsx/core/NoValue/NoValue.stories.jsx.map +0 -1
  440. package/jsx/core/Number/Number.stories.d.ts +0 -19
  441. package/jsx/core/Number/Number.stories.d.ts.map +0 -1
  442. package/jsx/core/Number/Number.stories.jsx +0 -303
  443. package/jsx/core/Number/Number.stories.jsx.map +0 -1
  444. package/jsx/core/PageTemplates/PageTemplates.mocks.d.ts +0 -3
  445. package/jsx/core/PageTemplates/PageTemplates.mocks.d.ts.map +0 -1
  446. package/jsx/core/PageTemplates/PageTemplates.mocks.js +0 -10
  447. package/jsx/core/PageTemplates/PageTemplates.mocks.js.map +0 -1
  448. package/jsx/core/PageTemplates/PageTemplates.stories.d.ts +0 -33
  449. package/jsx/core/PageTemplates/PageTemplates.stories.d.ts.map +0 -1
  450. package/jsx/core/PageTemplates/PageTemplates.stories.jsx +0 -287
  451. package/jsx/core/PageTemplates/PageTemplates.stories.jsx.map +0 -1
  452. package/jsx/core/PageTemplates/PageTemplates.styles.d.ts +0 -5
  453. package/jsx/core/PageTemplates/PageTemplates.styles.d.ts.map +0 -1
  454. package/jsx/core/PageTemplates/PageTemplates.styles.js +0 -40
  455. package/jsx/core/PageTemplates/PageTemplates.styles.js.map +0 -1
  456. package/jsx/core/Pagination/Pagination.stories.d.ts +0 -6
  457. package/jsx/core/Pagination/Pagination.stories.d.ts.map +0 -1
  458. package/jsx/core/Pagination/Pagination.stories.jsx +0 -19
  459. package/jsx/core/Pagination/Pagination.stories.jsx.map +0 -1
  460. package/jsx/core/Paragraph/ParagraphDisplay.stories.d.ts +0 -6
  461. package/jsx/core/Paragraph/ParagraphDisplay.stories.d.ts.map +0 -1
  462. package/jsx/core/Paragraph/ParagraphDisplay.stories.jsx +0 -15
  463. package/jsx/core/Paragraph/ParagraphDisplay.stories.jsx.map +0 -1
  464. package/jsx/core/Phone/Phone.stories.d.ts +0 -13
  465. package/jsx/core/Phone/Phone.stories.d.ts.map +0 -1
  466. package/jsx/core/Phone/Phone.stories.jsx +0 -52
  467. package/jsx/core/Phone/Phone.stories.jsx.map +0 -1
  468. package/jsx/core/Popover/Popover.mocks.d.ts +0 -9
  469. package/jsx/core/Popover/Popover.mocks.d.ts.map +0 -1
  470. package/jsx/core/Popover/Popover.mocks.jsx +0 -114
  471. package/jsx/core/Popover/Popover.mocks.jsx.map +0 -1
  472. package/jsx/core/Popover/Popover.stories.d.ts +0 -13
  473. package/jsx/core/Popover/Popover.stories.d.ts.map +0 -1
  474. package/jsx/core/Popover/Popover.stories.jsx +0 -209
  475. package/jsx/core/Popover/Popover.stories.jsx.map +0 -1
  476. package/jsx/core/Progress/Progress.mocks.d.ts +0 -2
  477. package/jsx/core/Progress/Progress.mocks.d.ts.map +0 -1
  478. package/jsx/core/Progress/Progress.mocks.js +0 -2
  479. package/jsx/core/Progress/Progress.mocks.js.map +0 -1
  480. package/jsx/core/Progress/Progress.stories.d.ts +0 -16
  481. package/jsx/core/Progress/Progress.stories.d.ts.map +0 -1
  482. package/jsx/core/Progress/Progress.stories.jsx +0 -124
  483. package/jsx/core/Progress/Progress.stories.jsx.map +0 -1
  484. package/jsx/core/Progress/Progress.styles.d.ts +0 -2
  485. package/jsx/core/Progress/Progress.styles.d.ts.map +0 -1
  486. package/jsx/core/Progress/Progress.styles.js +0 -14
  487. package/jsx/core/Progress/Progress.styles.js.map +0 -1
  488. package/jsx/core/QRCode/QRCode.stories.d.ts +0 -9
  489. package/jsx/core/QRCode/QRCode.stories.d.ts.map +0 -1
  490. package/jsx/core/QRCode/QRCode.stories.jsx +0 -17
  491. package/jsx/core/QRCode/QRCode.stories.jsx.map +0 -1
  492. package/jsx/core/RadioButton/RadioButton.stories.d.ts +0 -23
  493. package/jsx/core/RadioButton/RadioButton.stories.d.ts.map +0 -1
  494. package/jsx/core/RadioButton/RadioButton.stories.jsx +0 -95
  495. package/jsx/core/RadioButton/RadioButton.stories.jsx.map +0 -1
  496. package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts +0 -14
  497. package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts.map +0 -1
  498. package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.jsx +0 -101
  499. package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.jsx.map +0 -1
  500. package/jsx/core/RadioButtonGroup/RadioButtonGroup.styles.d.ts +0 -4
  501. package/jsx/core/RadioButtonGroup/RadioButtonGroup.styles.d.ts.map +0 -1
  502. package/jsx/core/RadioButtonGroup/RadioButtonGroup.styles.js +0 -9
  503. package/jsx/core/RadioButtonGroup/RadioButtonGroup.styles.js.map +0 -1
  504. package/jsx/core/Rating/Rating.stories.d.ts +0 -13
  505. package/jsx/core/Rating/Rating.stories.d.ts.map +0 -1
  506. package/jsx/core/Rating/Rating.stories.jsx +0 -39
  507. package/jsx/core/Rating/Rating.stories.jsx.map +0 -1
  508. package/jsx/core/SearchInput/SearchInput.mocks.d.ts +0 -12
  509. package/jsx/core/SearchInput/SearchInput.mocks.d.ts.map +0 -1
  510. package/jsx/core/SearchInput/SearchInput.mocks.js +0 -25
  511. package/jsx/core/SearchInput/SearchInput.mocks.js.map +0 -1
  512. package/jsx/core/SearchInput/SearchInput.stories.d.ts +0 -7
  513. package/jsx/core/SearchInput/SearchInput.stories.d.ts.map +0 -1
  514. package/jsx/core/SearchInput/SearchInput.stories.jsx +0 -44
  515. package/jsx/core/SearchInput/SearchInput.stories.jsx.map +0 -1
  516. package/jsx/core/Select/Select.stories.d.ts +0 -18
  517. package/jsx/core/Select/Select.stories.d.ts.map +0 -1
  518. package/jsx/core/Select/Select.stories.jsx +0 -83
  519. package/jsx/core/Select/Select.stories.jsx.map +0 -1
  520. package/jsx/core/Sentiment/Sentiment.stories.d.ts +0 -20
  521. package/jsx/core/Sentiment/Sentiment.stories.d.ts.map +0 -1
  522. package/jsx/core/Sentiment/Sentiment.stories.jsx +0 -71
  523. package/jsx/core/Sentiment/Sentiment.stories.jsx.map +0 -1
  524. package/jsx/core/SkipLinks/SkipLinks.stories.d.ts +0 -6
  525. package/jsx/core/SkipLinks/SkipLinks.stories.d.ts.map +0 -1
  526. package/jsx/core/SkipLinks/SkipLinks.stories.jsx +0 -29
  527. package/jsx/core/SkipLinks/SkipLinks.stories.jsx.map +0 -1
  528. package/jsx/core/SkipLinks/SkipLinks.styles.d.ts +0 -2
  529. package/jsx/core/SkipLinks/SkipLinks.styles.d.ts.map +0 -1
  530. package/jsx/core/SkipLinks/SkipLinks.styles.js +0 -16
  531. package/jsx/core/SkipLinks/SkipLinks.styles.js.map +0 -1
  532. package/jsx/core/Slider/Slider.stories.d.ts +0 -13
  533. package/jsx/core/Slider/Slider.stories.d.ts.map +0 -1
  534. package/jsx/core/Slider/Slider.stories.jsx +0 -78
  535. package/jsx/core/Slider/Slider.stories.jsx.map +0 -1
  536. package/jsx/core/SummaryItem/SummaryItem.stories.d.ts +0 -11
  537. package/jsx/core/SummaryItem/SummaryItem.stories.d.ts.map +0 -1
  538. package/jsx/core/SummaryItem/SummaryItem.stories.jsx +0 -36
  539. package/jsx/core/SummaryItem/SummaryItem.stories.jsx.map +0 -1
  540. package/jsx/core/SummaryList/SummaryList.mocks.d.ts +0 -20
  541. package/jsx/core/SummaryList/SummaryList.mocks.d.ts.map +0 -1
  542. package/jsx/core/SummaryList/SummaryList.mocks.jsx +0 -48
  543. package/jsx/core/SummaryList/SummaryList.mocks.jsx.map +0 -1
  544. package/jsx/core/SummaryList/SummaryList.stories.d.ts +0 -13
  545. package/jsx/core/SummaryList/SummaryList.stories.d.ts.map +0 -1
  546. package/jsx/core/SummaryList/SummaryList.stories.jsx +0 -131
  547. package/jsx/core/SummaryList/SummaryList.stories.jsx.map +0 -1
  548. package/jsx/core/SummaryList/mockUsers.d.ts +0 -16
  549. package/jsx/core/SummaryList/mockUsers.d.ts.map +0 -1
  550. package/jsx/core/SummaryList/mockUsers.js +0 -904
  551. package/jsx/core/SummaryList/mockUsers.js.map +0 -1
  552. package/jsx/core/Switch/Switch.stories.d.ts +0 -14
  553. package/jsx/core/Switch/Switch.stories.d.ts.map +0 -1
  554. package/jsx/core/Switch/Switch.stories.jsx +0 -60
  555. package/jsx/core/Switch/Switch.stories.jsx.map +0 -1
  556. package/jsx/core/Switch/Switch.styles.d.ts +0 -2
  557. package/jsx/core/Switch/Switch.styles.d.ts.map +0 -1
  558. package/jsx/core/Switch/Switch.styles.js +0 -13
  559. package/jsx/core/Switch/Switch.styles.js.map +0 -1
  560. package/jsx/core/Table/Table.mocks.d.ts +0 -25
  561. package/jsx/core/Table/Table.mocks.d.ts.map +0 -1
  562. package/jsx/core/Table/Table.mocks.jsx +0 -166
  563. package/jsx/core/Table/Table.mocks.jsx.map +0 -1
  564. package/jsx/core/Table/Table.stories.d.ts +0 -39
  565. package/jsx/core/Table/Table.stories.d.ts.map +0 -1
  566. package/jsx/core/Table/Table.stories.jsx +0 -178
  567. package/jsx/core/Table/Table.stories.jsx.map +0 -1
  568. package/jsx/core/Table/Table.styles.d.ts +0 -4
  569. package/jsx/core/Table/Table.styles.d.ts.map +0 -1
  570. package/jsx/core/Table/Table.styles.js +0 -9
  571. package/jsx/core/Table/Table.styles.js.map +0 -1
  572. package/jsx/core/Tabs/Tabs.stories.d.ts +0 -9
  573. package/jsx/core/Tabs/Tabs.stories.d.ts.map +0 -1
  574. package/jsx/core/Tabs/Tabs.stories.jsx +0 -59
  575. package/jsx/core/Tabs/Tabs.stories.jsx.map +0 -1
  576. package/jsx/core/Text/Text.stories.d.ts +0 -25
  577. package/jsx/core/Text/Text.stories.d.ts.map +0 -1
  578. package/jsx/core/Text/Text.stories.jsx +0 -134
  579. package/jsx/core/Text/Text.stories.jsx.map +0 -1
  580. package/jsx/core/TextArea/TextArea.stories.d.ts +0 -14
  581. package/jsx/core/TextArea/TextArea.stories.d.ts.map +0 -1
  582. package/jsx/core/TextArea/TextArea.stories.jsx +0 -71
  583. package/jsx/core/TextArea/TextArea.stories.jsx.map +0 -1
  584. package/jsx/core/Toaster/Toaster.stories.d.ts +0 -5
  585. package/jsx/core/Toaster/Toaster.stories.d.ts.map +0 -1
  586. package/jsx/core/Toaster/Toaster.stories.jsx +0 -27
  587. package/jsx/core/Toaster/Toaster.stories.jsx.map +0 -1
  588. package/jsx/core/Tooltip/Tooltip.stories.d.ts +0 -11
  589. package/jsx/core/Tooltip/Tooltip.stories.d.ts.map +0 -1
  590. package/jsx/core/Tooltip/Tooltip.stories.jsx +0 -66
  591. package/jsx/core/Tooltip/Tooltip.stories.jsx.map +0 -1
  592. package/jsx/core/Tooltip/Tooltip.styles.d.ts +0 -2
  593. package/jsx/core/Tooltip/Tooltip.styles.d.ts.map +0 -1
  594. package/jsx/core/Tooltip/Tooltip.styles.js +0 -23
  595. package/jsx/core/Tooltip/Tooltip.styles.js.map +0 -1
  596. package/jsx/core/Tree/Tree.mocks.d.ts +0 -2
  597. package/jsx/core/Tree/Tree.mocks.d.ts.map +0 -1
  598. package/jsx/core/Tree/Tree.mocks.js +0 -20
  599. package/jsx/core/Tree/Tree.mocks.js.map +0 -1
  600. package/jsx/core/Tree/Tree.stories.d.ts +0 -7
  601. package/jsx/core/Tree/Tree.stories.d.ts.map +0 -1
  602. package/jsx/core/Tree/Tree.stories.jsx +0 -95
  603. package/jsx/core/Tree/Tree.stories.jsx.map +0 -1
  604. package/jsx/core/Tree/Tree.styles.d.ts +0 -3
  605. package/jsx/core/Tree/Tree.styles.d.ts.map +0 -1
  606. package/jsx/core/Tree/Tree.styles.js +0 -10
  607. package/jsx/core/Tree/Tree.styles.js.map +0 -1
  608. package/jsx/core/URL/URL.stories.d.ts +0 -6
  609. package/jsx/core/URL/URL.stories.d.ts.map +0 -1
  610. package/jsx/core/URL/URL.stories.jsx +0 -17
  611. package/jsx/core/URL/URL.stories.jsx.map +0 -1
  612. package/jsx/dnd/DragDropList/DragDropList.mocks.d.ts +0 -15
  613. package/jsx/dnd/DragDropList/DragDropList.mocks.d.ts.map +0 -1
  614. package/jsx/dnd/DragDropList/DragDropList.mocks.jsx +0 -33
  615. package/jsx/dnd/DragDropList/DragDropList.mocks.jsx.map +0 -1
  616. package/jsx/dnd/DragDropList/DragDropList.stories.d.ts +0 -10
  617. package/jsx/dnd/DragDropList/DragDropList.stories.d.ts.map +0 -1
  618. package/jsx/dnd/DragDropList/DragDropList.stories.jsx +0 -55
  619. package/jsx/dnd/DragDropList/DragDropList.stories.jsx.map +0 -1
  620. package/jsx/dnd/DragDropList/DragDropList.styles.d.ts +0 -6
  621. package/jsx/dnd/DragDropList/DragDropList.styles.d.ts.map +0 -1
  622. package/jsx/dnd/DragDropList/DragDropList.styles.js +0 -32
  623. package/jsx/dnd/DragDropList/DragDropList.styles.js.map +0 -1
  624. package/jsx/dnd/StandardDragDropList/Demo.d.ts +0 -7
  625. package/jsx/dnd/StandardDragDropList/Demo.d.ts.map +0 -1
  626. package/jsx/dnd/StandardDragDropList/Demo.jsx +0 -156
  627. package/jsx/dnd/StandardDragDropList/Demo.jsx.map +0 -1
  628. package/jsx/dnd/StandardDragDropList/GroupConfig.d.ts +0 -10
  629. package/jsx/dnd/StandardDragDropList/GroupConfig.d.ts.map +0 -1
  630. package/jsx/dnd/StandardDragDropList/GroupConfig.jsx +0 -26
  631. package/jsx/dnd/StandardDragDropList/GroupConfig.jsx.map +0 -1
  632. package/jsx/dnd/StandardDragDropList/ItemConfig.d.ts +0 -12
  633. package/jsx/dnd/StandardDragDropList/ItemConfig.d.ts.map +0 -1
  634. package/jsx/dnd/StandardDragDropList/ItemConfig.jsx +0 -21
  635. package/jsx/dnd/StandardDragDropList/ItemConfig.jsx.map +0 -1
  636. package/jsx/dnd/StandardDragDropList/Popover.d.ts +0 -14
  637. package/jsx/dnd/StandardDragDropList/Popover.d.ts.map +0 -1
  638. package/jsx/dnd/StandardDragDropList/Popover.jsx +0 -51
  639. package/jsx/dnd/StandardDragDropList/Popover.jsx.map +0 -1
  640. package/jsx/dnd/StandardDragDropList/SelectionMenu.d.ts +0 -16
  641. package/jsx/dnd/StandardDragDropList/SelectionMenu.d.ts.map +0 -1
  642. package/jsx/dnd/StandardDragDropList/SelectionMenu.jsx +0 -104
  643. package/jsx/dnd/StandardDragDropList/SelectionMenu.jsx.map +0 -1
  644. package/jsx/dnd/StandardDragDropList/StandardDragDropList.stories.d.ts +0 -5
  645. package/jsx/dnd/StandardDragDropList/StandardDragDropList.stories.d.ts.map +0 -1
  646. package/jsx/dnd/StandardDragDropList/StandardDragDropList.stories.jsx +0 -15
  647. package/jsx/dnd/StandardDragDropList/StandardDragDropList.stories.jsx.map +0 -1
  648. package/jsx/dnd/StandardDragDropList/mockData.d.ts +0 -26
  649. package/jsx/dnd/StandardDragDropList/mockData.d.ts.map +0 -1
  650. package/jsx/dnd/StandardDragDropList/mockData.js +0 -77
  651. package/jsx/dnd/StandardDragDropList/mockData.js.map +0 -1
  652. package/jsx/rte/DynamicContentEditor/DynamicContentEditor.stories.d.ts +0 -8
  653. package/jsx/rte/DynamicContentEditor/DynamicContentEditor.stories.d.ts.map +0 -1
  654. package/jsx/rte/DynamicContentEditor/DynamicContentEditor.stories.jsx +0 -103
  655. package/jsx/rte/DynamicContentEditor/DynamicContentEditor.stories.jsx.map +0 -1
  656. package/jsx/rte/DynamicContentEditor/FieldSelector.d.ts +0 -11
  657. package/jsx/rte/DynamicContentEditor/FieldSelector.d.ts.map +0 -1
  658. package/jsx/rte/DynamicContentEditor/FieldSelector.jsx +0 -82
  659. package/jsx/rte/DynamicContentEditor/FieldSelector.jsx.map +0 -1
  660. package/jsx/rte/Editor/Editor.mocks.d.ts +0 -329
  661. package/jsx/rte/Editor/Editor.mocks.d.ts.map +0 -1
  662. package/jsx/rte/Editor/Editor.mocks.jsx +0 -22
  663. package/jsx/rte/Editor/Editor.mocks.jsx.map +0 -1
  664. package/jsx/rte/Editor/Editor.stories.d.ts +0 -14
  665. package/jsx/rte/Editor/Editor.stories.d.ts.map +0 -1
  666. package/jsx/rte/Editor/Editor.stories.jsx +0 -159
  667. package/jsx/rte/Editor/Editor.stories.jsx.map +0 -1
  668. package/jsx/rte/RichTextEditor/RichTextEditor.mocks.d.ts +0 -3
  669. package/jsx/rte/RichTextEditor/RichTextEditor.mocks.d.ts.map +0 -1
  670. package/jsx/rte/RichTextEditor/RichTextEditor.mocks.jsx +0 -34
  671. package/jsx/rte/RichTextEditor/RichTextEditor.mocks.jsx.map +0 -1
  672. package/jsx/rte/RichTextEditor/RichTextEditor.stories.d.ts +0 -7
  673. package/jsx/rte/RichTextEditor/RichTextEditor.stories.d.ts.map +0 -1
  674. package/jsx/rte/RichTextEditor/RichTextEditor.stories.jsx +0 -108
  675. package/jsx/rte/RichTextEditor/RichTextEditor.stories.jsx.map +0 -1
  676. package/jsx/rte/RichTextEditor/RichTextViewer.stories.d.ts +0 -13
  677. package/jsx/rte/RichTextEditor/RichTextViewer.stories.d.ts.map +0 -1
  678. package/jsx/rte/RichTextEditor/RichTextViewer.stories.jsx +0 -151
  679. package/jsx/rte/RichTextEditor/RichTextViewer.stories.jsx.map +0 -1
  680. package/jsx/social/Chat/Chat.mocks.d.ts +0 -52
  681. package/jsx/social/Chat/Chat.mocks.d.ts.map +0 -1
  682. package/jsx/social/Chat/Chat.mocks.js +0 -767
  683. package/jsx/social/Chat/Chat.mocks.js.map +0 -1
  684. package/jsx/social/Chat/Chat.stories.d.ts +0 -55
  685. package/jsx/social/Chat/Chat.stories.d.ts.map +0 -1
  686. package/jsx/social/Chat/Chat.stories.jsx +0 -678
  687. package/jsx/social/Chat/Chat.stories.jsx.map +0 -1
  688. package/jsx/social/Email/Email.mocks.d.ts +0 -352
  689. package/jsx/social/Email/Email.mocks.d.ts.map +0 -1
  690. package/jsx/social/Email/Email.mocks.jsx +0 -1215
  691. package/jsx/social/Email/Email.mocks.jsx.map +0 -1
  692. package/jsx/social/Email/Email.stories.d.ts +0 -83
  693. package/jsx/social/Email/Email.stories.d.ts.map +0 -1
  694. package/jsx/social/Email/Email.stories.jsx +0 -1219
  695. package/jsx/social/Email/Email.stories.jsx.map +0 -1
  696. package/jsx/social/Email/Email.styles.d.ts +0 -3
  697. package/jsx/social/Email/Email.styles.d.ts.map +0 -1
  698. package/jsx/social/Email/Email.styles.js +0 -11
  699. package/jsx/social/Email/Email.styles.js.map +0 -1
  700. package/jsx/social/Feed/Feed.mocks.d.ts +0 -53
  701. package/jsx/social/Feed/Feed.mocks.d.ts.map +0 -1
  702. package/jsx/social/Feed/Feed.mocks.jsx +0 -412
  703. package/jsx/social/Feed/Feed.mocks.jsx.map +0 -1
  704. package/jsx/social/Feed/Feed.stories.d.ts +0 -11
  705. package/jsx/social/Feed/Feed.stories.d.ts.map +0 -1
  706. package/jsx/social/Feed/Feed.stories.jsx +0 -222
  707. package/jsx/social/Feed/Feed.stories.jsx.map +0 -1
  708. package/jsx/social/Feed/FeedNewPost.mocks.d.ts +0 -8
  709. package/jsx/social/Feed/FeedNewPost.mocks.d.ts.map +0 -1
  710. package/jsx/social/Feed/FeedNewPost.mocks.jsx +0 -29
  711. package/jsx/social/Feed/FeedNewPost.mocks.jsx.map +0 -1
  712. package/jsx/social/Feed/FeedPost.mocks.d.ts +0 -4
  713. package/jsx/social/Feed/FeedPost.mocks.d.ts.map +0 -1
  714. package/jsx/social/Feed/FeedPost.mocks.jsx +0 -182
  715. package/jsx/social/Feed/FeedPost.mocks.jsx.map +0 -1
  716. package/jsx/social/Feed/FeedReply.mocks.d.ts +0 -13
  717. package/jsx/social/Feed/FeedReply.mocks.d.ts.map +0 -1
  718. package/jsx/social/Feed/FeedReply.mocks.jsx +0 -83
  719. package/jsx/social/Feed/FeedReply.mocks.jsx.map +0 -1
  720. package/jsx/work/AppAnnouncement/AppAnnouncement.stories.d.ts +0 -6
  721. package/jsx/work/AppAnnouncement/AppAnnouncement.stories.d.ts.map +0 -1
  722. package/jsx/work/AppAnnouncement/AppAnnouncement.stories.jsx +0 -30
  723. package/jsx/work/AppAnnouncement/AppAnnouncement.stories.jsx.map +0 -1
  724. package/jsx/work/Article/Article.mocks.d.ts +0 -18
  725. package/jsx/work/Article/Article.mocks.d.ts.map +0 -1
  726. package/jsx/work/Article/Article.mocks.js +0 -18
  727. package/jsx/work/Article/Article.mocks.js.map +0 -1
  728. package/jsx/work/Article/Article.stories.d.ts +0 -18
  729. package/jsx/work/Article/Article.stories.d.ts.map +0 -1
  730. package/jsx/work/Article/Article.stories.jsx +0 -243
  731. package/jsx/work/Article/Article.stories.jsx.map +0 -1
  732. package/jsx/work/ArticleList/ArticleBuddy.stories.d.ts +0 -12
  733. package/jsx/work/ArticleList/ArticleBuddy.stories.d.ts.map +0 -1
  734. package/jsx/work/ArticleList/ArticleBuddy.stories.jsx +0 -87
  735. package/jsx/work/ArticleList/ArticleBuddy.stories.jsx.map +0 -1
  736. package/jsx/work/ArticleList/ArticleList.mocks.d.ts +0 -222
  737. package/jsx/work/ArticleList/ArticleList.mocks.d.ts.map +0 -1
  738. package/jsx/work/ArticleList/ArticleList.mocks.js +0 -490
  739. package/jsx/work/ArticleList/ArticleList.mocks.js.map +0 -1
  740. package/jsx/work/ArticleList/ArticleList.stories.d.ts +0 -15
  741. package/jsx/work/ArticleList/ArticleList.stories.d.ts.map +0 -1
  742. package/jsx/work/ArticleList/ArticleList.stories.jsx +0 -517
  743. package/jsx/work/ArticleList/ArticleList.stories.jsx.map +0 -1
  744. package/jsx/work/Assignments/Assignments.stories.d.ts +0 -11
  745. package/jsx/work/Assignments/Assignments.stories.d.ts.map +0 -1
  746. package/jsx/work/Assignments/Assignments.stories.jsx +0 -64
  747. package/jsx/work/Assignments/Assignments.stories.jsx.map +0 -1
  748. package/jsx/work/CaseView/Attachments.mocks.d.ts +0 -3
  749. package/jsx/work/CaseView/Attachments.mocks.d.ts.map +0 -1
  750. package/jsx/work/CaseView/Attachments.mocks.jsx +0 -397
  751. package/jsx/work/CaseView/Attachments.mocks.jsx.map +0 -1
  752. package/jsx/work/CaseView/CaseView.mocks.d.ts +0 -117
  753. package/jsx/work/CaseView/CaseView.mocks.d.ts.map +0 -1
  754. package/jsx/work/CaseView/CaseView.mocks.jsx +0 -642
  755. package/jsx/work/CaseView/CaseView.mocks.jsx.map +0 -1
  756. package/jsx/work/CaseView/CaseView.stories.d.ts +0 -6
  757. package/jsx/work/CaseView/CaseView.stories.d.ts.map +0 -1
  758. package/jsx/work/CaseView/CaseView.stories.jsx +0 -57
  759. package/jsx/work/CaseView/CaseView.stories.jsx.map +0 -1
  760. package/jsx/work/CaseView/Details.mocks.d.ts +0 -3
  761. package/jsx/work/CaseView/Details.mocks.d.ts.map +0 -1
  762. package/jsx/work/CaseView/Details.mocks.jsx +0 -21
  763. package/jsx/work/CaseView/Details.mocks.jsx.map +0 -1
  764. package/jsx/work/CaseView/Pulse.mocks.d.ts +0 -7
  765. package/jsx/work/CaseView/Pulse.mocks.d.ts.map +0 -1
  766. package/jsx/work/CaseView/Pulse.mocks.jsx +0 -35
  767. package/jsx/work/CaseView/Pulse.mocks.jsx.map +0 -1
  768. package/jsx/work/ConfigurableLayout/ConfigurableLayout.mocks.d.ts +0 -45
  769. package/jsx/work/ConfigurableLayout/ConfigurableLayout.mocks.d.ts.map +0 -1
  770. package/jsx/work/ConfigurableLayout/ConfigurableLayout.mocks.jsx +0 -166
  771. package/jsx/work/ConfigurableLayout/ConfigurableLayout.mocks.jsx.map +0 -1
  772. package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts +0 -5
  773. package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts.map +0 -1
  774. package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.jsx +0 -24
  775. package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.jsx.map +0 -1
  776. package/jsx/work/ConfigurableLayout/ConfigurableLayout.styles.d.ts +0 -4
  777. package/jsx/work/ConfigurableLayout/ConfigurableLayout.styles.d.ts.map +0 -1
  778. package/jsx/work/ConfigurableLayout/ConfigurableLayout.styles.js +0 -11
  779. package/jsx/work/ConfigurableLayout/ConfigurableLayout.styles.js.map +0 -1
  780. package/jsx/work/Confirmation/Confirmation.stories.d.ts +0 -13
  781. package/jsx/work/Confirmation/Confirmation.stories.d.ts.map +0 -1
  782. package/jsx/work/Confirmation/Confirmation.stories.jsx +0 -39
  783. package/jsx/work/Confirmation/Confirmation.stories.jsx.map +0 -1
  784. package/jsx/work/Confirmation/Confirmation.styles.d.ts +0 -2
  785. package/jsx/work/Confirmation/Confirmation.styles.d.ts.map +0 -1
  786. package/jsx/work/Confirmation/Confirmation.styles.js +0 -7
  787. package/jsx/work/Confirmation/Confirmation.styles.js.map +0 -1
  788. package/jsx/work/Details/Details.stories.d.ts +0 -10
  789. package/jsx/work/Details/Details.stories.d.ts.map +0 -1
  790. package/jsx/work/Details/Details.stories.jsx +0 -109
  791. package/jsx/work/Details/Details.stories.jsx.map +0 -1
  792. package/jsx/work/DetailsV2/DetailsV2.stories.d.ts +0 -10
  793. package/jsx/work/DetailsV2/DetailsV2.stories.d.ts.map +0 -1
  794. package/jsx/work/DetailsV2/DetailsV2.stories.jsx +0 -215
  795. package/jsx/work/DetailsV2/DetailsV2.stories.jsx.map +0 -1
  796. package/jsx/work/Glimpse/Glimpse.stories.d.ts +0 -5
  797. package/jsx/work/Glimpse/Glimpse.stories.d.ts.map +0 -1
  798. package/jsx/work/Glimpse/Glimpse.stories.jsx +0 -42
  799. package/jsx/work/Glimpse/Glimpse.stories.jsx.map +0 -1
  800. package/jsx/work/IntelligentGuidance/IntelligentGuidance.stories.d.ts +0 -5
  801. package/jsx/work/IntelligentGuidance/IntelligentGuidance.stories.d.ts.map +0 -1
  802. package/jsx/work/IntelligentGuidance/IntelligentGuidance.stories.jsx +0 -115
  803. package/jsx/work/IntelligentGuidance/IntelligentGuidance.stories.jsx.map +0 -1
  804. package/jsx/work/InteractionNotification/InteractionNotification.stories.d.ts +0 -13
  805. package/jsx/work/InteractionNotification/InteractionNotification.stories.d.ts.map +0 -1
  806. package/jsx/work/InteractionNotification/InteractionNotification.stories.jsx +0 -56
  807. package/jsx/work/InteractionNotification/InteractionNotification.stories.jsx.map +0 -1
  808. package/jsx/work/Predictions/Predictions.mocks.d.ts +0 -3
  809. package/jsx/work/Predictions/Predictions.mocks.d.ts.map +0 -1
  810. package/jsx/work/Predictions/Predictions.mocks.jsx +0 -18
  811. package/jsx/work/Predictions/Predictions.mocks.jsx.map +0 -1
  812. package/jsx/work/Predictions/Predictions.stories.d.ts +0 -5
  813. package/jsx/work/Predictions/Predictions.stories.d.ts.map +0 -1
  814. package/jsx/work/Predictions/Predictions.stories.jsx +0 -53
  815. package/jsx/work/Predictions/Predictions.stories.jsx.map +0 -1
  816. package/jsx/work/SearchResults/SearchResults.mocks.d.ts +0 -14
  817. package/jsx/work/SearchResults/SearchResults.mocks.d.ts.map +0 -1
  818. package/jsx/work/SearchResults/SearchResults.mocks.jsx +0 -97
  819. package/jsx/work/SearchResults/SearchResults.mocks.jsx.map +0 -1
  820. package/jsx/work/SearchResults/SearchResults.stories.d.ts +0 -9
  821. package/jsx/work/SearchResults/SearchResults.stories.d.ts.map +0 -1
  822. package/jsx/work/SearchResults/SearchResults.stories.jsx +0 -242
  823. package/jsx/work/SearchResults/SearchResults.stories.jsx.map +0 -1
  824. package/jsx/work/SearchResults/SearchResults.styles.d.ts +0 -5
  825. package/jsx/work/SearchResults/SearchResults.styles.d.ts.map +0 -1
  826. package/jsx/work/SearchResults/SearchResults.styles.js +0 -12
  827. package/jsx/work/SearchResults/SearchResults.styles.js.map +0 -1
  828. package/jsx/work/Stages/Stages.mocks.d.ts +0 -14
  829. package/jsx/work/Stages/Stages.mocks.d.ts.map +0 -1
  830. package/jsx/work/Stages/Stages.mocks.jsx +0 -40
  831. package/jsx/work/Stages/Stages.mocks.jsx.map +0 -1
  832. package/jsx/work/Stages/Stages.stories.d.ts +0 -11
  833. package/jsx/work/Stages/Stages.stories.d.ts.map +0 -1
  834. package/jsx/work/Stages/Stages.stories.jsx +0 -45
  835. package/jsx/work/Stages/Stages.stories.jsx.map +0 -1
  836. package/jsx/work/Stakeholders/Stakeholders.mocks.d.ts +0 -17
  837. package/jsx/work/Stakeholders/Stakeholders.mocks.d.ts.map +0 -1
  838. package/jsx/work/Stakeholders/Stakeholders.mocks.jsx +0 -36
  839. package/jsx/work/Stakeholders/Stakeholders.mocks.jsx.map +0 -1
  840. package/jsx/work/Stakeholders/Stakeholders.stories.d.ts +0 -8
  841. package/jsx/work/Stakeholders/Stakeholders.stories.d.ts.map +0 -1
  842. package/jsx/work/Stakeholders/Stakeholders.stories.jsx +0 -99
  843. package/jsx/work/Stakeholders/Stakeholders.stories.jsx.map +0 -1
  844. package/jsx/work/Tags/Tags.mocks.d.ts +0 -3
  845. package/jsx/work/Tags/Tags.mocks.d.ts.map +0 -1
  846. package/jsx/work/Tags/Tags.mocks.js +0 -76
  847. package/jsx/work/Tags/Tags.mocks.js.map +0 -1
  848. package/jsx/work/Tags/Tags.stories.d.ts +0 -10
  849. package/jsx/work/Tags/Tags.stories.d.ts.map +0 -1
  850. package/jsx/work/Tags/Tags.stories.jsx +0 -66
  851. package/jsx/work/Tags/Tags.stories.jsx.map +0 -1
  852. package/jsx/work/Tasks/TaskList.stories.d.ts +0 -5
  853. package/jsx/work/Tasks/TaskList.stories.d.ts.map +0 -1
  854. package/jsx/work/Tasks/TaskList.stories.jsx +0 -19
  855. package/jsx/work/Tasks/TaskList.stories.jsx.map +0 -1
  856. package/jsx/work/Tasks/Tasks.mocks.d.ts +0 -22
  857. package/jsx/work/Tasks/Tasks.mocks.d.ts.map +0 -1
  858. package/jsx/work/Tasks/Tasks.mocks.js +0 -51
  859. package/jsx/work/Tasks/Tasks.mocks.js.map +0 -1
  860. package/jsx/work/Tasks/Tasks.stories.d.ts +0 -15
  861. package/jsx/work/Tasks/Tasks.stories.d.ts.map +0 -1
  862. package/jsx/work/Tasks/Tasks.stories.jsx +0 -79
  863. package/jsx/work/Tasks/Tasks.stories.jsx.map +0 -1
  864. package/jsx/work/Timeline/Timeline.mocks.d.ts +0 -3
  865. package/jsx/work/Timeline/Timeline.mocks.d.ts.map +0 -1
  866. package/jsx/work/Timeline/Timeline.mocks.jsx +0 -144
  867. package/jsx/work/Timeline/Timeline.mocks.jsx.map +0 -1
  868. package/jsx/work/Timeline/Timeline.stories.d.ts +0 -11
  869. package/jsx/work/Timeline/Timeline.stories.d.ts.map +0 -1
  870. package/jsx/work/Timeline/Timeline.stories.jsx +0 -78
  871. package/jsx/work/Timeline/Timeline.stories.jsx.map +0 -1
  872. package/jsx/wss/AppShell/AppShell.mocks.d.ts +0 -24
  873. package/jsx/wss/AppShell/AppShell.mocks.d.ts.map +0 -1
  874. package/jsx/wss/AppShell/AppShell.mocks.jsx +0 -64
  875. package/jsx/wss/AppShell/AppShell.mocks.jsx.map +0 -1
  876. package/jsx/wss/AppShell/AppShell.stories.d.ts +0 -19
  877. package/jsx/wss/AppShell/AppShell.stories.d.ts.map +0 -1
  878. package/jsx/wss/AppShell/AppShell.stories.jsx +0 -96
  879. package/jsx/wss/AppShell/AppShell.stories.jsx.map +0 -1
  880. package/jsx/wss/AppShell/AppShell.styles.d.ts +0 -2
  881. package/jsx/wss/AppShell/AppShell.styles.d.ts.map +0 -1
  882. package/jsx/wss/AppShell/AppShell.styles.js +0 -5
  883. package/jsx/wss/AppShell/AppShell.styles.js.map +0 -1
  884. package/jsx/wss/CaseView/CaseView.mocks.d.ts +0 -13
  885. package/jsx/wss/CaseView/CaseView.mocks.d.ts.map +0 -1
  886. package/jsx/wss/CaseView/CaseView.mocks.jsx +0 -34
  887. package/jsx/wss/CaseView/CaseView.mocks.jsx.map +0 -1
  888. package/jsx/wss/CaseView/CaseView.stories.d.ts +0 -12
  889. package/jsx/wss/CaseView/CaseView.stories.d.ts.map +0 -1
  890. package/jsx/wss/CaseView/CaseView.stories.jsx +0 -74
  891. package/jsx/wss/CaseView/CaseView.stories.jsx.map +0 -1
  892. package/jsx/wss/PageTemplates/PageTemplates.stories.d.ts +0 -15
  893. package/jsx/wss/PageTemplates/PageTemplates.stories.d.ts.map +0 -1
  894. package/jsx/wss/PageTemplates/PageTemplates.stories.jsx +0 -41
  895. package/jsx/wss/PageTemplates/PageTemplates.stories.jsx.map +0 -1
  896. package/jsx/wss/QuickCreate/QuickCreate.stories.d.ts +0 -11
  897. package/jsx/wss/QuickCreate/QuickCreate.stories.d.ts.map +0 -1
  898. package/jsx/wss/QuickCreate/QuickCreate.stories.jsx +0 -28
  899. package/jsx/wss/QuickCreate/QuickCreate.stories.jsx.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"Form.mocks.d.ts","sourceRoot":"","sources":["../../../src/core/Form/Form.mocks.tsx"],"names":[],"mappings":";AAgGA,eAAO,MAAM,WAAW;UAMhB,MAAM;iBACC,OAAO;;;wBAiMrB,CAAC;AAEF,eAAO,MAAM,mBAAmB;UAMxB,MAAM;iBACC,OAAO;;;wBAkKrB,CAAC"}
1
+ {"version":3,"file":"Form.mocks.d.ts","sourceRoot":"","sources":["../../../src/core/Form/Form.mocks.tsx"],"names":[],"mappings":";AAgGA,eAAO,MAAM,WAAW;UAMhB,MAAM;iBACC,OAAO;;;wBAiMrB,CAAC;AAEF,eAAO,MAAM,mBAAmB;UAMxB,MAAM;iBACC,OAAO;;;wBAiKrB,CAAC"}
@@ -154,7 +154,7 @@ export const ReadOnlyFormContent = ({ cols, heading, description, showActions })
154
154
  }, required: true, children: [_jsx(Checkbox, { label: 'Cambridge', readOnly: true }, 'Cambridge'), _jsx(Checkbox, { label: 'Krakow' }, 'Krakow'), _jsx(Checkbox, { label: 'Hyderabad' }, 'Hyderabad'), _jsx(Checkbox, { label: 'Bangalore' }, 'Bangalore')] }) }), _jsx(Grid, { item: { colStartEnd: '1/-1' }, children: _jsxs(RadioButtonGroup, { name: 'meetings', label: 'Do you enjoy early morning meetings?', additionalInfo: {
155
155
  heading: 'Field info',
156
156
  content: 'Lorem ipsum dolor set amet.'
157
- }, readOnly: true, allReadOnly: true, required: true, children: [_jsx(RadioButton, { label: 'Yes' }, 'Yes'), _jsx(RadioButton, { label: "No.. no I don't" }, "No.. no I don't")] }) }), _jsxs(Select, { label: 'What would you like to eat?', info: '', additionalInfo: {
157
+ }, readOnly: true, required: true, children: [_jsx(RadioButton, { label: 'Yes' }, 'Yes'), _jsx(RadioButton, { label: "No.. no I don't" }, "No.. no I don't")] }) }), _jsxs(Select, { label: 'What would you like to eat?', info: '', additionalInfo: {
158
158
  heading: 'Field info',
159
159
  content: 'Lorem ipsum dolor set amet.'
160
160
  }, readOnly: true, children: [_jsx(Option, { children: "choose meal\u2026" }), _jsx(Option, { selected: true, children: "Pizza" }), _jsx(Option, { children: "Sandwich" }), _jsx(Option, { children: "Salad" })] }), _jsx(Grid, { item: { colStartEnd: '1/-1' }, children: _jsx(TextArea, { readOnly: true, name: 'notes', required: false, label: 'Meeting notes', status: notes.status, info: notes.info || notes.help, value: 'Test copy', additionalInfo: {
@@ -1 +1 @@
1
- {"version":3,"file":"Form.mocks.js","sourceRoot":"","sources":["../../../src/core/Form/Form.mocks.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGhE,OAAO,EACL,MAAM,EACN,QAAQ,EACR,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,CAAC,CAAC","sourcesContent":["import { useReducer, useRef, useState, useEffect } from 'react';\nimport type { ChangeEvent, FocusEvent, FormEvent } from 'react';\n\nimport {\n Button,\n Checkbox,\n CheckboxGroup,\n Form,\n Grid,\n Input,\n RadioButton,\n RadioButtonGroup,\n Select,\n Option,\n TextArea,\n useToaster,\n usePrevious\n} from '@pega/cosmos-react-core';\nimport type { FormControlProps, DateRangeInputProps } from '@pega/cosmos-react-core';\nimport { Editor as RichTextEditor } from '@pega/cosmos-react-rte';\nimport type { EditorState as RichTextEditorState } from '@pega/cosmos-react-rte';\n\nimport { FileInputDemo } from '../File/FileInput.stories';\nimport { FilterableSingleSelect as ComboboxFilterableStory } from '../ComboBox/ComboBox.stories';\n\ninterface Field extends FormControlProps {\n help?: string;\n error?: string;\n validator: (this: Field) => boolean;\n}\n\n// Get initial field properties\nconst initFields = (): Field[] => {\n const common = { value: undefined, status: undefined };\n return [\n {\n ...common,\n name: 'name',\n required: true,\n error: 'Please enter first and last name',\n validator() {\n if (!this.value) return false;\n return /^[a-z]+\\s[a-z]+$/i.test(this.value);\n }\n },\n {\n ...common,\n name: 'email',\n required: true,\n error: 'Enter a @pega.com address',\n validator() {\n if (!this.value) return false;\n return /^\\S+@pega\\.com$/.test(this.value);\n }\n },\n {\n ...common,\n name: 'notes',\n required: true,\n help: 'See how fast you can type 20 characters…go',\n error: 'You need to tell us more than 20 characters',\n validator() {\n if (!this.value) return false;\n return this.value.length >= 20;\n }\n }\n ];\n};\n\n// Handles setting of state for all fields\nconst fieldReducer = (\n fields: Field[],\n {\n target,\n type\n }:\n | ChangeEvent<HTMLInputElement | HTMLTextAreaElement>\n | FocusEvent<HTMLInputElement | HTMLTextAreaElement>\n) => {\n return fields.map(field => {\n if (field.name === target.name) {\n field.value = target.value;\n if (type === 'blur' || field.status === 'error') {\n if ((field.required || field.value) && !field.validator()) {\n field.status = 'error';\n field.info = field.error;\n } else {\n field.status = undefined;\n field.info = field.help;\n }\n }\n }\n return field;\n });\n};\n\nexport const FormContent = ({\n cols,\n heading,\n description,\n showActions\n}: {\n cols: number;\n showActions: boolean;\n heading?: string;\n description?: string;\n}) => {\n const editorRef = useRef<RichTextEditorState>(null);\n const [fields, setField] = useReducer(fieldReducer, undefined, initFields);\n const { push } = useToaster();\n\n const name = fields.find(field => field.name === 'name');\n const email = fields.find(field => field.name === 'email');\n const notes = fields.find(field => field.name === 'notes');\n\n if (!name || !email || !notes) return null;\n\n const canSubmit = fields.every(field => field.value && field.validator());\n\n const actions = (\n <>\n <Button\n name='Cancel'\n variant='secondary'\n onClick={() => {\n push({ content: 'Form cancelled!' });\n }}\n >\n Cancel\n </Button>\n <Button name='Submit' type='submit' variant='primary' disabled={!canSubmit}>\n Submit\n </Button>\n </>\n );\n\n const onImageAdded = (image: File, id: string) => {\n const src = URL.createObjectURL(image);\n editorRef.current?.appendImage({ src, alt: image.name }, id);\n };\n return (\n <Form\n actions={showActions ? actions : undefined}\n description={description}\n heading={heading}\n onSubmit={(e: FormEvent) => {\n e.preventDefault();\n push({ content: 'Form submitted!' });\n }}\n style={{ margin: 'auto', maxWidth: '37.5rem' }}\n >\n <Grid container={{ gap: 1, cols: `repeat(${cols}, minmax(0, 1fr))` }}>\n <Input\n name='name'\n label='Name'\n value={name.value}\n status={name.status}\n info='some help text here'\n onChange={(e: ChangeEvent<HTMLInputElement>) => setField({ ...e })}\n onBlur={(e: FocusEvent<HTMLInputElement>) => setField({ ...e })}\n additionalInfo={{\n heading: 'Field info',\n content: 'Lorem ipsum dolor set amet.'\n }}\n required\n />\n\n <Input\n name='email'\n value={email.value}\n type='email'\n label='Email'\n required={email.required}\n status={email.status}\n info='some help text here'\n onChange={(e: ChangeEvent<HTMLInputElement>) => setField({ ...e })}\n onBlur={(e: FocusEvent<HTMLInputElement>) => setField({ ...e })}\n additionalInfo={{\n heading: 'Field info',\n content: 'Lorem ipsum dolor set amet.'\n }}\n />\n\n <Grid item={{ colStartEnd: '1/-1' }}>\n <CheckboxGroup\n name='visited'\n label='Places you have worked'\n additionalInfo={{\n heading: 'Field info',\n content: 'Lorem ipsum dolor set amet.'\n }}\n required\n >\n {['Cambridge', 'Krakow', 'Hyderabad', 'Bangalore'].map(office => (\n <Checkbox\n key={office}\n label={office}\n onChange={(e: ChangeEvent<HTMLInputElement>) => setField({ ...e })}\n />\n ))}\n </CheckboxGroup>\n </Grid>\n\n <Grid item={{ colStartEnd: '1/-1' }}>\n <Checkbox\n additionalInfo={{\n heading: 'Field info',\n content: 'Lorem ipsum dolor set amet.'\n }}\n label='Check me, please'\n required\n />\n </Grid>\n\n <Grid item={{ colStartEnd: '1/-1' }}>\n <RadioButtonGroup\n name='meetings'\n label='Do you enjoy early morning meetings?'\n additionalInfo={{\n heading: 'Field info',\n content: 'Lorem ipsum dolor set amet.'\n }}\n required\n >\n {['Yes', \"No… no I don't\"].map(option => (\n <RadioButton\n key={option}\n label={option}\n onChange={(e: ChangeEvent<HTMLInputElement>) => setField({ ...e })}\n />\n ))}\n </RadioButtonGroup>\n </Grid>\n\n <Select\n label='What would you like to eat?'\n info='FYI: options are limited'\n additionalInfo={{\n heading: 'Field info',\n content: 'Lorem ipsum dolor set amet.'\n }}\n required\n >\n <Option>choose meal…</Option>\n <Option>Pizza</Option>\n <Option>Sandwich</Option>\n <Option>Salad</Option>\n </Select>\n\n <Grid item={{ colStartEnd: '1/-1' }}>\n <TextArea\n name='notes'\n required={notes.required}\n label='Meeting notes'\n status={notes.status}\n info={notes.info || notes.help}\n onChange={(e: ChangeEvent<HTMLTextAreaElement>) => setField({ ...e })}\n onBlur={(e: FocusEvent<HTMLInputElement>) => setField({ ...e })}\n additionalInfo={{\n heading: 'Field info',\n content: 'Lorem ipsum dolor set amet.'\n }}\n />\n </Grid>\n\n <Grid item={{ colStartEnd: '1/-1' }}>\n <RichTextEditor\n label='Detailed meeting notes'\n info='The rich text editor can be used in forms, comments, and documents'\n toolbar={[\n 'inline-styling',\n 'headers',\n 'tables',\n 'links',\n 'images',\n 'lists',\n 'cut-copy-paste',\n 'indentation'\n ]}\n onImageAdded={onImageAdded}\n ref={editorRef}\n additionalInfo={{\n heading: 'Field info',\n content: 'Lorem ipsum dolor set amet.'\n }}\n required\n />\n </Grid>\n <Grid item={{ colStartEnd: '1/-1' }}>\n <FileInputDemo label='Meeting attachments' />\n </Grid>\n\n <ComboboxFilterableStory label='Select a user' />\n </Grid>\n </Form>\n );\n};\n\nexport const ReadOnlyFormContent = ({\n cols,\n heading,\n description,\n showActions\n}: {\n cols: number;\n showActions: boolean;\n heading?: string;\n description?: string;\n}) => {\n const [value, setValue] = useState<DateRangeInputProps['value']>({ start: 1, end: '3' });\n const prev = usePrevious(value);\n useEffect(() => {\n if (prev !== value) setValue(value);\n }, [prev, value]);\n const [fields] = useReducer(fieldReducer, undefined, initFields);\n const { push } = useToaster();\n\n const name = fields.find(field => field.name === 'name');\n const email = fields.find(field => field.name === 'email');\n const notes = fields.find(field => field.name === 'notes');\n\n if (!name || !email || !notes) return null;\n\n const canSubmit = fields.every(field => field.value && field.validator());\n\n const actions = (\n <>\n <Button\n name='Cancel'\n variant='secondary'\n onClick={() => {\n push({ content: 'Form cancelled!' });\n }}\n >\n Cancel\n </Button>\n <Button name='Submit' type='submit' variant='primary' disabled={!canSubmit}>\n Submit\n </Button>\n </>\n );\n\n return (\n <Form\n actions={showActions ? actions : undefined}\n description={description}\n heading={heading}\n onSubmit={(e: FormEvent) => {\n e.preventDefault();\n push({ content: 'Form submitted!' });\n }}\n style={{ margin: 'auto', maxWidth: '37.5rem' }}\n >\n <Grid container={{ gap: 1, cols: `repeat(${cols}, minmax(0, 1fr))` }}>\n <Input\n readOnly\n name='name'\n label='Name'\n value='Test'\n required={false}\n status={name.status}\n additionalInfo={{\n heading: 'Field info',\n content: 'Lorem ipsum dolor set amet.'\n }}\n />\n\n <Grid item={{ colStartEnd: '1/-1' }}>\n <CheckboxGroup\n name='places visited'\n label='Places you have worked'\n additionalInfo={{\n heading: 'Field info',\n content: 'Lorem ipsum dolor set amet.'\n }}\n readOnly\n required\n >\n <Checkbox key='Cambridge' label='Cambridge' />\n <Checkbox key='Krakow' label='Krakow' />\n <Checkbox key='Hyderabad' label='Hyderabad' />\n <Checkbox key='Bangalore' label='Bangalore' />\n </CheckboxGroup>\n </Grid>\n\n <Grid item={{ colStartEnd: '1/-1' }}>\n <RadioButtonGroup\n name='meetings'\n label='Do you really enjoy early morning meetings?'\n additionalInfo={{\n heading: 'Field info',\n content: 'Lorem ipsum dolor set amet.'\n }}\n required\n >\n <RadioButton key='Yes' label='Yes' />\n <RadioButton key=\"No.. no I don't\" label=\"No.. no I don't\" readOnly />\n </RadioButtonGroup>\n </Grid>\n\n <Grid item={{ colStartEnd: '1/-1' }}>\n <CheckboxGroup\n name='more places visited'\n label='More Places you have worked'\n additionalInfo={{\n heading: 'Field info',\n content: 'Lorem ipsum dolor set amet.'\n }}\n required\n >\n <Checkbox key='Cambridge' label='Cambridge' readOnly />\n <Checkbox key='Krakow' label='Krakow' />\n <Checkbox key='Hyderabad' label='Hyderabad' />\n <Checkbox key='Bangalore' label='Bangalore' />\n </CheckboxGroup>\n </Grid>\n\n <Grid item={{ colStartEnd: '1/-1' }}>\n <RadioButtonGroup\n name='meetings'\n label='Do you enjoy early morning meetings?'\n additionalInfo={{\n heading: 'Field info',\n content: 'Lorem ipsum dolor set amet.'\n }}\n readOnly\n allReadOnly\n required\n >\n <RadioButton key='Yes' label='Yes' />\n <RadioButton key=\"No.. no I don't\" label=\"No.. no I don't\" />\n </RadioButtonGroup>\n </Grid>\n\n <Select\n label='What would you like to eat?'\n info=''\n additionalInfo={{\n heading: 'Field info',\n content: 'Lorem ipsum dolor set amet.'\n }}\n readOnly\n >\n <Option>choose meal…</Option>\n <Option selected>Pizza</Option>\n <Option>Sandwich</Option>\n <Option>Salad</Option>\n </Select>\n\n <Grid item={{ colStartEnd: '1/-1' }}>\n <TextArea\n readOnly\n name='notes'\n required={false}\n label='Meeting notes'\n status={notes.status}\n info={notes.info || notes.help}\n value='Test copy'\n additionalInfo={{\n heading: 'Field info',\n content: 'Lorem ipsum dolor set amet.'\n }}\n />\n </Grid>\n </Grid>\n </Form>\n );\n};\n"]}
1
+ {"version":3,"file":"Form.mocks.js","sourceRoot":"","sources":["../../../src/core/Form/Form.mocks.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGhE,OAAO,EACL,MAAM,EACN,QAAQ,EACR,aAAa,EACb,IAAI,EACJ,IAAI,EACJ,KAAK,EACL,WAAW,EACX,gBAAgB,EAChB,MAAM,EACN,MAAM,EACN,QAAQ,EACR,UAAU,EACV,WAAW,EACZ,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAAE,MAAM,IAAI,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAGlE,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,sBAAsB,IAAI,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAQjG,+BAA+B;AAC/B,MAAM,UAAU,GAAG,GAAY,EAAE;IAC/B,MAAM,MAAM,GAAG,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC;IACvD,OAAO;QACL;YACE,GAAG,MAAM;YACT,IAAI,EAAE,MAAM;YACZ,QAAQ,EAAE,IAAI;YACd,KAAK,EAAE,kCAAkC;YACzC,SAAS;gBACP,IAAI,CAAC,IAAI,CAAC,KAAK;oBAAE,OAAO,KAAK,CAAC;gBAC9B,OAAO,mBAAmB,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YAC9C,CAAC;SACF;QACD;YACE,GAAG,MAAM;YACT,IAAI,EAAE,OAAO;YACb,QAAQ,EAAE,IAAI;YACd,KAAK,EAAE,2BAA2B;YAClC,SAAS;gBACP,IAAI,CAAC,IAAI,CAAC,KAAK;oBAAE,OAAO,KAAK,CAAC;gBAC9B,OAAO,i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AAI,EAAC,OAAO,EACZ,QAAQ,EAAE,KAAK,EACf,KAAK,EAAC,eAAe,EACrB,MAAM,EAAE,KAAK,CAAC,MAAM,EACpB,IAAI,EAAE,KAAK,CAAC,IAAI,IAAI,KAAK,CAAC,IAAI,EAC9B,KAAK,EAAC,WAAW,EACjB,cAAc,EAAE;4BACd,OAAO,EAAE,YAAY;4BACrB,OAAO,EAAE,6BAA6B;yBACvC,GACD,GACG,IACF,GACF,CACR,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { useReducer, useRef, useState, useEffect } from 'react';\nimport type { ChangeEvent, FocusEvent, FormEvent } from 'react';\n\nimport {\n Button,\n Checkbox,\n CheckboxGroup,\n Form,\n Grid,\n Input,\n RadioButton,\n RadioButtonGroup,\n Select,\n Option,\n TextArea,\n useToaster,\n usePrevious\n} from '@pega/cosmos-react-core';\nimport type { FormControlProps, DateRangeInputProps } from '@pega/cosmos-react-core';\nimport { Editor as RichTextEditor } from '@pega/cosmos-react-rte';\nimport type { EditorState as RichTextEditorState } from '@pega/cosmos-react-rte';\n\nimport { FileInputDemo } from '../File/FileInput.stories';\nimport { FilterableSingleSelect as ComboboxFilterableStory } from '../ComboBox/ComboBox.stories';\n\ninterface Field extends FormControlProps {\n help?: string;\n error?: string;\n validator: (this: Field) => boolean;\n}\n\n// Get initial field properties\nconst initFields = (): Field[] => {\n const common = { value: undefined, status: undefined };\n return [\n {\n ...common,\n name: 'name',\n required: true,\n error: 'Please enter first and last name',\n validator() {\n if (!this.value) return false;\n return /^[a-z]+\\s[a-z]+$/i.test(this.value);\n }\n },\n {\n ...common,\n name: 'email',\n required: true,\n error: 'Enter a @pega.com address',\n validator() {\n if (!this.value) return false;\n return /^\\S+@pega\\.com$/.test(this.value);\n }\n },\n {\n ...common,\n name: 'notes',\n required: true,\n help: 'See how fast you can type 20 characters…go',\n error: 'You need to tell us more than 20 characters',\n validator() {\n if (!this.value) return false;\n return this.value.length >= 20;\n }\n }\n ];\n};\n\n// Handles setting of state for all fields\nconst fieldReducer = (\n fields: Field[],\n {\n target,\n type\n }:\n | ChangeEvent<HTMLInputElement | HTMLTextAreaElement>\n | FocusEvent<HTMLInputElement | HTMLTextAreaElement>\n) => {\n return fields.map(field => {\n if (field.name === target.name) {\n field.value = target.value;\n if (type === 'blur' || field.status === 'error') {\n if ((field.required || field.value) && !field.validator()) {\n field.status = 'error';\n field.info = field.error;\n } else {\n field.status = undefined;\n field.info = field.help;\n }\n }\n }\n return field;\n });\n};\n\nexport const FormContent = ({\n cols,\n heading,\n description,\n showActions\n}: {\n cols: number;\n showActions: boolean;\n heading?: string;\n description?: string;\n}) => {\n const editorRef = useRef<RichTextEditorState>(null);\n const [fields, setField] = useReducer(fieldReducer, undefined, initFields);\n const { push } = useToaster();\n\n const name = fields.find(field => field.name === 'name');\n const email = fields.find(field => field.name === 'email');\n const notes = fields.find(field => field.name === 'notes');\n\n if (!name || !email || !notes) return null;\n\n const canSubmit = fields.every(field => field.value && field.validator());\n\n const actions = (\n <>\n <Button\n name='Cancel'\n variant='secondary'\n onClick={() => {\n push({ content: 'Form cancelled!' });\n }}\n >\n Cancel\n </Button>\n <Button name='Submit' type='submit' variant='primary' disabled={!canSubmit}>\n Submit\n </Button>\n </>\n );\n\n const onImageAdded = (image: File, id: string) => {\n const src = URL.createObjectURL(image);\n editorRef.current?.appendImage({ src, alt: image.name }, id);\n };\n return (\n <Form\n actions={showActions ? actions : undefined}\n description={description}\n heading={heading}\n onSubmit={(e: FormEvent) => {\n e.preventDefault();\n push({ content: 'Form submitted!' });\n }}\n style={{ margin: 'auto', maxWidth: '37.5rem' }}\n >\n <Grid container={{ gap: 1, cols: `repeat(${cols}, minmax(0, 1fr))` }}>\n <Input\n name='name'\n label='Name'\n value={name.value}\n status={name.status}\n info='some help text here'\n onChange={(e: ChangeEvent<HTMLInputElement>) => setField({ ...e })}\n onBlur={(e: FocusEvent<HTMLInputElement>) => setField({ ...e })}\n additionalInfo={{\n heading: 'Field info',\n content: 'Lorem ipsum dolor set amet.'\n }}\n required\n />\n\n <Input\n name='email'\n value={email.value}\n type='email'\n label='Email'\n required={email.required}\n status={email.status}\n info='some help text here'\n onChange={(e: ChangeEvent<HTMLInputElement>) => setField({ ...e })}\n onBlur={(e: FocusEvent<HTMLInputElement>) => setField({ ...e })}\n additionalInfo={{\n heading: 'Field info',\n content: 'Lorem ipsum dolor set amet.'\n }}\n />\n\n <Grid item={{ colStartEnd: '1/-1' }}>\n <CheckboxGroup\n name='visited'\n label='Places you have worked'\n additionalInfo={{\n heading: 'Field info',\n content: 'Lorem ipsum dolor set amet.'\n }}\n required\n >\n {['Cambridge', 'Krakow', 'Hyderabad', 'Bangalore'].map(office => (\n <Checkbox\n key={office}\n label={office}\n onChange={(e: ChangeEvent<HTMLInputElement>) => setField({ ...e })}\n />\n ))}\n </CheckboxGroup>\n </Grid>\n\n <Grid item={{ colStartEnd: '1/-1' }}>\n <Checkbox\n additionalInfo={{\n heading: 'Field info',\n content: 'Lorem ipsum dolor set amet.'\n }}\n label='Check me, please'\n required\n />\n </Grid>\n\n <Grid item={{ colStartEnd: '1/-1' }}>\n <RadioButtonGroup\n name='meetings'\n label='Do you enjoy early morning meetings?'\n additionalInfo={{\n heading: 'Field info',\n content: 'Lorem ipsum dolor set amet.'\n }}\n required\n >\n {['Yes', \"No… no I don't\"].map(option => (\n <RadioButton\n key={option}\n label={option}\n onChange={(e: ChangeEvent<HTMLInputElement>) => setField({ ...e })}\n />\n ))}\n </RadioButtonGroup>\n </Grid>\n\n <Select\n label='What would you like to eat?'\n info='FYI: options are limited'\n additionalInfo={{\n heading: 'Field info',\n content: 'Lorem ipsum dolor set amet.'\n }}\n required\n >\n <Option>choose meal…</Option>\n <Option>Pizza</Option>\n <Option>Sandwich</Option>\n <Option>Salad</Option>\n </Select>\n\n <Grid item={{ colStartEnd: '1/-1' }}>\n <TextArea\n name='notes'\n required={notes.required}\n label='Meeting notes'\n status={notes.status}\n info={notes.info || notes.help}\n onChange={(e: ChangeEvent<HTMLTextAreaElement>) => setField({ ...e })}\n onBlur={(e: FocusEvent<HTMLInputElement>) => setField({ ...e })}\n additionalInfo={{\n heading: 'Field info',\n content: 'Lorem ipsum dolor set amet.'\n }}\n />\n </Grid>\n\n <Grid item={{ colStartEnd: '1/-1' }}>\n <RichTextEditor\n label='Detailed meeting notes'\n info='The rich text editor can be used in forms, comments, and documents'\n toolbar={[\n 'inline-styling',\n 'headers',\n 'tables',\n 'links',\n 'images',\n 'lists',\n 'cut-copy-paste',\n 'indentation'\n ]}\n onImageAdded={onImageAdded}\n ref={editorRef}\n additionalInfo={{\n heading: 'Field info',\n content: 'Lorem ipsum dolor set amet.'\n }}\n required\n />\n </Grid>\n <Grid item={{ colStartEnd: '1/-1' }}>\n <FileInputDemo label='Meeting attachments' />\n </Grid>\n\n <ComboboxFilterableStory label='Select a user' />\n </Grid>\n </Form>\n );\n};\n\nexport const ReadOnlyFormContent = ({\n cols,\n heading,\n description,\n showActions\n}: {\n cols: number;\n showActions: boolean;\n heading?: string;\n description?: string;\n}) => {\n const [value, setValue] = useState<DateRangeInputProps['value']>({ start: 1, end: '3' });\n const prev = usePrevious(value);\n useEffect(() => {\n if (prev !== value) setValue(value);\n }, [prev, value]);\n const [fields] = useReducer(fieldReducer, undefined, initFields);\n const { push } = useToaster();\n\n const name = fields.find(field => field.name === 'name');\n const email = fields.find(field => field.name === 'email');\n const notes = fields.find(field => field.name === 'notes');\n\n if (!name || !email || !notes) return null;\n\n const canSubmit = fields.every(field => field.value && field.validator());\n\n const actions = (\n <>\n <Button\n name='Cancel'\n variant='secondary'\n onClick={() => {\n push({ content: 'Form cancelled!' });\n }}\n >\n Cancel\n </Button>\n <Button name='Submit' type='submit' variant='primary' disabled={!canSubmit}>\n Submit\n </Button>\n </>\n );\n\n return (\n <Form\n actions={showActions ? actions : undefined}\n description={description}\n heading={heading}\n onSubmit={(e: FormEvent) => {\n e.preventDefault();\n push({ content: 'Form submitted!' });\n }}\n style={{ margin: 'auto', maxWidth: '37.5rem' }}\n >\n <Grid container={{ gap: 1, cols: `repeat(${cols}, minmax(0, 1fr))` }}>\n <Input\n readOnly\n name='name'\n label='Name'\n value='Test'\n required={false}\n status={name.status}\n additionalInfo={{\n heading: 'Field info',\n content: 'Lorem ipsum dolor set amet.'\n }}\n />\n\n <Grid item={{ colStartEnd: '1/-1' }}>\n <CheckboxGroup\n name='places visited'\n label='Places you have worked'\n additionalInfo={{\n heading: 'Field info',\n content: 'Lorem ipsum dolor set amet.'\n }}\n readOnly\n required\n >\n <Checkbox key='Cambridge' label='Cambridge' />\n <Checkbox key='Krakow' label='Krakow' />\n <Checkbox key='Hyderabad' label='Hyderabad' />\n <Checkbox key='Bangalore' label='Bangalore' />\n </CheckboxGroup>\n </Grid>\n\n <Grid item={{ colStartEnd: '1/-1' }}>\n <RadioButtonGroup\n name='meetings'\n label='Do you really enjoy early morning meetings?'\n additionalInfo={{\n heading: 'Field info',\n content: 'Lorem ipsum dolor set amet.'\n }}\n required\n >\n <RadioButton key='Yes' label='Yes' />\n <RadioButton key=\"No.. no I don't\" label=\"No.. no I don't\" readOnly />\n </RadioButtonGroup>\n </Grid>\n\n <Grid item={{ colStartEnd: '1/-1' }}>\n <CheckboxGroup\n name='more places visited'\n label='More Places you have worked'\n additionalInfo={{\n heading: 'Field info',\n content: 'Lorem ipsum dolor set amet.'\n }}\n required\n >\n <Checkbox key='Cambridge' label='Cambridge' readOnly />\n <Checkbox key='Krakow' label='Krakow' />\n <Checkbox key='Hyderabad' label='Hyderabad' />\n <Checkbox key='Bangalore' label='Bangalore' />\n </CheckboxGroup>\n </Grid>\n\n <Grid item={{ colStartEnd: '1/-1' }}>\n <RadioButtonGroup\n name='meetings'\n label='Do you enjoy early morning meetings?'\n additionalInfo={{\n heading: 'Field info',\n content: 'Lorem ipsum dolor set amet.'\n }}\n readOnly\n required\n >\n <RadioButton key='Yes' label='Yes' />\n <RadioButton key=\"No.. no I don't\" label=\"No.. no I don't\" />\n </RadioButtonGroup>\n </Grid>\n\n <Select\n label='What would you like to eat?'\n info=''\n additionalInfo={{\n heading: 'Field info',\n content: 'Lorem ipsum dolor set amet.'\n }}\n readOnly\n >\n <Option>choose meal…</Option>\n <Option selected>Pizza</Option>\n <Option>Sandwich</Option>\n <Option>Salad</Option>\n </Select>\n\n <Grid item={{ colStartEnd: '1/-1' }}>\n <TextArea\n readOnly\n name='notes'\n required={false}\n label='Meeting notes'\n status={notes.status}\n info={notes.info || notes.help}\n value='Test copy'\n additionalInfo={{\n heading: 'Field info',\n content: 'Lorem ipsum dolor set amet.'\n }}\n />\n </Grid>\n </Grid>\n </Form>\n );\n};\n"]}
@@ -1,13 +1,11 @@
1
1
  import type { StoryFn } from '@storybook/react';
2
- import type { FocusEventHandler, MouseEventHandler } from 'react';
3
2
  import type { RadioCheckGroupProps, OmitStrict } from '@pega/cosmos-react-core';
4
3
  declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
5
4
  export default _default;
6
5
  interface RadioCheckGroupStoryProps extends RadioCheckGroupProps {
7
6
  showAdditionalInfo?: boolean;
8
7
  showNestedAdditionalInfo?: boolean;
9
- onBlur?: FocusEventHandler<HTMLInputElement>;
10
- onClick?: MouseEventHandler<HTMLInputElement>;
8
+ onClear?: (() => void) | undefined;
11
9
  }
12
10
  export declare const RadioButtonGroupDemo: StoryFn<OmitStrict<RadioCheckGroupStoryProps, 'children'>>;
13
11
  export declare const RadioButtonCardGroup: StoryFn<OmitStrict<RadioCheckGroupStoryProps, 'children'>>;
@@ -1 +1 @@
1
- {"version":3,"file":"RadioButtonGroup.stories.d.ts","sourceRoot":"","sources":["../../../src/core/RadioButtonGroup/RadioButtonGroup.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,OAAO,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAUlE,OAAO,KAAK,EAAE,oBAAoB,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;;AAIhF,wBA6BU;AAEV,UAAU,yBAA0B,SAAQ,oBAAoB;IAC9D,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC,MAAM,CAAC,EAAE,iBAAiB,CAAC,gBAAgB,CAAC,CAAC;IAC7C,OAAO,CAAC,EAAE,iBAAiB,CAAC,gBAAgB,CAAC,CAAC;CAC/C;AAED,eAAO,MAAM,oBAAoB,EAAE,OAAO,CAAC,UAAU,CAAC,yBAAyB,EAAE,UAAU,CAAC,CAmF3F,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,OAAO,CAAC,UAAU,CAAC,yBAAyB,EAAE,UAAU,CAAC,CAsF3F,CAAC"}
1
+ {"version":3,"file":"RadioButtonGroup.stories.d.ts","sourceRoot":"","sources":["../../../src/core/RadioButtonGroup/RadioButtonGroup.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAUtD,OAAO,KAAK,EAAE,oBAAoB,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;;AAIhF,wBA6BU;AAEV,UAAU,yBAA0B,SAAQ,oBAAoB;IAC9D,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC,OAAO,CAAC,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,CAAC;CACpC;AAED,eAAO,MAAM,oBAAoB,EAAE,OAAO,CAAC,UAAU,CAAC,yBAAyB,EAAE,UAAU,CAAC,CAmF3F,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,OAAO,CAAC,UAAU,CAAC,yBAAyB,EAAE,UAAU,CAAC,CAsF3F,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"RadioButtonGroup.stories.js","sourceRoot":"","sources":["../../../src/core/RadioButtonGroup/RadioButt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AC,SAAS,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,EAAE,aAC9C,KAAC,IAAI,IAAC,OAAO,EAAC,IAAI,sBAAa,EAC/B,KAAC,SAAS,kGAEE,IACP,IACF,EAET,EAAE,EAAC,QAAQ,GACX,EACF,KAAC,WAAW,IACV,KAAK,EACH,KAAC,UAAU,IAAC,IAAI,EAAC,mBAAmB,EAAC,UAAU,EAAC,IAAI,YAClD,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,IACe,CACpB,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import type { Meta, StoryFn } from '@storybook/react';\nimport type { FocusEventHandler, MouseEventHandler } from 'react';\n\nimport {\n FieldGroup,\n FieldValueList,\n Flex,\n RadioButton,\n RadioButtonGroup,\n Text\n} from '@pega/cosmos-react-core';\nimport type { RadioCheckGroupProps, OmitStrict } from '@pega/cosmos-react-core';\n\nimport { Paragraph, StyledImage } from './RadioButtonGroup.styles';\n\nexport default {\n title: 'Core/RadioButtonGroup',\n component: RadioButtonGroup,\n args: {\n label: 'What do you want to eat?',\n labelHidden: false,\n inline: false,\n autoStack: true,\n required: false,\n disabled: false,\n readOnly: false,\n showAdditionalInfo: false,\n showNestedAdditionalInfo: false,\n status: undefined,\n info: 'You must select it'\n },\n argTypes: {\n label: { control: { type: 'text' } },\n labelHidden: { control: { type: 'boolean' } },\n inline: { control: { type: 'boolean' } },\n autoStack: { 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 status: { options: [undefined, 'success', 'warning', 'error'], control: { type: 'select' } },\n info: { control: { type: 'text', label: 'Helper text' } }\n }\n} as Meta;\n\ninterface RadioCheckGroupStoryProps extends RadioCheckGroupProps {\n showAdditionalInfo?: boolean;\n showNestedAdditionalInfo?: boolean;\n onBlur?: FocusEventHandler<HTMLInputElement>;\n onClick?: MouseEventHandler<HTMLInputElement>;\n}\n\nexport const RadioButtonGroupDemo: StoryFn<OmitStrict<RadioCheckGroupStoryProps, 'children'>> = (\n args: OmitStrict<RadioCheckGroupStoryProps, 'children'>\n) => {\n return args.showNestedAdditionalInfo ? (\n <RadioButtonGroup\n additionalInfo={\n args.showAdditionalInfo\n ? {\n content: 'Some additional info'\n }\n : undefined\n }\n label={args.label}\n name='Fruit'\n labelHidden={args.labelHidden}\n inline={args.inline}\n autoStack={args.autoStack}\n required={args.required}\n disabled={args.disabled}\n readOnly={args.readOnly}\n status={args.status}\n info={args.info}\n onClick={args.onClick}\n onBlur={args.onBlur}\n >\n <RadioButton\n label='Banana'\n id='Banana'\n defaultChecked\n additionalInfo={{\n content: 'Some additional info'\n }}\n />\n <RadioButton\n label='Apple'\n id='Apple'\n additionalInfo={{\n content: 'Some additional info'\n }}\n />\n <RadioButton\n label='Mango'\n id='Mango'\n additionalInfo={{\n content: 'Some additional info'\n }}\n />\n <RadioButton\n label='Orange'\n id='Orange'\n additionalInfo={{\n content: 'Some additional info'\n }}\n />\n </RadioButtonGroup>\n ) : (\n <RadioButtonGroup\n additionalInfo={\n args.showAdditionalInfo\n ? {\n content: 'Some additional info'\n }\n : undefined\n }\n label={args.label}\n name='Fruit'\n labelHidden={args.labelHidden}\n inline={args.inline}\n autoStack={args.autoStack}\n required={args.required}\n disabled={args.disabled}\n readOnly={args.readOnly}\n status={args.status}\n info={args.info}\n onClick={args.onClick}\n onBlur={args.onBlur}\n >\n <RadioButton label='Banana' id='Banana' defaultChecked />\n <RadioButton label='Apple' id='Apple' />\n <RadioButton label='Mango' id='Mango' />\n <RadioButton label='Orange' id='Orange' />\n </RadioButtonGroup>\n );\n};\n\nexport const RadioButtonCardGroup: StoryFn<OmitStrict<RadioCheckGroupStoryProps, 'children'>> = (\n args: OmitStrict<RadioCheckGroupStoryProps, 'children'>\n) => {\n return (\n <RadioButtonGroup\n additionalInfo={\n args.showAdditionalInfo\n ? {\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 autoStack={args.autoStack}\n required={args.required}\n disabled={args.disabled}\n readOnly={args.readOnly}\n >\n <RadioButton\n additionalInfo={\n args.showNestedAdditionalInfo\n ? {\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 <RadioButton\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 <RadioButton\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 Constellation!\n </Paragraph>\n </Flex>\n </Flex>\n }\n id='cosmos'\n />\n <RadioButton\n label={\n <FieldGroup name='Gold service plan' headingTag='h3'>\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 </RadioButtonGroup>\n );\n};\n"]}
1
+ {"version":3,"file":"RadioButtonGroup.stories.js","sourceRoot":"","sources":["../../../src/core/RadioButtonGroup/RadioButtonGroup.stories.tsx"],"names":[],"mappings":";AAEA,OAAO,EACL,UAAU,EACV,cAAc,EACd,IAAI,EACJ,WAAW,EACX,gBAAgB,EAChB,IAAI,EACL,MAAM,yBAAyB,CAAC;AAGjC,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAEnE,eAAe;IACb,KAAK,EAAE,uBAAuB;IAC9B,SAAS,EAAE,gBAAgB;IAC3B,IAAI,EAAE;QACJ,KAAK,EAAE,0BAA0B;QACjC,WAAW,EAAE,KAAK;QAClB,MAAM,EAAE,KAAK;QACb,SAAS,EAAE,IAAI;QACf,QAAQ,EAAE,KAAK;QACf,QAAQ,EAAE,KAAK;QACf,QAAQ,EAAE,KAAK;QACf,kBAAkB,EAAE,KAAK;QACzB,wBAAwB,EAAE,KAAK;QAC/B,MAAM,EAAE,SAAS;QACjB,IAAI,EAAE,oBAAoB;KAC3B;IACD,QAAQ,EAAE;QACR,KAAK,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;QACpC,WAAW,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;QAC7C,MAAM,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;QACxC,SAAS,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;QAC3C,QAAQ,EAA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AAO,EAAC,IAAI,sBAAa,EAC/B,KAAC,WAAW,IACV,GAAG,EAAC,+IAA+I,EACnJ,GAAG,EAAC,OAAO,GACX,IACG,EAET,EAAE,EAAC,aAAa,GAChB,EACF,KAAC,WAAW,IACV,KAAK,EACH,MAAC,IAAI,IAAC,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,UAAU,EAAE,OAAO,EAAE,aAC9C,KAAC,WAAW,IACV,GAAG,EAAC,+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,kGAEE,IACP,IACF,EAET,EAAE,EAAC,QAAQ,GACX,EACF,KAAC,WAAW,IACV,KAAK,EACH,KAAC,UAAU,IAAC,IAAI,EAAC,mBAAmB,EAAC,UAAU,EAAC,IAAI,YAClD,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,IACe,CACpB,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import type { Meta, StoryFn } from '@storybook/react';\n\nimport {\n FieldGroup,\n FieldValueList,\n Flex,\n RadioButton,\n RadioButtonGroup,\n Text\n} from '@pega/cosmos-react-core';\nimport type { RadioCheckGroupProps, OmitStrict } from '@pega/cosmos-react-core';\n\nimport { Paragraph, StyledImage } from './RadioButtonGroup.styles';\n\nexport default {\n title: 'Core/RadioButtonGroup',\n component: RadioButtonGroup,\n args: {\n label: 'What do you want to eat?',\n labelHidden: false,\n inline: false,\n autoStack: true,\n required: false,\n disabled: false,\n readOnly: false,\n showAdditionalInfo: false,\n showNestedAdditionalInfo: false,\n status: undefined,\n info: 'You must select it'\n },\n argTypes: {\n label: { control: { type: 'text' } },\n labelHidden: { control: { type: 'boolean' } },\n inline: { control: { type: 'boolean' } },\n autoStack: { 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 status: { options: [undefined, 'success', 'warning', 'error'], control: { type: 'select' } },\n info: { control: { type: 'text', label: 'Helper text' } }\n }\n} as Meta;\n\ninterface RadioCheckGroupStoryProps extends RadioCheckGroupProps {\n showAdditionalInfo?: boolean;\n showNestedAdditionalInfo?: boolean;\n onClear?: (() => void) | undefined;\n}\n\nexport const RadioButtonGroupDemo: StoryFn<OmitStrict<RadioCheckGroupStoryProps, 'children'>> = (\n args: OmitStrict<RadioCheckGroupStoryProps, 'children'>\n) => {\n return args.showNestedAdditionalInfo ? (\n <RadioButtonGroup\n additionalInfo={\n args.showAdditionalInfo\n ? {\n content: 'Some additional info'\n }\n : undefined\n }\n label={args.label}\n name='Fruit'\n labelHidden={args.labelHidden}\n inline={args.inline}\n autoStack={args.autoStack}\n required={args.required}\n disabled={args.disabled}\n readOnly={args.readOnly}\n status={args.status}\n info={args.info}\n onClick={args.onClick}\n onBlur={args.onBlur}\n >\n <RadioButton\n label='Banana'\n id='Banana'\n defaultChecked\n additionalInfo={{\n content: 'Some additional info'\n }}\n />\n <RadioButton\n label='Apple'\n id='Apple'\n additionalInfo={{\n content: 'Some additional info'\n }}\n />\n <RadioButton\n label='Mango'\n id='Mango'\n additionalInfo={{\n content: 'Some additional info'\n }}\n />\n <RadioButton\n label='Orange'\n id='Orange'\n additionalInfo={{\n content: 'Some additional info'\n }}\n />\n </RadioButtonGroup>\n ) : (\n <RadioButtonGroup\n additionalInfo={\n args.showAdditionalInfo\n ? {\n content: 'Some additional info'\n }\n : undefined\n }\n label={args.label}\n name='Fruit'\n labelHidden={args.labelHidden}\n inline={args.inline}\n autoStack={args.autoStack}\n required={args.required}\n disabled={args.disabled}\n readOnly={args.readOnly}\n status={args.status}\n info={args.info}\n onClick={args.onClick}\n onBlur={args.onBlur}\n >\n <RadioButton label='Banana' id='Banana' defaultChecked />\n <RadioButton label='Apple' id='Apple' />\n <RadioButton label='Mango' id='Mango' />\n <RadioButton label='Orange' id='Orange' />\n </RadioButtonGroup>\n );\n};\n\nexport const RadioButtonCardGroup: StoryFn<OmitStrict<RadioCheckGroupStoryProps, 'children'>> = (\n args: OmitStrict<RadioCheckGroupStoryProps, 'children'>\n) => {\n return (\n <RadioButtonGroup\n additionalInfo={\n args.showAdditionalInfo\n ? {\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 autoStack={args.autoStack}\n required={args.required}\n disabled={args.disabled}\n readOnly={args.readOnly}\n >\n <RadioButton\n additionalInfo={\n args.showNestedAdditionalInfo\n ? {\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 <RadioButton\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 <RadioButton\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 Constellation!\n </Paragraph>\n </Flex>\n </Flex>\n }\n id='cosmos'\n />\n <RadioButton\n label={\n <FieldGroup name='Gold service plan' headingTag='h3'>\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 </RadioButtonGroup>\n );\n};\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pega/cosmos-react-demos",
3
- "version": "6.5.3",
3
+ "version": "6.6.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/pegasystems/cosmos-react.git",
@@ -20,12 +20,12 @@
20
20
  "build": "tsc -b tsconfig.build.json && tsc -b tsconfig.build-preserve.json"
21
21
  },
22
22
  "dependencies": {
23
- "@pega/cosmos-react-condition-builder": "6.5.3",
24
- "@pega/cosmos-react-core": "6.5.3",
25
- "@pega/cosmos-react-dnd": "6.5.3",
26
- "@pega/cosmos-react-rte": "6.5.3",
27
- "@pega/cosmos-react-social": "6.5.3",
28
- "@pega/cosmos-react-work": "6.5.3",
23
+ "@pega/cosmos-react-condition-builder": "6.6.1",
24
+ "@pega/cosmos-react-core": "6.6.1",
25
+ "@pega/cosmos-react-dnd": "6.6.1",
26
+ "@pega/cosmos-react-rte": "6.6.1",
27
+ "@pega/cosmos-react-social": "6.6.1",
28
+ "@pega/cosmos-react-work": "6.6.1",
29
29
  "@storybook/addon-actions": "~7.5.3",
30
30
  "@storybook/react": "~7.5.3",
31
31
  "@types/dompurify": "^3.0.5",
@@ -1,3 +0,0 @@
1
- import type { DateFunctionsByType, RHSType } from '@pega/cosmos-react-condition-builder';
2
- export declare const convertRhsTypes: (useLiteralRHSType: boolean, useFieldRHSType: boolean, useRelativeDatesType: boolean, useParameterRHSType: boolean, dateFunctions?: DateFunctionsByType) => Set<RHSType>;
3
- //# sourceMappingURL=ConditionBuilder.mocks.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ConditionBuilder.mocks.d.ts","sourceRoot":"","sources":["../../../src/condition-builder/ConditionBuilder/ConditionBuilder.mocks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,OAAO,EAAE,MAAM,sCAAsC,CAAC;AAEzF,eAAO,MAAM,eAAe,sBACP,OAAO,mBACT,OAAO,wBACF,OAAO,uBACR,OAAO,kBACZ,mBAAmB,iBASpC,CAAC"}
@@ -1,15 +0,0 @@
1
- export const convertRhsTypes = (useLiteralRHSType, useFieldRHSType, useRelativeDatesType, useParameterRHSType, dateFunctions) => {
2
- const setRhsTypes = new Set();
3
- if (useLiteralRHSType)
4
- setRhsTypes.add('LITERAL');
5
- if (useFieldRHSType)
6
- setRhsTypes.add('FIELD');
7
- if (dateFunctions)
8
- setRhsTypes.add('DATE_FUNCTION');
9
- if (useRelativeDatesType)
10
- setRhsTypes.add('RELATIVE_DATE');
11
- if (useParameterRHSType)
12
- setRhsTypes.add('PARAMETER');
13
- return setRhsTypes;
14
- };
15
- //# sourceMappingURL=ConditionBuilder.mocks.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ConditionBuilder.mocks.js","sourceRoot":"","sources":["../../../src/condition-builder/ConditionBuilder/ConditionBuilder.mocks.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,eAAe,GAAG,CAC7B,iBAA0B,EAC1B,eAAwB,EACxB,oBAA6B,EAC7B,mBAA4B,EAC5B,aAAmC,EACnC,EAAE;IACF,MAAM,WAAW,GAAiB,IAAI,GAAG,EAAW,CAAC;IACrD,IAAI,iBAAiB;QAAE,WAAW,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAClD,IAAI,eAAe;QAAE,WAAW,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IAC9C,IAAI,aAAa;QAAE,WAAW,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;IACpD,IAAI,oBAAoB;QAAE,WAAW,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;IAC3D,IAAI,mBAAmB;QAAE,WAAW,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;IACtD,OAAO,WAAW,CAAC;AACrB,CAAC,CAAC","sourcesContent":["import type { DateFunctionsByType, RHSType } from '@pega/cosmos-react-condition-builder';\n\nexport const convertRhsTypes = (\n useLiteralRHSType: boolean,\n useFieldRHSType: boolean,\n useRelativeDatesType: boolean,\n useParameterRHSType: boolean,\n dateFunctions?: DateFunctionsByType\n) => {\n const setRhsTypes: Set<RHSType> = new Set<RHSType>();\n if (useLiteralRHSType) setRhsTypes.add('LITERAL');\n if (useFieldRHSType) setRhsTypes.add('FIELD');\n if (dateFunctions) setRhsTypes.add('DATE_FUNCTION');\n if (useRelativeDatesType) setRhsTypes.add('RELATIVE_DATE');\n if (useParameterRHSType) setRhsTypes.add('PARAMETER');\n return setRhsTypes;\n};\n"]}
@@ -1,19 +0,0 @@
1
- import type { StoryFn } from '@storybook/react';
2
- declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
3
- export default _default;
4
- interface ConditionBuilderStoryProps {
5
- validComparators?: boolean;
6
- disallowNOT?: boolean;
7
- renderInPopover?: boolean;
8
- dateFunctions?: boolean;
9
- itemDirection?: 'column' | 'row';
10
- useLiteralRHSType?: boolean;
11
- useParameterRHSType?: boolean;
12
- useFieldRHSType?: boolean;
13
- useRelativeDatesRHSType?: boolean;
14
- lhsMode?: 'input' | 'label' | 'hidden';
15
- }
16
- export declare const DefaultBuilder: StoryFn<ConditionBuilderStoryProps>;
17
- export declare const FieldConditionDemo: StoryFn<ConditionBuilderStoryProps>;
18
- export declare const AtomicConditionDemo: StoryFn<ConditionBuilderStoryProps>;
19
- //# sourceMappingURL=ConditionBuilder.stories.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ConditionBuilder.stories.d.ts","sourceRoot":"","sources":["../../../src/condition-builder/ConditionBuilder/ConditionBuilder.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAQ,OAAO,EAAE,MAAM,kBAAkB,CAAC;;AA6BtD,wBAGU;AAEV,UAAU,0BAA0B;IAClC,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,aAAa,CAAC,EAAE,QAAQ,GAAG,KAAK,CAAC;IACjC,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,QAAQ,CAAC;CACxC;AAED,eAAO,MAAM,cAAc,EAAE,OAAO,CAAC,0BAA0B,CAgH9D,CAAC;AAgBF,eAAO,MAAM,kBAAkB,EAAE,OAAO,CAAC,0BAA0B,CAqGlE,CAAC;AAcF,eAAO,MAAM,mBAAmB,EAAE,OAAO,CAAC,0BAA0B,CA4JnE,CAAC"}
@@ -1,297 +0,0 @@
1
- import { useRef, useState } from 'react';
2
- import { Card, CardContent, Text, Button, Popover, useElement, useOuterEvent, Flex, useI18n } from '@pega/cosmos-react-core';
3
- import { ConditionBuilder, FieldCondition, AtomicCondition, getInitConditionForLhs, isValidCondition, formatCondition } from '@pega/cosmos-react-condition-builder';
4
- import { demoFields, demoCondition, demoComparators, demoDateFunctions } from './props.mock';
5
- import { StyledCodeBlock, StyledGrid, StyledList } from './ConditionBuilder.styles';
6
- import { convertRhsTypes } from './ConditionBuilder.mocks';
7
- export default {
8
- title: 'Condition Builder/ConditionBuilder',
9
- component: ConditionBuilder
10
- };
11
- export const DefaultBuilder = (args) => {
12
- const translate = useI18n();
13
- const [condition, setCondition] = useState(() => {
14
- const prevCondition = sessionStorage.getItem('CBDemoCondition');
15
- if (prevCondition !== null) {
16
- if (prevCondition === 'undefined') {
17
- return undefined;
18
- }
19
- return JSON.parse(prevCondition);
20
- }
21
- return demoCondition;
22
- });
23
- const buttonRef = useRef(null);
24
- const [isOpen, setIsOpen] = useState(false);
25
- const [popoverEl, setPopoverEl] = useElement(null);
26
- const hidePopover = () => {
27
- if (isOpen) {
28
- setIsOpen(false);
29
- }
30
- };
31
- useOuterEvent('mousedown', [popoverEl, buttonRef.current], hidePopover);
32
- const hideOnEscape = (e) => {
33
- if (e.key === 'Escape')
34
- hidePopover();
35
- };
36
- const handle = useRef(null);
37
- const builderJsx = (<>
38
- <ConditionBuilder fields={demoFields} condition={condition} validComparators={args.validComparators ? demoComparators : undefined} validRhsTypes={new Set(['LITERAL', 'FIELD', 'DATE_FUNCTION', 'RELATIVE_DATE', 'PARAMETER'])} dateFunctions={args.dateFunctions ? demoDateFunctions : undefined} disallowNOT={args.disallowNOT} handle={handle}/>
39
- <Flex container={{ justify: 'end' }}>
40
- <Button variant='primary' onClick={() => {
41
- if (handle?.current) {
42
- const [valid, newCondition] = handle.current.getCondition();
43
- if (valid) {
44
- setCondition(newCondition);
45
- hidePopover();
46
- sessionStorage.setItem('CBDemoCondition', JSON.stringify(newCondition));
47
- }
48
- }
49
- }}>
50
- Submit
51
- </Button>
52
- </Flex>
53
- </>);
54
- return (<StyledGrid container={{
55
- cols: '1fr',
56
- rowGap: 3
57
- }}>
58
- {!args.renderInPopover && builderJsx}
59
-
60
- {args.renderInPopover && (<>
61
- <Button ref={buttonRef} aria-haspopup aria-expanded={isOpen} onClick={() => setIsOpen(!isOpen)} onKeyDown={hideOnEscape}>
62
- Open Condition builder
63
- </Button>
64
-
65
- <Popover show={isOpen} ref={setPopoverEl} target={buttonRef.current} placement='bottom-start'>
66
- <Flex container={{ pad: 1, direction: 'column' }}>{builderJsx}</Flex>
67
- </Popover>
68
- </>)}
69
-
70
- <div>
71
- <Text variant='h4'>Output:</Text>
72
- <StyledCodeBlock>
73
- {condition ? JSON.stringify(condition, null, 2) : '(No condition)'}
74
- </StyledCodeBlock>
75
- </div>
76
-
77
- <div>
78
- <Text variant='h4'>Formatted Output:</Text>
79
- <StyledCodeBlock>
80
- {condition ? formatCondition(condition, demoFields, translate) : '(No condition)'}
81
- </StyledCodeBlock>
82
- </div>
83
- </StyledGrid>);
84
- };
85
- DefaultBuilder.args = {
86
- validComparators: false,
87
- disallowNOT: false,
88
- renderInPopover: false,
89
- dateFunctions: true
90
- };
91
- DefaultBuilder.argTypes = {
92
- validComparators: { control: { type: 'boolean' } },
93
- disallowNOT: { control: { type: 'boolean' } },
94
- renderInPopover: { control: { type: 'boolean' } },
95
- dateFunctions: { control: { type: 'boolean' } }
96
- };
97
- export const FieldConditionDemo = (args) => {
98
- const translate = useI18n();
99
- const [condition, setCondition] = useState(undefined);
100
- const buttonRef = useRef(null);
101
- const [isOpen, setIsOpen] = useState(false);
102
- const [popoverEl, setPopoverEl] = useElement(null);
103
- const hidePopover = () => {
104
- if (isOpen) {
105
- setIsOpen(false);
106
- }
107
- };
108
- useOuterEvent('mousedown', [popoverEl, buttonRef.current], hidePopover);
109
- const hideOnEscape = (e) => {
110
- if (e.key === 'Escape')
111
- hidePopover();
112
- };
113
- const handle = useRef(null);
114
- const builderJsx = (<Flex container={{ direction: 'column', gap: 2 }}>
115
- <FieldCondition targetField='technicalDetails.lastActivityAt' fields={demoFields} condition={condition} validComparators={args.validComparators ? demoComparators : undefined} validRhsTypes={new Set(['LITERAL', 'FIELD', 'DATE_FUNCTION', 'RELATIVE_DATE'])} dateFunctions={args.dateFunctions ? demoDateFunctions : undefined} handle={handle}/>
116
-
117
- <Flex container={{ justify: 'end' }}>
118
- <Button name='field-condition-submit' variant='primary' onClick={() => {
119
- if (!handle.current)
120
- return;
121
- const [isValid, c] = handle.current.getCondition();
122
- if (!isValid)
123
- return;
124
- hidePopover();
125
- setCondition(c);
126
- }}>
127
- Submit
128
- </Button>
129
- </Flex>
130
- </Flex>);
131
- return (<StyledGrid container={{
132
- cols: 'repeat(2, minmax(0, 1fr))',
133
- justifyItems: 'stretch',
134
- alignItems: 'start',
135
- colGap: 4
136
- }}>
137
- {!args.renderInPopover && builderJsx}
138
-
139
- {args.renderInPopover && (<>
140
- <Button ref={buttonRef} aria-haspopup aria-expanded={isOpen} onClick={() => setIsOpen(!isOpen)} onKeyDown={hideOnEscape}>
141
- Open Condition builder
142
- </Button>
143
-
144
- <Popover show={isOpen} ref={setPopoverEl} target={buttonRef.current} placement='bottom-start'>
145
- <Flex container={{ pad: 1 }}>{builderJsx}</Flex>
146
- </Popover>
147
- </>)}
148
-
149
- <div>
150
- <Text variant='h4'>Output:</Text>
151
- <StyledCodeBlock>
152
- {condition ? JSON.stringify(condition, null, 2) : '(No condition)'}
153
- </StyledCodeBlock>
154
-
155
- <Text variant='h4'>Formatted Output:</Text>
156
- <StyledCodeBlock>
157
- {condition ? formatCondition({ condition }, demoFields, translate) : '(No condition)'}
158
- </StyledCodeBlock>
159
- </div>
160
- </StyledGrid>);
161
- };
162
- FieldConditionDemo.args = {
163
- validComparators: false,
164
- renderInPopover: false,
165
- dateFunctions: true
166
- };
167
- FieldConditionDemo.argTypes = {
168
- validComparators: { control: { type: 'boolean' } },
169
- renderInPopover: { control: { type: 'boolean' } },
170
- dateFunctions: { control: { type: 'boolean' } }
171
- };
172
- export const AtomicConditionDemo = (args) => {
173
- const translate = useI18n();
174
- const validRHSTypes = convertRhsTypes(!!args.useLiteralRHSType, !!args.useFieldRHSType, !!args.useRelativeDatesRHSType, !!args.useParameterRHSType, args.dateFunctions ? demoDateFunctions : undefined);
175
- const [submitCondition, setSubmitCondition] = useState(undefined);
176
- const buttonRef = useRef(null);
177
- const [isOpen, setIsOpen] = useState(false);
178
- const [popoverEl, setPopoverEl] = useElement(null);
179
- const hidePopover = () => {
180
- if (isOpen) {
181
- setIsOpen(false);
182
- }
183
- };
184
- useOuterEvent('mousedown', [popoverEl, buttonRef.current], hidePopover);
185
- const hideOnEscape = (e) => {
186
- if (e.key === 'Escape')
187
- hidePopover();
188
- };
189
- const [showErrorIndicators, setShowErrorIndicators] = useState(false);
190
- const [condition, setCondition] = useState(() => submitCondition ||
191
- getInitConditionForLhs({ field: 'details.age' }, demoFields, validRHSTypes, args.validComparators ? demoComparators : undefined, args.dateFunctions ? demoDateFunctions : undefined));
192
- const handleSubmission = () => {
193
- setShowErrorIndicators(false);
194
- if (isValidCondition(condition, demoFields, true)) {
195
- if (args.renderInPopover)
196
- setIsOpen(false);
197
- setSubmitCondition(condition);
198
- }
199
- else {
200
- setShowErrorIndicators(true);
201
- }
202
- };
203
- const atomicConditionJSX = (<Flex container={{ direction: 'column', gap: 2 }}>
204
- <AtomicCondition condition={condition} fields={demoFields} indicateErrors={showErrorIndicators} validComparators={args.validComparators ? demoComparators : undefined} dateFunctions={args.dateFunctions ? demoDateFunctions : undefined} onChange={c => setCondition(c)} itemDirection={args.itemDirection} lhsMode={args.lhsMode} validRhsTypes={validRHSTypes}/>
205
- <Flex container={{ justify: 'end' }}>
206
- <Button variant='primary' onClick={handleSubmission}>
207
- Submit
208
- </Button>
209
- </Flex>
210
- </Flex>);
211
- return (<StyledGrid container={{
212
- cols: 'repeat(2, minmax(0, 1fr))',
213
- justifyItems: 'stretch',
214
- alignItems: 'start',
215
- colGap: 4
216
- }}>
217
- {!args.renderInPopover && atomicConditionJSX}
218
-
219
- {args.renderInPopover && (<>
220
- <Button ref={buttonRef} aria-haspopup aria-expanded={isOpen} onClick={() => setIsOpen(!isOpen)} onKeyDown={hideOnEscape}>
221
- {`${isOpen ? 'Close' : 'Open'} Atomic Condition`}
222
- </Button>
223
-
224
- <Popover show={isOpen} ref={setPopoverEl} target={buttonRef.current} placement='bottom-start'>
225
- <Flex container={{ pad: 1 }}>{atomicConditionJSX}</Flex>
226
- </Popover>
227
- </>)}
228
- <Card>
229
- <CardContent>
230
- <Text variant='h4'>Output:</Text>
231
- <StyledCodeBlock>
232
- {submitCondition ? JSON.stringify(submitCondition, null, 2) : '(No condition)'}
233
- </StyledCodeBlock>
234
-
235
- <Text variant='h4'>Formatted Output:</Text>
236
- <StyledCodeBlock>
237
- {submitCondition
238
- ? formatCondition({ condition: submitCondition }, demoFields, translate)
239
- : '(No condition)'}
240
- </StyledCodeBlock>
241
- <Flex container={{ gap: 1, direction: 'column' }}>
242
- <Flex container={{ gap: 1, direction: 'column' }}>
243
- <Text variant='h2' status='error'>
244
- validRhsTypes Prop Warning
245
- </Text>
246
- <Text>
247
- There are LHS(Left Hand Side Field)/Comparator pairings that <u>require</u> specific
248
- RHS(Right Hand Side Value) types. Please be mindful of these incompatibilities when
249
- limiting RHS value types using this prop. We <b>do not</b> support limiting RHS
250
- field types to incompatible types and it will result in a validation error if you do
251
- so. The pairings referred to here are as follows:
252
- </Text>
253
- </Flex>
254
- <StyledList>
255
- <li>
256
- BOOLEAN LHS Fields coupled with "EQ" or "NEQ" comparators, will <u>always yield</u>{' '}
257
- a Field RHS
258
- </li>
259
- <li>
260
- Any LHS Fields coupled with "IN" or "NOT_IN" comparators, will <u>always yield</u> a
261
- Literal RHS (Comma separated list)
262
- </li>
263
- </StyledList>
264
- <Flex container={{ direction: 'column' }}>
265
- <Text>
266
- If you would like to limit RHS value types and avoid these incompatibilities, you
267
- will need to exclude these comparators using the <b>validComparators</b> prop.
268
- </Text>
269
- </Flex>
270
- </Flex>
271
- </CardContent>
272
- </Card>
273
- </StyledGrid>);
274
- };
275
- AtomicConditionDemo.args = {
276
- validComparators: false,
277
- renderInPopover: false,
278
- dateFunctions: true,
279
- itemDirection: 'column',
280
- useLiteralRHSType: true,
281
- useParameterRHSType: true,
282
- useFieldRHSType: true,
283
- useRelativeDatesRHSType: true,
284
- lhsMode: 'input'
285
- };
286
- AtomicConditionDemo.argTypes = {
287
- validComparators: { control: { type: 'boolean' } },
288
- renderInPopover: { control: { type: 'boolean' } },
289
- dateFunctions: { control: { type: 'boolean' } },
290
- itemDirection: { options: ['column', 'row'], control: { type: 'select' } },
291
- useLiteralRHSType: { control: { type: 'boolean' } },
292
- useParameterRHSType: { control: { type: 'boolean' } },
293
- useFieldRHSType: { control: { type: 'boolean' } },
294
- useRelativeDatesRHSType: { control: { type: 'boolean' } },
295
- lhsMode: { options: ['input', 'label', 'hidden'], control: { type: 'select' } }
296
- };
297
- //# sourceMappingURL=ConditionBuilder.stories.jsx.map