@pega/cosmos-react-demos 7.1.1 → 8.0.0-build.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (988) hide show
  1. package/jsx/build/DynamicInput/DynamicInput.mocks.d.ts +6 -6
  2. package/jsx/build/DynamicInput/DynamicInput.mocks.d.ts.map +1 -1
  3. package/jsx/build/DynamicInput/DynamicInput.stories.d.ts +2 -2
  4. package/jsx/build/DynamicInput/DynamicInput.stories.d.ts.map +1 -1
  5. package/jsx/build/DynamicInput/DynamicInput.stories.jsx.map +1 -1
  6. package/jsx/build/FieldReference/FieldReference.mocks.d.ts +6 -2
  7. package/jsx/build/FieldReference/FieldReference.mocks.d.ts.map +1 -1
  8. package/jsx/build/FieldReference/FieldReference.mocks.js +85 -33
  9. package/jsx/build/FieldReference/FieldReference.mocks.js.map +1 -1
  10. package/jsx/build/FieldReference/FieldReference.stories.d.ts +6 -4
  11. package/jsx/build/FieldReference/FieldReference.stories.d.ts.map +1 -1
  12. package/jsx/build/FieldReference/FieldReference.stories.jsx +178 -3
  13. package/jsx/build/FieldReference/FieldReference.stories.jsx.map +1 -1
  14. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts +2 -2
  15. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts.map +1 -1
  16. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.jsx.map +1 -1
  17. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.styles.d.ts +1 -2
  18. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.styles.d.ts.map +1 -1
  19. package/jsx/condition-builder/ConditionInput/ConditionInput.stories.d.ts +2 -2
  20. package/jsx/condition-builder/ConditionInput/ConditionInput.stories.d.ts.map +1 -1
  21. package/jsx/condition-builder/PromotedFilters/PromotedFilters.stories.d.ts +2 -2
  22. package/jsx/condition-builder/PromotedFilters/PromotedFilters.stories.d.ts.map +1 -1
  23. package/jsx/condition-builder/PromotedFilters/PromotedFilters.stories.jsx +2 -1
  24. package/jsx/condition-builder/PromotedFilters/PromotedFilters.stories.jsx.map +1 -1
  25. package/jsx/condition-builder/PromotedFilters/PromotedFilters.styles.d.ts +0 -1
  26. package/jsx/condition-builder/PromotedFilters/PromotedFilters.styles.d.ts.map +1 -1
  27. package/jsx/core/AIButton/AIButton.mocks.d.ts +3 -3
  28. package/jsx/core/AIButton/AIButton.mocks.d.ts.map +1 -1
  29. package/jsx/core/AIButton/AIButton.mocks.js.map +1 -1
  30. package/jsx/core/AIButton/AIButton.stories.d.ts +2 -2
  31. package/jsx/core/AIButton/AIButton.stories.d.ts.map +1 -1
  32. package/jsx/core/AIButton/AIButton.stories.jsx.map +1 -1
  33. package/jsx/core/AdditionalInfo/AdditionalInfo.stories.d.ts +2 -2
  34. package/jsx/core/AdditionalInfo/AdditionalInfo.stories.d.ts.map +1 -1
  35. package/jsx/core/AppShell/AppShell.mocks.d.ts +0 -1
  36. package/jsx/core/AppShell/AppShell.mocks.d.ts.map +1 -1
  37. package/jsx/core/AppShell/AppShell.stories.d.ts +2 -2
  38. package/jsx/core/AppShell/AppShell.stories.d.ts.map +1 -1
  39. package/jsx/core/AppShell/AppShell.stories.jsx.map +1 -1
  40. package/jsx/core/Avatar/Avatar.stories.d.ts +2 -2
  41. package/jsx/core/Avatar/Avatar.stories.d.ts.map +1 -1
  42. package/jsx/core/Backdrop/Backdrop.stories.d.ts +2 -2
  43. package/jsx/core/Backdrop/Backdrop.stories.d.ts.map +1 -1
  44. package/jsx/core/Badges/Alert.stories.d.ts +2 -2
  45. package/jsx/core/Badges/Alert.stories.d.ts.map +1 -1
  46. package/jsx/core/Badges/Count.stories.d.ts +2 -2
  47. package/jsx/core/Badges/Count.stories.d.ts.map +1 -1
  48. package/jsx/core/Badges/Keyboard.stories.d.ts +2 -2
  49. package/jsx/core/Badges/Keyboard.stories.d.ts.map +1 -1
  50. package/jsx/core/Badges/Selection.stories.d.ts +2 -2
  51. package/jsx/core/Badges/Selection.stories.d.ts.map +1 -1
  52. package/jsx/core/Badges/Status.stories.d.ts +2 -2
  53. package/jsx/core/Badges/Status.stories.d.ts.map +1 -1
  54. package/jsx/core/Badges/Tag.stories.d.ts +2 -2
  55. package/jsx/core/Badges/Tag.stories.d.ts.map +1 -1
  56. package/jsx/core/Banner/Banner.mocks.d.ts +15 -4
  57. package/jsx/core/Banner/Banner.mocks.d.ts.map +1 -1
  58. package/jsx/core/Banner/Banner.mocks.jsx.map +1 -1
  59. package/jsx/core/Banner/Banner.stories.d.ts +2 -2
  60. package/jsx/core/Banner/Banner.stories.d.ts.map +1 -1
  61. package/jsx/core/Banner/Banner.stories.jsx.map +1 -1
  62. package/jsx/core/Boolean/BooleanDisplay.stories.d.ts +2 -2
  63. package/jsx/core/Boolean/BooleanDisplay.stories.d.ts.map +1 -1
  64. package/jsx/core/Breadcrumbs/Breadcrumbs.stories.d.ts +2 -2
  65. package/jsx/core/Breadcrumbs/Breadcrumbs.stories.d.ts.map +1 -1
  66. package/jsx/core/Button/Button.stories.d.ts +2 -2
  67. package/jsx/core/Button/Button.stories.d.ts.map +1 -1
  68. package/jsx/core/Card/Card.stories.d.ts +2 -2
  69. package/jsx/core/Card/Card.stories.d.ts.map +1 -1
  70. package/jsx/core/Card/Card.stories.jsx.map +1 -1
  71. package/jsx/core/Checkbox/Checkbox.stories.d.ts +2 -2
  72. package/jsx/core/Checkbox/Checkbox.stories.d.ts.map +1 -1
  73. package/jsx/core/Checkbox/Checkbox.stories.jsx.map +1 -1
  74. package/jsx/core/CheckboxGroup/CheckboxGroup.stories.d.ts +2 -2
  75. package/jsx/core/CheckboxGroup/CheckboxGroup.stories.d.ts.map +1 -1
  76. package/jsx/core/CheckboxGroup/CheckboxGroup.stories.jsx.map +1 -1
  77. package/jsx/core/CheckboxGroup/CheckboxGroup.styles.d.ts +0 -1
  78. package/jsx/core/CheckboxGroup/CheckboxGroup.styles.d.ts.map +1 -1
  79. package/jsx/core/ColorPicker/ColorPicker.stories.d.ts +2 -2
  80. package/jsx/core/ColorPicker/ColorPicker.stories.d.ts.map +1 -1
  81. package/jsx/core/ColorPicker/ColorPicker.stories.jsx.map +1 -1
  82. package/jsx/core/ComboBox/ComboBox.mocks.d.ts +0 -1
  83. package/jsx/core/ComboBox/ComboBox.mocks.d.ts.map +1 -1
  84. package/jsx/core/ComboBox/ComboBox.stories.d.ts +2 -2
  85. package/jsx/core/ComboBox/ComboBox.stories.d.ts.map +1 -1
  86. package/jsx/core/ComboBox/ComboBox.stories.jsx.map +1 -1
  87. package/jsx/core/CompositeInput/CompositeInput.mocks.d.ts.map +1 -1
  88. package/jsx/core/CompositeInput/CompositeInput.stories.d.ts +2 -2
  89. package/jsx/core/CompositeInput/CompositeInput.stories.d.ts.map +1 -1
  90. package/jsx/core/CompositeInput/CompositeInput.stories.jsx.map +1 -1
  91. package/jsx/core/Configuration/Configuration.mocks.d.ts +0 -1
  92. package/jsx/core/Configuration/Configuration.mocks.d.ts.map +1 -1
  93. package/jsx/core/Configuration/Configuration.stories.d.ts +2 -2
  94. package/jsx/core/Configuration/Configuration.stories.d.ts.map +1 -1
  95. package/jsx/core/CreditCard/CreditCard.stories.d.ts +2 -2
  96. package/jsx/core/CreditCard/CreditCard.stories.d.ts.map +1 -1
  97. package/jsx/core/CreditCard/CreditCard.stories.jsx.map +1 -1
  98. package/jsx/core/Currency/Currency.stories.d.ts +2 -2
  99. package/jsx/core/Currency/Currency.stories.d.ts.map +1 -1
  100. package/jsx/core/Currency/Currency.stories.jsx.map +1 -1
  101. package/jsx/core/DangerButton/DangerButton.stories.d.ts +2 -2
  102. package/jsx/core/DangerButton/DangerButton.stories.d.ts.map +1 -1
  103. package/jsx/core/DateTime/DateTime.stories.d.ts +2 -2
  104. package/jsx/core/DateTime/DateTime.stories.d.ts.map +1 -1
  105. package/jsx/core/DateTime/DateTime.stories.jsx +1 -1
  106. package/jsx/core/DateTime/DateTime.stories.jsx.map +1 -1
  107. package/jsx/core/DateTime/DateTimeDisplay.stories.d.ts +2 -2
  108. package/jsx/core/DateTime/DateTimeDisplay.stories.d.ts.map +1 -1
  109. package/jsx/core/DateTime/DateTimePicker.stories.d.ts +2 -2
  110. package/jsx/core/DateTime/DateTimePicker.stories.d.ts.map +1 -1
  111. package/jsx/core/Dialog/Dialog.stories.d.ts +2 -2
  112. package/jsx/core/Dialog/Dialog.stories.d.ts.map +1 -1
  113. package/jsx/core/Dialog/FormDialog.mocks.d.ts +0 -1
  114. package/jsx/core/Dialog/FormDialog.mocks.d.ts.map +1 -1
  115. package/jsx/core/Dialog/FormDialog.mocks.jsx.map +1 -1
  116. package/jsx/core/Dialog/InfoDialog.mocks.d.ts +0 -1
  117. package/jsx/core/Dialog/InfoDialog.mocks.d.ts.map +1 -1
  118. package/jsx/core/Dialog/InfoDialog.mocks.jsx.map +1 -1
  119. package/jsx/core/Drawer/Drawer.stories.d.ts +2 -2
  120. package/jsx/core/Drawer/Drawer.stories.d.ts.map +1 -1
  121. package/jsx/core/Email/EmailDisplay.stories.d.ts +2 -2
  122. package/jsx/core/Email/EmailDisplay.stories.d.ts.map +1 -1
  123. package/jsx/core/EmojiPicker/EmojiPicker.stories.d.ts +2 -2
  124. package/jsx/core/EmojiPicker/EmojiPicker.stories.d.ts.map +1 -1
  125. package/jsx/core/EmptyState/EmptyState.stories.d.ts +2 -2
  126. package/jsx/core/EmptyState/EmptyState.stories.d.ts.map +1 -1
  127. package/jsx/core/ErrorState/ErrorState.stories.d.ts +2 -2
  128. package/jsx/core/ErrorState/ErrorState.stories.d.ts.map +1 -1
  129. package/jsx/core/ExpandCollapse/ExpandCollapse.stories.d.ts +2 -2
  130. package/jsx/core/ExpandCollapse/ExpandCollapse.stories.d.ts.map +1 -1
  131. package/jsx/core/ExpandCollapse/ExpandCollapse.styles.d.ts +1 -1
  132. package/jsx/core/ExpandCollapse/ExpandCollapse.styles.d.ts.map +1 -1
  133. package/jsx/core/FieldGroup/FieldGroup.stories.d.ts +2 -2
  134. package/jsx/core/FieldGroup/FieldGroup.stories.d.ts.map +1 -1
  135. package/jsx/core/FieldGroup/FieldGroup.stories.jsx.map +1 -1
  136. package/jsx/core/FieldGroup/FieldGroupList.mocks.d.ts +0 -1
  137. package/jsx/core/FieldGroup/FieldGroupList.mocks.d.ts.map +1 -1
  138. package/jsx/core/FieldGroup/FieldGroupList.mocks.jsx.map +1 -1
  139. package/jsx/core/FieldGroup/FieldGroupList.stories.d.ts +2 -2
  140. package/jsx/core/FieldGroup/FieldGroupList.stories.d.ts.map +1 -1
  141. package/jsx/core/FieldGroup/FieldGroupList.stories.jsx.map +1 -1
  142. package/jsx/core/FieldValueList/FieldValueList.mocks.d.ts +0 -1
  143. package/jsx/core/FieldValueList/FieldValueList.mocks.d.ts.map +1 -1
  144. package/jsx/core/FieldValueList/FieldValueList.stories.d.ts +2 -2
  145. package/jsx/core/FieldValueList/FieldValueList.stories.d.ts.map +1 -1
  146. package/jsx/core/File/FileDisplay.stories.d.ts +2 -2
  147. package/jsx/core/File/FileDisplay.stories.d.ts.map +1 -1
  148. package/jsx/core/File/FileInput.stories.d.ts +2 -2
  149. package/jsx/core/File/FileInput.stories.d.ts.map +1 -1
  150. package/jsx/core/File/FileInput.stories.jsx.map +1 -1
  151. package/jsx/core/File/FileService.mock.d.ts.map +1 -1
  152. package/jsx/core/File/FileService.mock.jsx.map +1 -1
  153. package/jsx/core/Flex/Flex.styles.d.ts +5 -5
  154. package/jsx/core/Flex/Flex.styles.d.ts.map +1 -1
  155. package/jsx/core/Flex/FlexContainer.stories.d.ts +2 -2
  156. package/jsx/core/Flex/FlexContainer.stories.d.ts.map +1 -1
  157. package/jsx/core/Flex/FlexItem.stories.d.ts +2 -2
  158. package/jsx/core/Flex/FlexItem.stories.d.ts.map +1 -1
  159. package/jsx/core/Form/Form.mocks.d.ts +4 -5
  160. package/jsx/core/Form/Form.mocks.d.ts.map +1 -1
  161. package/jsx/core/Form/Form.mocks.jsx.map +1 -1
  162. package/jsx/core/Form/Form.stories.d.ts +2 -2
  163. package/jsx/core/Form/Form.stories.d.ts.map +1 -1
  164. package/jsx/core/Fullscreen/Fullscreen.stories.d.ts +2 -2
  165. package/jsx/core/Fullscreen/Fullscreen.stories.d.ts.map +1 -1
  166. package/jsx/core/Fullscreen/Fullscreen.styles.d.ts +0 -1
  167. package/jsx/core/Fullscreen/Fullscreen.styles.d.ts.map +1 -1
  168. package/jsx/core/Grid/Grid.styles.d.ts +2 -2
  169. package/jsx/core/Grid/Grid.styles.d.ts.map +1 -1
  170. package/jsx/core/Grid/GridContainer.stories.d.ts +2 -2
  171. package/jsx/core/Grid/GridContainer.stories.d.ts.map +1 -1
  172. package/jsx/core/Grid/GridItem.stories.d.ts +2 -2
  173. package/jsx/core/Grid/GridItem.stories.d.ts.map +1 -1
  174. package/jsx/core/HTML/HTML.stories.d.ts +2 -2
  175. package/jsx/core/HTML/HTML.stories.d.ts.map +1 -1
  176. package/jsx/core/Icon/Icon.stories.d.ts +2 -2
  177. package/jsx/core/Icon/Icon.stories.d.ts.map +1 -1
  178. package/jsx/core/Icon/Icon.stories.jsx.map +1 -1
  179. package/jsx/core/IconPicker/IconPicker.mocks.d.ts +1 -1
  180. package/jsx/core/IconPicker/IconPicker.stories.d.ts +2 -2
  181. package/jsx/core/IconPicker/IconPicker.stories.d.ts.map +1 -1
  182. package/jsx/core/Image/Image.stories.d.ts +2 -2
  183. package/jsx/core/Image/Image.stories.d.ts.map +1 -1
  184. package/jsx/core/Input/Input.stories.d.ts +2 -2
  185. package/jsx/core/Input/Input.stories.d.ts.map +1 -1
  186. package/jsx/core/Input/Input.stories.jsx.map +1 -1
  187. package/jsx/core/Label/Label.stories.d.ts +2 -2
  188. package/jsx/core/Label/Label.stories.d.ts.map +1 -1
  189. package/jsx/core/Lightbox/Lightbox.stories.d.ts +2 -2
  190. package/jsx/core/Lightbox/Lightbox.stories.d.ts.map +1 -1
  191. package/jsx/core/Lightbox/Lightbox.stories.jsx.map +1 -1
  192. package/jsx/core/Link/Link.stories.d.ts +2 -2
  193. package/jsx/core/Link/Link.stories.d.ts.map +1 -1
  194. package/jsx/core/List/CommaSeparatedList.stories.d.ts +2 -2
  195. package/jsx/core/List/CommaSeparatedList.stories.d.ts.map +1 -1
  196. package/jsx/core/List/OrderedList.stories.d.ts +2 -2
  197. package/jsx/core/List/OrderedList.stories.d.ts.map +1 -1
  198. package/jsx/core/List/OrderedList.stories.jsx.map +1 -1
  199. package/jsx/core/List/UnorderedList.stories.d.ts +2 -2
  200. package/jsx/core/List/UnorderedList.stories.d.ts.map +1 -1
  201. package/jsx/core/List/UnorderedList.stories.jsx.map +1 -1
  202. package/jsx/core/ListToolbar/ListToolbar.stories.d.ts +2 -2
  203. package/jsx/core/ListToolbar/ListToolbar.stories.d.ts.map +1 -1
  204. package/jsx/core/LiveLog/LiveLog.mocks.d.ts +1 -2
  205. package/jsx/core/LiveLog/LiveLog.mocks.d.ts.map +1 -1
  206. package/jsx/core/LiveLog/LiveLog.mocks.jsx.map +1 -1
  207. package/jsx/core/LiveLog/LiveLog.stories.d.ts +2 -2
  208. package/jsx/core/LiveLog/LiveLog.stories.d.ts.map +1 -1
  209. package/jsx/core/Location/Location.mocks.d.ts +5 -0
  210. package/jsx/core/Location/Location.mocks.d.ts.map +1 -0
  211. package/jsx/core/Location/Location.mocks.jsx +26 -0
  212. package/jsx/core/Location/Location.mocks.jsx.map +1 -0
  213. package/jsx/core/Location/Location.stories.d.ts +7 -10
  214. package/jsx/core/Location/Location.stories.d.ts.map +1 -1
  215. package/jsx/core/Location/Location.stories.jsx +53 -44
  216. package/jsx/core/Location/Location.stories.jsx.map +1 -1
  217. package/jsx/core/Location/MapsProvider.mock.d.ts +8 -0
  218. package/jsx/core/Location/MapsProvider.mock.d.ts.map +1 -0
  219. package/jsx/core/Location/MapsProvider.mock.jsx +21 -0
  220. package/jsx/core/Location/MapsProvider.mock.jsx.map +1 -0
  221. package/jsx/core/Location/locationTestUtils.d.ts +4 -2
  222. package/jsx/core/Location/locationTestUtils.d.ts.map +1 -1
  223. package/jsx/core/Location/locationTestUtils.js +44 -16
  224. package/jsx/core/Location/locationTestUtils.js.map +1 -1
  225. package/jsx/core/Menu/Menu.mocks.d.ts.map +1 -1
  226. package/jsx/core/Menu/Menu.mocks.js +55 -1
  227. package/jsx/core/Menu/Menu.mocks.js.map +1 -1
  228. package/jsx/core/Menu/Menu.stories.d.ts +3 -2
  229. package/jsx/core/Menu/Menu.stories.d.ts.map +1 -1
  230. package/jsx/core/Menu/Menu.stories.jsx +147 -1
  231. package/jsx/core/Menu/Menu.stories.jsx.map +1 -1
  232. package/jsx/core/MenuButton/MenuButton.stories.d.ts +2 -2
  233. package/jsx/core/MenuButton/MenuButton.stories.d.ts.map +1 -1
  234. package/jsx/core/MetaList/MetaList.stories.d.ts +2 -2
  235. package/jsx/core/MetaList/MetaList.stories.d.ts.map +1 -1
  236. package/jsx/core/Modal/Modal.mocks.d.ts +1 -1
  237. package/jsx/core/Modal/Modal.mocks.d.ts.map +1 -1
  238. package/jsx/core/Modal/Modal.mocks.jsx.map +1 -1
  239. package/jsx/core/Modal/Modal.stories.d.ts +2 -2
  240. package/jsx/core/Modal/Modal.stories.d.ts.map +1 -1
  241. package/jsx/core/MultiStepForm/MultiStepForm.mocks.d.ts +0 -1
  242. package/jsx/core/MultiStepForm/MultiStepForm.mocks.d.ts.map +1 -1
  243. package/jsx/core/MultiStepForm/MultiStepForm.mocks.jsx.map +1 -1
  244. package/jsx/core/MultiStepForm/MultiStepForm.stories.d.ts +2 -2
  245. package/jsx/core/MultiStepForm/MultiStepForm.stories.d.ts.map +1 -1
  246. package/jsx/core/MultiStepForm/MultiStepForm.stories.jsx.map +1 -1
  247. package/jsx/core/NoValue/NoValue.stories.d.ts +2 -2
  248. package/jsx/core/NoValue/NoValue.stories.d.ts.map +1 -1
  249. package/jsx/core/Number/Number.stories.d.ts +2 -2
  250. package/jsx/core/Number/Number.stories.d.ts.map +1 -1
  251. package/jsx/core/Number/Number.stories.jsx.map +1 -1
  252. package/jsx/core/PageTemplates/PageTemplates.mocks.d.ts +1 -1
  253. package/jsx/core/PageTemplates/PageTemplates.mocks.js.map +1 -1
  254. package/jsx/core/PageTemplates/PageTemplates.stories.d.ts +2 -2
  255. package/jsx/core/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
  256. package/jsx/core/PageTemplates/PageTemplates.stories.jsx.map +1 -1
  257. package/jsx/core/PageTemplates/PageTemplates.styles.d.ts +1 -1
  258. package/jsx/core/PageTemplates/PageTemplates.styles.d.ts.map +1 -1
  259. package/jsx/core/Pagination/Pagination.stories.d.ts +2 -2
  260. package/jsx/core/Pagination/Pagination.stories.d.ts.map +1 -1
  261. package/jsx/core/Paragraph/ParagraphDisplay.stories.d.ts +2 -2
  262. package/jsx/core/Paragraph/ParagraphDisplay.stories.d.ts.map +1 -1
  263. package/jsx/core/Phone/Phone.stories.d.ts +2 -2
  264. package/jsx/core/Phone/Phone.stories.d.ts.map +1 -1
  265. package/jsx/core/Phone/Phone.stories.jsx.map +1 -1
  266. package/jsx/core/Popover/Popover.mocks.d.ts +0 -1
  267. package/jsx/core/Popover/Popover.mocks.d.ts.map +1 -1
  268. package/jsx/core/Popover/Popover.stories.d.ts +2 -2
  269. package/jsx/core/Popover/Popover.stories.d.ts.map +1 -1
  270. package/jsx/core/Popover/Popover.stories.jsx +9 -12
  271. package/jsx/core/Popover/Popover.stories.jsx.map +1 -1
  272. package/jsx/core/Progress/Progress.stories.d.ts +2 -2
  273. package/jsx/core/Progress/Progress.stories.d.ts.map +1 -1
  274. package/jsx/core/Progress/Progress.stories.jsx.map +1 -1
  275. package/jsx/core/QRCode/QRCode.stories.d.ts +2 -2
  276. package/jsx/core/QRCode/QRCode.stories.d.ts.map +1 -1
  277. package/jsx/core/RadioButton/RadioButton.stories.d.ts +2 -2
  278. package/jsx/core/RadioButton/RadioButton.stories.d.ts.map +1 -1
  279. package/jsx/core/RadioButton/RadioButton.stories.jsx.map +1 -1
  280. package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts +2 -2
  281. package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts.map +1 -1
  282. package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.jsx.map +1 -1
  283. package/jsx/core/RadioButtonGroup/RadioButtonGroup.styles.d.ts +0 -1
  284. package/jsx/core/RadioButtonGroup/RadioButtonGroup.styles.d.ts.map +1 -1
  285. package/jsx/core/Rating/Rating.stories.d.ts +2 -2
  286. package/jsx/core/Rating/Rating.stories.d.ts.map +1 -1
  287. package/jsx/core/SearchInput/SearchInput.stories.d.ts +9 -4
  288. package/jsx/core/SearchInput/SearchInput.stories.d.ts.map +1 -1
  289. package/jsx/core/SearchInput/SearchInput.stories.jsx +28 -8
  290. package/jsx/core/SearchInput/SearchInput.stories.jsx.map +1 -1
  291. package/jsx/core/Select/Select.stories.d.ts +2 -2
  292. package/jsx/core/Select/Select.stories.d.ts.map +1 -1
  293. package/jsx/core/Select/Select.stories.jsx.map +1 -1
  294. package/jsx/core/Sentiment/Sentiment.stories.d.ts +2 -2
  295. package/jsx/core/Sentiment/Sentiment.stories.d.ts.map +1 -1
  296. package/jsx/core/SkipLinks/SkipLinks.stories.d.ts +2 -2
  297. package/jsx/core/SkipLinks/SkipLinks.stories.d.ts.map +1 -1
  298. package/jsx/core/Slider/Slider.stories.d.ts +2 -2
  299. package/jsx/core/Slider/Slider.stories.d.ts.map +1 -1
  300. package/jsx/core/Slider/Slider.stories.jsx.map +1 -1
  301. package/jsx/core/SummaryItem/SummaryItem.stories.d.ts +2 -2
  302. package/jsx/core/SummaryItem/SummaryItem.stories.d.ts.map +1 -1
  303. package/jsx/core/SummaryItem/SummaryItem.stories.jsx.map +1 -1
  304. package/jsx/core/SummaryList/SummaryList.mocks.d.ts +1 -1
  305. package/jsx/core/SummaryList/SummaryList.mocks.d.ts.map +1 -1
  306. package/jsx/core/SummaryList/SummaryList.mocks.jsx.map +1 -1
  307. package/jsx/core/SummaryList/SummaryList.stories.d.ts +2 -2
  308. package/jsx/core/SummaryList/SummaryList.stories.d.ts.map +1 -1
  309. package/jsx/core/SummaryList/SummaryList.stories.jsx.map +1 -1
  310. package/jsx/core/Switch/Switch.stories.d.ts +2 -2
  311. package/jsx/core/Switch/Switch.stories.d.ts.map +1 -1
  312. package/jsx/core/Table/Table.mocks.d.ts +0 -1
  313. package/jsx/core/Table/Table.mocks.d.ts.map +1 -1
  314. package/jsx/core/Table/Table.stories.d.ts +2 -2
  315. package/jsx/core/Table/Table.stories.d.ts.map +1 -1
  316. package/jsx/core/Tabs/Tabs.mocks.d.ts +1 -2
  317. package/jsx/core/Tabs/Tabs.mocks.d.ts.map +1 -1
  318. package/jsx/core/Tabs/Tabs.stories.d.ts +2 -2
  319. package/jsx/core/Tabs/Tabs.stories.d.ts.map +1 -1
  320. package/jsx/core/Text/Text.stories.d.ts +2 -2
  321. package/jsx/core/Text/Text.stories.d.ts.map +1 -1
  322. package/jsx/core/TextArea/TextArea.stories.d.ts +2 -2
  323. package/jsx/core/TextArea/TextArea.stories.d.ts.map +1 -1
  324. package/jsx/core/TextArea/TextArea.stories.jsx.map +1 -1
  325. package/jsx/core/Toaster/Toaster.stories.d.ts +2 -2
  326. package/jsx/core/Toaster/Toaster.stories.d.ts.map +1 -1
  327. package/jsx/core/Tooltip/Tooltip.stories.d.ts +2 -2
  328. package/jsx/core/Tooltip/Tooltip.stories.d.ts.map +1 -1
  329. package/jsx/core/Tree/Tree.mocks.js.map +1 -1
  330. package/jsx/core/Tree/Tree.stories.d.ts +2 -2
  331. package/jsx/core/Tree/Tree.stories.d.ts.map +1 -1
  332. package/jsx/core/URL/URL.stories.d.ts +2 -2
  333. package/jsx/core/URL/URL.stories.d.ts.map +1 -1
  334. package/jsx/dnd/DragDropList/DragDropList.mocks.d.ts +1 -2
  335. package/jsx/dnd/DragDropList/DragDropList.mocks.d.ts.map +1 -1
  336. package/jsx/dnd/DragDropList/DragDropList.stories.d.ts +2 -2
  337. package/jsx/dnd/DragDropList/DragDropList.stories.d.ts.map +1 -1
  338. package/jsx/dnd/StandardDragDropList/Demo.d.ts.map +1 -1
  339. package/jsx/dnd/StandardDragDropList/Demo.jsx.map +1 -1
  340. package/jsx/dnd/StandardDragDropList/GroupConfig.d.ts +0 -1
  341. package/jsx/dnd/StandardDragDropList/GroupConfig.d.ts.map +1 -1
  342. package/jsx/dnd/StandardDragDropList/ItemConfig.d.ts +0 -1
  343. package/jsx/dnd/StandardDragDropList/ItemConfig.d.ts.map +1 -1
  344. package/jsx/dnd/StandardDragDropList/SelectionMenu.d.ts +0 -1
  345. package/jsx/dnd/StandardDragDropList/SelectionMenu.d.ts.map +1 -1
  346. package/jsx/dnd/StandardDragDropList/SelectionMenu.jsx.map +1 -1
  347. package/jsx/dnd/StandardDragDropList/StandardDragDropList.stories.d.ts +2 -2
  348. package/jsx/dnd/StandardDragDropList/StandardDragDropList.stories.d.ts.map +1 -1
  349. package/jsx/dnd/StandardDragDropList/mockData.d.ts.map +1 -1
  350. package/jsx/dnd/StandardDragDropList/mockData.js +4 -4
  351. package/jsx/dnd/StandardDragDropList/mockData.js.map +1 -1
  352. package/jsx/rte/DynamicContentEditor/DynamicContentEditor.stories.d.ts +2 -2
  353. package/jsx/rte/DynamicContentEditor/DynamicContentEditor.stories.d.ts.map +1 -1
  354. package/jsx/rte/DynamicContentEditor/FieldSelector.jsx.map +1 -1
  355. package/jsx/rte/Editor/Editor.mocks.d.ts +50 -45
  356. package/jsx/rte/Editor/Editor.mocks.d.ts.map +1 -1
  357. package/jsx/rte/Editor/Editor.mocks.jsx.map +1 -1
  358. package/jsx/rte/Editor/Editor.stories.d.ts +2 -2
  359. package/jsx/rte/Editor/Editor.stories.d.ts.map +1 -1
  360. package/jsx/rte/Editor/Editor.stories.jsx.map +1 -1
  361. package/jsx/rte/RichTextEditor/RichTextEditor.stories.d.ts +2 -2
  362. package/jsx/rte/RichTextEditor/RichTextEditor.stories.d.ts.map +1 -1
  363. package/jsx/rte/RichTextEditor/RichTextEditor.stories.jsx.map +1 -1
  364. package/jsx/rte/RichTextEditor/RichTextViewer.stories.d.ts +2 -2
  365. package/jsx/rte/RichTextEditor/RichTextViewer.stories.d.ts.map +1 -1
  366. package/jsx/rte/RichTextEditor/RichTextViewer.stories.jsx.map +1 -1
  367. package/jsx/social/Chat/Chat.stories.d.ts +2 -2
  368. package/jsx/social/Chat/Chat.stories.d.ts.map +1 -1
  369. package/jsx/social/Chat/Chat.stories.jsx.map +1 -1
  370. package/jsx/social/Email/Email.mocks.d.ts +9 -9
  371. package/jsx/social/Email/Email.mocks.d.ts.map +1 -1
  372. package/jsx/social/Email/Email.mocks.jsx.map +1 -1
  373. package/jsx/social/Email/Email.stories.d.ts +4 -2
  374. package/jsx/social/Email/Email.stories.d.ts.map +1 -1
  375. package/jsx/social/Email/Email.stories.jsx +37 -8
  376. package/jsx/social/Email/Email.stories.jsx.map +1 -1
  377. package/jsx/social/Email/Email.styles.d.ts +0 -1
  378. package/jsx/social/Email/Email.styles.d.ts.map +1 -1
  379. package/jsx/social/Feed/Feed.mocks.d.ts.map +1 -1
  380. package/jsx/social/Feed/Feed.stories.d.ts +4 -3
  381. package/jsx/social/Feed/Feed.stories.d.ts.map +1 -1
  382. package/jsx/social/Feed/Feed.stories.jsx +12 -6
  383. package/jsx/social/Feed/Feed.stories.jsx.map +1 -1
  384. package/jsx/social/Feed/FeedNewPost.mocks.d.ts +0 -1
  385. package/jsx/social/Feed/FeedNewPost.mocks.d.ts.map +1 -1
  386. package/jsx/social/Feed/FeedNewPost.mocks.jsx.map +1 -1
  387. package/jsx/social/Feed/FeedPost.mocks.d.ts +0 -1
  388. package/jsx/social/Feed/FeedPost.mocks.d.ts.map +1 -1
  389. package/jsx/social/Feed/FeedPost.mocks.jsx.map +1 -1
  390. package/jsx/social/Feed/FeedReply.mocks.d.ts +0 -1
  391. package/jsx/social/Feed/FeedReply.mocks.d.ts.map +1 -1
  392. package/jsx/social/Feed/FeedReply.mocks.jsx.map +1 -1
  393. package/jsx/work/AppAnnouncement/AppAnnouncement.stories.d.ts +2 -2
  394. package/jsx/work/AppAnnouncement/AppAnnouncement.stories.d.ts.map +1 -1
  395. package/jsx/work/Article/Article.stories.d.ts +2 -2
  396. package/jsx/work/Article/Article.stories.d.ts.map +1 -1
  397. package/jsx/work/Article/Article.stories.jsx +15 -12
  398. package/jsx/work/Article/Article.stories.jsx.map +1 -1
  399. package/jsx/work/ArticleList/ArticleBuddy.stories.d.ts +2 -2
  400. package/jsx/work/ArticleList/ArticleBuddy.stories.d.ts.map +1 -1
  401. package/jsx/work/ArticleList/ArticleBuddy.stories.jsx +7 -5
  402. package/jsx/work/ArticleList/ArticleBuddy.stories.jsx.map +1 -1
  403. package/jsx/work/ArticleList/ArticleList.mocks.d.ts +6 -4
  404. package/jsx/work/ArticleList/ArticleList.mocks.d.ts.map +1 -1
  405. package/jsx/work/ArticleList/ArticleList.mocks.js +74 -52
  406. package/jsx/work/ArticleList/ArticleList.mocks.js.map +1 -1
  407. package/jsx/work/ArticleList/ArticleList.stories.d.ts +2 -2
  408. package/jsx/work/ArticleList/ArticleList.stories.d.ts.map +1 -1
  409. package/jsx/work/ArticleList/ArticleList.stories.jsx +41 -35
  410. package/jsx/work/ArticleList/ArticleList.stories.jsx.map +1 -1
  411. package/jsx/work/Assignments/Assignments.stories.d.ts +2 -2
  412. package/jsx/work/Assignments/Assignments.stories.d.ts.map +1 -1
  413. package/jsx/work/Assignments/Assignments.stories.jsx.map +1 -1
  414. package/jsx/work/CaseView/Attachments.mocks.d.ts +0 -1
  415. package/jsx/work/CaseView/Attachments.mocks.d.ts.map +1 -1
  416. package/jsx/work/CaseView/Attachments.mocks.jsx.map +1 -1
  417. package/jsx/work/CaseView/CaseView.mocks.d.ts +8 -7
  418. package/jsx/work/CaseView/CaseView.mocks.d.ts.map +1 -1
  419. package/jsx/work/CaseView/CaseView.mocks.jsx +31 -15
  420. package/jsx/work/CaseView/CaseView.mocks.jsx.map +1 -1
  421. package/jsx/work/CaseView/CaseView.stories.d.ts +2 -2
  422. package/jsx/work/CaseView/CaseView.stories.d.ts.map +1 -1
  423. package/jsx/work/CaseView/CaseView.stories.jsx +5 -3
  424. package/jsx/work/CaseView/CaseView.stories.jsx.map +1 -1
  425. package/jsx/work/CaseView/Details.mocks.d.ts +0 -1
  426. package/jsx/work/CaseView/Details.mocks.d.ts.map +1 -1
  427. package/jsx/work/CaseView/Pulse.mocks.d.ts +2 -3
  428. package/jsx/work/CaseView/Pulse.mocks.d.ts.map +1 -1
  429. package/jsx/work/ConfigurableLayout/ConfigurableLayout.mocks.d.ts +0 -1
  430. package/jsx/work/ConfigurableLayout/ConfigurableLayout.mocks.d.ts.map +1 -1
  431. package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts +2 -2
  432. package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts.map +1 -1
  433. package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.jsx.map +1 -1
  434. package/jsx/work/Confirmation/Confirmation.stories.d.ts +2 -2
  435. package/jsx/work/Confirmation/Confirmation.stories.d.ts.map +1 -1
  436. package/jsx/work/Confirmation/Confirmation.stories.jsx.map +1 -1
  437. package/jsx/work/Details/Details.stories.d.ts +2 -2
  438. package/jsx/work/Details/Details.stories.d.ts.map +1 -1
  439. package/jsx/work/Details/Details.stories.jsx.map +1 -1
  440. package/jsx/work/GenAICoach/GenAICoach.stories.d.ts +2 -2
  441. package/jsx/work/GenAICoach/GenAICoach.stories.d.ts.map +1 -1
  442. package/jsx/work/GenAICoach/GenAICoach.stories.jsx.map +1 -1
  443. package/jsx/work/GenAICoach/useGenAICoach.js.map +1 -1
  444. package/jsx/work/Glimpse/Glimpse.stories.d.ts +2 -2
  445. package/jsx/work/Glimpse/Glimpse.stories.d.ts.map +1 -1
  446. package/jsx/work/HierarchicalAssignments/HierarchicalAssignments.mock.d.ts +0 -1
  447. package/jsx/work/HierarchicalAssignments/HierarchicalAssignments.mock.d.ts.map +1 -1
  448. package/jsx/work/HierarchicalAssignments/HierarchicalAssignments.mock.jsx.map +1 -1
  449. package/jsx/work/HierarchicalAssignments/HierarchicalAssignments.stories.d.ts +2 -2
  450. package/jsx/work/HierarchicalAssignments/HierarchicalAssignments.stories.d.ts.map +1 -1
  451. package/jsx/work/HierarchicalAssignments/HierarchicalAssignments.stories.jsx.map +1 -1
  452. package/jsx/work/IntelligentGuidance/IntelligentGuidance.stories.d.ts +2 -2
  453. package/jsx/work/IntelligentGuidance/IntelligentGuidance.stories.d.ts.map +1 -1
  454. package/jsx/work/IntelligentGuidance/IntelligentGuidance.stories.jsx.map +1 -1
  455. package/jsx/work/InteractionNotification/InteractionNotification.stories.d.ts +2 -2
  456. package/jsx/work/InteractionNotification/InteractionNotification.stories.d.ts.map +1 -1
  457. package/jsx/work/InteractionNotification/InteractionNotification.stories.jsx.map +1 -1
  458. package/jsx/work/Predictions/Predictions.mocks.d.ts +0 -1
  459. package/jsx/work/Predictions/Predictions.mocks.d.ts.map +1 -1
  460. package/jsx/work/Predictions/Predictions.stories.d.ts +2 -2
  461. package/jsx/work/Predictions/Predictions.stories.d.ts.map +1 -1
  462. package/jsx/work/Predictions/Predictions.stories.jsx.map +1 -1
  463. package/jsx/work/SearchResults/SearchResults.mocks.d.ts.map +1 -1
  464. package/jsx/work/SearchResults/SearchResults.stories.d.ts +2 -2
  465. package/jsx/work/SearchResults/SearchResults.stories.d.ts.map +1 -1
  466. package/jsx/work/SearchResults/SearchResults.stories.jsx.map +1 -1
  467. package/jsx/work/SearchResults/SearchResults.styles.d.ts +1 -1
  468. package/jsx/work/Stages/Stages.mocks.d.ts +0 -1
  469. package/jsx/work/Stages/Stages.mocks.d.ts.map +1 -1
  470. package/jsx/work/Stages/Stages.stories.d.ts +2 -2
  471. package/jsx/work/Stages/Stages.stories.d.ts.map +1 -1
  472. package/jsx/work/Stages/Stages.stories.jsx.map +1 -1
  473. package/jsx/work/Stakeholders/Stakeholders.mocks.d.ts +4 -4
  474. package/jsx/work/Stakeholders/Stakeholders.mocks.d.ts.map +1 -1
  475. package/jsx/work/Stakeholders/Stakeholders.stories.d.ts +2 -2
  476. package/jsx/work/Stakeholders/Stakeholders.stories.d.ts.map +1 -1
  477. package/jsx/work/Stakeholders/Stakeholders.stories.jsx.map +1 -1
  478. package/jsx/work/Tags/Tags.stories.d.ts +2 -2
  479. package/jsx/work/Tags/Tags.stories.d.ts.map +1 -1
  480. package/jsx/work/Tags/Tags.stories.jsx.map +1 -1
  481. package/jsx/work/Tasks/TaskList.stories.d.ts +2 -2
  482. package/jsx/work/Tasks/TaskList.stories.d.ts.map +1 -1
  483. package/jsx/work/Tasks/Tasks.stories.d.ts +2 -2
  484. package/jsx/work/Tasks/Tasks.stories.d.ts.map +1 -1
  485. package/jsx/work/Tasks/Tasks.stories.jsx.map +1 -1
  486. package/jsx/work/Timeline/Timeline.stories.d.ts +2 -2
  487. package/jsx/work/Timeline/Timeline.stories.d.ts.map +1 -1
  488. package/jsx/work/Timeline/Timeline.stories.jsx.map +1 -1
  489. package/jsx/work/UtilitiesLayout/UtilitiesLayout.stories.d.ts +2 -2
  490. package/jsx/work/UtilitiesLayout/UtilitiesLayout.stories.d.ts.map +1 -1
  491. package/jsx/work/UtilitiesLayout/UtilitiesLayout.stories.jsx.map +1 -1
  492. package/jsx/wss/AppShell/AppShell.mocks.d.ts +0 -1
  493. package/jsx/wss/AppShell/AppShell.mocks.d.ts.map +1 -1
  494. package/jsx/wss/AppShell/AppShell.stories.d.ts +2 -2
  495. package/jsx/wss/AppShell/AppShell.stories.d.ts.map +1 -1
  496. package/jsx/wss/CaseView/CaseView.mocks.d.ts +0 -1
  497. package/jsx/wss/CaseView/CaseView.mocks.d.ts.map +1 -1
  498. package/jsx/wss/CaseView/CaseView.stories.d.ts +2 -2
  499. package/jsx/wss/CaseView/CaseView.stories.d.ts.map +1 -1
  500. package/jsx/wss/CaseView/CaseView.stories.jsx.map +1 -1
  501. package/jsx/wss/PageTemplates/PageTemplates.stories.d.ts +2 -2
  502. package/jsx/wss/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
  503. package/jsx/wss/PageTemplates/PageTemplates.stories.jsx.map +1 -1
  504. package/jsx/wss/QuickCreate/QuickCreate.stories.d.ts +2 -2
  505. package/jsx/wss/QuickCreate/QuickCreate.stories.d.ts.map +1 -1
  506. package/lib/build/DynamicInput/DynamicInput.mocks.d.ts +6 -6
  507. package/lib/build/DynamicInput/DynamicInput.mocks.d.ts.map +1 -1
  508. package/lib/build/DynamicInput/DynamicInput.stories.d.ts +2 -2
  509. package/lib/build/DynamicInput/DynamicInput.stories.d.ts.map +1 -1
  510. package/lib/build/DynamicInput/DynamicInput.stories.js.map +1 -1
  511. package/lib/build/FieldReference/FieldReference.mocks.d.ts +6 -2
  512. package/lib/build/FieldReference/FieldReference.mocks.d.ts.map +1 -1
  513. package/lib/build/FieldReference/FieldReference.mocks.js +85 -33
  514. package/lib/build/FieldReference/FieldReference.mocks.js.map +1 -1
  515. package/lib/build/FieldReference/FieldReference.stories.d.ts +6 -4
  516. package/lib/build/FieldReference/FieldReference.stories.d.ts.map +1 -1
  517. package/lib/build/FieldReference/FieldReference.stories.js +173 -4
  518. package/lib/build/FieldReference/FieldReference.stories.js.map +1 -1
  519. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts +2 -2
  520. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts.map +1 -1
  521. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.js.map +1 -1
  522. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.styles.d.ts +1 -2
  523. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.styles.d.ts.map +1 -1
  524. package/lib/condition-builder/ConditionInput/ConditionInput.stories.d.ts +2 -2
  525. package/lib/condition-builder/ConditionInput/ConditionInput.stories.d.ts.map +1 -1
  526. package/lib/condition-builder/PromotedFilters/PromotedFilters.stories.d.ts +2 -2
  527. package/lib/condition-builder/PromotedFilters/PromotedFilters.stories.d.ts.map +1 -1
  528. package/lib/condition-builder/PromotedFilters/PromotedFilters.stories.js +2 -1
  529. package/lib/condition-builder/PromotedFilters/PromotedFilters.stories.js.map +1 -1
  530. package/lib/condition-builder/PromotedFilters/PromotedFilters.styles.d.ts +0 -1
  531. package/lib/condition-builder/PromotedFilters/PromotedFilters.styles.d.ts.map +1 -1
  532. package/lib/core/AIButton/AIButton.mocks.d.ts +3 -3
  533. package/lib/core/AIButton/AIButton.mocks.d.ts.map +1 -1
  534. package/lib/core/AIButton/AIButton.mocks.js.map +1 -1
  535. package/lib/core/AIButton/AIButton.stories.d.ts +2 -2
  536. package/lib/core/AIButton/AIButton.stories.d.ts.map +1 -1
  537. package/lib/core/AIButton/AIButton.stories.js.map +1 -1
  538. package/lib/core/AdditionalInfo/AdditionalInfo.stories.d.ts +2 -2
  539. package/lib/core/AdditionalInfo/AdditionalInfo.stories.d.ts.map +1 -1
  540. package/lib/core/AppShell/AppShell.mocks.d.ts +0 -1
  541. package/lib/core/AppShell/AppShell.mocks.d.ts.map +1 -1
  542. package/lib/core/AppShell/AppShell.stories.d.ts +2 -2
  543. package/lib/core/AppShell/AppShell.stories.d.ts.map +1 -1
  544. package/lib/core/AppShell/AppShell.stories.js.map +1 -1
  545. package/lib/core/Avatar/Avatar.stories.d.ts +2 -2
  546. package/lib/core/Avatar/Avatar.stories.d.ts.map +1 -1
  547. package/lib/core/Backdrop/Backdrop.stories.d.ts +2 -2
  548. package/lib/core/Backdrop/Backdrop.stories.d.ts.map +1 -1
  549. package/lib/core/Badges/Alert.stories.d.ts +2 -2
  550. package/lib/core/Badges/Alert.stories.d.ts.map +1 -1
  551. package/lib/core/Badges/Count.stories.d.ts +2 -2
  552. package/lib/core/Badges/Count.stories.d.ts.map +1 -1
  553. package/lib/core/Badges/Keyboard.stories.d.ts +2 -2
  554. package/lib/core/Badges/Keyboard.stories.d.ts.map +1 -1
  555. package/lib/core/Badges/Selection.stories.d.ts +2 -2
  556. package/lib/core/Badges/Selection.stories.d.ts.map +1 -1
  557. package/lib/core/Badges/Status.stories.d.ts +2 -2
  558. package/lib/core/Badges/Status.stories.d.ts.map +1 -1
  559. package/lib/core/Badges/Tag.stories.d.ts +2 -2
  560. package/lib/core/Badges/Tag.stories.d.ts.map +1 -1
  561. package/lib/core/Banner/Banner.mocks.d.ts +15 -4
  562. package/lib/core/Banner/Banner.mocks.d.ts.map +1 -1
  563. package/lib/core/Banner/Banner.mocks.js.map +1 -1
  564. package/lib/core/Banner/Banner.stories.d.ts +2 -2
  565. package/lib/core/Banner/Banner.stories.d.ts.map +1 -1
  566. package/lib/core/Banner/Banner.stories.js.map +1 -1
  567. package/lib/core/Boolean/BooleanDisplay.stories.d.ts +2 -2
  568. package/lib/core/Boolean/BooleanDisplay.stories.d.ts.map +1 -1
  569. package/lib/core/Breadcrumbs/Breadcrumbs.stories.d.ts +2 -2
  570. package/lib/core/Breadcrumbs/Breadcrumbs.stories.d.ts.map +1 -1
  571. package/lib/core/Button/Button.stories.d.ts +2 -2
  572. package/lib/core/Button/Button.stories.d.ts.map +1 -1
  573. package/lib/core/Card/Card.stories.d.ts +2 -2
  574. package/lib/core/Card/Card.stories.d.ts.map +1 -1
  575. package/lib/core/Checkbox/Checkbox.stories.d.ts +2 -2
  576. package/lib/core/Checkbox/Checkbox.stories.d.ts.map +1 -1
  577. package/lib/core/CheckboxGroup/CheckboxGroup.stories.d.ts +2 -2
  578. package/lib/core/CheckboxGroup/CheckboxGroup.stories.d.ts.map +1 -1
  579. package/lib/core/CheckboxGroup/CheckboxGroup.styles.d.ts +0 -1
  580. package/lib/core/CheckboxGroup/CheckboxGroup.styles.d.ts.map +1 -1
  581. package/lib/core/ColorPicker/ColorPicker.stories.d.ts +2 -2
  582. package/lib/core/ColorPicker/ColorPicker.stories.d.ts.map +1 -1
  583. package/lib/core/ComboBox/ComboBox.mocks.d.ts +0 -1
  584. package/lib/core/ComboBox/ComboBox.mocks.d.ts.map +1 -1
  585. package/lib/core/ComboBox/ComboBox.stories.d.ts +2 -2
  586. package/lib/core/ComboBox/ComboBox.stories.d.ts.map +1 -1
  587. package/lib/core/ComboBox/ComboBox.stories.js.map +1 -1
  588. package/lib/core/CompositeInput/CompositeInput.mocks.d.ts.map +1 -1
  589. package/lib/core/CompositeInput/CompositeInput.stories.d.ts +2 -2
  590. package/lib/core/CompositeInput/CompositeInput.stories.d.ts.map +1 -1
  591. package/lib/core/Configuration/Configuration.mocks.d.ts +0 -1
  592. package/lib/core/Configuration/Configuration.mocks.d.ts.map +1 -1
  593. package/lib/core/Configuration/Configuration.stories.d.ts +2 -2
  594. package/lib/core/Configuration/Configuration.stories.d.ts.map +1 -1
  595. package/lib/core/CreditCard/CreditCard.stories.d.ts +2 -2
  596. package/lib/core/CreditCard/CreditCard.stories.d.ts.map +1 -1
  597. package/lib/core/Currency/Currency.stories.d.ts +2 -2
  598. package/lib/core/Currency/Currency.stories.d.ts.map +1 -1
  599. package/lib/core/DangerButton/DangerButton.stories.d.ts +2 -2
  600. package/lib/core/DangerButton/DangerButton.stories.d.ts.map +1 -1
  601. package/lib/core/DateTime/DateTime.stories.d.ts +2 -2
  602. package/lib/core/DateTime/DateTime.stories.d.ts.map +1 -1
  603. package/lib/core/DateTime/DateTime.stories.js +1 -1
  604. package/lib/core/DateTime/DateTime.stories.js.map +1 -1
  605. package/lib/core/DateTime/DateTimeDisplay.stories.d.ts +2 -2
  606. package/lib/core/DateTime/DateTimeDisplay.stories.d.ts.map +1 -1
  607. package/lib/core/DateTime/DateTimePicker.stories.d.ts +2 -2
  608. package/lib/core/DateTime/DateTimePicker.stories.d.ts.map +1 -1
  609. package/lib/core/Dialog/Dialog.stories.d.ts +2 -2
  610. package/lib/core/Dialog/Dialog.stories.d.ts.map +1 -1
  611. package/lib/core/Dialog/FormDialog.mocks.d.ts +0 -1
  612. package/lib/core/Dialog/FormDialog.mocks.d.ts.map +1 -1
  613. package/lib/core/Dialog/FormDialog.mocks.js.map +1 -1
  614. package/lib/core/Dialog/InfoDialog.mocks.d.ts +0 -1
  615. package/lib/core/Dialog/InfoDialog.mocks.d.ts.map +1 -1
  616. package/lib/core/Dialog/InfoDialog.mocks.js.map +1 -1
  617. package/lib/core/Drawer/Drawer.stories.d.ts +2 -2
  618. package/lib/core/Drawer/Drawer.stories.d.ts.map +1 -1
  619. package/lib/core/Email/EmailDisplay.stories.d.ts +2 -2
  620. package/lib/core/Email/EmailDisplay.stories.d.ts.map +1 -1
  621. package/lib/core/EmojiPicker/EmojiPicker.stories.d.ts +2 -2
  622. package/lib/core/EmojiPicker/EmojiPicker.stories.d.ts.map +1 -1
  623. package/lib/core/EmptyState/EmptyState.stories.d.ts +2 -2
  624. package/lib/core/EmptyState/EmptyState.stories.d.ts.map +1 -1
  625. package/lib/core/ErrorState/ErrorState.stories.d.ts +2 -2
  626. package/lib/core/ErrorState/ErrorState.stories.d.ts.map +1 -1
  627. package/lib/core/ExpandCollapse/ExpandCollapse.stories.d.ts +2 -2
  628. package/lib/core/ExpandCollapse/ExpandCollapse.stories.d.ts.map +1 -1
  629. package/lib/core/ExpandCollapse/ExpandCollapse.styles.d.ts +1 -1
  630. package/lib/core/ExpandCollapse/ExpandCollapse.styles.d.ts.map +1 -1
  631. package/lib/core/FieldGroup/FieldGroup.stories.d.ts +2 -2
  632. package/lib/core/FieldGroup/FieldGroup.stories.d.ts.map +1 -1
  633. package/lib/core/FieldGroup/FieldGroupList.mocks.d.ts +0 -1
  634. package/lib/core/FieldGroup/FieldGroupList.mocks.d.ts.map +1 -1
  635. package/lib/core/FieldGroup/FieldGroupList.mocks.js.map +1 -1
  636. package/lib/core/FieldGroup/FieldGroupList.stories.d.ts +2 -2
  637. package/lib/core/FieldGroup/FieldGroupList.stories.d.ts.map +1 -1
  638. package/lib/core/FieldValueList/FieldValueList.mocks.d.ts +0 -1
  639. package/lib/core/FieldValueList/FieldValueList.mocks.d.ts.map +1 -1
  640. package/lib/core/FieldValueList/FieldValueList.stories.d.ts +2 -2
  641. package/lib/core/FieldValueList/FieldValueList.stories.d.ts.map +1 -1
  642. package/lib/core/File/FileDisplay.stories.d.ts +2 -2
  643. package/lib/core/File/FileDisplay.stories.d.ts.map +1 -1
  644. package/lib/core/File/FileInput.stories.d.ts +2 -2
  645. package/lib/core/File/FileInput.stories.d.ts.map +1 -1
  646. package/lib/core/File/FileInput.stories.js.map +1 -1
  647. package/lib/core/File/FileService.mock.d.ts.map +1 -1
  648. package/lib/core/File/FileService.mock.js.map +1 -1
  649. package/lib/core/Flex/Flex.styles.d.ts +5 -5
  650. package/lib/core/Flex/Flex.styles.d.ts.map +1 -1
  651. package/lib/core/Flex/FlexContainer.stories.d.ts +2 -2
  652. package/lib/core/Flex/FlexContainer.stories.d.ts.map +1 -1
  653. package/lib/core/Flex/FlexItem.stories.d.ts +2 -2
  654. package/lib/core/Flex/FlexItem.stories.d.ts.map +1 -1
  655. package/lib/core/Form/Form.mocks.d.ts +4 -5
  656. package/lib/core/Form/Form.mocks.d.ts.map +1 -1
  657. package/lib/core/Form/Form.mocks.js.map +1 -1
  658. package/lib/core/Form/Form.stories.d.ts +2 -2
  659. package/lib/core/Form/Form.stories.d.ts.map +1 -1
  660. package/lib/core/Fullscreen/Fullscreen.stories.d.ts +2 -2
  661. package/lib/core/Fullscreen/Fullscreen.stories.d.ts.map +1 -1
  662. package/lib/core/Fullscreen/Fullscreen.styles.d.ts +0 -1
  663. package/lib/core/Fullscreen/Fullscreen.styles.d.ts.map +1 -1
  664. package/lib/core/Grid/Grid.styles.d.ts +2 -2
  665. package/lib/core/Grid/Grid.styles.d.ts.map +1 -1
  666. package/lib/core/Grid/GridContainer.stories.d.ts +2 -2
  667. package/lib/core/Grid/GridContainer.stories.d.ts.map +1 -1
  668. package/lib/core/Grid/GridItem.stories.d.ts +2 -2
  669. package/lib/core/Grid/GridItem.stories.d.ts.map +1 -1
  670. package/lib/core/HTML/HTML.stories.d.ts +2 -2
  671. package/lib/core/HTML/HTML.stories.d.ts.map +1 -1
  672. package/lib/core/Icon/Icon.stories.d.ts +2 -2
  673. package/lib/core/Icon/Icon.stories.d.ts.map +1 -1
  674. package/lib/core/Icon/Icon.stories.js.map +1 -1
  675. package/lib/core/IconPicker/IconPicker.mocks.d.ts +1 -1
  676. package/lib/core/IconPicker/IconPicker.stories.d.ts +2 -2
  677. package/lib/core/IconPicker/IconPicker.stories.d.ts.map +1 -1
  678. package/lib/core/Image/Image.stories.d.ts +2 -2
  679. package/lib/core/Image/Image.stories.d.ts.map +1 -1
  680. package/lib/core/Input/Input.stories.d.ts +2 -2
  681. package/lib/core/Input/Input.stories.d.ts.map +1 -1
  682. package/lib/core/Input/Input.stories.js.map +1 -1
  683. package/lib/core/Label/Label.stories.d.ts +2 -2
  684. package/lib/core/Label/Label.stories.d.ts.map +1 -1
  685. package/lib/core/Lightbox/Lightbox.stories.d.ts +2 -2
  686. package/lib/core/Lightbox/Lightbox.stories.d.ts.map +1 -1
  687. package/lib/core/Lightbox/Lightbox.stories.js.map +1 -1
  688. package/lib/core/Link/Link.stories.d.ts +2 -2
  689. package/lib/core/Link/Link.stories.d.ts.map +1 -1
  690. package/lib/core/List/CommaSeparatedList.stories.d.ts +2 -2
  691. package/lib/core/List/CommaSeparatedList.stories.d.ts.map +1 -1
  692. package/lib/core/List/OrderedList.stories.d.ts +2 -2
  693. package/lib/core/List/OrderedList.stories.d.ts.map +1 -1
  694. package/lib/core/List/OrderedList.stories.js.map +1 -1
  695. package/lib/core/List/UnorderedList.stories.d.ts +2 -2
  696. package/lib/core/List/UnorderedList.stories.d.ts.map +1 -1
  697. package/lib/core/List/UnorderedList.stories.js.map +1 -1
  698. package/lib/core/ListToolbar/ListToolbar.stories.d.ts +2 -2
  699. package/lib/core/ListToolbar/ListToolbar.stories.d.ts.map +1 -1
  700. package/lib/core/LiveLog/LiveLog.mocks.d.ts +1 -2
  701. package/lib/core/LiveLog/LiveLog.mocks.d.ts.map +1 -1
  702. package/lib/core/LiveLog/LiveLog.mocks.js.map +1 -1
  703. package/lib/core/LiveLog/LiveLog.stories.d.ts +2 -2
  704. package/lib/core/LiveLog/LiveLog.stories.d.ts.map +1 -1
  705. package/lib/core/Location/Location.mocks.d.ts +5 -0
  706. package/lib/core/Location/Location.mocks.d.ts.map +1 -0
  707. package/lib/core/Location/Location.mocks.js +18 -0
  708. package/lib/core/Location/Location.mocks.js.map +1 -0
  709. package/lib/core/Location/Location.stories.d.ts +7 -10
  710. package/lib/core/Location/Location.stories.d.ts.map +1 -1
  711. package/lib/core/Location/Location.stories.js +92 -73
  712. package/lib/core/Location/Location.stories.js.map +1 -1
  713. package/lib/core/Location/MapsProvider.mock.d.ts +8 -0
  714. package/lib/core/Location/MapsProvider.mock.d.ts.map +1 -0
  715. package/lib/core/Location/MapsProvider.mock.js +22 -0
  716. package/lib/core/Location/MapsProvider.mock.js.map +1 -0
  717. package/lib/core/Location/locationTestUtils.d.ts +4 -2
  718. package/lib/core/Location/locationTestUtils.d.ts.map +1 -1
  719. package/lib/core/Location/locationTestUtils.js +44 -16
  720. package/lib/core/Location/locationTestUtils.js.map +1 -1
  721. package/lib/core/Menu/Menu.mocks.d.ts.map +1 -1
  722. package/lib/core/Menu/Menu.mocks.js +55 -1
  723. package/lib/core/Menu/Menu.mocks.js.map +1 -1
  724. package/lib/core/Menu/Menu.stories.d.ts +3 -2
  725. package/lib/core/Menu/Menu.stories.d.ts.map +1 -1
  726. package/lib/core/Menu/Menu.stories.js +130 -1
  727. package/lib/core/Menu/Menu.stories.js.map +1 -1
  728. package/lib/core/MenuButton/MenuButton.stories.d.ts +2 -2
  729. package/lib/core/MenuButton/MenuButton.stories.d.ts.map +1 -1
  730. package/lib/core/MetaList/MetaList.stories.d.ts +2 -2
  731. package/lib/core/MetaList/MetaList.stories.d.ts.map +1 -1
  732. package/lib/core/Modal/Modal.mocks.d.ts +1 -1
  733. package/lib/core/Modal/Modal.mocks.d.ts.map +1 -1
  734. package/lib/core/Modal/Modal.mocks.js.map +1 -1
  735. package/lib/core/Modal/Modal.stories.d.ts +2 -2
  736. package/lib/core/Modal/Modal.stories.d.ts.map +1 -1
  737. package/lib/core/MultiStepForm/MultiStepForm.mocks.d.ts +0 -1
  738. package/lib/core/MultiStepForm/MultiStepForm.mocks.d.ts.map +1 -1
  739. package/lib/core/MultiStepForm/MultiStepForm.mocks.js.map +1 -1
  740. package/lib/core/MultiStepForm/MultiStepForm.stories.d.ts +2 -2
  741. package/lib/core/MultiStepForm/MultiStepForm.stories.d.ts.map +1 -1
  742. package/lib/core/MultiStepForm/MultiStepForm.stories.js.map +1 -1
  743. package/lib/core/NoValue/NoValue.stories.d.ts +2 -2
  744. package/lib/core/NoValue/NoValue.stories.d.ts.map +1 -1
  745. package/lib/core/Number/Number.stories.d.ts +2 -2
  746. package/lib/core/Number/Number.stories.d.ts.map +1 -1
  747. package/lib/core/Number/Number.stories.js.map +1 -1
  748. package/lib/core/PageTemplates/PageTemplates.mocks.d.ts +1 -1
  749. package/lib/core/PageTemplates/PageTemplates.mocks.js.map +1 -1
  750. package/lib/core/PageTemplates/PageTemplates.stories.d.ts +2 -2
  751. package/lib/core/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
  752. package/lib/core/PageTemplates/PageTemplates.stories.js.map +1 -1
  753. package/lib/core/PageTemplates/PageTemplates.styles.d.ts +1 -1
  754. package/lib/core/PageTemplates/PageTemplates.styles.d.ts.map +1 -1
  755. package/lib/core/Pagination/Pagination.stories.d.ts +2 -2
  756. package/lib/core/Pagination/Pagination.stories.d.ts.map +1 -1
  757. package/lib/core/Paragraph/ParagraphDisplay.stories.d.ts +2 -2
  758. package/lib/core/Paragraph/ParagraphDisplay.stories.d.ts.map +1 -1
  759. package/lib/core/Phone/Phone.stories.d.ts +2 -2
  760. package/lib/core/Phone/Phone.stories.d.ts.map +1 -1
  761. package/lib/core/Popover/Popover.mocks.d.ts +0 -1
  762. package/lib/core/Popover/Popover.mocks.d.ts.map +1 -1
  763. package/lib/core/Popover/Popover.stories.d.ts +2 -2
  764. package/lib/core/Popover/Popover.stories.d.ts.map +1 -1
  765. package/lib/core/Popover/Popover.stories.js +1 -1
  766. package/lib/core/Popover/Popover.stories.js.map +1 -1
  767. package/lib/core/Progress/Progress.stories.d.ts +2 -2
  768. package/lib/core/Progress/Progress.stories.d.ts.map +1 -1
  769. package/lib/core/Progress/Progress.stories.js.map +1 -1
  770. package/lib/core/QRCode/QRCode.stories.d.ts +2 -2
  771. package/lib/core/QRCode/QRCode.stories.d.ts.map +1 -1
  772. package/lib/core/RadioButton/RadioButton.stories.d.ts +2 -2
  773. package/lib/core/RadioButton/RadioButton.stories.d.ts.map +1 -1
  774. package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts +2 -2
  775. package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts.map +1 -1
  776. package/lib/core/RadioButtonGroup/RadioButtonGroup.styles.d.ts +0 -1
  777. package/lib/core/RadioButtonGroup/RadioButtonGroup.styles.d.ts.map +1 -1
  778. package/lib/core/Rating/Rating.stories.d.ts +2 -2
  779. package/lib/core/Rating/Rating.stories.d.ts.map +1 -1
  780. package/lib/core/SearchInput/SearchInput.stories.d.ts +9 -4
  781. package/lib/core/SearchInput/SearchInput.stories.d.ts.map +1 -1
  782. package/lib/core/SearchInput/SearchInput.stories.js +19 -8
  783. package/lib/core/SearchInput/SearchInput.stories.js.map +1 -1
  784. package/lib/core/Select/Select.stories.d.ts +2 -2
  785. package/lib/core/Select/Select.stories.d.ts.map +1 -1
  786. package/lib/core/Sentiment/Sentiment.stories.d.ts +2 -2
  787. package/lib/core/Sentiment/Sentiment.stories.d.ts.map +1 -1
  788. package/lib/core/SkipLinks/SkipLinks.stories.d.ts +2 -2
  789. package/lib/core/SkipLinks/SkipLinks.stories.d.ts.map +1 -1
  790. package/lib/core/Slider/Slider.stories.d.ts +2 -2
  791. package/lib/core/Slider/Slider.stories.d.ts.map +1 -1
  792. package/lib/core/Slider/Slider.stories.js.map +1 -1
  793. package/lib/core/SummaryItem/SummaryItem.stories.d.ts +2 -2
  794. package/lib/core/SummaryItem/SummaryItem.stories.d.ts.map +1 -1
  795. package/lib/core/SummaryList/SummaryList.mocks.d.ts +1 -1
  796. package/lib/core/SummaryList/SummaryList.mocks.d.ts.map +1 -1
  797. package/lib/core/SummaryList/SummaryList.mocks.js.map +1 -1
  798. package/lib/core/SummaryList/SummaryList.stories.d.ts +2 -2
  799. package/lib/core/SummaryList/SummaryList.stories.d.ts.map +1 -1
  800. package/lib/core/SummaryList/SummaryList.stories.js.map +1 -1
  801. package/lib/core/Switch/Switch.stories.d.ts +2 -2
  802. package/lib/core/Switch/Switch.stories.d.ts.map +1 -1
  803. package/lib/core/Table/Table.mocks.d.ts +0 -1
  804. package/lib/core/Table/Table.mocks.d.ts.map +1 -1
  805. package/lib/core/Table/Table.stories.d.ts +2 -2
  806. package/lib/core/Table/Table.stories.d.ts.map +1 -1
  807. package/lib/core/Tabs/Tabs.mocks.d.ts +1 -2
  808. package/lib/core/Tabs/Tabs.mocks.d.ts.map +1 -1
  809. package/lib/core/Tabs/Tabs.stories.d.ts +2 -2
  810. package/lib/core/Tabs/Tabs.stories.d.ts.map +1 -1
  811. package/lib/core/Text/Text.stories.d.ts +2 -2
  812. package/lib/core/Text/Text.stories.d.ts.map +1 -1
  813. package/lib/core/TextArea/TextArea.stories.d.ts +2 -2
  814. package/lib/core/TextArea/TextArea.stories.d.ts.map +1 -1
  815. package/lib/core/Toaster/Toaster.stories.d.ts +2 -2
  816. package/lib/core/Toaster/Toaster.stories.d.ts.map +1 -1
  817. package/lib/core/Tooltip/Tooltip.stories.d.ts +2 -2
  818. package/lib/core/Tooltip/Tooltip.stories.d.ts.map +1 -1
  819. package/lib/core/Tree/Tree.mocks.js.map +1 -1
  820. package/lib/core/Tree/Tree.stories.d.ts +2 -2
  821. package/lib/core/Tree/Tree.stories.d.ts.map +1 -1
  822. package/lib/core/URL/URL.stories.d.ts +2 -2
  823. package/lib/core/URL/URL.stories.d.ts.map +1 -1
  824. package/lib/dnd/DragDropList/DragDropList.mocks.d.ts +1 -2
  825. package/lib/dnd/DragDropList/DragDropList.mocks.d.ts.map +1 -1
  826. package/lib/dnd/DragDropList/DragDropList.stories.d.ts +2 -2
  827. package/lib/dnd/DragDropList/DragDropList.stories.d.ts.map +1 -1
  828. package/lib/dnd/StandardDragDropList/Demo.d.ts.map +1 -1
  829. package/lib/dnd/StandardDragDropList/Demo.js.map +1 -1
  830. package/lib/dnd/StandardDragDropList/GroupConfig.d.ts +0 -1
  831. package/lib/dnd/StandardDragDropList/GroupConfig.d.ts.map +1 -1
  832. package/lib/dnd/StandardDragDropList/ItemConfig.d.ts +0 -1
  833. package/lib/dnd/StandardDragDropList/ItemConfig.d.ts.map +1 -1
  834. package/lib/dnd/StandardDragDropList/SelectionMenu.d.ts +0 -1
  835. package/lib/dnd/StandardDragDropList/SelectionMenu.d.ts.map +1 -1
  836. package/lib/dnd/StandardDragDropList/SelectionMenu.js.map +1 -1
  837. package/lib/dnd/StandardDragDropList/StandardDragDropList.stories.d.ts +2 -2
  838. package/lib/dnd/StandardDragDropList/StandardDragDropList.stories.d.ts.map +1 -1
  839. package/lib/dnd/StandardDragDropList/mockData.d.ts.map +1 -1
  840. package/lib/dnd/StandardDragDropList/mockData.js +4 -4
  841. package/lib/dnd/StandardDragDropList/mockData.js.map +1 -1
  842. package/lib/rte/DynamicContentEditor/DynamicContentEditor.stories.d.ts +2 -2
  843. package/lib/rte/DynamicContentEditor/DynamicContentEditor.stories.d.ts.map +1 -1
  844. package/lib/rte/DynamicContentEditor/FieldSelector.js.map +1 -1
  845. package/lib/rte/Editor/Editor.mocks.d.ts +50 -45
  846. package/lib/rte/Editor/Editor.mocks.d.ts.map +1 -1
  847. package/lib/rte/Editor/Editor.mocks.js.map +1 -1
  848. package/lib/rte/Editor/Editor.stories.d.ts +2 -2
  849. package/lib/rte/Editor/Editor.stories.d.ts.map +1 -1
  850. package/lib/rte/Editor/Editor.stories.js.map +1 -1
  851. package/lib/rte/RichTextEditor/RichTextEditor.stories.d.ts +2 -2
  852. package/lib/rte/RichTextEditor/RichTextEditor.stories.d.ts.map +1 -1
  853. package/lib/rte/RichTextEditor/RichTextEditor.stories.js.map +1 -1
  854. package/lib/rte/RichTextEditor/RichTextViewer.stories.d.ts +2 -2
  855. package/lib/rte/RichTextEditor/RichTextViewer.stories.d.ts.map +1 -1
  856. package/lib/rte/RichTextEditor/RichTextViewer.stories.js.map +1 -1
  857. package/lib/social/Chat/Chat.stories.d.ts +2 -2
  858. package/lib/social/Chat/Chat.stories.d.ts.map +1 -1
  859. package/lib/social/Chat/Chat.stories.js.map +1 -1
  860. package/lib/social/Email/Email.mocks.d.ts +9 -9
  861. package/lib/social/Email/Email.mocks.d.ts.map +1 -1
  862. package/lib/social/Email/Email.mocks.js.map +1 -1
  863. package/lib/social/Email/Email.stories.d.ts +4 -2
  864. package/lib/social/Email/Email.stories.d.ts.map +1 -1
  865. package/lib/social/Email/Email.stories.js +38 -9
  866. package/lib/social/Email/Email.stories.js.map +1 -1
  867. package/lib/social/Email/Email.styles.d.ts +0 -1
  868. package/lib/social/Email/Email.styles.d.ts.map +1 -1
  869. package/lib/social/Feed/Feed.mocks.d.ts.map +1 -1
  870. package/lib/social/Feed/Feed.stories.d.ts +4 -3
  871. package/lib/social/Feed/Feed.stories.d.ts.map +1 -1
  872. package/lib/social/Feed/Feed.stories.js +12 -6
  873. package/lib/social/Feed/Feed.stories.js.map +1 -1
  874. package/lib/social/Feed/FeedNewPost.mocks.d.ts +0 -1
  875. package/lib/social/Feed/FeedNewPost.mocks.d.ts.map +1 -1
  876. package/lib/social/Feed/FeedNewPost.mocks.js.map +1 -1
  877. package/lib/social/Feed/FeedPost.mocks.d.ts +0 -1
  878. package/lib/social/Feed/FeedPost.mocks.d.ts.map +1 -1
  879. package/lib/social/Feed/FeedPost.mocks.js.map +1 -1
  880. package/lib/social/Feed/FeedReply.mocks.d.ts +0 -1
  881. package/lib/social/Feed/FeedReply.mocks.d.ts.map +1 -1
  882. package/lib/social/Feed/FeedReply.mocks.js.map +1 -1
  883. package/lib/work/AppAnnouncement/AppAnnouncement.stories.d.ts +2 -2
  884. package/lib/work/AppAnnouncement/AppAnnouncement.stories.d.ts.map +1 -1
  885. package/lib/work/Article/Article.stories.d.ts +2 -2
  886. package/lib/work/Article/Article.stories.d.ts.map +1 -1
  887. package/lib/work/Article/Article.stories.js +15 -12
  888. package/lib/work/Article/Article.stories.js.map +1 -1
  889. package/lib/work/ArticleList/ArticleBuddy.stories.d.ts +2 -2
  890. package/lib/work/ArticleList/ArticleBuddy.stories.d.ts.map +1 -1
  891. package/lib/work/ArticleList/ArticleBuddy.stories.js +7 -5
  892. package/lib/work/ArticleList/ArticleBuddy.stories.js.map +1 -1
  893. package/lib/work/ArticleList/ArticleList.mocks.d.ts +6 -4
  894. package/lib/work/ArticleList/ArticleList.mocks.d.ts.map +1 -1
  895. package/lib/work/ArticleList/ArticleList.mocks.js +74 -52
  896. package/lib/work/ArticleList/ArticleList.mocks.js.map +1 -1
  897. package/lib/work/ArticleList/ArticleList.stories.d.ts +2 -2
  898. package/lib/work/ArticleList/ArticleList.stories.d.ts.map +1 -1
  899. package/lib/work/ArticleList/ArticleList.stories.js +41 -35
  900. package/lib/work/ArticleList/ArticleList.stories.js.map +1 -1
  901. package/lib/work/Assignments/Assignments.stories.d.ts +2 -2
  902. package/lib/work/Assignments/Assignments.stories.d.ts.map +1 -1
  903. package/lib/work/CaseView/Attachments.mocks.d.ts +0 -1
  904. package/lib/work/CaseView/Attachments.mocks.d.ts.map +1 -1
  905. package/lib/work/CaseView/Attachments.mocks.js.map +1 -1
  906. package/lib/work/CaseView/CaseView.mocks.d.ts +8 -7
  907. package/lib/work/CaseView/CaseView.mocks.d.ts.map +1 -1
  908. package/lib/work/CaseView/CaseView.mocks.js +31 -15
  909. package/lib/work/CaseView/CaseView.mocks.js.map +1 -1
  910. package/lib/work/CaseView/CaseView.stories.d.ts +2 -2
  911. package/lib/work/CaseView/CaseView.stories.d.ts.map +1 -1
  912. package/lib/work/CaseView/CaseView.stories.js +5 -3
  913. package/lib/work/CaseView/CaseView.stories.js.map +1 -1
  914. package/lib/work/CaseView/Details.mocks.d.ts +0 -1
  915. package/lib/work/CaseView/Details.mocks.d.ts.map +1 -1
  916. package/lib/work/CaseView/Pulse.mocks.d.ts +2 -3
  917. package/lib/work/CaseView/Pulse.mocks.d.ts.map +1 -1
  918. package/lib/work/ConfigurableLayout/ConfigurableLayout.mocks.d.ts +0 -1
  919. package/lib/work/ConfigurableLayout/ConfigurableLayout.mocks.d.ts.map +1 -1
  920. package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts +2 -2
  921. package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts.map +1 -1
  922. package/lib/work/Confirmation/Confirmation.stories.d.ts +2 -2
  923. package/lib/work/Confirmation/Confirmation.stories.d.ts.map +1 -1
  924. package/lib/work/Details/Details.stories.d.ts +2 -2
  925. package/lib/work/Details/Details.stories.d.ts.map +1 -1
  926. package/lib/work/GenAICoach/GenAICoach.stories.d.ts +2 -2
  927. package/lib/work/GenAICoach/GenAICoach.stories.d.ts.map +1 -1
  928. package/lib/work/GenAICoach/GenAICoach.stories.js.map +1 -1
  929. package/lib/work/GenAICoach/useGenAICoach.js.map +1 -1
  930. package/lib/work/Glimpse/Glimpse.stories.d.ts +2 -2
  931. package/lib/work/Glimpse/Glimpse.stories.d.ts.map +1 -1
  932. package/lib/work/HierarchicalAssignments/HierarchicalAssignments.mock.d.ts +0 -1
  933. package/lib/work/HierarchicalAssignments/HierarchicalAssignments.mock.d.ts.map +1 -1
  934. package/lib/work/HierarchicalAssignments/HierarchicalAssignments.mock.js.map +1 -1
  935. package/lib/work/HierarchicalAssignments/HierarchicalAssignments.stories.d.ts +2 -2
  936. package/lib/work/HierarchicalAssignments/HierarchicalAssignments.stories.d.ts.map +1 -1
  937. package/lib/work/HierarchicalAssignments/HierarchicalAssignments.stories.js.map +1 -1
  938. package/lib/work/IntelligentGuidance/IntelligentGuidance.stories.d.ts +2 -2
  939. package/lib/work/IntelligentGuidance/IntelligentGuidance.stories.d.ts.map +1 -1
  940. package/lib/work/IntelligentGuidance/IntelligentGuidance.stories.js.map +1 -1
  941. package/lib/work/InteractionNotification/InteractionNotification.stories.d.ts +2 -2
  942. package/lib/work/InteractionNotification/InteractionNotification.stories.d.ts.map +1 -1
  943. package/lib/work/Predictions/Predictions.mocks.d.ts +0 -1
  944. package/lib/work/Predictions/Predictions.mocks.d.ts.map +1 -1
  945. package/lib/work/Predictions/Predictions.stories.d.ts +2 -2
  946. package/lib/work/Predictions/Predictions.stories.d.ts.map +1 -1
  947. package/lib/work/Predictions/Predictions.stories.js.map +1 -1
  948. package/lib/work/SearchResults/SearchResults.mocks.d.ts.map +1 -1
  949. package/lib/work/SearchResults/SearchResults.stories.d.ts +2 -2
  950. package/lib/work/SearchResults/SearchResults.stories.d.ts.map +1 -1
  951. package/lib/work/SearchResults/SearchResults.stories.js.map +1 -1
  952. package/lib/work/SearchResults/SearchResults.styles.d.ts +1 -1
  953. package/lib/work/Stages/Stages.mocks.d.ts +0 -1
  954. package/lib/work/Stages/Stages.mocks.d.ts.map +1 -1
  955. package/lib/work/Stages/Stages.stories.d.ts +2 -2
  956. package/lib/work/Stages/Stages.stories.d.ts.map +1 -1
  957. package/lib/work/Stages/Stages.stories.js.map +1 -1
  958. package/lib/work/Stakeholders/Stakeholders.mocks.d.ts +4 -4
  959. package/lib/work/Stakeholders/Stakeholders.mocks.d.ts.map +1 -1
  960. package/lib/work/Stakeholders/Stakeholders.stories.d.ts +2 -2
  961. package/lib/work/Stakeholders/Stakeholders.stories.d.ts.map +1 -1
  962. package/lib/work/Stakeholders/Stakeholders.stories.js.map +1 -1
  963. package/lib/work/Tags/Tags.stories.d.ts +2 -2
  964. package/lib/work/Tags/Tags.stories.d.ts.map +1 -1
  965. package/lib/work/Tags/Tags.stories.js.map +1 -1
  966. package/lib/work/Tasks/TaskList.stories.d.ts +2 -2
  967. package/lib/work/Tasks/TaskList.stories.d.ts.map +1 -1
  968. package/lib/work/Tasks/Tasks.stories.d.ts +2 -2
  969. package/lib/work/Tasks/Tasks.stories.d.ts.map +1 -1
  970. package/lib/work/Tasks/Tasks.stories.js.map +1 -1
  971. package/lib/work/Timeline/Timeline.stories.d.ts +2 -2
  972. package/lib/work/Timeline/Timeline.stories.d.ts.map +1 -1
  973. package/lib/work/Timeline/Timeline.stories.js.map +1 -1
  974. package/lib/work/UtilitiesLayout/UtilitiesLayout.stories.d.ts +2 -2
  975. package/lib/work/UtilitiesLayout/UtilitiesLayout.stories.d.ts.map +1 -1
  976. package/lib/wss/AppShell/AppShell.mocks.d.ts +0 -1
  977. package/lib/wss/AppShell/AppShell.mocks.d.ts.map +1 -1
  978. package/lib/wss/AppShell/AppShell.stories.d.ts +2 -2
  979. package/lib/wss/AppShell/AppShell.stories.d.ts.map +1 -1
  980. package/lib/wss/CaseView/CaseView.mocks.d.ts +0 -1
  981. package/lib/wss/CaseView/CaseView.mocks.d.ts.map +1 -1
  982. package/lib/wss/CaseView/CaseView.stories.d.ts +2 -2
  983. package/lib/wss/CaseView/CaseView.stories.d.ts.map +1 -1
  984. package/lib/wss/PageTemplates/PageTemplates.stories.d.ts +2 -2
  985. package/lib/wss/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
  986. package/lib/wss/QuickCreate/QuickCreate.stories.d.ts +2 -2
  987. package/lib/wss/QuickCreate/QuickCreate.stories.d.ts.map +1 -1
  988. package/package.json +8 -8
@@ -1,12 +1,12 @@
1
1
  import type { RuleSelectProps, RuleType, RuleTypeExpandable } from '@pega/cosmos-react-build';
2
2
  export declare const baseRuleTypes: RuleTypeExpandable[];
3
3
  export declare const fetchRules: ({ id, filter, ruleType, start, step, delay }: {
4
- id?: string | undefined;
5
- filter?: string | undefined;
6
- ruleType?: RuleType | undefined;
7
- start?: number | undefined;
8
- step?: number | undefined;
9
- delay?: number | undefined;
4
+ id?: string;
5
+ filter?: string;
6
+ ruleType?: RuleType;
7
+ start?: number;
8
+ step?: number;
9
+ delay?: number;
10
10
  }) => {
11
11
  promise: Promise<{
12
12
  total: number;
@@ -1 +1 @@
1
- {"version":3,"file":"DynamicInput.mocks.d.ts","sourceRoot":"","sources":["../../../src/build/DynamicInput/DynamicInput.mocks.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,QAAQ,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAG9F,eAAO,MAAM,aAAa,EAAE,kBAAkB,EA6B7C,CAAC;AAGF,eAAO,MAAM,UAAU;;;;;;;;;eAmBZ,MAAM;;gBAEP,MAAM;kBACJ,MAAM;kBACN,QAAQ;;;;CAoCnB,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,IAAI,CACjC,eAAe,EACf,cAAc,GAAG,aAAa,GAAG,SAAS,GAAG,WAAW,GAAG,OAAO,CAOnE,CAAC"}
1
+ {"version":3,"file":"DynamicInput.mocks.d.ts","sourceRoot":"","sources":["../../../src/build/DynamicInput/DynamicInput.mocks.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,QAAQ,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAG9F,eAAO,MAAM,aAAa,EAAE,kBAAkB,EA6B7C,CAAC;AAGF,eAAO,MAAM,UAAU,iDAOpB;IACD,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;;eAKU,MAAM;iBACJ;YACP,EAAE,EAAE,MAAM,CAAC;YACX,IAAI,EAAE,MAAM,CAAC;YACb,IAAI,EAAE,QAAQ,CAAC;SAChB,EAAE;;;CAmCN,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,IAAI,CACjC,eAAe,EACf,cAAc,GAAG,aAAa,GAAG,SAAS,GAAG,WAAW,GAAG,OAAO,CAOnE,CAAC"}
@@ -1,6 +1,6 @@
1
- import type { StoryFn } from '@storybook/react';
1
+ import type { Meta, StoryFn } from '@storybook/react';
2
2
  import type { ConstantFormat, Source } from '@pega/cosmos-react-build';
3
- declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react/dist/types-a5624094").ReactRenderer, import("@storybook/csf").Args>;
3
+ declare const _default: Meta;
4
4
  export default _default;
5
5
  interface DynamicInputStoryProps {
6
6
  constantFormat?: ConstantFormat;
@@ -1 +1 @@
1
- {"version":3,"file":"DynamicInput.stories.d.ts","sourceRoot":"","sources":["../../../src/build/DynamicInput/DynamicInput.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAQ,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAItD,OAAO,KAAK,EACV,cAAc,EAId,MAAM,EACP,MAAM,0BAA0B,CAAC;;AAMlC,wBAiCU;AAIV,UAAU,sBAAsB;IAC9B,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,eAAO,MAAM,gBAAgB,EAAE,OAAO,CAAC,sBAAsB,CAuX5D,CAAC"}
1
+ {"version":3,"file":"DynamicInput.stories.d.ts","sourceRoot":"","sources":["../../../src/build/DynamicInput/DynamicInput.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAItD,OAAO,KAAK,EACV,cAAc,EAId,MAAM,EACP,MAAM,0BAA0B,CAAC;wBAuC7B,IAAI;AAjCT,wBAiCU;AAIV,UAAU,sBAAsB;IAC9B,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,eAAO,MAAM,gBAAgB,EAAE,OAAO,CAAC,sBAAsB,CAuX5D,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"DynamicInput.stories.jsx","sourceRoot":"","sources":["../../../src/build/DynamicInput/DynamicInput.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGlE,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAC7F,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AASpE,OAAO,EAAE,qBAAqB,EAAE,MAAM,wCAAwC,CAAC;AAE/E,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAEnF,eAAe;IACb,KAAK,EAAE,oBAAoB;IAC3B,SAAS,EAAE,YAAY;IACvB,IAAI,EAAE;QACJ,cAAc,EAAE,MAAM;QACtB,aAAa,EAAE,MAAM;QACrB,QAAQ,EAAE,IAAI;KACf;IACD,QAAQ,EAAE;QACR,cAAc,EAAE;YACd,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YAC3B,OAAO,EAAE;gBACP,MAAM;gBACN,kBAAkB;gBAClB,SAAS;gBACT,UAAU;gBACV,YAAY;gBACZ,SAAS;gBACT,SAAS;gBACT,OAAO;gBACP,UAAU;gBACV,MAAM;gBACN,MAAM;aACP;SACF;QACD,aAAa,EAAE;YACb,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YAC3B,OAAO,EAAE,CAAC,MAAM,EAAE,UAAU,EAAE,gBAAgB,EAAE,YAAY,CAAC;SAC9D;QACD,QAAQ,EAAE;YACR,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;SAC7B;KACF;CACM,CAAC;AAWV,MAAM,CAAC,MAA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,QAAQ,CAAC,CAAC,GAAG,EAAE;gBACb,yBAAyB,CAAC,SAAS,CAAC,CAAC;YACvC,CAAC,CAAC,CACF,QAAQ,CAAC,CAAC,GAAG,EAAE;gBACb,yBAAyB,CAAC,SAAS,CAAC,CAAC;YACvC,CAAC,CAAC,CAEF;UAAA,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC,CAC/C;YAAA,CAAC,KAAK,CAAC,KAAK,CAAC,gBAAgB,EAC7B;YAAA,CAAC,KAAK,CAAC,KAAK,CAAC,gBAAgB,EAC7B;YAAA,CAAC,KAAK,CAAC,KAAK,CAAC,gBAAgB,EAC/B;UAAA,EAAE,IAAI,CACR;QAAA,EAAE,UAAU,CAAC,CACd,CACH;IAAA,EAAE,aAAa,CAAC,CACjB,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { useState, useMemo, useCallback, useEffect } from 'react';\nimport type { Meta, StoryFn } from '@storybook/react';\n\nimport { BuildTheme, ThemeOverride, Flex, FormDialog, Input } from '@pega/cosmos-react-core';\nimport { CodeEditor, DynamicInput } from '@pega/cosmos-react-build';\nimport type {\n ConstantFormat,\n RuleSelectProps,\n SourceConfig,\n ConstantControlConfig,\n Source\n} from '@pega/cosmos-react-build';\n\nimport { useFieldReferenceMock } from '../FieldReference/FieldReference.mocks';\n\nimport { baseRuleTypes, defaultRuleState, fetchRules } from './DynamicInput.mocks';\n\nexport default {\n title: 'Build/DynamicInput',\n component: DynamicInput,\n args: {\n constantFormat: 'Text',\n defaultSource: 'Rule',\n required: true\n },\n argTypes: {\n constantFormat: {\n control: { type: 'select' },\n options: [\n 'Text',\n 'Text (paragraph)',\n 'Boolean',\n 'Currency',\n 'Percentage',\n 'Integer',\n 'Decimal',\n 'Phone',\n 'DateTime',\n 'Date',\n 'Time'\n ]\n },\n defaultSource: {\n control: { type: 'select' },\n options: ['Rule', 'Constant', 'FieldReference', 'Expression']\n },\n required: {\n control: { type: 'boolean' }\n }\n }\n} as Meta;\n\ntype RuleType = 'Automation' | 'Decision' | 'Field' | 'Paragraph';\n\ninterface DynamicInputStoryProps {\n constantFormat?: ConstantFormat;\n required?: boolean;\n defaultSource?: Source;\n timeout?: boolean;\n}\n\nexport const DynamicInputDemo: StoryFn<DynamicInputStoryProps> = (args: DynamicInputStoryProps) => {\n const defaultSource = args.defaultSource || 'Rule';\n const constantFormat = args.constantFormat || 'Text';\n const timeout = args.timeout || true;\n\n const [sources, setSources] = useState<SourceConfig[]>([\n {\n type: 'Constant',\n selected: defaultSource === 'Constant'\n },\n {\n type: 'Rule',\n selected: defaultSource === 'Rule'\n },\n {\n type: 'FieldReference',\n selected: defaultSource === 'FieldReference'\n },\n {\n type: 'Expression',\n selected: defaultSource === 'Expression'\n }\n ]);\n\n useEffect(() => {\n setSources([\n {\n type: 'Constant',\n selected: defaultSource === 'Constant'\n },\n {\n type: 'Rule',\n selected: defaultSource === 'Rule'\n },\n {\n type: 'FieldReference',\n selected: defaultSource === 'FieldReference'\n },\n {\n type: 'Expression',\n selected: defaultSource === 'Expression'\n }\n ]);\n }, [defaultSource]);\n\n /**\n * Constant Input\n */\n const [constantValue, setConstantValue] = useState<ConstantControlConfig['props']['value']>('');\n const constant = useMemo<ConstantControlConfig>(\n () => ({\n format: constantFormat,\n props: {\n value: '',\n onChange: value => {\n setConstantValue(value);\n }\n }\n }),\n [constantValue, constantFormat]\n );\n\n /**\n * Rule input\n */\n const [ruleState, setRuleState] = useState<{\n props: typeof defaultRuleState;\n pendingFetch?: ReturnType<typeof fetchRules>;\n }>({\n props: defaultRuleState\n });\n // todo-lc: type this\n const [ruleConfigDialogTarget, setRuleConfigDialogTarget] = useState();\n\n const onRuleExpand = useCallback<(id: string) => void>(\n itemId => {\n const expandedItem = ruleState.props.ruleTypes?.find(item => item.id === itemId);\n\n // Demos lazy loading rules.\n if (expandedItem?.rules.length === 0) {\n const { promise } = fetchRules({ ruleType: expandedItem.type, delay: timeout ? 1000 : 0 });\n\n promise\n .then(res => {\n const newItems = ruleState.props.ruleTypes?.map(item => {\n if (item.id === expandedItem.id) {\n return { ...item, rules: res.results };\n }\n\n return item;\n });\n\n setRuleState({\n ...ruleState,\n props: { ...ruleState.props, loading: false, ruleTypes: newItems }\n });\n })\n .catch(() => {});\n\n // Set loading while rules are fetched initially.\n setRuleState({\n ...ruleState,\n props: { ...ruleState.props, loading: true }\n });\n }\n },\n [ruleState]\n );\n\n const onRuleFilter = useCallback(\n filterValue => {\n // Abort requests before reissuing if necessary.\n if (ruleState.pendingFetch) {\n ruleState.pendingFetch.abort();\n }\n\n // If the filterValue is an empty string from backspace both remove any selection and reset the menu to its default.\n if (!filterValue) {\n setRuleState({\n ...ruleState,\n props: {\n ...defaultRuleState\n }\n });\n return;\n }\n\n const fetch = fetchRules({ filter: filterValue, delay: timeout ? 1000 : 0 });\n\n fetch.promise.then(fetchedRules => {\n if (!ruleState.props) {\n return undefined;\n }\n\n setRuleState({\n pendingFetch: undefined,\n props: {\n ...ruleState.props,\n filterValue,\n loading: false,\n items: fetchedRules.results\n }\n });\n });\n\n // Place the menu into a loading state while rules are fetched.\n // Additionally, set a reference to the pending fetch to conditionally abort if onFilter is retriggered before fetch resolves.\n setRuleState({\n pendingFetch: fetch,\n props: {\n ...ruleState.props,\n loading: true,\n filterValue,\n ruleTypes: [],\n items: undefined\n }\n });\n },\n [ruleState]\n );\n\n const ruleLoadMore = useCallback(\n itemId => {\n const ruleStateProps = ruleState.props as RuleSelectProps;\n const ruleItems = ruleStateProps.items;\n\n const directList = !!ruleState.props.items;\n\n // No rule type expanded and no items provided directly.\n if (!itemId && !directList) {\n return ruleStateProps;\n }\n\n const expandedItem = ruleState.props.ruleTypes?.find(item => item.id === itemId);\n\n // Apply based on if an expanded rule or a list of items provided directly.\n let fetchParams = {};\n\n // Expanded rule type's list.\n if (!directList && expandedItem) {\n const currentLength = expandedItem?.rules.length;\n\n // The demo is assuming a total count in known upfront.\n // (If that is not the case an empty response can be used to determine all rules are fetched)\n const totalCount = baseRuleTypes.find(item => item.id === itemId)!.count!;\n\n if (currentLength >= totalCount) {\n return ruleStateProps;\n }\n\n fetchParams = {\n ruleType: itemId as RuleType,\n start: currentLength,\n delay: timeout ? 1000 : 0\n };\n }\n\n // Abort requests before reissuing if necessary.\n if (ruleState.pendingFetch) {\n ruleState.pendingFetch.abort();\n }\n\n const fetch = fetchRules(fetchParams);\n\n fetch.promise.then(res => {\n setRuleState({\n pendingFetch: undefined,\n props: {\n ...ruleState.props,\n loading: false,\n items: ruleItems\n ? {\n ...ruleItems,\n ...res.results\n }\n : undefined,\n ruleTypes: expandedItem\n ? ruleState.props.ruleTypes?.map(item => {\n if (item.id === expandedItem.id) {\n return {\n ...item,\n rules: [...item.rules, ...res.results]\n };\n }\n\n return item;\n })\n : defaultRuleState.ruleTypes\n }\n });\n });\n\n setRuleState({\n pendingFetch: fetch,\n props: {\n ...ruleState.props,\n loading: true\n }\n });\n },\n [ruleState]\n );\n\n const onRuleSelect = useCallback(\n selectedRule => {\n setRuleState({\n ...ruleState,\n props: {\n ...ruleState.props,\n filterValue: undefined,\n selectedRule: {\n ...selectedRule,\n href: `/rules/${selectedRule.id}`,\n onPreview: () => {\n // eslint-disable-next-line no-alert\n alert('Link previewed');\n },\n onLinkClick: () => {\n // eslint-disable-next-line no-alert\n alert('Link clicked');\n },\n onConfig: (configTarget: any) => {\n setRuleConfigDialogTarget(configTarget);\n },\n onClear: () => {\n setRuleConfigDialogTarget(undefined);\n setRuleState({\n props: defaultRuleState\n });\n }\n }\n }\n });\n },\n [ruleState]\n );\n\n /**\n * Field reference input\n */\n const fieldReferenceMock = useFieldReferenceMock('static');\n\n return (\n <ThemeOverride theme={BuildTheme}>\n <DynamicInput\n required={args.required}\n sources={sources}\n onSourceChange={selectedSource => {\n const updatedSources = sources.map(source => ({\n ...source,\n selected: source.type === selectedSource\n }));\n setSources(updatedSources);\n }}\n controls={{\n constant,\n rule: {\n props: {\n ...ruleState.props,\n onExpand: onRuleExpand,\n onFilter: onRuleFilter,\n loadMore: ruleLoadMore,\n onSelect: onRuleSelect,\n onCreateNew: () => {}\n }\n },\n fieldReference: {\n props: {\n placeholder: 'Choose a field...',\n onSelectedChange: fieldReferenceMock.handleSelectedChange,\n menu: {\n items: fieldReferenceMock.itemsToRender,\n altContexts: fieldReferenceMock.altContexts,\n currentContext: fieldReferenceMock.currentContext,\n parentItem: fieldReferenceMock.parentItem,\n loading: fieldReferenceMock.menuLoading\n },\n selected: fieldReferenceMock.selected,\n filterValue: fieldReferenceMock.filterValue,\n onFilterChange: fieldReferenceMock.setFilterValue,\n onBlur: () => {\n fieldReferenceMock.setFilterValue('');\n }\n }\n },\n expression: {\n component: CodeEditor,\n props: {\n list: {\n onItemAdd: () => {},\n details: {}\n },\n search: {\n filters: [],\n onFilterChange: () => {},\n onSearchChange: () => {},\n value: ''\n },\n codeEditorHandle: {\n current: {\n getValue: () => {\n return undefined;\n },\n insertText: (text: string) => {\n // eslint-disable-next-line no-console\n console.log(text);\n }\n }\n }\n }\n }\n }}\n />\n\n {/* Mock demoing rule config by way of a dialog but, any pattern could be used: modal, panel, etc... */}\n {ruleConfigDialogTarget && ruleState && ruleState.props?.selectedRule && (\n <FormDialog\n target={ruleConfigDialogTarget}\n heading={ruleState.props?.selectedRule.name}\n onCancel={() => {\n setRuleConfigDialogTarget(undefined);\n }}\n onSubmit={() => {\n setRuleConfigDialogTarget(undefined);\n }}\n >\n <Flex container={{ direction: 'column', gap: 2 }}>\n <Input label='Config field 1' />\n <Input label='Config field 2' />\n <Input label='Config field 3' />\n </Flex>\n </FormDialog>\n )}\n </ThemeOverride>\n );\n};\n"]}
1
+ {"version":3,"file":"DynamicInput.stories.jsx","sourceRoot":"","sources":["../../../src/build/DynamicInput/DynamicInput.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGlE,O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;YACvC,CAAC,CAAC,CAEF;UAAA,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC,CAC/C;YAAA,CAAC,KAAK,CAAC,KAAK,CAAC,gBAAgB,EAC7B;YAAA,CAAC,KAAK,CAAC,KAAK,CAAC,gBAAgB,EAC7B;YAAA,CAAC,KAAK,CAAC,KAAK,CAAC,gBAAgB,EAC/B;UAAA,EAAE,IAAI,CACR;QAAA,EAAE,UAAU,CAAC,CACd,CACH;IAAA,EAAE,aAAa,CAAC,CACjB,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { useState, useMemo, useCallback, useEffect } from 'react';\nimport type { Meta, StoryFn } from '@storybook/react';\n\nimport { BuildTheme, ThemeOverride, Flex, FormDialog, Input } from '@pega/cosmos-react-core';\nimport { CodeEditor, DynamicInput } from '@pega/cosmos-react-build';\nimport type {\n ConstantFormat,\n RuleSelectProps,\n SourceConfig,\n ConstantControlConfig,\n Source\n} from '@pega/cosmos-react-build';\n\nimport { useFieldReferenceMock } from '../FieldReference/FieldReference.mocks';\n\nimport { baseRuleTypes, defaultRuleState, fetchRules } from './DynamicInput.mocks';\n\nexport default {\n title: 'Build/DynamicInput',\n component: DynamicInput,\n args: {\n constantFormat: 'Text',\n defaultSource: 'Rule',\n required: true\n },\n argTypes: {\n constantFormat: {\n control: { type: 'select' },\n options: [\n 'Text',\n 'Text (paragraph)',\n 'Boolean',\n 'Currency',\n 'Percentage',\n 'Integer',\n 'Decimal',\n 'Phone',\n 'DateTime',\n 'Date',\n 'Time'\n ]\n },\n defaultSource: {\n control: { type: 'select' },\n options: ['Rule', 'Constant', 'FieldReference', 'Expression']\n },\n required: {\n control: { type: 'boolean' }\n }\n }\n} as Meta;\n\ntype RuleType = 'Automation' | 'Decision' | 'Field' | 'Paragraph';\n\ninterface DynamicInputStoryProps {\n constantFormat?: ConstantFormat;\n required?: boolean;\n defaultSource?: Source;\n timeout?: boolean;\n}\n\nexport const DynamicInputDemo: StoryFn<DynamicInputStoryProps> = (args: DynamicInputStoryProps) => {\n const defaultSource = args.defaultSource || 'Rule';\n const constantFormat = args.constantFormat || 'Text';\n const timeout = args.timeout || true;\n\n const [sources, setSources] = useState<SourceConfig[]>([\n {\n type: 'Constant',\n selected: defaultSource === 'Constant'\n },\n {\n type: 'Rule',\n selected: defaultSource === 'Rule'\n },\n {\n type: 'FieldReference',\n selected: defaultSource === 'FieldReference'\n },\n {\n type: 'Expression',\n selected: defaultSource === 'Expression'\n }\n ]);\n\n useEffect(() => {\n setSources([\n {\n type: 'Constant',\n selected: defaultSource === 'Constant'\n },\n {\n type: 'Rule',\n selected: defaultSource === 'Rule'\n },\n {\n type: 'FieldReference',\n selected: defaultSource === 'FieldReference'\n },\n {\n type: 'Expression',\n selected: defaultSource === 'Expression'\n }\n ]);\n }, [defaultSource]);\n\n /**\n * Constant Input\n */\n const [constantValue, setConstantValue] = useState<ConstantControlConfig['props']['value']>('');\n const constant = useMemo<ConstantControlConfig>(\n () => ({\n format: constantFormat,\n props: {\n value: '',\n onChange: value => {\n setConstantValue(value);\n }\n }\n }),\n [constantValue, constantFormat]\n );\n\n /**\n * Rule input\n */\n const [ruleState, setRuleState] = useState<{\n props: typeof defaultRuleState;\n pendingFetch?: ReturnType<typeof fetchRules>;\n }>({\n props: defaultRuleState\n });\n // todo-lc: type this\n const [ruleConfigDialogTarget, setRuleConfigDialogTarget] = useState();\n\n const onRuleExpand = useCallback<(id: string) => void>(\n itemId => {\n const expandedItem = ruleState.props.ruleTypes?.find(item => item.id === itemId);\n\n // Demos lazy loading rules.\n if (expandedItem?.rules.length === 0) {\n const { promise } = fetchRules({ ruleType: expandedItem.type, delay: timeout ? 1000 : 0 });\n\n promise\n .then(res => {\n const newItems = ruleState.props.ruleTypes?.map(item => {\n if (item.id === expandedItem.id) {\n return { ...item, rules: res.results };\n }\n\n return item;\n });\n\n setRuleState({\n ...ruleState,\n props: { ...ruleState.props, loading: false, ruleTypes: newItems }\n });\n })\n .catch(() => {});\n\n // Set loading while rules are fetched initially.\n setRuleState({\n ...ruleState,\n props: { ...ruleState.props, loading: true }\n });\n }\n },\n [ruleState]\n );\n\n const onRuleFilter = useCallback(\n filterValue => {\n // Abort requests before reissuing if necessary.\n if (ruleState.pendingFetch) {\n ruleState.pendingFetch.abort();\n }\n\n // If the filterValue is an empty string from backspace both remove any selection and reset the menu to its default.\n if (!filterValue) {\n setRuleState({\n ...ruleState,\n props: {\n ...defaultRuleState\n }\n });\n return;\n }\n\n const fetch = fetchRules({ filter: filterValue, delay: timeout ? 1000 : 0 });\n\n fetch.promise.then(fetchedRules => {\n if (!ruleState.props) {\n return undefined;\n }\n\n setRuleState({\n pendingFetch: undefined,\n props: {\n ...ruleState.props,\n filterValue,\n loading: false,\n items: fetchedRules.results\n }\n });\n });\n\n // Place the menu into a loading state while rules are fetched.\n // Additionally, set a reference to the pending fetch to conditionally abort if onFilter is retriggered before fetch resolves.\n setRuleState({\n pendingFetch: fetch,\n props: {\n ...ruleState.props,\n loading: true,\n filterValue,\n ruleTypes: [],\n items: undefined\n }\n });\n },\n [ruleState]\n );\n\n const ruleLoadMore = useCallback(\n itemId => {\n const ruleStateProps = ruleState.props as RuleSelectProps;\n const ruleItems = ruleStateProps.items;\n\n const directList = !!ruleState.props.items;\n\n // No rule type expanded and no items provided directly.\n if (!itemId && !directList) {\n return ruleStateProps;\n }\n\n const expandedItem = ruleState.props.ruleTypes?.find(item => item.id === itemId);\n\n // Apply based on if an expanded rule or a list of items provided directly.\n let fetchParams = {};\n\n // Expanded rule type's list.\n if (!directList && expandedItem) {\n const currentLength = expandedItem?.rules.length;\n\n // The demo is assuming a total count in known upfront.\n // (If that is not the case an empty response can be used to determine all rules are fetched)\n const totalCount = baseRuleTypes.find(item => item.id === itemId)!.count!;\n\n if (currentLength >= totalCount) {\n return ruleStateProps;\n }\n\n fetchParams = {\n ruleType: itemId as RuleType,\n start: currentLength,\n delay: timeout ? 1000 : 0\n };\n }\n\n // Abort requests before reissuing if necessary.\n if (ruleState.pendingFetch) {\n ruleState.pendingFetch.abort();\n }\n\n const fetch = fetchRules(fetchParams);\n\n fetch.promise.then(res => {\n setRuleState({\n pendingFetch: undefined,\n props: {\n ...ruleState.props,\n loading: false,\n items: ruleItems\n ? {\n ...ruleItems,\n ...res.results\n }\n : undefined,\n ruleTypes: expandedItem\n ? ruleState.props.ruleTypes?.map(item => {\n if (item.id === expandedItem.id) {\n return {\n ...item,\n rules: [...item.rules, ...res.results]\n };\n }\n\n return item;\n })\n : defaultRuleState.ruleTypes\n }\n });\n });\n\n setRuleState({\n pendingFetch: fetch,\n props: {\n ...ruleState.props,\n loading: true\n }\n });\n },\n [ruleState]\n );\n\n const onRuleSelect = useCallback(\n selectedRule => {\n setRuleState({\n ...ruleState,\n props: {\n ...ruleState.props,\n filterValue: undefined,\n selectedRule: {\n ...selectedRule,\n href: `/rules/${selectedRule.id}`,\n onPreview: () => {\n // eslint-disable-next-line no-alert\n alert('Link previewed');\n },\n onLinkClick: () => {\n // eslint-disable-next-line no-alert\n alert('Link clicked');\n },\n onConfig: (configTarget: any) => {\n setRuleConfigDialogTarget(configTarget);\n },\n onClear: () => {\n setRuleConfigDialogTarget(undefined);\n setRuleState({\n props: defaultRuleState\n });\n }\n }\n }\n });\n },\n [ruleState]\n );\n\n /**\n * Field reference input\n */\n const fieldReferenceMock = useFieldReferenceMock('static');\n\n return (\n <ThemeOverride theme={BuildTheme}>\n <DynamicInput\n required={args.required}\n sources={sources}\n onSourceChange={selectedSource => {\n const updatedSources = sources.map(source => ({\n ...source,\n selected: source.type === selectedSource\n }));\n setSources(updatedSources);\n }}\n controls={{\n constant,\n rule: {\n props: {\n ...ruleState.props,\n onExpand: onRuleExpand,\n onFilter: onRuleFilter,\n loadMore: ruleLoadMore,\n onSelect: onRuleSelect,\n onCreateNew: () => {}\n }\n },\n fieldReference: {\n props: {\n placeholder: 'Choose a field...',\n onSelectedChange: fieldReferenceMock.handleSelectedChange,\n menu: {\n items: fieldReferenceMock.itemsToRender,\n altContexts: fieldReferenceMock.altContexts,\n currentContext: fieldReferenceMock.currentContext,\n parentItem: fieldReferenceMock.parentItem,\n loading: fieldReferenceMock.menuLoading\n },\n selected: fieldReferenceMock.selected,\n filterValue: fieldReferenceMock.filterValue,\n onFilterChange: fieldReferenceMock.setFilterValue,\n onBlur: () => {\n fieldReferenceMock.setFilterValue('');\n }\n }\n },\n expression: {\n component: CodeEditor,\n props: {\n list: {\n onItemAdd: () => {},\n details: {}\n },\n search: {\n filters: [],\n onFilterChange: () => {},\n onSearchChange: () => {},\n value: ''\n },\n codeEditorHandle: {\n current: {\n getValue: () => {\n return undefined;\n },\n insertText: (text: string) => {\n // eslint-disable-next-line no-console\n console.log(text);\n }\n }\n }\n }\n }\n }}\n />\n\n {/* Mock demoing rule config by way of a dialog but, any pattern could be used: modal, panel, etc... */}\n {ruleConfigDialogTarget && ruleState && ruleState.props?.selectedRule && (\n <FormDialog\n target={ruleConfigDialogTarget}\n heading={ruleState.props?.selectedRule.name}\n onCancel={() => {\n setRuleConfigDialogTarget(undefined);\n }}\n onSubmit={() => {\n setRuleConfigDialogTarget(undefined);\n }}\n >\n <Flex container={{ direction: 'column', gap: 2 }}>\n <Input label='Config field 1' />\n <Input label='Config field 2' />\n <Input label='Config field 3' />\n </Flex>\n </FormDialog>\n )}\n </ThemeOverride>\n );\n};\n"]}
@@ -1,7 +1,11 @@
1
1
  import { type Dispatch, type SetStateAction } from 'react';
2
- import { type FieldReferenceInputProps, type FieldReferenceMenuItem, type Field, type FieldReferenceMenuProps, type FieldReferenceDisplayProps } from '@pega/cosmos-react-build';
2
+ import { type FieldReferenceInputProps, type FieldReferenceMenuItem, type Field, type AltContext, type FieldReferenceMenuProps, type FieldReferenceDisplayProps } from '@pega/cosmos-react-build';
3
3
  export declare const actions: FieldReferenceDisplayProps['actions'];
4
4
  export declare const link: FieldReferenceDisplayProps['link'];
5
+ export declare const getGeneratedMenuItems: (parentItem?: Field | AltContext) => FieldReferenceMenuItem[];
6
+ export declare const getStaticMenuItems: (parentItem?: Field | AltContext) => FieldReferenceMenuItem[];
7
+ export declare const defaultContext: FieldReferenceMenuProps['currentContext'];
8
+ export declare const defaultAltContexts: FieldReferenceMenuProps['altContexts'];
5
9
  export declare const fieldPaths: Record<string, Field[]>;
6
10
  interface FieldReferenceHookReturn {
7
11
  parentItem: FieldReferenceMenuProps['parentItem'];
@@ -17,6 +21,6 @@ interface FieldReferenceHookReturn {
17
21
  setMenuLoading: Dispatch<SetStateAction<boolean>>;
18
22
  setItemsShown: Dispatch<SetStateAction<number>>;
19
23
  }
20
- export declare const useFieldReferenceMock: (dataSet: 'static' | 'generated') => FieldReferenceHookReturn;
24
+ export declare const useFieldReferenceMock: (dataSet: "static" | "generated") => FieldReferenceHookReturn;
21
25
  export {};
22
26
  //# sourceMappingURL=FieldReference.mocks.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FieldReference.mocks.d.ts","sourceRoot":"","sources":["../../../src/build/FieldReference/FieldReference.mocks.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6B,KAAK,QAAQ,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAEtF,OAAO,EACL,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,KAAK,EAEV,KAAK,uBAAuB,EAG5B,KAAK,0BAA0B,EAChC,MAAM,0BAA0B,CAAC;AAIlC,eAAO,MAAM,OAAO,EAAE,0BAA0B,CAAC,SAAS,CAOzD,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,0BAA0B,CAAC,MAAM,CAInD,CAAC;AA4eF,eAAO,MAAM,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,EAAE,CA+J9C,CAAC;AAEF,UAAU,wBAAwB;IAChC,UAAU,EAAE,uBAAuB,CAAC,YAAY,CAAC,CAAC;IAClD,WAAW,EAAE,uBAAuB,CAAC,SAAS,CAAC,CAAC;IAChD,aAA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,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,uBAAuB,CAAC,gBAAgB,CAGpE,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,uBAAuB,CAAC,aAAa,CAWrE,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,EAAE,CA+J9C,CAAC;AAEF,UAAU,wBAAwB;IAChC,UAAU,EAAE,uBAAuB,CAAC,YAAY,CAAC,CAAC;IAClD,WAAW,EAAE,uBAAuB,CAAC,SAAS,CAAC,CAAC;IAChD,aAAa,EAAE,sBAAsB,EAAE,CAAC;IACxC,WAAW,EAAE,uBAAuB,CAAC,aAAa,CAAC,CAAC;IACpD,cAAc,EAAE,uBAAuB,CAAC,gBAAgB,CAAC,CAAC;IAC1D,qBAAqB,EAAE,wBAAwB,CAAC,mBAAmB,CAAC,CAAC;IACrE,QAAQ,EAAE,wBAAwB,CAAC,UAAU,CAAC,CAAC;IAC/C,oBAAoB,EAAE,wBAAwB,CAAC,kBAAkB,CAAC,CAAC;IACnE,WAAW,EAAE,wBAAwB,CAAC,aAAa,CAAC,CAAC;IACrD,cAAc,EAAE,wBAAwB,CAAC,gBAAgB,CAAC,CAAC;IAC3D,cAAc,EAAE,QAAQ,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;IAClD,aAAa,EAAE,QAAQ,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;CACjD;AAED,eAAO,MAAM,qBAAqB,YACvB,QAAQ,GAAG,WAAW,KAC9B,wBAwFF,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { useMemo, useRef, useState } from 'react';
2
- import { typeIconMapping, fieldReferenceMenuHelpers } from '@pega/cosmos-react-build';
2
+ import { fieldReferenceMenuHelpers, getIconMapping, typeIconMapping } from '@pega/cosmos-react-build';
3
3
  import { loadingTimeoutMS } from '../../core/Progress/Progress.mocks';
4
4
  export const actions = [
5
5
  {
@@ -12,9 +12,10 @@ export const actions = [
12
12
  export const link = {
13
13
  href: '#field',
14
14
  previewable: true,
15
- onPreview: () => { }
15
+ onPreview: () => { },
16
+ onClick: () => { }
16
17
  };
17
- const getGeneratedMenuItems = (parentItem) => {
18
+ export const getGeneratedMenuItems = (parentItem) => {
18
19
  const types = Object.keys(typeIconMapping);
19
20
  return [...Array(2000)].map((_, i) => {
20
21
  const hasLongName = Math.random() > 0.5;
@@ -25,7 +26,7 @@ const getGeneratedMenuItems = (parentItem) => {
25
26
  id,
26
27
  name,
27
28
  type,
28
- icon: typeIconMapping[type]
29
+ icon: getIconMapping(type)
29
30
  };
30
31
  if (type === 'Field reference') {
31
32
  item.type = `${name} (reference single)`;
@@ -39,80 +40,128 @@ const getGeneratedMenuItems = (parentItem) => {
39
40
  return item;
40
41
  });
41
42
  };
42
- const getStaticMenuItems = (parentItem) => {
43
+ export const getStaticMenuItems = (parentItem) => {
43
44
  if (parentItem?.id.endsWith('cloneCase'))
44
45
  return [
45
46
  {
46
47
  id: 'status',
47
48
  name: 'Status',
48
49
  type: 'Text',
49
- icon: { set: 'streamline', name: 'dataviz-string-field' }
50
+ icon: { set: 'streamline', name: 'dataviz-string-field' },
51
+ metadata: [
52
+ { name: 'Applies to', value: 'User story' },
53
+ { name: 'ID', value: 'cloneCase.status' }
54
+ ]
50
55
  },
51
56
  {
52
57
  id: 'description',
53
58
  name: 'Description',
54
59
  type: 'Paragraph',
55
- icon: { set: 'streamline', name: 'filetype-text' }
60
+ icon: { set: 'streamline', name: 'filetype-text' },
61
+ metadata: [
62
+ { name: 'Applies to', value: 'User story' },
63
+ { name: 'ID', value: 'cloneCase.description' }
64
+ ]
56
65
  },
57
66
  {
58
67
  id: 'completed',
59
68
  name: 'Completed',
60
69
  type: 'Boolean',
61
- icon: { set: 'streamline', name: 'circle-mixed-left' }
70
+ icon: { set: 'streamline', name: 'circle-mixed-left' },
71
+ metadata: [
72
+ { name: 'Applies to', value: 'User story' },
73
+ { name: 'ID', value: 'cloneCase.completed' }
74
+ ]
62
75
  },
63
76
  {
64
77
  id: 'releaseDate',
65
78
  name: 'Release date',
66
79
  type: 'Date',
67
- icon: { set: 'streamline', name: 'calendar-empty' }
80
+ icon: { set: 'streamline', name: 'calendar-empty' },
81
+ metadata: [
82
+ { name: 'Applies to', value: 'User story' },
83
+ { name: 'ID', value: 'cloneCase.releaseDate' }
84
+ ]
68
85
  },
69
86
  {
70
87
  id: 'lastUpdated',
71
88
  name: 'Last updated',
72
89
  type: 'Time',
73
- icon: { set: 'streamline', name: 'clock' }
90
+ icon: { set: 'streamline', name: 'clock' },
91
+ metadata: [
92
+ { name: 'Applies to', value: 'User story' },
93
+ { name: 'ID', value: 'cloneCase.lastUpdated' }
94
+ ]
74
95
  },
75
96
  {
76
97
  id: 'createdAt',
77
98
  name: 'Created at',
78
- type: 'Date & Time',
79
- icon: { set: 'streamline', name: 'dataviz-datetime-field' }
99
+ type: 'Date & time',
100
+ icon: { set: 'streamline', name: 'dataviz-datetime-field' },
101
+ metadata: [
102
+ { name: 'Applies to', value: 'User story' },
103
+ { name: 'ID', value: 'cloneCase.createdAt' }
104
+ ]
80
105
  },
81
106
  {
82
107
  id: 'availability',
83
108
  name: 'Availability',
84
109
  type: 'Integer',
85
- icon: { set: 'streamline', name: 'dataviz-numeric-field' }
110
+ icon: { set: 'streamline', name: 'dataviz-numeric-field' },
111
+ metadata: [
112
+ { name: 'Applies to', value: 'User story' },
113
+ { name: 'ID', value: 'cloneCase.availability' }
114
+ ]
86
115
  },
87
116
  {
88
117
  id: 'hoursSpent',
89
118
  name: 'Hours spent',
90
119
  type: 'Decimal',
91
- icon: { set: 'streamline', name: 'number-decimal' }
120
+ icon: { set: 'streamline', name: 'number-decimal' },
121
+ metadata: [
122
+ { name: 'Applies to', value: 'User story' },
123
+ { name: 'ID', value: 'cloneCase.hoursSpent' }
124
+ ]
92
125
  },
93
126
  {
94
127
  id: 'costAnalysis',
95
128
  name: 'Cost analysis',
96
129
  type: 'Currency',
97
- icon: { set: 'streamline', name: 'currency' }
130
+ icon: { set: 'streamline', name: 'currency' },
131
+ metadata: [
132
+ { name: 'Applies to', value: 'User story' },
133
+ { name: 'ID', value: 'cloneCase.costAnalysis' }
134
+ ]
98
135
  },
99
136
  {
100
137
  id: 'contactEmail',
101
138
  name: 'Contact email',
102
139
  type: 'Email',
103
- icon: { set: 'streamline', name: 'mail' }
140
+ icon: { set: 'streamline', name: 'mail' },
141
+ metadata: [
142
+ { name: 'Applies to', value: 'User story' },
143
+ { name: 'ID', value: 'cloneCase.contactEmail' }
144
+ ]
104
145
  },
105
146
  {
106
147
  id: 'contactPhone',
107
148
  name: 'Contact phone',
108
149
  type: 'Phone',
109
- icon: { set: 'streamline', name: 'phone' }
150
+ icon: { set: 'streamline', name: 'phone' },
151
+ metadata: [
152
+ { name: 'Applies to', value: 'User story' },
153
+ { name: 'ID', value: 'cloneCase.contactPhone' }
154
+ ]
110
155
  },
111
156
  {
112
157
  id: 'severity',
113
158
  name: 'Severity',
114
159
  type: 'Picklist',
115
- icon: { set: 'streamline', name: 'list' }
160
+ icon: { set: 'streamline', name: 'list' },
161
+ metadata: [
162
+ { name: 'Applies to', value: 'User story' },
163
+ { name: 'ID', value: 'cloneCase.severity' }
164
+ ]
116
165
  }
117
166
  ];
118
167
  if (parentItem?.id.endsWith('downDepStories') ||
@@ -169,7 +218,7 @@ const getStaticMenuItems = (parentItem) => {
169
218
  {
170
219
  id: 'createdAt',
171
220
  name: 'Created at',
172
- type: 'Date & Time',
221
+ type: 'Date & time',
173
222
  icon: { set: 'streamline', name: 'dataviz-datetime-field' }
174
223
  },
175
224
  {
@@ -211,7 +260,7 @@ const getStaticMenuItems = (parentItem) => {
211
260
  {
212
261
  id: 'verifiedBy',
213
262
  name: 'Verified by',
214
- type: 'User reference',
263
+ type: 'User Reference',
215
264
  icon: { set: 'streamline', name: 'user' }
216
265
  },
217
266
  {
@@ -283,7 +332,7 @@ const getStaticMenuItems = (parentItem) => {
283
332
  {
284
333
  id: 'createdAt',
285
334
  name: 'Created at',
286
- type: 'Date & Time',
335
+ type: 'Date & time',
287
336
  icon: { set: 'streamline', name: 'dataviz-datetime-field' }
288
337
  },
289
338
  {
@@ -416,7 +465,7 @@ const getStaticMenuItems = (parentItem) => {
416
465
  {
417
466
  id: 'createdAt',
418
467
  name: 'Created at',
419
- type: 'Date & Time',
468
+ type: 'Date & time',
420
469
  icon: { set: 'streamline', name: 'dataviz-datetime-field' }
421
470
  },
422
471
  {
@@ -457,29 +506,29 @@ const getStaticMenuItems = (parentItem) => {
457
506
  },
458
507
  {
459
508
  id: 'updateUser',
460
- name: 'UpdateUser',
461
- type: 'User reference',
509
+ name: 'Update.User',
510
+ type: 'User Reference',
462
511
  icon: { set: 'streamline', name: 'user' }
463
512
  },
464
513
  {
465
514
  id: 'updateUserID',
466
- name: 'UpdateUserID',
515
+ name: 'Update.UserID',
467
516
  type: 'Text',
468
517
  icon: { set: 'streamline', name: 'dataviz-string-field' }
469
518
  },
470
519
  {
471
520
  id: 'updateUserDateTime',
472
- name: 'UpdateDateTime',
473
- type: 'Date & Time',
521
+ name: 'Update.DateTime',
522
+ type: 'Date & time',
474
523
  icon: { set: 'streamline', name: 'dataviz-datetime-field' }
475
524
  }
476
525
  ];
477
526
  };
478
- const defaultContext = {
527
+ export const defaultContext = {
479
528
  id: 'userStory',
480
529
  name: 'User story'
481
530
  };
482
- const defaultAltContexts = [
531
+ export const defaultAltContexts = [
483
532
  {
484
533
  id: 'aliasVariables',
485
534
  name: 'Aliases and Variables',
@@ -532,11 +581,11 @@ export const fieldPaths = {
532
581
  icon: { set: 'streamline', name: 'clock' }
533
582
  }
534
583
  ],
535
- 'Date & Time': [
584
+ 'Date & time': [
536
585
  {
537
586
  id: 'createdAt',
538
587
  name: 'Created at',
539
- type: 'Date & Time',
588
+ type: 'Date & time',
540
589
  icon: { set: 'streamline', name: 'dataviz-datetime-field' }
541
590
  }
542
591
  ],
@@ -620,11 +669,11 @@ export const fieldPaths = {
620
669
  icon: { set: 'streamline', name: 'paper-clip' }
621
670
  }
622
671
  ],
623
- 'User reference': [
672
+ 'User Reference': [
624
673
  {
625
674
  id: 'verifiedBy',
626
675
  name: 'Verified by',
627
- type: 'User reference',
676
+ type: 'User Reference',
628
677
  icon: { set: 'streamline', name: 'user' }
629
678
  }
630
679
  ],
@@ -669,6 +718,8 @@ export const useFieldReferenceMock = (dataSet) => {
669
718
  }, [filterValue, items, itemsShown]);
670
719
  const handleSelectedChange = selectedValue => {
671
720
  window.clearTimeout(selectionTimeoutRef.current);
721
+ window.clearTimeout(altContextTimeoutRef.current);
722
+ setMenuLoading(false);
672
723
  if (!selectedValue.length) {
673
724
  setSelected([]);
674
725
  setItems(getMenuItems());
@@ -696,6 +747,7 @@ export const useFieldReferenceMock = (dataSet) => {
696
747
  }
697
748
  };
698
749
  const handleAltContextClick = altContext => {
750
+ window.clearTimeout(selectionTimeoutRef.current);
699
751
  window.clearTimeout(altContextTimeoutRef.current);
700
752
  setSelected([]);
701
753
  setAltContexts(undefined);