@pega/cosmos-react-demos 7.11.3 → 7.11.4-10

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 (949) hide show
  1. package/package.json +7 -7
  2. package/jsx/build/DynamicInput/DynamicInput.mocks.d.ts +0 -22
  3. package/jsx/build/DynamicInput/DynamicInput.mocks.d.ts.map +0 -1
  4. package/jsx/build/DynamicInput/DynamicInput.mocks.js +0 -75
  5. package/jsx/build/DynamicInput/DynamicInput.mocks.js.map +0 -1
  6. package/jsx/build/DynamicInput/DynamicInput.stories.d.ts +0 -12
  7. package/jsx/build/DynamicInput/DynamicInput.stories.d.ts.map +0 -1
  8. package/jsx/build/DynamicInput/DynamicInput.stories.jsx +0 -326
  9. package/jsx/build/DynamicInput/DynamicInput.stories.jsx.map +0 -1
  10. package/jsx/build/FieldReference/FieldReference.mocks.d.ts +0 -22
  11. package/jsx/build/FieldReference/FieldReference.mocks.d.ts.map +0 -1
  12. package/jsx/build/FieldReference/FieldReference.mocks.js +0 -727
  13. package/jsx/build/FieldReference/FieldReference.mocks.js.map +0 -1
  14. package/jsx/build/FieldReference/FieldReference.stories.d.ts +0 -30
  15. package/jsx/build/FieldReference/FieldReference.stories.d.ts.map +0 -1
  16. package/jsx/build/FieldReference/FieldReference.stories.jsx +0 -164
  17. package/jsx/build/FieldReference/FieldReference.stories.jsx.map +0 -1
  18. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.mocks.d.ts +0 -3
  19. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.mocks.d.ts.map +0 -1
  20. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.mocks.js +0 -15
  21. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.mocks.js.map +0 -1
  22. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts +0 -19
  23. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts.map +0 -1
  24. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.jsx +0 -297
  25. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.jsx.map +0 -1
  26. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.styles.d.ts +0 -5
  27. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.styles.d.ts.map +0 -1
  28. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.styles.js +0 -15
  29. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.styles.js.map +0 -1
  30. package/jsx/condition-builder/ConditionBuilder/props.mock.d.ts +0 -6
  31. package/jsx/condition-builder/ConditionBuilder/props.mock.d.ts.map +0 -1
  32. package/jsx/condition-builder/ConditionBuilder/props.mock.js +0 -230
  33. package/jsx/condition-builder/ConditionBuilder/props.mock.js.map +0 -1
  34. package/jsx/condition-builder/ConditionInput/ConditionInput.stories.d.ts +0 -10
  35. package/jsx/condition-builder/ConditionInput/ConditionInput.stories.d.ts.map +0 -1
  36. package/jsx/condition-builder/ConditionInput/ConditionInput.stories.jsx +0 -40
  37. package/jsx/condition-builder/ConditionInput/ConditionInput.stories.jsx.map +0 -1
  38. package/jsx/condition-builder/PromotedFilters/PromotedFilters.mocks.d.ts +0 -4
  39. package/jsx/condition-builder/PromotedFilters/PromotedFilters.mocks.d.ts.map +0 -1
  40. package/jsx/condition-builder/PromotedFilters/PromotedFilters.mocks.js +0 -233
  41. package/jsx/condition-builder/PromotedFilters/PromotedFilters.mocks.js.map +0 -1
  42. package/jsx/condition-builder/PromotedFilters/PromotedFilters.stories.d.ts +0 -8
  43. package/jsx/condition-builder/PromotedFilters/PromotedFilters.stories.d.ts.map +0 -1
  44. package/jsx/condition-builder/PromotedFilters/PromotedFilters.stories.jsx +0 -31
  45. package/jsx/condition-builder/PromotedFilters/PromotedFilters.stories.jsx.map +0 -1
  46. package/jsx/condition-builder/PromotedFilters/PromotedFilters.styles.d.ts +0 -9
  47. package/jsx/condition-builder/PromotedFilters/PromotedFilters.styles.d.ts.map +0 -1
  48. package/jsx/condition-builder/PromotedFilters/PromotedFilters.styles.js +0 -35
  49. package/jsx/condition-builder/PromotedFilters/PromotedFilters.styles.js.map +0 -1
  50. package/jsx/core/AIButton/AIButton.mocks.d.ts +0 -22
  51. package/jsx/core/AIButton/AIButton.mocks.d.ts.map +0 -1
  52. package/jsx/core/AIButton/AIButton.mocks.js +0 -136
  53. package/jsx/core/AIButton/AIButton.mocks.js.map +0 -1
  54. package/jsx/core/AIButton/AIButton.stories.d.ts +0 -23
  55. package/jsx/core/AIButton/AIButton.stories.d.ts.map +0 -1
  56. package/jsx/core/AIButton/AIButton.stories.jsx +0 -318
  57. package/jsx/core/AIButton/AIButton.stories.jsx.map +0 -1
  58. package/jsx/core/AdditionalInfo/AdditionalInfo.stories.d.ts +0 -9
  59. package/jsx/core/AdditionalInfo/AdditionalInfo.stories.d.ts.map +0 -1
  60. package/jsx/core/AdditionalInfo/AdditionalInfo.stories.jsx +0 -25
  61. package/jsx/core/AdditionalInfo/AdditionalInfo.stories.jsx.map +0 -1
  62. package/jsx/core/AppShell/AppShell.mocks.d.ts +0 -30
  63. package/jsx/core/AppShell/AppShell.mocks.d.ts.map +0 -1
  64. package/jsx/core/AppShell/AppShell.mocks.jsx +0 -169
  65. package/jsx/core/AppShell/AppShell.mocks.jsx.map +0 -1
  66. package/jsx/core/AppShell/AppShell.stories.d.ts +0 -40
  67. package/jsx/core/AppShell/AppShell.stories.d.ts.map +0 -1
  68. package/jsx/core/AppShell/AppShell.stories.jsx +0 -268
  69. package/jsx/core/AppShell/AppShell.stories.jsx.map +0 -1
  70. package/jsx/core/AppShell/AppShell.styles.d.ts +0 -2
  71. package/jsx/core/AppShell/AppShell.styles.d.ts.map +0 -1
  72. package/jsx/core/AppShell/AppShell.styles.js +0 -5
  73. package/jsx/core/AppShell/AppShell.styles.js.map +0 -1
  74. package/jsx/core/Avatar/Avatar.stories.d.ts +0 -15
  75. package/jsx/core/Avatar/Avatar.stories.d.ts.map +0 -1
  76. package/jsx/core/Avatar/Avatar.stories.jsx +0 -75
  77. package/jsx/core/Avatar/Avatar.stories.jsx.map +0 -1
  78. package/jsx/core/Backdrop/Backdrop.stories.d.ts +0 -7
  79. package/jsx/core/Backdrop/Backdrop.stories.d.ts.map +0 -1
  80. package/jsx/core/Backdrop/Backdrop.stories.jsx +0 -43
  81. package/jsx/core/Backdrop/Backdrop.stories.jsx.map +0 -1
  82. package/jsx/core/Badges/Alert.stories.d.ts +0 -6
  83. package/jsx/core/Badges/Alert.stories.d.ts.map +0 -1
  84. package/jsx/core/Badges/Alert.stories.jsx +0 -15
  85. package/jsx/core/Badges/Alert.stories.jsx.map +0 -1
  86. package/jsx/core/Badges/Count.stories.d.ts +0 -6
  87. package/jsx/core/Badges/Count.stories.d.ts.map +0 -1
  88. package/jsx/core/Badges/Count.stories.jsx +0 -20
  89. package/jsx/core/Badges/Count.stories.jsx.map +0 -1
  90. package/jsx/core/Badges/Keyboard.stories.d.ts +0 -6
  91. package/jsx/core/Badges/Keyboard.stories.d.ts.map +0 -1
  92. package/jsx/core/Badges/Keyboard.stories.jsx +0 -17
  93. package/jsx/core/Badges/Keyboard.stories.jsx.map +0 -1
  94. package/jsx/core/Badges/Selection.stories.d.ts +0 -5
  95. package/jsx/core/Badges/Selection.stories.d.ts.map +0 -1
  96. package/jsx/core/Badges/Selection.stories.jsx +0 -9
  97. package/jsx/core/Badges/Selection.stories.jsx.map +0 -1
  98. package/jsx/core/Badges/Status.stories.d.ts +0 -11
  99. package/jsx/core/Badges/Status.stories.d.ts.map +0 -1
  100. package/jsx/core/Badges/Status.stories.jsx +0 -43
  101. package/jsx/core/Badges/Status.stories.jsx.map +0 -1
  102. package/jsx/core/Badges/Tag.stories.d.ts +0 -5
  103. package/jsx/core/Badges/Tag.stories.d.ts.map +0 -1
  104. package/jsx/core/Badges/Tag.stories.jsx +0 -9
  105. package/jsx/core/Badges/Tag.stories.jsx.map +0 -1
  106. package/jsx/core/Banner/Banner.mocks.d.ts +0 -18
  107. package/jsx/core/Banner/Banner.mocks.d.ts.map +0 -1
  108. package/jsx/core/Banner/Banner.mocks.jsx +0 -41
  109. package/jsx/core/Banner/Banner.mocks.jsx.map +0 -1
  110. package/jsx/core/Banner/Banner.stories.d.ts +0 -18
  111. package/jsx/core/Banner/Banner.stories.d.ts.map +0 -1
  112. package/jsx/core/Banner/Banner.stories.jsx +0 -156
  113. package/jsx/core/Banner/Banner.stories.jsx.map +0 -1
  114. package/jsx/core/Boolean/BooleanDisplay.stories.d.ts +0 -6
  115. package/jsx/core/Boolean/BooleanDisplay.stories.d.ts.map +0 -1
  116. package/jsx/core/Boolean/BooleanDisplay.stories.jsx +0 -19
  117. package/jsx/core/Boolean/BooleanDisplay.stories.jsx.map +0 -1
  118. package/jsx/core/Breadcrumbs/Breadcrumbs.mocks.d.ts +0 -2
  119. package/jsx/core/Breadcrumbs/Breadcrumbs.mocks.d.ts.map +0 -1
  120. package/jsx/core/Breadcrumbs/Breadcrumbs.mocks.js +0 -8
  121. package/jsx/core/Breadcrumbs/Breadcrumbs.mocks.js.map +0 -1
  122. package/jsx/core/Breadcrumbs/Breadcrumbs.stories.d.ts +0 -11
  123. package/jsx/core/Breadcrumbs/Breadcrumbs.stories.d.ts.map +0 -1
  124. package/jsx/core/Breadcrumbs/Breadcrumbs.stories.jsx +0 -69
  125. package/jsx/core/Breadcrumbs/Breadcrumbs.stories.jsx.map +0 -1
  126. package/jsx/core/Breadcrumbs/Breadcrumbs.styles.d.ts +0 -2
  127. package/jsx/core/Breadcrumbs/Breadcrumbs.styles.d.ts.map +0 -1
  128. package/jsx/core/Breadcrumbs/Breadcrumbs.styles.js +0 -12
  129. package/jsx/core/Breadcrumbs/Breadcrumbs.styles.js.map +0 -1
  130. package/jsx/core/Button/Button.stories.d.ts +0 -18
  131. package/jsx/core/Button/Button.stories.d.ts.map +0 -1
  132. package/jsx/core/Button/Button.stories.jsx +0 -119
  133. package/jsx/core/Button/Button.stories.jsx.map +0 -1
  134. package/jsx/core/Card/Card.stories.d.ts +0 -12
  135. package/jsx/core/Card/Card.stories.d.ts.map +0 -1
  136. package/jsx/core/Card/Card.stories.jsx +0 -85
  137. package/jsx/core/Card/Card.stories.jsx.map +0 -1
  138. package/jsx/core/Card/Card.styles.d.ts +0 -2
  139. package/jsx/core/Card/Card.styles.d.ts.map +0 -1
  140. package/jsx/core/Card/Card.styles.js +0 -5
  141. package/jsx/core/Card/Card.styles.js.map +0 -1
  142. package/jsx/core/Checkbox/Checkbox.stories.d.ts +0 -23
  143. package/jsx/core/Checkbox/Checkbox.stories.d.ts.map +0 -1
  144. package/jsx/core/Checkbox/Checkbox.stories.jsx +0 -104
  145. package/jsx/core/Checkbox/Checkbox.stories.jsx.map +0 -1
  146. package/jsx/core/CheckboxGroup/CheckboxGroup.stories.d.ts +0 -11
  147. package/jsx/core/CheckboxGroup/CheckboxGroup.stories.d.ts.map +0 -1
  148. package/jsx/core/CheckboxGroup/CheckboxGroup.stories.jsx +0 -103
  149. package/jsx/core/CheckboxGroup/CheckboxGroup.stories.jsx.map +0 -1
  150. package/jsx/core/CheckboxGroup/CheckboxGroup.styles.d.ts +0 -4
  151. package/jsx/core/CheckboxGroup/CheckboxGroup.styles.d.ts.map +0 -1
  152. package/jsx/core/CheckboxGroup/CheckboxGroup.styles.js +0 -9
  153. package/jsx/core/CheckboxGroup/CheckboxGroup.styles.js.map +0 -1
  154. package/jsx/core/ColorPicker/ColorPicker.stories.d.ts +0 -10
  155. package/jsx/core/ColorPicker/ColorPicker.stories.d.ts.map +0 -1
  156. package/jsx/core/ColorPicker/ColorPicker.stories.jsx +0 -89
  157. package/jsx/core/ColorPicker/ColorPicker.stories.jsx.map +0 -1
  158. package/jsx/core/ColorPicker/ColorPicker.styles.d.ts +0 -4
  159. package/jsx/core/ColorPicker/ColorPicker.styles.d.ts.map +0 -1
  160. package/jsx/core/ColorPicker/ColorPicker.styles.js +0 -10
  161. package/jsx/core/ColorPicker/ColorPicker.styles.js.map +0 -1
  162. package/jsx/core/ComboBox/ComboBox.mocks.d.ts +0 -26
  163. package/jsx/core/ComboBox/ComboBox.mocks.d.ts.map +0 -1
  164. package/jsx/core/ComboBox/ComboBox.mocks.jsx +0 -58
  165. package/jsx/core/ComboBox/ComboBox.mocks.jsx.map +0 -1
  166. package/jsx/core/ComboBox/ComboBox.stories.d.ts +0 -25
  167. package/jsx/core/ComboBox/ComboBox.stories.d.ts.map +0 -1
  168. package/jsx/core/ComboBox/ComboBox.stories.jsx +0 -418
  169. package/jsx/core/ComboBox/ComboBox.stories.jsx.map +0 -1
  170. package/jsx/core/CompositeInput/CompositeInput.mocks.d.ts +0 -8
  171. package/jsx/core/CompositeInput/CompositeInput.mocks.d.ts.map +0 -1
  172. package/jsx/core/CompositeInput/CompositeInput.mocks.jsx +0 -8
  173. package/jsx/core/CompositeInput/CompositeInput.mocks.jsx.map +0 -1
  174. package/jsx/core/CompositeInput/CompositeInput.stories.d.ts +0 -9
  175. package/jsx/core/CompositeInput/CompositeInput.stories.d.ts.map +0 -1
  176. package/jsx/core/CompositeInput/CompositeInput.stories.jsx +0 -52
  177. package/jsx/core/CompositeInput/CompositeInput.stories.jsx.map +0 -1
  178. package/jsx/core/Configuration/Configuration.mocks.d.ts +0 -7
  179. package/jsx/core/Configuration/Configuration.mocks.d.ts.map +0 -1
  180. package/jsx/core/Configuration/Configuration.mocks.jsx +0 -9
  181. package/jsx/core/Configuration/Configuration.mocks.jsx.map +0 -1
  182. package/jsx/core/Configuration/Configuration.stories.d.ts +0 -25
  183. package/jsx/core/Configuration/Configuration.stories.d.ts.map +0 -1
  184. package/jsx/core/Configuration/Configuration.stories.jsx +0 -196
  185. package/jsx/core/Configuration/Configuration.stories.jsx.map +0 -1
  186. package/jsx/core/Configuration/Configuration.styles.d.ts +0 -6
  187. package/jsx/core/Configuration/Configuration.styles.d.ts.map +0 -1
  188. package/jsx/core/Configuration/Configuration.styles.js +0 -12
  189. package/jsx/core/Configuration/Configuration.styles.js.map +0 -1
  190. package/jsx/core/CreditCard/CreditCard.stories.d.ts +0 -14
  191. package/jsx/core/CreditCard/CreditCard.stories.d.ts.map +0 -1
  192. package/jsx/core/CreditCard/CreditCard.stories.jsx +0 -50
  193. package/jsx/core/CreditCard/CreditCard.stories.jsx.map +0 -1
  194. package/jsx/core/Currency/Currency.stories.d.ts +0 -19
  195. package/jsx/core/Currency/Currency.stories.d.ts.map +0 -1
  196. package/jsx/core/Currency/Currency.stories.jsx +0 -105
  197. package/jsx/core/Currency/Currency.stories.jsx.map +0 -1
  198. package/jsx/core/DangerButton/DangerButton.stories.d.ts +0 -6
  199. package/jsx/core/DangerButton/DangerButton.stories.d.ts.map +0 -1
  200. package/jsx/core/DangerButton/DangerButton.stories.jsx +0 -17
  201. package/jsx/core/DangerButton/DangerButton.stories.jsx.map +0 -1
  202. package/jsx/core/DateTime/DateTime.stories.d.ts +0 -54
  203. package/jsx/core/DateTime/DateTime.stories.d.ts.map +0 -1
  204. package/jsx/core/DateTime/DateTime.stories.jsx +0 -292
  205. package/jsx/core/DateTime/DateTime.stories.jsx.map +0 -1
  206. package/jsx/core/DateTime/DateTimeDisplay.stories.d.ts +0 -7
  207. package/jsx/core/DateTime/DateTimeDisplay.stories.d.ts.map +0 -1
  208. package/jsx/core/DateTime/DateTimeDisplay.stories.jsx +0 -54
  209. package/jsx/core/DateTime/DateTimeDisplay.stories.jsx.map +0 -1
  210. package/jsx/core/DateTime/DateTimePicker.stories.d.ts +0 -7
  211. package/jsx/core/DateTime/DateTimePicker.stories.d.ts.map +0 -1
  212. package/jsx/core/DateTime/DateTimePicker.stories.jsx +0 -34
  213. package/jsx/core/DateTime/DateTimePicker.stories.jsx.map +0 -1
  214. package/jsx/core/Dialog/Dialog.stories.d.ts +0 -7
  215. package/jsx/core/Dialog/Dialog.stories.d.ts.map +0 -1
  216. package/jsx/core/Dialog/Dialog.stories.jsx +0 -15
  217. package/jsx/core/Dialog/Dialog.stories.jsx.map +0 -1
  218. package/jsx/core/Dialog/FormDialog.mocks.d.ts +0 -27
  219. package/jsx/core/Dialog/FormDialog.mocks.d.ts.map +0 -1
  220. package/jsx/core/Dialog/FormDialog.mocks.jsx +0 -194
  221. package/jsx/core/Dialog/FormDialog.mocks.jsx.map +0 -1
  222. package/jsx/core/Dialog/InfoDialog.mocks.d.ts +0 -4
  223. package/jsx/core/Dialog/InfoDialog.mocks.d.ts.map +0 -1
  224. package/jsx/core/Dialog/InfoDialog.mocks.jsx +0 -64
  225. package/jsx/core/Dialog/InfoDialog.mocks.jsx.map +0 -1
  226. package/jsx/core/Drawer/Drawer.stories.d.ts +0 -7
  227. package/jsx/core/Drawer/Drawer.stories.d.ts.map +0 -1
  228. package/jsx/core/Drawer/Drawer.stories.jsx +0 -98
  229. package/jsx/core/Drawer/Drawer.stories.jsx.map +0 -1
  230. package/jsx/core/Drawer/Drawer.styles.d.ts +0 -2
  231. package/jsx/core/Drawer/Drawer.styles.d.ts.map +0 -1
  232. package/jsx/core/Drawer/Drawer.styles.js +0 -11
  233. package/jsx/core/Drawer/Drawer.styles.js.map +0 -1
  234. package/jsx/core/Email/EmailDisplay.stories.d.ts +0 -6
  235. package/jsx/core/Email/EmailDisplay.stories.d.ts.map +0 -1
  236. package/jsx/core/Email/EmailDisplay.stories.jsx +0 -19
  237. package/jsx/core/Email/EmailDisplay.stories.jsx.map +0 -1
  238. package/jsx/core/EmojiPicker/EmojiPicker.stories.d.ts +0 -8
  239. package/jsx/core/EmojiPicker/EmojiPicker.stories.d.ts.map +0 -1
  240. package/jsx/core/EmojiPicker/EmojiPicker.stories.jsx +0 -53
  241. package/jsx/core/EmojiPicker/EmojiPicker.stories.jsx.map +0 -1
  242. package/jsx/core/EmptyState/EmptyState.stories.d.ts +0 -6
  243. package/jsx/core/EmptyState/EmptyState.stories.d.ts.map +0 -1
  244. package/jsx/core/EmptyState/EmptyState.stories.jsx +0 -18
  245. package/jsx/core/EmptyState/EmptyState.stories.jsx.map +0 -1
  246. package/jsx/core/ErrorState/ErrorState.stories.d.ts +0 -9
  247. package/jsx/core/ErrorState/ErrorState.stories.d.ts.map +0 -1
  248. package/jsx/core/ErrorState/ErrorState.stories.jsx +0 -20
  249. package/jsx/core/ErrorState/ErrorState.stories.jsx.map +0 -1
  250. package/jsx/core/ExpandCollapse/ExpandCollapse.stories.d.ts +0 -7
  251. package/jsx/core/ExpandCollapse/ExpandCollapse.stories.d.ts.map +0 -1
  252. package/jsx/core/ExpandCollapse/ExpandCollapse.stories.jsx +0 -73
  253. package/jsx/core/ExpandCollapse/ExpandCollapse.stories.jsx.map +0 -1
  254. package/jsx/core/ExpandCollapse/ExpandCollapse.styles.d.ts +0 -4
  255. package/jsx/core/ExpandCollapse/ExpandCollapse.styles.d.ts.map +0 -1
  256. package/jsx/core/ExpandCollapse/ExpandCollapse.styles.js +0 -17
  257. package/jsx/core/ExpandCollapse/ExpandCollapse.styles.js.map +0 -1
  258. package/jsx/core/FieldGroup/FieldGroup.stories.d.ts +0 -20
  259. package/jsx/core/FieldGroup/FieldGroup.stories.d.ts.map +0 -1
  260. package/jsx/core/FieldGroup/FieldGroup.stories.jsx +0 -94
  261. package/jsx/core/FieldGroup/FieldGroup.stories.jsx.map +0 -1
  262. package/jsx/core/FieldGroup/FieldGroupList.mocks.d.ts +0 -25
  263. package/jsx/core/FieldGroup/FieldGroupList.mocks.d.ts.map +0 -1
  264. package/jsx/core/FieldGroup/FieldGroupList.mocks.jsx +0 -109
  265. package/jsx/core/FieldGroup/FieldGroupList.mocks.jsx.map +0 -1
  266. package/jsx/core/FieldGroup/FieldGroupList.stories.d.ts +0 -13
  267. package/jsx/core/FieldGroup/FieldGroupList.stories.d.ts.map +0 -1
  268. package/jsx/core/FieldGroup/FieldGroupList.stories.jsx +0 -136
  269. package/jsx/core/FieldGroup/FieldGroupList.stories.jsx.map +0 -1
  270. package/jsx/core/FieldValueList/FieldValueList.mocks.d.ts +0 -20
  271. package/jsx/core/FieldValueList/FieldValueList.mocks.d.ts.map +0 -1
  272. package/jsx/core/FieldValueList/FieldValueList.mocks.jsx +0 -54
  273. package/jsx/core/FieldValueList/FieldValueList.mocks.jsx.map +0 -1
  274. package/jsx/core/FieldValueList/FieldValueList.stories.d.ts +0 -11
  275. package/jsx/core/FieldValueList/FieldValueList.stories.d.ts.map +0 -1
  276. package/jsx/core/FieldValueList/FieldValueList.stories.jsx +0 -37
  277. package/jsx/core/FieldValueList/FieldValueList.stories.jsx.map +0 -1
  278. package/jsx/core/FieldValueList/FieldValueList.styles.d.ts +0 -2
  279. package/jsx/core/FieldValueList/FieldValueList.styles.d.ts.map +0 -1
  280. package/jsx/core/FieldValueList/FieldValueList.styles.js +0 -8
  281. package/jsx/core/FieldValueList/FieldValueList.styles.js.map +0 -1
  282. package/jsx/core/File/FileDisplay.mocks.d.ts +0 -4
  283. package/jsx/core/File/FileDisplay.mocks.d.ts.map +0 -1
  284. package/jsx/core/File/FileDisplay.mocks.js +0 -126
  285. package/jsx/core/File/FileDisplay.mocks.js.map +0 -1
  286. package/jsx/core/File/FileDisplay.stories.d.ts +0 -27
  287. package/jsx/core/File/FileDisplay.stories.d.ts.map +0 -1
  288. package/jsx/core/File/FileDisplay.stories.jsx +0 -179
  289. package/jsx/core/File/FileDisplay.stories.jsx.map +0 -1
  290. package/jsx/core/File/FileInput.stories.d.ts +0 -13
  291. package/jsx/core/File/FileInput.stories.d.ts.map +0 -1
  292. package/jsx/core/File/FileInput.stories.jsx +0 -162
  293. package/jsx/core/File/FileInput.stories.jsx.map +0 -1
  294. package/jsx/core/File/FileService.mock.d.ts +0 -31
  295. package/jsx/core/File/FileService.mock.d.ts.map +0 -1
  296. package/jsx/core/File/FileService.mock.jsx +0 -119
  297. package/jsx/core/File/FileService.mock.jsx.map +0 -1
  298. package/jsx/core/File/MockFileInput.d.ts +0 -6
  299. package/jsx/core/File/MockFileInput.d.ts.map +0 -1
  300. package/jsx/core/File/MockFileInput.jsx +0 -25
  301. package/jsx/core/File/MockFileInput.jsx.map +0 -1
  302. package/jsx/core/Flex/Flex.styles.d.ts +0 -10
  303. package/jsx/core/Flex/Flex.styles.d.ts.map +0 -1
  304. package/jsx/core/Flex/Flex.styles.js +0 -41
  305. package/jsx/core/Flex/Flex.styles.js.map +0 -1
  306. package/jsx/core/Flex/FlexContainer.stories.d.ts +0 -21
  307. package/jsx/core/Flex/FlexContainer.stories.d.ts.map +0 -1
  308. package/jsx/core/Flex/FlexContainer.stories.jsx +0 -164
  309. package/jsx/core/Flex/FlexContainer.stories.jsx.map +0 -1
  310. package/jsx/core/Flex/FlexItem.stories.d.ts +0 -13
  311. package/jsx/core/Flex/FlexItem.stories.d.ts.map +0 -1
  312. package/jsx/core/Flex/FlexItem.stories.jsx +0 -71
  313. package/jsx/core/Flex/FlexItem.stories.jsx.map +0 -1
  314. package/jsx/core/Form/Form.mocks.d.ts +0 -14
  315. package/jsx/core/Form/Form.mocks.d.ts.map +0 -1
  316. package/jsx/core/Form/Form.mocks.jsx +0 -276
  317. package/jsx/core/Form/Form.mocks.jsx.map +0 -1
  318. package/jsx/core/Form/Form.stories.d.ts +0 -25
  319. package/jsx/core/Form/Form.stories.d.ts.map +0 -1
  320. package/jsx/core/Form/Form.stories.jsx +0 -106
  321. package/jsx/core/Form/Form.stories.jsx.map +0 -1
  322. package/jsx/core/Fullscreen/Fullscreen.stories.d.ts +0 -5
  323. package/jsx/core/Fullscreen/Fullscreen.stories.d.ts.map +0 -1
  324. package/jsx/core/Fullscreen/Fullscreen.stories.jsx +0 -22
  325. package/jsx/core/Fullscreen/Fullscreen.stories.jsx.map +0 -1
  326. package/jsx/core/Fullscreen/Fullscreen.styles.d.ts +0 -3
  327. package/jsx/core/Fullscreen/Fullscreen.styles.d.ts.map +0 -1
  328. package/jsx/core/Fullscreen/Fullscreen.styles.js +0 -9
  329. package/jsx/core/Fullscreen/Fullscreen.styles.js.map +0 -1
  330. package/jsx/core/Grid/Grid.styles.d.ts +0 -6
  331. package/jsx/core/Grid/Grid.styles.d.ts.map +0 -1
  332. package/jsx/core/Grid/Grid.styles.js +0 -36
  333. package/jsx/core/Grid/Grid.styles.js.map +0 -1
  334. package/jsx/core/Grid/GridContainer.stories.d.ts +0 -23
  335. package/jsx/core/Grid/GridContainer.stories.d.ts.map +0 -1
  336. package/jsx/core/Grid/GridContainer.stories.jsx +0 -168
  337. package/jsx/core/Grid/GridContainer.stories.jsx.map +0 -1
  338. package/jsx/core/Grid/GridItem.stories.d.ts +0 -12
  339. package/jsx/core/Grid/GridItem.stories.d.ts.map +0 -1
  340. package/jsx/core/Grid/GridItem.stories.jsx +0 -74
  341. package/jsx/core/Grid/GridItem.stories.jsx.map +0 -1
  342. package/jsx/core/HTML/HTML.stories.d.ts +0 -6
  343. package/jsx/core/HTML/HTML.stories.d.ts.map +0 -1
  344. package/jsx/core/HTML/HTML.stories.jsx +0 -13
  345. package/jsx/core/HTML/HTML.stories.jsx.map +0 -1
  346. package/jsx/core/Icon/Icon.mocks.d.ts +0 -26
  347. package/jsx/core/Icon/Icon.mocks.d.ts.map +0 -1
  348. package/jsx/core/Icon/Icon.mocks.jsx +0 -32
  349. package/jsx/core/Icon/Icon.mocks.jsx.map +0 -1
  350. package/jsx/core/Icon/Icon.stories.d.ts +0 -21
  351. package/jsx/core/Icon/Icon.stories.d.ts.map +0 -1
  352. package/jsx/core/Icon/Icon.stories.jsx +0 -112
  353. package/jsx/core/Icon/Icon.stories.jsx.map +0 -1
  354. package/jsx/core/Icon/Icon.styles.d.ts +0 -4
  355. package/jsx/core/Icon/Icon.styles.d.ts.map +0 -1
  356. package/jsx/core/Icon/Icon.styles.js +0 -25
  357. package/jsx/core/Icon/Icon.styles.js.map +0 -1
  358. package/jsx/core/IconPicker/IconPicker.mocks.d.ts +0 -2
  359. package/jsx/core/IconPicker/IconPicker.mocks.d.ts.map +0 -1
  360. package/jsx/core/IconPicker/IconPicker.mocks.js +0 -3
  361. package/jsx/core/IconPicker/IconPicker.mocks.js.map +0 -1
  362. package/jsx/core/IconPicker/IconPicker.stories.d.ts +0 -6
  363. package/jsx/core/IconPicker/IconPicker.stories.d.ts.map +0 -1
  364. package/jsx/core/IconPicker/IconPicker.stories.jsx +0 -38
  365. package/jsx/core/IconPicker/IconPicker.stories.jsx.map +0 -1
  366. package/jsx/core/Image/Image.stories.d.ts +0 -5
  367. package/jsx/core/Image/Image.stories.d.ts.map +0 -1
  368. package/jsx/core/Image/Image.stories.jsx +0 -9
  369. package/jsx/core/Image/Image.stories.jsx.map +0 -1
  370. package/jsx/core/Input/Input.stories.d.ts +0 -20
  371. package/jsx/core/Input/Input.stories.d.ts.map +0 -1
  372. package/jsx/core/Input/Input.stories.jsx +0 -159
  373. package/jsx/core/Input/Input.stories.jsx.map +0 -1
  374. package/jsx/core/Label/Label.stories.d.ts +0 -10
  375. package/jsx/core/Label/Label.stories.d.ts.map +0 -1
  376. package/jsx/core/Label/Label.stories.jsx +0 -33
  377. package/jsx/core/Label/Label.stories.jsx.map +0 -1
  378. package/jsx/core/Lightbox/Lightbox.mocks.d.ts +0 -28
  379. package/jsx/core/Lightbox/Lightbox.mocks.d.ts.map +0 -1
  380. package/jsx/core/Lightbox/Lightbox.mocks.js +0 -118
  381. package/jsx/core/Lightbox/Lightbox.mocks.js.map +0 -1
  382. package/jsx/core/Lightbox/Lightbox.stories.d.ts +0 -10
  383. package/jsx/core/Lightbox/Lightbox.stories.d.ts.map +0 -1
  384. package/jsx/core/Lightbox/Lightbox.stories.jsx +0 -69
  385. package/jsx/core/Lightbox/Lightbox.stories.jsx.map +0 -1
  386. package/jsx/core/Link/Link.stories.d.ts +0 -14
  387. package/jsx/core/Link/Link.stories.d.ts.map +0 -1
  388. package/jsx/core/Link/Link.stories.jsx +0 -48
  389. package/jsx/core/Link/Link.stories.jsx.map +0 -1
  390. package/jsx/core/List/CommaSeparatedList.stories.d.ts +0 -6
  391. package/jsx/core/List/CommaSeparatedList.stories.d.ts.map +0 -1
  392. package/jsx/core/List/CommaSeparatedList.stories.jsx +0 -31
  393. package/jsx/core/List/CommaSeparatedList.stories.jsx.map +0 -1
  394. package/jsx/core/List/OrderedList.stories.d.ts +0 -10
  395. package/jsx/core/List/OrderedList.stories.d.ts.map +0 -1
  396. package/jsx/core/List/OrderedList.stories.jsx +0 -38
  397. package/jsx/core/List/OrderedList.stories.jsx.map +0 -1
  398. package/jsx/core/List/UnorderedList.stories.d.ts +0 -10
  399. package/jsx/core/List/UnorderedList.stories.d.ts.map +0 -1
  400. package/jsx/core/List/UnorderedList.stories.jsx +0 -38
  401. package/jsx/core/List/UnorderedList.stories.jsx.map +0 -1
  402. package/jsx/core/ListToolbar/ListToolbar.mocks.d.ts +0 -9
  403. package/jsx/core/ListToolbar/ListToolbar.mocks.d.ts.map +0 -1
  404. package/jsx/core/ListToolbar/ListToolbar.mocks.jsx +0 -58
  405. package/jsx/core/ListToolbar/ListToolbar.mocks.jsx.map +0 -1
  406. package/jsx/core/ListToolbar/ListToolbar.stories.d.ts +0 -17
  407. package/jsx/core/ListToolbar/ListToolbar.stories.d.ts.map +0 -1
  408. package/jsx/core/ListToolbar/ListToolbar.stories.jsx +0 -141
  409. package/jsx/core/ListToolbar/ListToolbar.stories.jsx.map +0 -1
  410. package/jsx/core/LiveLog/LiveLog.mocks.d.ts +0 -5
  411. package/jsx/core/LiveLog/LiveLog.mocks.d.ts.map +0 -1
  412. package/jsx/core/LiveLog/LiveLog.mocks.jsx +0 -47
  413. package/jsx/core/LiveLog/LiveLog.mocks.jsx.map +0 -1
  414. package/jsx/core/LiveLog/LiveLog.stories.d.ts +0 -6
  415. package/jsx/core/LiveLog/LiveLog.stories.d.ts.map +0 -1
  416. package/jsx/core/LiveLog/LiveLog.stories.jsx +0 -13
  417. package/jsx/core/LiveLog/LiveLog.stories.jsx.map +0 -1
  418. package/jsx/core/Location/Location.stories.d.ts +0 -25
  419. package/jsx/core/Location/Location.stories.d.ts.map +0 -1
  420. package/jsx/core/Location/Location.stories.jsx +0 -200
  421. package/jsx/core/Location/Location.stories.jsx.map +0 -1
  422. package/jsx/core/Location/locationTestUtils.d.ts +0 -8
  423. package/jsx/core/Location/locationTestUtils.d.ts.map +0 -1
  424. package/jsx/core/Location/locationTestUtils.js +0 -73
  425. package/jsx/core/Location/locationTestUtils.js.map +0 -1
  426. package/jsx/core/Menu/Menu.mocks.d.ts +0 -4
  427. package/jsx/core/Menu/Menu.mocks.d.ts.map +0 -1
  428. package/jsx/core/Menu/Menu.mocks.js +0 -183
  429. package/jsx/core/Menu/Menu.mocks.js.map +0 -1
  430. package/jsx/core/Menu/Menu.stories.d.ts +0 -18
  431. package/jsx/core/Menu/Menu.stories.d.ts.map +0 -1
  432. package/jsx/core/Menu/Menu.stories.jsx +0 -209
  433. package/jsx/core/Menu/Menu.stories.jsx.map +0 -1
  434. package/jsx/core/Menu/Menu.styles.d.ts +0 -2
  435. package/jsx/core/Menu/Menu.styles.d.ts.map +0 -1
  436. package/jsx/core/Menu/Menu.styles.js +0 -6
  437. package/jsx/core/Menu/Menu.styles.js.map +0 -1
  438. package/jsx/core/MenuButton/MenuButton.stories.d.ts +0 -16
  439. package/jsx/core/MenuButton/MenuButton.stories.d.ts.map +0 -1
  440. package/jsx/core/MenuButton/MenuButton.stories.jsx +0 -194
  441. package/jsx/core/MenuButton/MenuButton.stories.jsx.map +0 -1
  442. package/jsx/core/MetaList/MetaList.stories.d.ts +0 -9
  443. package/jsx/core/MetaList/MetaList.stories.d.ts.map +0 -1
  444. package/jsx/core/MetaList/MetaList.stories.jsx +0 -24
  445. package/jsx/core/MetaList/MetaList.stories.jsx.map +0 -1
  446. package/jsx/core/Modal/Modal.mocks.d.ts +0 -45
  447. package/jsx/core/Modal/Modal.mocks.d.ts.map +0 -1
  448. package/jsx/core/Modal/Modal.mocks.jsx +0 -204
  449. package/jsx/core/Modal/Modal.mocks.jsx.map +0 -1
  450. package/jsx/core/Modal/Modal.stories.d.ts +0 -12
  451. package/jsx/core/Modal/Modal.stories.d.ts.map +0 -1
  452. package/jsx/core/Modal/Modal.stories.jsx +0 -175
  453. package/jsx/core/Modal/Modal.stories.jsx.map +0 -1
  454. package/jsx/core/MultiStepForm/MultiStepForm.mocks.d.ts +0 -70
  455. package/jsx/core/MultiStepForm/MultiStepForm.mocks.d.ts.map +0 -1
  456. package/jsx/core/MultiStepForm/MultiStepForm.mocks.jsx +0 -408
  457. package/jsx/core/MultiStepForm/MultiStepForm.mocks.jsx.map +0 -1
  458. package/jsx/core/MultiStepForm/MultiStepForm.stories.d.ts +0 -7
  459. package/jsx/core/MultiStepForm/MultiStepForm.stories.d.ts.map +0 -1
  460. package/jsx/core/MultiStepForm/MultiStepForm.stories.jsx +0 -133
  461. package/jsx/core/MultiStepForm/MultiStepForm.stories.jsx.map +0 -1
  462. package/jsx/core/NoValue/NoValue.stories.d.ts +0 -6
  463. package/jsx/core/NoValue/NoValue.stories.d.ts.map +0 -1
  464. package/jsx/core/NoValue/NoValue.stories.jsx +0 -30
  465. package/jsx/core/NoValue/NoValue.stories.jsx.map +0 -1
  466. package/jsx/core/Number/Number.stories.d.ts +0 -19
  467. package/jsx/core/Number/Number.stories.d.ts.map +0 -1
  468. package/jsx/core/Number/Number.stories.jsx +0 -303
  469. package/jsx/core/Number/Number.stories.jsx.map +0 -1
  470. package/jsx/core/PageTemplates/PageTemplates.mocks.d.ts +0 -3
  471. package/jsx/core/PageTemplates/PageTemplates.mocks.d.ts.map +0 -1
  472. package/jsx/core/PageTemplates/PageTemplates.mocks.js +0 -10
  473. package/jsx/core/PageTemplates/PageTemplates.mocks.js.map +0 -1
  474. package/jsx/core/PageTemplates/PageTemplates.stories.d.ts +0 -35
  475. package/jsx/core/PageTemplates/PageTemplates.stories.d.ts.map +0 -1
  476. package/jsx/core/PageTemplates/PageTemplates.stories.jsx +0 -301
  477. package/jsx/core/PageTemplates/PageTemplates.stories.jsx.map +0 -1
  478. package/jsx/core/PageTemplates/PageTemplates.styles.d.ts +0 -5
  479. package/jsx/core/PageTemplates/PageTemplates.styles.d.ts.map +0 -1
  480. package/jsx/core/PageTemplates/PageTemplates.styles.js +0 -40
  481. package/jsx/core/PageTemplates/PageTemplates.styles.js.map +0 -1
  482. package/jsx/core/Pagination/Pagination.stories.d.ts +0 -6
  483. package/jsx/core/Pagination/Pagination.stories.d.ts.map +0 -1
  484. package/jsx/core/Pagination/Pagination.stories.jsx +0 -19
  485. package/jsx/core/Pagination/Pagination.stories.jsx.map +0 -1
  486. package/jsx/core/Paragraph/ParagraphDisplay.stories.d.ts +0 -6
  487. package/jsx/core/Paragraph/ParagraphDisplay.stories.d.ts.map +0 -1
  488. package/jsx/core/Paragraph/ParagraphDisplay.stories.jsx +0 -15
  489. package/jsx/core/Paragraph/ParagraphDisplay.stories.jsx.map +0 -1
  490. package/jsx/core/Phone/Phone.stories.d.ts +0 -13
  491. package/jsx/core/Phone/Phone.stories.d.ts.map +0 -1
  492. package/jsx/core/Phone/Phone.stories.jsx +0 -52
  493. package/jsx/core/Phone/Phone.stories.jsx.map +0 -1
  494. package/jsx/core/Popover/Popover.mocks.d.ts +0 -9
  495. package/jsx/core/Popover/Popover.mocks.d.ts.map +0 -1
  496. package/jsx/core/Popover/Popover.mocks.jsx +0 -114
  497. package/jsx/core/Popover/Popover.mocks.jsx.map +0 -1
  498. package/jsx/core/Popover/Popover.stories.d.ts +0 -13
  499. package/jsx/core/Popover/Popover.stories.d.ts.map +0 -1
  500. package/jsx/core/Popover/Popover.stories.jsx +0 -209
  501. package/jsx/core/Popover/Popover.stories.jsx.map +0 -1
  502. package/jsx/core/Progress/Progress.mocks.d.ts +0 -2
  503. package/jsx/core/Progress/Progress.mocks.d.ts.map +0 -1
  504. package/jsx/core/Progress/Progress.mocks.js +0 -2
  505. package/jsx/core/Progress/Progress.mocks.js.map +0 -1
  506. package/jsx/core/Progress/Progress.stories.d.ts +0 -16
  507. package/jsx/core/Progress/Progress.stories.d.ts.map +0 -1
  508. package/jsx/core/Progress/Progress.stories.jsx +0 -124
  509. package/jsx/core/Progress/Progress.stories.jsx.map +0 -1
  510. package/jsx/core/Progress/Progress.styles.d.ts +0 -2
  511. package/jsx/core/Progress/Progress.styles.d.ts.map +0 -1
  512. package/jsx/core/Progress/Progress.styles.js +0 -14
  513. package/jsx/core/Progress/Progress.styles.js.map +0 -1
  514. package/jsx/core/QRCode/QRCode.stories.d.ts +0 -9
  515. package/jsx/core/QRCode/QRCode.stories.d.ts.map +0 -1
  516. package/jsx/core/QRCode/QRCode.stories.jsx +0 -17
  517. package/jsx/core/QRCode/QRCode.stories.jsx.map +0 -1
  518. package/jsx/core/RadioButton/RadioButton.stories.d.ts +0 -23
  519. package/jsx/core/RadioButton/RadioButton.stories.d.ts.map +0 -1
  520. package/jsx/core/RadioButton/RadioButton.stories.jsx +0 -99
  521. package/jsx/core/RadioButton/RadioButton.stories.jsx.map +0 -1
  522. package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts +0 -14
  523. package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts.map +0 -1
  524. package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.jsx +0 -105
  525. package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.jsx.map +0 -1
  526. package/jsx/core/RadioButtonGroup/RadioButtonGroup.styles.d.ts +0 -4
  527. package/jsx/core/RadioButtonGroup/RadioButtonGroup.styles.d.ts.map +0 -1
  528. package/jsx/core/RadioButtonGroup/RadioButtonGroup.styles.js +0 -9
  529. package/jsx/core/RadioButtonGroup/RadioButtonGroup.styles.js.map +0 -1
  530. package/jsx/core/Rating/Rating.stories.d.ts +0 -13
  531. package/jsx/core/Rating/Rating.stories.d.ts.map +0 -1
  532. package/jsx/core/Rating/Rating.stories.jsx +0 -39
  533. package/jsx/core/Rating/Rating.stories.jsx.map +0 -1
  534. package/jsx/core/SearchInput/SearchInput.mocks.d.ts +0 -12
  535. package/jsx/core/SearchInput/SearchInput.mocks.d.ts.map +0 -1
  536. package/jsx/core/SearchInput/SearchInput.mocks.js +0 -25
  537. package/jsx/core/SearchInput/SearchInput.mocks.js.map +0 -1
  538. package/jsx/core/SearchInput/SearchInput.stories.d.ts +0 -8
  539. package/jsx/core/SearchInput/SearchInput.stories.d.ts.map +0 -1
  540. package/jsx/core/SearchInput/SearchInput.stories.jsx +0 -63
  541. package/jsx/core/SearchInput/SearchInput.stories.jsx.map +0 -1
  542. package/jsx/core/Select/Select.stories.d.ts +0 -18
  543. package/jsx/core/Select/Select.stories.d.ts.map +0 -1
  544. package/jsx/core/Select/Select.stories.jsx +0 -83
  545. package/jsx/core/Select/Select.stories.jsx.map +0 -1
  546. package/jsx/core/Sentiment/Sentiment.stories.d.ts +0 -20
  547. package/jsx/core/Sentiment/Sentiment.stories.d.ts.map +0 -1
  548. package/jsx/core/Sentiment/Sentiment.stories.jsx +0 -71
  549. package/jsx/core/Sentiment/Sentiment.stories.jsx.map +0 -1
  550. package/jsx/core/SkipLinks/SkipLinks.stories.d.ts +0 -6
  551. package/jsx/core/SkipLinks/SkipLinks.stories.d.ts.map +0 -1
  552. package/jsx/core/SkipLinks/SkipLinks.stories.jsx +0 -29
  553. package/jsx/core/SkipLinks/SkipLinks.stories.jsx.map +0 -1
  554. package/jsx/core/SkipLinks/SkipLinks.styles.d.ts +0 -2
  555. package/jsx/core/SkipLinks/SkipLinks.styles.d.ts.map +0 -1
  556. package/jsx/core/SkipLinks/SkipLinks.styles.js +0 -16
  557. package/jsx/core/SkipLinks/SkipLinks.styles.js.map +0 -1
  558. package/jsx/core/Slider/Slider.stories.d.ts +0 -13
  559. package/jsx/core/Slider/Slider.stories.d.ts.map +0 -1
  560. package/jsx/core/Slider/Slider.stories.jsx +0 -78
  561. package/jsx/core/Slider/Slider.stories.jsx.map +0 -1
  562. package/jsx/core/SummaryItem/SummaryItem.stories.d.ts +0 -11
  563. package/jsx/core/SummaryItem/SummaryItem.stories.d.ts.map +0 -1
  564. package/jsx/core/SummaryItem/SummaryItem.stories.jsx +0 -38
  565. package/jsx/core/SummaryItem/SummaryItem.stories.jsx.map +0 -1
  566. package/jsx/core/SummaryList/SummaryList.mocks.d.ts +0 -20
  567. package/jsx/core/SummaryList/SummaryList.mocks.d.ts.map +0 -1
  568. package/jsx/core/SummaryList/SummaryList.mocks.jsx +0 -48
  569. package/jsx/core/SummaryList/SummaryList.mocks.jsx.map +0 -1
  570. package/jsx/core/SummaryList/SummaryList.stories.d.ts +0 -13
  571. package/jsx/core/SummaryList/SummaryList.stories.d.ts.map +0 -1
  572. package/jsx/core/SummaryList/SummaryList.stories.jsx +0 -131
  573. package/jsx/core/SummaryList/SummaryList.stories.jsx.map +0 -1
  574. package/jsx/core/SummaryList/mockUsers.d.ts +0 -16
  575. package/jsx/core/SummaryList/mockUsers.d.ts.map +0 -1
  576. package/jsx/core/SummaryList/mockUsers.js +0 -904
  577. package/jsx/core/SummaryList/mockUsers.js.map +0 -1
  578. package/jsx/core/Switch/Switch.stories.d.ts +0 -14
  579. package/jsx/core/Switch/Switch.stories.d.ts.map +0 -1
  580. package/jsx/core/Switch/Switch.stories.jsx +0 -60
  581. package/jsx/core/Switch/Switch.stories.jsx.map +0 -1
  582. package/jsx/core/Switch/Switch.styles.d.ts +0 -2
  583. package/jsx/core/Switch/Switch.styles.d.ts.map +0 -1
  584. package/jsx/core/Switch/Switch.styles.js +0 -13
  585. package/jsx/core/Switch/Switch.styles.js.map +0 -1
  586. package/jsx/core/Table/Table.mocks.d.ts +0 -25
  587. package/jsx/core/Table/Table.mocks.d.ts.map +0 -1
  588. package/jsx/core/Table/Table.mocks.jsx +0 -166
  589. package/jsx/core/Table/Table.mocks.jsx.map +0 -1
  590. package/jsx/core/Table/Table.stories.d.ts +0 -39
  591. package/jsx/core/Table/Table.stories.d.ts.map +0 -1
  592. package/jsx/core/Table/Table.stories.jsx +0 -178
  593. package/jsx/core/Table/Table.stories.jsx.map +0 -1
  594. package/jsx/core/Table/Table.styles.d.ts +0 -4
  595. package/jsx/core/Table/Table.styles.d.ts.map +0 -1
  596. package/jsx/core/Table/Table.styles.js +0 -9
  597. package/jsx/core/Table/Table.styles.js.map +0 -1
  598. package/jsx/core/Tabs/Tabs.mocks.d.ts +0 -6
  599. package/jsx/core/Tabs/Tabs.mocks.d.ts.map +0 -1
  600. package/jsx/core/Tabs/Tabs.mocks.jsx +0 -29
  601. package/jsx/core/Tabs/Tabs.mocks.jsx.map +0 -1
  602. package/jsx/core/Tabs/Tabs.stories.d.ts +0 -9
  603. package/jsx/core/Tabs/Tabs.stories.d.ts.map +0 -1
  604. package/jsx/core/Tabs/Tabs.stories.jsx +0 -51
  605. package/jsx/core/Tabs/Tabs.stories.jsx.map +0 -1
  606. package/jsx/core/Text/Text.stories.d.ts +0 -25
  607. package/jsx/core/Text/Text.stories.d.ts.map +0 -1
  608. package/jsx/core/Text/Text.stories.jsx +0 -134
  609. package/jsx/core/Text/Text.stories.jsx.map +0 -1
  610. package/jsx/core/TextArea/TextArea.stories.d.ts +0 -14
  611. package/jsx/core/TextArea/TextArea.stories.d.ts.map +0 -1
  612. package/jsx/core/TextArea/TextArea.stories.jsx +0 -71
  613. package/jsx/core/TextArea/TextArea.stories.jsx.map +0 -1
  614. package/jsx/core/Toaster/Toaster.stories.d.ts +0 -6
  615. package/jsx/core/Toaster/Toaster.stories.d.ts.map +0 -1
  616. package/jsx/core/Toaster/Toaster.stories.jsx +0 -45
  617. package/jsx/core/Toaster/Toaster.stories.jsx.map +0 -1
  618. package/jsx/core/Tooltip/Tooltip.stories.d.ts +0 -11
  619. package/jsx/core/Tooltip/Tooltip.stories.d.ts.map +0 -1
  620. package/jsx/core/Tooltip/Tooltip.stories.jsx +0 -66
  621. package/jsx/core/Tooltip/Tooltip.stories.jsx.map +0 -1
  622. package/jsx/core/Tooltip/Tooltip.styles.d.ts +0 -2
  623. package/jsx/core/Tooltip/Tooltip.styles.d.ts.map +0 -1
  624. package/jsx/core/Tooltip/Tooltip.styles.js +0 -23
  625. package/jsx/core/Tooltip/Tooltip.styles.js.map +0 -1
  626. package/jsx/core/Tree/Tree.mocks.d.ts +0 -2
  627. package/jsx/core/Tree/Tree.mocks.d.ts.map +0 -1
  628. package/jsx/core/Tree/Tree.mocks.js +0 -20
  629. package/jsx/core/Tree/Tree.mocks.js.map +0 -1
  630. package/jsx/core/Tree/Tree.stories.d.ts +0 -7
  631. package/jsx/core/Tree/Tree.stories.d.ts.map +0 -1
  632. package/jsx/core/Tree/Tree.stories.jsx +0 -95
  633. package/jsx/core/Tree/Tree.stories.jsx.map +0 -1
  634. package/jsx/core/Tree/Tree.styles.d.ts +0 -3
  635. package/jsx/core/Tree/Tree.styles.d.ts.map +0 -1
  636. package/jsx/core/Tree/Tree.styles.js +0 -10
  637. package/jsx/core/Tree/Tree.styles.js.map +0 -1
  638. package/jsx/core/URL/URL.stories.d.ts +0 -6
  639. package/jsx/core/URL/URL.stories.d.ts.map +0 -1
  640. package/jsx/core/URL/URL.stories.jsx +0 -17
  641. package/jsx/core/URL/URL.stories.jsx.map +0 -1
  642. package/jsx/dnd/DragDropList/DragDropList.mocks.d.ts +0 -15
  643. package/jsx/dnd/DragDropList/DragDropList.mocks.d.ts.map +0 -1
  644. package/jsx/dnd/DragDropList/DragDropList.mocks.jsx +0 -33
  645. package/jsx/dnd/DragDropList/DragDropList.mocks.jsx.map +0 -1
  646. package/jsx/dnd/DragDropList/DragDropList.stories.d.ts +0 -10
  647. package/jsx/dnd/DragDropList/DragDropList.stories.d.ts.map +0 -1
  648. package/jsx/dnd/DragDropList/DragDropList.stories.jsx +0 -55
  649. package/jsx/dnd/DragDropList/DragDropList.stories.jsx.map +0 -1
  650. package/jsx/dnd/DragDropList/DragDropList.styles.d.ts +0 -6
  651. package/jsx/dnd/DragDropList/DragDropList.styles.d.ts.map +0 -1
  652. package/jsx/dnd/DragDropList/DragDropList.styles.js +0 -32
  653. package/jsx/dnd/DragDropList/DragDropList.styles.js.map +0 -1
  654. package/jsx/dnd/StandardDragDropList/Demo.d.ts +0 -13
  655. package/jsx/dnd/StandardDragDropList/Demo.d.ts.map +0 -1
  656. package/jsx/dnd/StandardDragDropList/Demo.jsx +0 -168
  657. package/jsx/dnd/StandardDragDropList/Demo.jsx.map +0 -1
  658. package/jsx/dnd/StandardDragDropList/GroupConfig.d.ts +0 -10
  659. package/jsx/dnd/StandardDragDropList/GroupConfig.d.ts.map +0 -1
  660. package/jsx/dnd/StandardDragDropList/GroupConfig.jsx +0 -26
  661. package/jsx/dnd/StandardDragDropList/GroupConfig.jsx.map +0 -1
  662. package/jsx/dnd/StandardDragDropList/ItemConfig.d.ts +0 -12
  663. package/jsx/dnd/StandardDragDropList/ItemConfig.d.ts.map +0 -1
  664. package/jsx/dnd/StandardDragDropList/ItemConfig.jsx +0 -21
  665. package/jsx/dnd/StandardDragDropList/ItemConfig.jsx.map +0 -1
  666. package/jsx/dnd/StandardDragDropList/Popover.d.ts +0 -14
  667. package/jsx/dnd/StandardDragDropList/Popover.d.ts.map +0 -1
  668. package/jsx/dnd/StandardDragDropList/Popover.jsx +0 -51
  669. package/jsx/dnd/StandardDragDropList/Popover.jsx.map +0 -1
  670. package/jsx/dnd/StandardDragDropList/SelectionMenu.d.ts +0 -17
  671. package/jsx/dnd/StandardDragDropList/SelectionMenu.d.ts.map +0 -1
  672. package/jsx/dnd/StandardDragDropList/SelectionMenu.jsx +0 -104
  673. package/jsx/dnd/StandardDragDropList/SelectionMenu.jsx.map +0 -1
  674. package/jsx/dnd/StandardDragDropList/StandardDragDropList.stories.d.ts +0 -9
  675. package/jsx/dnd/StandardDragDropList/StandardDragDropList.stories.d.ts.map +0 -1
  676. package/jsx/dnd/StandardDragDropList/StandardDragDropList.stories.jsx +0 -31
  677. package/jsx/dnd/StandardDragDropList/StandardDragDropList.stories.jsx.map +0 -1
  678. package/jsx/dnd/StandardDragDropList/mockData.d.ts +0 -25
  679. package/jsx/dnd/StandardDragDropList/mockData.d.ts.map +0 -1
  680. package/jsx/dnd/StandardDragDropList/mockData.js +0 -67
  681. package/jsx/dnd/StandardDragDropList/mockData.js.map +0 -1
  682. package/jsx/rte/DynamicContentEditor/DynamicContentEditor.stories.d.ts +0 -8
  683. package/jsx/rte/DynamicContentEditor/DynamicContentEditor.stories.d.ts.map +0 -1
  684. package/jsx/rte/DynamicContentEditor/DynamicContentEditor.stories.jsx +0 -103
  685. package/jsx/rte/DynamicContentEditor/DynamicContentEditor.stories.jsx.map +0 -1
  686. package/jsx/rte/DynamicContentEditor/FieldSelector.d.ts +0 -11
  687. package/jsx/rte/DynamicContentEditor/FieldSelector.d.ts.map +0 -1
  688. package/jsx/rte/DynamicContentEditor/FieldSelector.jsx +0 -82
  689. package/jsx/rte/DynamicContentEditor/FieldSelector.jsx.map +0 -1
  690. package/jsx/rte/Editor/Editor.mocks.d.ts +0 -334
  691. package/jsx/rte/Editor/Editor.mocks.d.ts.map +0 -1
  692. package/jsx/rte/Editor/Editor.mocks.jsx +0 -46
  693. package/jsx/rte/Editor/Editor.mocks.jsx.map +0 -1
  694. package/jsx/rte/Editor/Editor.stories.d.ts +0 -15
  695. package/jsx/rte/Editor/Editor.stories.d.ts.map +0 -1
  696. package/jsx/rte/Editor/Editor.stories.jsx +0 -197
  697. package/jsx/rte/Editor/Editor.stories.jsx.map +0 -1
  698. package/jsx/rte/RichTextEditor/RichTextEditor.mocks.d.ts +0 -3
  699. package/jsx/rte/RichTextEditor/RichTextEditor.mocks.d.ts.map +0 -1
  700. package/jsx/rte/RichTextEditor/RichTextEditor.mocks.jsx +0 -34
  701. package/jsx/rte/RichTextEditor/RichTextEditor.mocks.jsx.map +0 -1
  702. package/jsx/rte/RichTextEditor/RichTextEditor.stories.d.ts +0 -7
  703. package/jsx/rte/RichTextEditor/RichTextEditor.stories.d.ts.map +0 -1
  704. package/jsx/rte/RichTextEditor/RichTextEditor.stories.jsx +0 -108
  705. package/jsx/rte/RichTextEditor/RichTextEditor.stories.jsx.map +0 -1
  706. package/jsx/rte/RichTextEditor/RichTextViewer.stories.d.ts +0 -13
  707. package/jsx/rte/RichTextEditor/RichTextViewer.stories.d.ts.map +0 -1
  708. package/jsx/rte/RichTextEditor/RichTextViewer.stories.jsx +0 -155
  709. package/jsx/rte/RichTextEditor/RichTextViewer.stories.jsx.map +0 -1
  710. package/jsx/social/Chat/Chat.mocks.d.ts +0 -51
  711. package/jsx/social/Chat/Chat.mocks.d.ts.map +0 -1
  712. package/jsx/social/Chat/Chat.mocks.js +0 -756
  713. package/jsx/social/Chat/Chat.mocks.js.map +0 -1
  714. package/jsx/social/Chat/Chat.stories.d.ts +0 -57
  715. package/jsx/social/Chat/Chat.stories.d.ts.map +0 -1
  716. package/jsx/social/Chat/Chat.stories.jsx +0 -767
  717. package/jsx/social/Chat/Chat.stories.jsx.map +0 -1
  718. package/jsx/social/Email/Email.mocks.d.ts +0 -353
  719. package/jsx/social/Email/Email.mocks.d.ts.map +0 -1
  720. package/jsx/social/Email/Email.mocks.jsx +0 -1226
  721. package/jsx/social/Email/Email.mocks.jsx.map +0 -1
  722. package/jsx/social/Email/Email.stories.d.ts +0 -83
  723. package/jsx/social/Email/Email.stories.d.ts.map +0 -1
  724. package/jsx/social/Email/Email.stories.jsx +0 -1268
  725. package/jsx/social/Email/Email.stories.jsx.map +0 -1
  726. package/jsx/social/Email/Email.styles.d.ts +0 -3
  727. package/jsx/social/Email/Email.styles.d.ts.map +0 -1
  728. package/jsx/social/Email/Email.styles.js +0 -11
  729. package/jsx/social/Email/Email.styles.js.map +0 -1
  730. package/jsx/social/Feed/Feed.mocks.d.ts +0 -55
  731. package/jsx/social/Feed/Feed.mocks.d.ts.map +0 -1
  732. package/jsx/social/Feed/Feed.mocks.jsx +0 -433
  733. package/jsx/social/Feed/Feed.mocks.jsx.map +0 -1
  734. package/jsx/social/Feed/Feed.stories.d.ts +0 -11
  735. package/jsx/social/Feed/Feed.stories.d.ts.map +0 -1
  736. package/jsx/social/Feed/Feed.stories.jsx +0 -223
  737. package/jsx/social/Feed/Feed.stories.jsx.map +0 -1
  738. package/jsx/social/Feed/FeedNewPost.mocks.d.ts +0 -8
  739. package/jsx/social/Feed/FeedNewPost.mocks.d.ts.map +0 -1
  740. package/jsx/social/Feed/FeedNewPost.mocks.jsx +0 -72
  741. package/jsx/social/Feed/FeedNewPost.mocks.jsx.map +0 -1
  742. package/jsx/social/Feed/FeedPost.mocks.d.ts +0 -4
  743. package/jsx/social/Feed/FeedPost.mocks.d.ts.map +0 -1
  744. package/jsx/social/Feed/FeedPost.mocks.jsx +0 -192
  745. package/jsx/social/Feed/FeedPost.mocks.jsx.map +0 -1
  746. package/jsx/social/Feed/FeedReply.mocks.d.ts +0 -13
  747. package/jsx/social/Feed/FeedReply.mocks.d.ts.map +0 -1
  748. package/jsx/social/Feed/FeedReply.mocks.jsx +0 -83
  749. package/jsx/social/Feed/FeedReply.mocks.jsx.map +0 -1
  750. package/jsx/work/AppAnnouncement/AppAnnouncement.stories.d.ts +0 -6
  751. package/jsx/work/AppAnnouncement/AppAnnouncement.stories.d.ts.map +0 -1
  752. package/jsx/work/AppAnnouncement/AppAnnouncement.stories.jsx +0 -30
  753. package/jsx/work/AppAnnouncement/AppAnnouncement.stories.jsx.map +0 -1
  754. package/jsx/work/Article/Article.mocks.d.ts +0 -18
  755. package/jsx/work/Article/Article.mocks.d.ts.map +0 -1
  756. package/jsx/work/Article/Article.mocks.js +0 -18
  757. package/jsx/work/Article/Article.mocks.js.map +0 -1
  758. package/jsx/work/Article/Article.stories.d.ts +0 -18
  759. package/jsx/work/Article/Article.stories.d.ts.map +0 -1
  760. package/jsx/work/Article/Article.stories.jsx +0 -272
  761. package/jsx/work/Article/Article.stories.jsx.map +0 -1
  762. package/jsx/work/ArticleList/ArticleBuddy.stories.d.ts +0 -12
  763. package/jsx/work/ArticleList/ArticleBuddy.stories.d.ts.map +0 -1
  764. package/jsx/work/ArticleList/ArticleBuddy.stories.jsx +0 -143
  765. package/jsx/work/ArticleList/ArticleBuddy.stories.jsx.map +0 -1
  766. package/jsx/work/ArticleList/ArticleList.mocks.d.ts +0 -223
  767. package/jsx/work/ArticleList/ArticleList.mocks.d.ts.map +0 -1
  768. package/jsx/work/ArticleList/ArticleList.mocks.js +0 -652
  769. package/jsx/work/ArticleList/ArticleList.mocks.js.map +0 -1
  770. package/jsx/work/ArticleList/ArticleList.stories.d.ts +0 -18
  771. package/jsx/work/ArticleList/ArticleList.stories.d.ts.map +0 -1
  772. package/jsx/work/ArticleList/ArticleList.stories.jsx +0 -882
  773. package/jsx/work/ArticleList/ArticleList.stories.jsx.map +0 -1
  774. package/jsx/work/Assignments/Assignments.stories.d.ts +0 -11
  775. package/jsx/work/Assignments/Assignments.stories.d.ts.map +0 -1
  776. package/jsx/work/Assignments/Assignments.stories.jsx +0 -64
  777. package/jsx/work/Assignments/Assignments.stories.jsx.map +0 -1
  778. package/jsx/work/CaseView/Attachments.mocks.d.ts +0 -3
  779. package/jsx/work/CaseView/Attachments.mocks.d.ts.map +0 -1
  780. package/jsx/work/CaseView/Attachments.mocks.jsx +0 -395
  781. package/jsx/work/CaseView/Attachments.mocks.jsx.map +0 -1
  782. package/jsx/work/CaseView/CaseView.mocks.d.ts +0 -121
  783. package/jsx/work/CaseView/CaseView.mocks.d.ts.map +0 -1
  784. package/jsx/work/CaseView/CaseView.mocks.jsx +0 -693
  785. package/jsx/work/CaseView/CaseView.mocks.jsx.map +0 -1
  786. package/jsx/work/CaseView/CaseView.stories.d.ts +0 -6
  787. package/jsx/work/CaseView/CaseView.stories.d.ts.map +0 -1
  788. package/jsx/work/CaseView/CaseView.stories.jsx +0 -65
  789. package/jsx/work/CaseView/CaseView.stories.jsx.map +0 -1
  790. package/jsx/work/CaseView/Details.mocks.d.ts +0 -3
  791. package/jsx/work/CaseView/Details.mocks.d.ts.map +0 -1
  792. package/jsx/work/CaseView/Details.mocks.jsx +0 -21
  793. package/jsx/work/CaseView/Details.mocks.jsx.map +0 -1
  794. package/jsx/work/CaseView/Pulse.mocks.d.ts +0 -7
  795. package/jsx/work/CaseView/Pulse.mocks.d.ts.map +0 -1
  796. package/jsx/work/CaseView/Pulse.mocks.jsx +0 -36
  797. package/jsx/work/CaseView/Pulse.mocks.jsx.map +0 -1
  798. package/jsx/work/ConfigurableLayout/ConfigurableLayout.mocks.d.ts +0 -45
  799. package/jsx/work/ConfigurableLayout/ConfigurableLayout.mocks.d.ts.map +0 -1
  800. package/jsx/work/ConfigurableLayout/ConfigurableLayout.mocks.jsx +0 -166
  801. package/jsx/work/ConfigurableLayout/ConfigurableLayout.mocks.jsx.map +0 -1
  802. package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts +0 -5
  803. package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts.map +0 -1
  804. package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.jsx +0 -24
  805. package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.jsx.map +0 -1
  806. package/jsx/work/ConfigurableLayout/ConfigurableLayout.styles.d.ts +0 -4
  807. package/jsx/work/ConfigurableLayout/ConfigurableLayout.styles.d.ts.map +0 -1
  808. package/jsx/work/ConfigurableLayout/ConfigurableLayout.styles.js +0 -11
  809. package/jsx/work/ConfigurableLayout/ConfigurableLayout.styles.js.map +0 -1
  810. package/jsx/work/Confirmation/Confirmation.stories.d.ts +0 -13
  811. package/jsx/work/Confirmation/Confirmation.stories.d.ts.map +0 -1
  812. package/jsx/work/Confirmation/Confirmation.stories.jsx +0 -37
  813. package/jsx/work/Confirmation/Confirmation.stories.jsx.map +0 -1
  814. package/jsx/work/Confirmation/Confirmation.styles.d.ts +0 -2
  815. package/jsx/work/Confirmation/Confirmation.styles.d.ts.map +0 -1
  816. package/jsx/work/Confirmation/Confirmation.styles.js +0 -7
  817. package/jsx/work/Confirmation/Confirmation.styles.js.map +0 -1
  818. package/jsx/work/Details/Details.stories.d.ts +0 -10
  819. package/jsx/work/Details/Details.stories.d.ts.map +0 -1
  820. package/jsx/work/Details/Details.stories.jsx +0 -214
  821. package/jsx/work/Details/Details.stories.jsx.map +0 -1
  822. package/jsx/work/GenAICoach/GenAICoach.mocks.d.ts +0 -22
  823. package/jsx/work/GenAICoach/GenAICoach.mocks.d.ts.map +0 -1
  824. package/jsx/work/GenAICoach/GenAICoach.mocks.js +0 -124
  825. package/jsx/work/GenAICoach/GenAICoach.mocks.js.map +0 -1
  826. package/jsx/work/GenAICoach/GenAICoach.stories.d.ts +0 -19
  827. package/jsx/work/GenAICoach/GenAICoach.stories.d.ts.map +0 -1
  828. package/jsx/work/GenAICoach/GenAICoach.stories.jsx +0 -133
  829. package/jsx/work/GenAICoach/GenAICoach.stories.jsx.map +0 -1
  830. package/jsx/work/GenAICoach/useGenAICoach.d.ts +0 -5
  831. package/jsx/work/GenAICoach/useGenAICoach.d.ts.map +0 -1
  832. package/jsx/work/GenAICoach/useGenAICoach.js +0 -90
  833. package/jsx/work/GenAICoach/useGenAICoach.js.map +0 -1
  834. package/jsx/work/Glimpse/Glimpse.stories.d.ts +0 -5
  835. package/jsx/work/Glimpse/Glimpse.stories.d.ts.map +0 -1
  836. package/jsx/work/Glimpse/Glimpse.stories.jsx +0 -42
  837. package/jsx/work/Glimpse/Glimpse.stories.jsx.map +0 -1
  838. package/jsx/work/HierarchicalAssignments/HierarchicalAssignments.mock.d.ts +0 -24
  839. package/jsx/work/HierarchicalAssignments/HierarchicalAssignments.mock.d.ts.map +0 -1
  840. package/jsx/work/HierarchicalAssignments/HierarchicalAssignments.mock.jsx +0 -558
  841. package/jsx/work/HierarchicalAssignments/HierarchicalAssignments.mock.jsx.map +0 -1
  842. package/jsx/work/HierarchicalAssignments/HierarchicalAssignments.stories.d.ts +0 -13
  843. package/jsx/work/HierarchicalAssignments/HierarchicalAssignments.stories.d.ts.map +0 -1
  844. package/jsx/work/HierarchicalAssignments/HierarchicalAssignments.stories.jsx +0 -134
  845. package/jsx/work/HierarchicalAssignments/HierarchicalAssignments.stories.jsx.map +0 -1
  846. package/jsx/work/IntelligentGuidance/IntelligentGuidance.stories.d.ts +0 -5
  847. package/jsx/work/IntelligentGuidance/IntelligentGuidance.stories.d.ts.map +0 -1
  848. package/jsx/work/IntelligentGuidance/IntelligentGuidance.stories.jsx +0 -115
  849. package/jsx/work/IntelligentGuidance/IntelligentGuidance.stories.jsx.map +0 -1
  850. package/jsx/work/InteractionNotification/InteractionNotification.stories.d.ts +0 -12
  851. package/jsx/work/InteractionNotification/InteractionNotification.stories.d.ts.map +0 -1
  852. package/jsx/work/InteractionNotification/InteractionNotification.stories.jsx +0 -54
  853. package/jsx/work/InteractionNotification/InteractionNotification.stories.jsx.map +0 -1
  854. package/jsx/work/Predictions/Predictions.mocks.d.ts +0 -3
  855. package/jsx/work/Predictions/Predictions.mocks.d.ts.map +0 -1
  856. package/jsx/work/Predictions/Predictions.mocks.jsx +0 -18
  857. package/jsx/work/Predictions/Predictions.mocks.jsx.map +0 -1
  858. package/jsx/work/Predictions/Predictions.stories.d.ts +0 -5
  859. package/jsx/work/Predictions/Predictions.stories.d.ts.map +0 -1
  860. package/jsx/work/Predictions/Predictions.stories.jsx +0 -53
  861. package/jsx/work/Predictions/Predictions.stories.jsx.map +0 -1
  862. package/jsx/work/SearchResults/SearchResults.mocks.d.ts +0 -14
  863. package/jsx/work/SearchResults/SearchResults.mocks.d.ts.map +0 -1
  864. package/jsx/work/SearchResults/SearchResults.mocks.jsx +0 -97
  865. package/jsx/work/SearchResults/SearchResults.mocks.jsx.map +0 -1
  866. package/jsx/work/SearchResults/SearchResults.stories.d.ts +0 -9
  867. package/jsx/work/SearchResults/SearchResults.stories.d.ts.map +0 -1
  868. package/jsx/work/SearchResults/SearchResults.stories.jsx +0 -242
  869. package/jsx/work/SearchResults/SearchResults.stories.jsx.map +0 -1
  870. package/jsx/work/SearchResults/SearchResults.styles.d.ts +0 -5
  871. package/jsx/work/SearchResults/SearchResults.styles.d.ts.map +0 -1
  872. package/jsx/work/SearchResults/SearchResults.styles.js +0 -12
  873. package/jsx/work/SearchResults/SearchResults.styles.js.map +0 -1
  874. package/jsx/work/Stages/Stages.mocks.d.ts +0 -14
  875. package/jsx/work/Stages/Stages.mocks.d.ts.map +0 -1
  876. package/jsx/work/Stages/Stages.mocks.jsx +0 -40
  877. package/jsx/work/Stages/Stages.mocks.jsx.map +0 -1
  878. package/jsx/work/Stages/Stages.stories.d.ts +0 -11
  879. package/jsx/work/Stages/Stages.stories.d.ts.map +0 -1
  880. package/jsx/work/Stages/Stages.stories.jsx +0 -48
  881. package/jsx/work/Stages/Stages.stories.jsx.map +0 -1
  882. package/jsx/work/Stakeholders/Stakeholders.mocks.d.ts +0 -17
  883. package/jsx/work/Stakeholders/Stakeholders.mocks.d.ts.map +0 -1
  884. package/jsx/work/Stakeholders/Stakeholders.mocks.jsx +0 -36
  885. package/jsx/work/Stakeholders/Stakeholders.mocks.jsx.map +0 -1
  886. package/jsx/work/Stakeholders/Stakeholders.stories.d.ts +0 -8
  887. package/jsx/work/Stakeholders/Stakeholders.stories.d.ts.map +0 -1
  888. package/jsx/work/Stakeholders/Stakeholders.stories.jsx +0 -99
  889. package/jsx/work/Stakeholders/Stakeholders.stories.jsx.map +0 -1
  890. package/jsx/work/Tags/Tags.mocks.d.ts +0 -3
  891. package/jsx/work/Tags/Tags.mocks.d.ts.map +0 -1
  892. package/jsx/work/Tags/Tags.mocks.js +0 -76
  893. package/jsx/work/Tags/Tags.mocks.js.map +0 -1
  894. package/jsx/work/Tags/Tags.stories.d.ts +0 -10
  895. package/jsx/work/Tags/Tags.stories.d.ts.map +0 -1
  896. package/jsx/work/Tags/Tags.stories.jsx +0 -66
  897. package/jsx/work/Tags/Tags.stories.jsx.map +0 -1
  898. package/jsx/work/Tasks/TaskList.stories.d.ts +0 -5
  899. package/jsx/work/Tasks/TaskList.stories.d.ts.map +0 -1
  900. package/jsx/work/Tasks/TaskList.stories.jsx +0 -19
  901. package/jsx/work/Tasks/TaskList.stories.jsx.map +0 -1
  902. package/jsx/work/Tasks/Tasks.mocks.d.ts +0 -22
  903. package/jsx/work/Tasks/Tasks.mocks.d.ts.map +0 -1
  904. package/jsx/work/Tasks/Tasks.mocks.js +0 -51
  905. package/jsx/work/Tasks/Tasks.mocks.js.map +0 -1
  906. package/jsx/work/Tasks/Tasks.stories.d.ts +0 -15
  907. package/jsx/work/Tasks/Tasks.stories.d.ts.map +0 -1
  908. package/jsx/work/Tasks/Tasks.stories.jsx +0 -88
  909. package/jsx/work/Tasks/Tasks.stories.jsx.map +0 -1
  910. package/jsx/work/Timeline/Timeline.mocks.d.ts +0 -3
  911. package/jsx/work/Timeline/Timeline.mocks.d.ts.map +0 -1
  912. package/jsx/work/Timeline/Timeline.mocks.jsx +0 -151
  913. package/jsx/work/Timeline/Timeline.mocks.jsx.map +0 -1
  914. package/jsx/work/Timeline/Timeline.stories.d.ts +0 -11
  915. package/jsx/work/Timeline/Timeline.stories.d.ts.map +0 -1
  916. package/jsx/work/Timeline/Timeline.stories.jsx +0 -85
  917. package/jsx/work/Timeline/Timeline.stories.jsx.map +0 -1
  918. package/jsx/work/UtilitiesLayout/UtilitiesLayout.stories.d.ts +0 -12
  919. package/jsx/work/UtilitiesLayout/UtilitiesLayout.stories.d.ts.map +0 -1
  920. package/jsx/work/UtilitiesLayout/UtilitiesLayout.stories.jsx +0 -29
  921. package/jsx/work/UtilitiesLayout/UtilitiesLayout.stories.jsx.map +0 -1
  922. package/jsx/wss/AppShell/AppShell.mocks.d.ts +0 -24
  923. package/jsx/wss/AppShell/AppShell.mocks.d.ts.map +0 -1
  924. package/jsx/wss/AppShell/AppShell.mocks.jsx +0 -64
  925. package/jsx/wss/AppShell/AppShell.mocks.jsx.map +0 -1
  926. package/jsx/wss/AppShell/AppShell.stories.d.ts +0 -19
  927. package/jsx/wss/AppShell/AppShell.stories.d.ts.map +0 -1
  928. package/jsx/wss/AppShell/AppShell.stories.jsx +0 -96
  929. package/jsx/wss/AppShell/AppShell.stories.jsx.map +0 -1
  930. package/jsx/wss/AppShell/AppShell.styles.d.ts +0 -2
  931. package/jsx/wss/AppShell/AppShell.styles.d.ts.map +0 -1
  932. package/jsx/wss/AppShell/AppShell.styles.js +0 -5
  933. package/jsx/wss/AppShell/AppShell.styles.js.map +0 -1
  934. package/jsx/wss/CaseView/CaseView.mocks.d.ts +0 -13
  935. package/jsx/wss/CaseView/CaseView.mocks.d.ts.map +0 -1
  936. package/jsx/wss/CaseView/CaseView.mocks.jsx +0 -34
  937. package/jsx/wss/CaseView/CaseView.mocks.jsx.map +0 -1
  938. package/jsx/wss/CaseView/CaseView.stories.d.ts +0 -12
  939. package/jsx/wss/CaseView/CaseView.stories.d.ts.map +0 -1
  940. package/jsx/wss/CaseView/CaseView.stories.jsx +0 -74
  941. package/jsx/wss/CaseView/CaseView.stories.jsx.map +0 -1
  942. package/jsx/wss/PageTemplates/PageTemplates.stories.d.ts +0 -16
  943. package/jsx/wss/PageTemplates/PageTemplates.stories.d.ts.map +0 -1
  944. package/jsx/wss/PageTemplates/PageTemplates.stories.jsx +0 -47
  945. package/jsx/wss/PageTemplates/PageTemplates.stories.jsx.map +0 -1
  946. package/jsx/wss/QuickCreate/QuickCreate.stories.d.ts +0 -11
  947. package/jsx/wss/QuickCreate/QuickCreate.stories.d.ts.map +0 -1
  948. package/jsx/wss/QuickCreate/QuickCreate.stories.jsx +0 -28
  949. package/jsx/wss/QuickCreate/QuickCreate.stories.jsx.map +0 -1
@@ -1,104 +0,0 @@
1
- import { useCallback, useState } from 'react';
2
- import styled, { css } from 'styled-components';
3
- import { defaultThemeProp, Flex, Menu, menuHelpers, useElement, useI18n } from '@pega/cosmos-react-core';
4
- import MultiSelectInput from '@pega/cosmos-react-core/lib/components/ComboBox/MultiSelectInput/MultiSelectInput';
5
- import { mockQuery } from './mockData';
6
- import Popover from './Popover';
7
- const StyledSelectionMenu = styled(Menu)(({ theme }) => {
8
- return css `
9
- margin-inline: calc(-2 * ${theme.base.spacing});
10
- `;
11
- });
12
- StyledSelectionMenu.defaultProps = defaultThemeProp;
13
- const rootMenuItems = [
14
- { id: 'fields', primary: 'Fields', items: [] },
15
- { id: 'views', primary: 'Views', items: [] }
16
- ];
17
- const SelectionMenu = ({ target, constraint, onCancel: onClose, onSubmit }) => {
18
- const t = useI18n();
19
- const [loading, setLoading] = useState(false);
20
- const [filterValue, setFilterValue] = useState('');
21
- const [inputEl, setInputEl] = useElement(null);
22
- const [menuItems, setMenuItems] = useState(() => {
23
- if (constraint?.types) {
24
- const constrainedTypes = [];
25
- if (constraint.types.includes('Field')) {
26
- constrainedTypes.push(rootMenuItems[0]);
27
- }
28
- if (constraint.types.includes('View')) {
29
- constrainedTypes.push(rootMenuItems[1]);
30
- }
31
- return constrainedTypes;
32
- }
33
- return rootMenuItems;
34
- });
35
- const [selected, setSelected] = useState(() => []);
36
- const onItemExpand = useCallback(async (id) => {
37
- const expandedItem = menuHelpers.getItem(menuItems, id);
38
- if (!expandedItem || (expandedItem.items && expandedItem.items.length > 0)) {
39
- return;
40
- }
41
- setLoading(true);
42
- const subItems = await mockQuery({
43
- type: id === 'fields' ? 'Field' : 'View',
44
- delay: 1000
45
- });
46
- const newMenuItems = menuHelpers.mapItem(menuItems, id, item => {
47
- return {
48
- ...item,
49
- items: subItems.map(subItem => ({
50
- id: subItem.id,
51
- primary: subItem.label,
52
- selected: !!selected.find(s => s.id === subItem.id)
53
- }))
54
- };
55
- });
56
- setMenuItems(newMenuItems);
57
- setLoading(false);
58
- }, [menuItems, selected]);
59
- const onFilter = useCallback(async (e) => {
60
- const val = e.currentTarget.value;
61
- setFilterValue(val);
62
- if (val) {
63
- setLoading(true);
64
- setMenuItems([]);
65
- const matchedItems = await mockQuery({
66
- filter: val,
67
- delay: 1000
68
- });
69
- setMenuItems(matchedItems.map(matchedItem => {
70
- return {
71
- id: matchedItem.id,
72
- primary: matchedItem.label,
73
- secondary: [matchedItem.subType ?? matchedItem.type],
74
- selected: !!selected.find(s => s.id === matchedItem.id)
75
- };
76
- }));
77
- setLoading(false);
78
- return;
79
- }
80
- setMenuItems(rootMenuItems);
81
- }, []);
82
- const onItemClick = useCallback((id) => {
83
- setSelected(cur => {
84
- if (cur.find(s => s.id === id)) {
85
- return cur.filter(sel => sel.id !== id);
86
- }
87
- return [
88
- ...cur,
89
- { id, text: menuHelpers.getItem(menuItems, id).primary }
90
- ];
91
- });
92
- setMenuItems(cur => menuHelpers.toggleSelected(cur, id));
93
- }, [menuItems]);
94
- return (<Popover target={target} heading='Content selection' onCancel={onClose} onSubmit={() => {
95
- onSubmit(selected);
96
- }}>
97
- <Flex container={{ direction: 'column', gap: 2, pad: [1, 0] }}>
98
- <MultiSelectInput ref={setInputEl} placeholder={t('search_placeholder_default')} value={filterValue} selected={selected} onChange={onFilter} onRemove={onItemClick}/>
99
- <StyledSelectionMenu focusControlEl={inputEl ?? undefined} mode='multi-select' items={menuItems} scrollAt={10} loading={loading} onItemClick={onItemClick} onItemExpand={onItemExpand}/>
100
- </Flex>
101
- </Popover>);
102
- };
103
- export default SelectionMenu;
104
- //# sourceMappingURL=SelectionMenu.jsx.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SelectionMenu.jsx","sourceRoot":"","sources":["../../../src/dnd/StandardDragDropList/SelectionMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE9C,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EACL,gBAAgB,EAChB,IAAI,EACJ,IAAI,EACJ,WAAW,EACX,UAAU,EACV,OAAO,EACR,MAAM,yBAAyB,CAAC;AAEjC,OAAO,gBAAgB,MAAM,mFAAmF,CAAC;AAIjH,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAEvC,OAAO,OAAO,MAAM,WAAW,CAAC;AAYhC,MAAM,mBAAmB,GAAgB,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE;IAClE,OAAO,GAAG,CAAA;+BACmB,KAAK,CAAC,IAAI,CAAC,OAAO;GAC9C,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,mBAAmB,CAAC,YAAY,GAAG,gBAAgB,CAAC;AAEpD,MAAM,aAAa,GAAoB;IACrC,EAAE,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,QA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9E,CAAC,EACD,CAAC,SAAS,CAAC,CACZ,CAAC;IAEF,OAAO,CACL,CAAC,OAAO,CACN,MAAM,CAAC,CAAC,MAAM,CAAC,CACf,OAAO,CAAC,mBAAmB,CAC3B,QAAQ,CAAC,CAAC,OAAO,CAAC,CAClB,QAAQ,CAAC,CAAC,GAAG,EAAE;YACb,QAAQ,CAAC,QAAQ,CAAC,CAAC;QACrB,CAAC,CAAC,CAEF;MAAA,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAC5D;QAAA,CAAC,gBAAgB,CACf,GAAG,CAAC,CAAC,UAAU,CAAC,CAChB,WAAW,CAAC,CAAC,CAAC,CAAC,4BAA4B,CAAC,CAAC,CAC7C,KAAK,CAAC,CAAC,WAAW,CAAC,CACnB,QAAQ,CAAC,CAAC,QAAQ,CAAC,CACnB,QAAQ,CAAC,CAAC,QAAQ,CAAC,CACnB,QAAQ,CAAC,CAAC,WAAW,CAAC,EAExB;QAAA,CAAC,mBAAmB,CAClB,cAAc,CAAC,CAAC,OAAO,IAAI,SAAS,CAAC,CACrC,IAAI,CAAC,cAAc,CACnB,KAAK,CAAC,CAAC,SAAS,CAAC,CACjB,QAAQ,CAAC,CAAC,EAAE,CAAC,CACb,OAAO,CAAC,CAAC,OAAO,CAAC,CACjB,WAAW,CAAC,CAAC,WAAW,CAAC,CACzB,YAAY,CAAC,CAAC,YAAY,CAAC,EAE/B;MAAA,EAAE,IAAI,CACR;IAAA,EAAE,OAAO,CAAC,CACX,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC","sourcesContent":["import { useCallback, useState } from 'react';\nimport type { ChangeEvent } from 'react';\nimport styled, { css } from 'styled-components';\n\nimport {\n defaultThemeProp,\n Flex,\n Menu,\n menuHelpers,\n useElement,\n useI18n\n} from '@pega/cosmos-react-core';\nimport type { MenuItemProps, PopoverProps } from '@pega/cosmos-react-core';\nimport MultiSelectInput from '@pega/cosmos-react-core/lib/components/ComboBox/MultiSelectInput/MultiSelectInput';\nimport type { MultiSelectInputProps } from '@pega/cosmos-react-core/lib/components/ComboBox/MultiSelectInput/MultiSelectInput.types';\nimport type { FieldType } from '@pega/cosmos-react-build';\n\nimport { mockQuery } from './mockData';\nimport type { ContentType } from './mockData';\nimport Popover from './Popover';\n\nexport interface SelectionMenuProps {\n target: NonNullable<PopoverProps['target']>;\n constraint?: {\n types?: ContentType[];\n subTypes?: FieldType[];\n };\n onCancel: () => void;\n onSubmit: (selected: NonNullable<MultiSelectInputProps['selected']>) => void;\n}\n\nconst StyledSelectionMenu: typeof Menu = styled(Menu)(({ theme }) => {\n return css`\n margin-inline: calc(-2 * ${theme.base.spacing});\n `;\n});\n\nStyledSelectionMenu.defaultProps = defaultThemeProp;\n\nconst rootMenuItems: MenuItemProps[] = [\n { id: 'fields', primary: 'Fields', items: [] },\n { id: 'views', primary: 'Views', items: [] }\n];\n\nconst SelectionMenu = ({ target, constraint, onCancel: onClose, onSubmit }: SelectionMenuProps) => {\n const t = useI18n();\n const [loading, setLoading] = useState(false);\n const [filterValue, setFilterValue] = useState('');\n const [inputEl, setInputEl] = useElement<HTMLElement>(null);\n\n const [menuItems, setMenuItems] = useState<MenuItemProps[]>(() => {\n if (constraint?.types) {\n const constrainedTypes = [];\n if (constraint.types.includes('Field')) {\n constrainedTypes.push(rootMenuItems[0]);\n }\n if (constraint.types.includes('View')) {\n constrainedTypes.push(rootMenuItems[1]);\n }\n\n return constrainedTypes;\n }\n\n return rootMenuItems;\n });\n\n const [selected, setSelected] = useState<NonNullable<MultiSelectInputProps['selected']>>(\n () => []\n );\n\n const onItemExpand = useCallback(\n async (id: MenuItemProps['id']) => {\n const expandedItem = menuHelpers.getItem(menuItems, id);\n if (!expandedItem || (expandedItem.items && expandedItem.items.length > 0)) {\n return;\n }\n\n setLoading(true);\n\n const subItems = await mockQuery({\n type: id === 'fields' ? 'Field' : 'View',\n delay: 1000\n });\n\n const newMenuItems = menuHelpers.mapItem(menuItems, id, item => {\n return {\n ...item,\n items: subItems.map(subItem => ({\n id: subItem.id,\n primary: subItem.label,\n selected: !!selected.find(s => s.id === subItem.id)\n }))\n };\n });\n\n setMenuItems(newMenuItems as MenuItemProps[]);\n setLoading(false);\n },\n [menuItems, selected]\n );\n\n const onFilter = useCallback(async (e: ChangeEvent<HTMLInputElement>) => {\n const val = e.currentTarget.value;\n setFilterValue(val);\n\n if (val) {\n setLoading(true);\n setMenuItems([]);\n\n const matchedItems = await mockQuery({\n filter: val,\n delay: 1000\n });\n\n setMenuItems(\n matchedItems.map(matchedItem => {\n return {\n id: matchedItem.id,\n primary: matchedItem.label,\n secondary: [matchedItem.subType ?? matchedItem.type],\n selected: !!selected.find(s => s.id === matchedItem.id)\n };\n })\n );\n\n setLoading(false);\n return;\n }\n\n setMenuItems(rootMenuItems);\n }, []);\n\n const onItemClick = useCallback(\n (id: MenuItemProps['id']) => {\n setSelected(cur => {\n if (cur.find(s => s.id === id)) {\n return cur.filter(sel => sel.id !== id);\n }\n\n return [\n ...cur,\n { id, text: (menuHelpers.getItem(menuItems, id) as MenuItemProps).primary }\n ];\n });\n\n setMenuItems(cur => menuHelpers.toggleSelected(cur, id) as MenuItemProps[]);\n },\n [menuItems]\n );\n\n return (\n <Popover\n target={target}\n heading='Content selection'\n onCancel={onClose}\n onSubmit={() => {\n onSubmit(selected);\n }}\n >\n <Flex container={{ direction: 'column', gap: 2, pad: [1, 0] }}>\n <MultiSelectInput\n ref={setInputEl}\n placeholder={t('search_placeholder_default')}\n value={filterValue}\n selected={selected}\n onChange={onFilter}\n onRemove={onItemClick}\n />\n <StyledSelectionMenu\n focusControlEl={inputEl ?? undefined}\n mode='multi-select'\n items={menuItems}\n scrollAt={10}\n loading={loading}\n onItemClick={onItemClick}\n onItemExpand={onItemExpand}\n />\n </Flex>\n </Popover>\n );\n};\n\nexport default SelectionMenu;\n"]}
@@ -1,9 +0,0 @@
1
- import type { StoryFn } from '@storybook/react';
2
- import { type OmitStrict } from '@pega/cosmos-react-core';
3
- import { type StandardDragDropListDemoProps } from './Demo';
4
- declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react/dist/types-a5624094").ReactRenderer, import("@storybook/csf").Args>;
5
- export default _default;
6
- interface StandardDragDropListStoryProps extends OmitStrict<StandardDragDropListDemoProps, 'items'> {
7
- }
8
- export declare const StandardDragDropListDemo: StoryFn<StandardDragDropListStoryProps>;
9
- //# sourceMappingURL=StandardDragDropList.stories.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"StandardDragDropList.stories.d.ts","sourceRoot":"","sources":["../../../src/dnd/StandardDragDropList/StandardDragDropList.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAGtD,OAAO,EAAQ,KAAK,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAEhE,OAA6B,EAAE,KAAK,6BAA6B,EAAE,MAAM,QAAQ,CAAC;;AAGlF,wBAGU;AAEV,UAAU,8BACR,SAAQ,UAAU,CAAC,6BAA6B,EAAE,OAAO,CAAC;CAAG;AAE/D,eAAO,MAAM,wBAAwB,EAAE,OAAO,CAAC,8BAA8B,CAyB5E,CAAC"}
@@ -1,31 +0,0 @@
1
- import { StandardDragDropList } from '@pega/cosmos-react-dnd';
2
- import { Flex } from '@pega/cosmos-react-core';
3
- import StandardListDemoComp, {} from './Demo';
4
- import { mockFields, mockViews, mockGroups } from './mockData';
5
- export default {
6
- title: 'DnD/StandardDragDropList',
7
- component: StandardDragDropList
8
- };
9
- export const StandardDragDropListDemo = (args) => {
10
- return (<Flex container={{ direction: 'column', gap: 2 }}>
11
- <StandardListDemoComp items={[...mockFields.slice(0, 3), ...mockViews.slice(0, 2), mockGroups[0]]} draggable={args.draggable} icons={args.icons} onConfigure={args.onConfigure} onRemove={args.onRemove} onAddTo={args.onAddTo} footer={args.footer}/>
12
- <StandardListDemoComp items={[...mockFields.slice(3, 6), ...mockViews.slice(2, 4), mockGroups[1], mockGroups[2]]} draggable={args.draggable} icons={args.icons} onConfigure={args.onConfigure} onRemove={args.onRemove} onAddTo={args.onAddTo} footer={args.footer}/>
13
- </Flex>);
14
- };
15
- StandardDragDropListDemo.args = {
16
- draggable: true,
17
- icons: true,
18
- onConfigure: true,
19
- onRemove: true,
20
- onAddTo: true,
21
- footer: true
22
- };
23
- StandardDragDropListDemo.argTypes = {
24
- draggable: { control: { type: 'boolean' } },
25
- icons: { control: { type: 'boolean' } },
26
- onConfigure: { control: { type: 'boolean' } },
27
- onRemove: { control: { type: 'boolean' } },
28
- onAddTo: { control: { type: 'boolean' } },
29
- footer: { control: { type: 'boolean' } }
30
- };
31
- //# sourceMappingURL=StandardDragDropList.stories.jsx.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"StandardDragDropList.stories.jsx","sourceRoot":"","sources":["../../../src/dnd/StandardDragDropList/StandardDragDropList.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,IAAI,EAAmB,MAAM,yBAAyB,CAAC;AAEhE,OAAO,oBAAoB,EAAE,EAAsC,MAAM,QAAQ,CAAC;AAClF,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE/D,eAAe;IACb,KAAK,EAAE,0BAA0B;IACjC,SAAS,EAAE,oBAAoB;CACxB,CAAC;AAKV,MAAM,CAAC,MAAM,wBAAwB,GAA4C,CAC/E,IAAoC,EACpC,EAAE;IACF,OAAO,CACL,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC,CAC/C;MAAA,CAAC,oBAAoB,CACnB,KAAK,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC,KAAK,CAAC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,GAAG;IAClC,SAAS,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IAC3C,KAAK,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IACvC,WAAW,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IAC7C,QAAQ,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IAC1C,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IACzC,MAAM,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;CACzC,CAAC","sourcesContent":["import type { Meta, StoryFn } from '@storybook/react';\n\nimport { StandardDragDropList } from '@pega/cosmos-react-dnd';\nimport { Flex, type OmitStrict } from '@pega/cosmos-react-core';\n\nimport StandardListDemoComp, { type StandardDragDropListDemoProps } from './Demo';\nimport { mockFields, mockViews, mockGroups } from './mockData';\n\nexport default {\n title: 'DnD/StandardDragDropList',\n component: StandardDragDropList\n} as Meta;\n\ninterface StandardDragDropListStoryProps\n extends OmitStrict<StandardDragDropListDemoProps, 'items'> {}\n\nexport const StandardDragDropListDemo: StoryFn<StandardDragDropListStoryProps> = (\n args: StandardDragDropListStoryProps\n) => {\n return (\n <Flex container={{ direction: 'column', gap: 2 }}>\n <StandardListDemoComp\n items={[...mockFields.slice(0, 3), ...mockViews.slice(0, 2), mockGroups[0]]}\n draggable={args.draggable}\n icons={args.icons}\n onConfigure={args.onConfigure}\n onRemove={args.onRemove}\n onAddTo={args.onAddTo}\n footer={args.footer}\n />\n <StandardListDemoComp\n items={[...mockFields.slice(3, 6), ...mockViews.slice(2, 4), mockGroups[1], mockGroups[2]]}\n draggable={args.draggable}\n icons={args.icons}\n onConfigure={args.onConfigure}\n onRemove={args.onRemove}\n onAddTo={args.onAddTo}\n footer={args.footer}\n />\n </Flex>\n );\n};\n\nStandardDragDropListDemo.args = {\n draggable: true,\n icons: true,\n onConfigure: true,\n onRemove: true,\n onAddTo: true,\n footer: true\n};\n\nStandardDragDropListDemo.argTypes = {\n draggable: { control: { type: 'boolean' } },\n icons: { control: { type: 'boolean' } },\n onConfigure: { control: { type: 'boolean' } },\n onRemove: { control: { type: 'boolean' } },\n onAddTo: { control: { type: 'boolean' } },\n footer: { control: { type: 'boolean' } }\n};\n"]}
@@ -1,25 +0,0 @@
1
- import { type IconProps } from '@pega/cosmos-react-core';
2
- import { type FieldType } from '@pega/cosmos-react-build';
3
- export type ContentType = 'Field' | 'View' | 'Group';
4
- export interface MockRawItem {
5
- id: string;
6
- label: string;
7
- type: ContentType;
8
- subType?: FieldType;
9
- icon?: IconProps;
10
- items?: MockRawItem[];
11
- }
12
- export interface MockQueryParams {
13
- id?: MockRawItem['id'] | MockRawItem['id'][];
14
- filter?: string;
15
- type?: ContentType;
16
- subType?: FieldType;
17
- limit?: number;
18
- offset?: number;
19
- delay?: number;
20
- }
21
- export declare const mockFields: MockRawItem[];
22
- export declare const mockViews: MockRawItem[];
23
- export declare const mockGroups: MockRawItem[];
24
- export declare const mockQuery: ({ id, filter, type, subType, limit, offset, delay }?: MockQueryParams) => Promise<MockRawItem[]>;
25
- //# sourceMappingURL=mockData.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mockData.d.ts","sourceRoot":"","sources":["../../../src/dnd/StandardDragDropList/mockData.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,KAAK,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpE,OAAO,EAAmB,KAAK,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAE3E,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC;AAGrD,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,WAAW,CAAC;IAClB,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,KAAK,CAAC,EAAE,WAAW,EAAE,CAAC;CACvB;AAGD,MAAM,WAAW,eAAe;IAC9B,EAAE,CAAC,EAAE,WAAW,CAAC,IAAI,CAAC,GAAG,WAAW,CAAC,IAAI,CAAC,EAAE,CAAC;IAC7C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAQD,eAAO,MAAM,UAAU,EAAE,WAAW,EAWlC,CAAC;AAEH,eAAO,MAAM,SAAS,EAAE,WAAW,EAOjC,CAAC;AAEH,eAAO,MAAM,UAAU,EAAE,WAAW,EAQlC,CAAC;AAGH,eAAO,MAAM,SAAS,yDAQnB,eAAe,KAAQ,QAAQ,WAAW,EAAE,CAiC9C,CAAC"}
@@ -1,67 +0,0 @@
1
- import { createUID } from '@pega/cosmos-react-core';
2
- import { typeIconMapping } from '@pega/cosmos-react-build';
3
- const getRandomInt = (min, max) => {
4
- min = Math.ceil(min);
5
- max = Math.floor(max);
6
- return Math.floor(Math.random() * (max - min + 1)) + min;
7
- };
8
- export const mockFields = Array.from({ length: 500 }, (_, i) => {
9
- const types = Object.keys(typeIconMapping);
10
- const subType = types[getRandomInt(0, types.length - 1)];
11
- return {
12
- id: createUID(),
13
- label: `Field-${i + 1}`,
14
- type: 'Field',
15
- icon: typeIconMapping[subType],
16
- subType
17
- };
18
- });
19
- export const mockViews = Array.from({ length: 50 }, (_, i) => {
20
- return {
21
- id: createUID(),
22
- label: `View-${i + 1}`,
23
- icon: { set: 'streamline', name: 'newspaper' },
24
- type: 'View'
25
- };
26
- });
27
- export const mockGroups = Array.from({ length: 3 }, (_, i) => {
28
- return {
29
- id: createUID(),
30
- label: `Group-${i + 1}`,
31
- icon: { set: 'streamline', name: 'box-4' },
32
- type: 'Group',
33
- items: i === 0 ? mockFields.slice(-3) : mockFields.slice((i + 1) * -3, i * -3)
34
- };
35
- });
36
- export const mockQuery = ({ id, filter, type, subType, limit = 100, offset = 0, delay = 0 } = {}) => {
37
- return new Promise(resolve => {
38
- setTimeout(() => {
39
- let contentItems = [];
40
- if (id) {
41
- resolve([...mockFields, ...mockViews, ...mockGroups].filter(item => {
42
- return Array.isArray(id) ? id.includes(item.id) : item.id === id;
43
- }));
44
- return;
45
- }
46
- if (type) {
47
- if (type === 'Field') {
48
- contentItems = subType ? mockFields.filter(f => f.subType === subType) : mockFields;
49
- }
50
- else if (type === 'View') {
51
- contentItems = mockViews;
52
- }
53
- else if (type === 'Group') {
54
- contentItems = mockGroups;
55
- }
56
- }
57
- else {
58
- contentItems = [...mockFields, ...mockViews, ...mockGroups];
59
- }
60
- if (filter) {
61
- contentItems = contentItems.filter(item => item.label.includes(filter));
62
- }
63
- resolve(contentItems.slice(offset, limit));
64
- }, delay);
65
- });
66
- };
67
- //# sourceMappingURL=mockData.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mockData.js","sourceRoot":"","sources":["../../../src/dnd/StandardDragDropList/mockData.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAkB,MAAM,yBAAyB,CAAC;AACpE,OAAO,EAAE,eAAe,EAAkB,MAAM,0BAA0B,CAAC;AAyB3E,MAAM,YAAY,GAAG,CAAC,GAAW,EAAE,GAAW,EAAE,EAAE;IAChD,GAAG,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACrB,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACtB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG,GAAG,GAAG,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC;AAC3D,CA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AAG,UAAU,CAAC;iBAC3B;aACF;iBAAM;gBACL,YAAY,GAAG,CAAC,GAAG,UAAU,EAAE,GAAG,SAAS,EAAE,GAAG,UAAU,CAAC,CAAC;aAC7D;YAED,IAAI,MAAM,EAAE;gBACV,YAAY,GAAG,YAAY,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC;aACzE;YAED,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC,CAAC;QAC7C,CAAC,EAAE,KAAK,CAAC,CAAC;IACZ,CAAC,CAAC,CAAC;AACL,CAAC,CAAC","sourcesContent":["import { createUID, type IconProps } from '@pega/cosmos-react-core';\nimport { typeIconMapping, type FieldType } from '@pega/cosmos-react-build';\n\nexport type ContentType = 'Field' | 'View' | 'Group';\n\n// A simple mock of an object type before it is transformed to a ContentItem\nexport interface MockRawItem {\n id: string;\n label: string;\n type: ContentType;\n subType?: FieldType;\n icon?: IconProps;\n items?: MockRawItem[];\n}\n\n// Used as the arg type to the simulated query function.\nexport interface MockQueryParams {\n id?: MockRawItem['id'] | MockRawItem['id'][];\n filter?: string;\n type?: ContentType;\n subType?: FieldType;\n limit?: number;\n offset?: number;\n delay?: number;\n}\n\nconst getRandomInt = (min: number, max: number) => {\n min = Math.ceil(min);\n max = Math.floor(max);\n return Math.floor(Math.random() * (max - min + 1)) + min;\n};\n\nexport const mockFields: MockRawItem[] = Array.from({ length: 500 }, (_, i) => {\n const types = Object.keys(typeIconMapping) as (keyof typeof typeIconMapping)[];\n const subType = types[getRandomInt(0, types.length - 1)];\n\n return {\n id: createUID(),\n label: `Field-${i + 1}`,\n type: 'Field',\n icon: typeIconMapping[subType],\n subType\n };\n});\n\nexport const mockViews: MockRawItem[] = Array.from({ length: 50 }, (_, i) => {\n return {\n id: createUID(),\n label: `View-${i + 1}`,\n icon: { set: 'streamline', name: 'newspaper' },\n type: 'View'\n };\n});\n\nexport const mockGroups: MockRawItem[] = Array.from({ length: 3 }, (_, i) => {\n return {\n id: createUID(),\n label: `Group-${i + 1}`,\n icon: { set: 'streamline', name: 'box-4' },\n type: 'Group',\n items: i === 0 ? mockFields.slice(-3) : mockFields.slice((i + 1) * -3, i * -3)\n };\n});\n\n// Simulated query functionality to assist with loading states and fetching specifc content item types.\nexport const mockQuery = ({\n id,\n filter,\n type,\n subType,\n limit = 100,\n offset = 0,\n delay = 0\n}: MockQueryParams = {}): Promise<MockRawItem[]> => {\n return new Promise(resolve => {\n setTimeout(() => {\n let contentItems: MockRawItem[] = [];\n\n if (id) {\n resolve(\n [...mockFields, ...mockViews, ...mockGroups].filter(item => {\n return Array.isArray(id) ? id.includes(item.id) : item.id === id;\n })\n );\n return;\n }\n\n if (type) {\n if (type === 'Field') {\n contentItems = subType ? mockFields.filter(f => f.subType === subType) : mockFields;\n } else if (type === 'View') {\n contentItems = mockViews;\n } else if (type === 'Group') {\n contentItems = mockGroups;\n }\n } else {\n contentItems = [...mockFields, ...mockViews, ...mockGroups];\n }\n\n if (filter) {\n contentItems = contentItems.filter(item => item.label.includes(filter));\n }\n\n resolve(contentItems.slice(offset, limit));\n }, delay);\n });\n};\n"]}
@@ -1,8 +0,0 @@
1
- import type { StoryFn } from '@storybook/react';
2
- import type { DynamicContentEditorProps } from '@pega/cosmos-react-rte';
3
- declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react/dist/types-a5624094").ReactRenderer, import("@storybook/csf").Args>;
4
- export default _default;
5
- export interface DynamicContentEditorStoryProps extends DynamicContentEditorProps {
6
- }
7
- export declare const DynamicContentEditorDemo: StoryFn<Partial<DynamicContentEditorStoryProps>>;
8
- //# sourceMappingURL=DynamicContentEditor.stories.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DynamicContentEditor.stories.d.ts","sourceRoot":"","sources":["../../../src/rte/DynamicContentEditor/DynamicContentEditor.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAgBtD,OAAO,KAAK,EAAE,yBAAyB,EAAyB,MAAM,wBAAwB,CAAC;;AAK/F,wBAGU;AAEV,MAAM,WAAW,8BAA+B,SAAQ,yBAAyB;CAAG;AAEpF,eAAO,MAAM,wBAAwB,EAAE,OAAO,CAAC,OAAO,CAAC,8BAA8B,CAAC,CAoIrF,CAAC"}
@@ -1,103 +0,0 @@
1
- import { useRef, useState, useCallback } from 'react';
2
- import { action } from '@storybook/addon-actions';
3
- import { Button, Card, CardContent, CardFooter, Flex, TextArea, useAutoResize, useConsolidatedRef, useI18n } from '@pega/cosmos-react-core';
4
- import { DynamicContentEditor } from '@pega/cosmos-react-rte';
5
- import FieldSelector from './FieldSelector';
6
- export default {
7
- title: 'RTE/DynamicContentEditor',
8
- component: DynamicContentEditor
9
- };
10
- export const DynamicContentEditorDemo = (args) => {
11
- const [html, setHtml] = useState('<p>Hi <pega-reference role="button" contenteditable="false" data-rule-type="field" data-rule-id="CustomerName" data-rule-namespace="XCompass">CustomerName</pega-reference><p>please check this <a href="https://google.com">link</a></p></p>');
12
- const rteRef = useRef(null);
13
- const fieldItems = [
14
- {
15
- id: 'CustomerName',
16
- primary: 'CustomerName',
17
- namespace: 'XCompass',
18
- items: [
19
- {
20
- id: 'Locale',
21
- primary: 'Locale',
22
- namespace: 'XCompass'
23
- },
24
- {
25
- id: 'Response Type',
26
- primary: 'Response Type',
27
- items: [
28
- {
29
- id: 'B',
30
- label: 'B',
31
- items: [{ id: 'Reply to', primary: 'Reply to' }]
32
- },
33
- { id: 'Forward to', primary: 'Forward to' }
34
- ]
35
- }
36
- ]
37
- },
38
- { id: 'Address', primary: 'Address', namespace: 'PegaPlatform' },
39
- { id: 'Locality', primary: 'Locality', namespace: 'PegaPlatform' },
40
- { id: 'Country', primary: 'Country', namespace: 'XCompass' },
41
- { id: 'Region', primary: 'Region', namespace: 'PegaPlatform' },
42
- { id: 'Occupation', primary: 'Occupation', namespace: 'PegaPlatform' },
43
- { id: 'City', primary: 'City' },
44
- { id: 'Colony', primary: 'Colony' },
45
- { id: 'Lastname', primary: 'Lastname' },
46
- { id: 'Preference', primary: 'Preference' },
47
- { id: 'Currency', primary: 'Currency' },
48
- { id: 'Iconname', primary: 'Iconname' }
49
- ];
50
- const onImageAdded = (image, id) => {
51
- const src = URL.createObjectURL(image);
52
- rteRef.current?.appendImage({ src, alt: image.name }, id);
53
- };
54
- const [textAreaRef, resizeTextArea] = useAutoResize(undefined, 100);
55
- const ref = useRef(null);
56
- const consolidatedRef = useConsolidatedRef(textAreaRef, ref);
57
- const handleShowHtml = () => {
58
- resizeTextArea();
59
- setHtml(rteRef.current?.getHtml() || '');
60
- };
61
- const t = useI18n();
62
- const [selectedField, setSelectedField] = useState({
63
- id: '',
64
- text: ''
65
- });
66
- const updateSelection = (selectedItem) => {
67
- setSelectedField(selectedItem);
68
- };
69
- const onSubmit = useCallback((insertField) => {
70
- insertField(selectedField);
71
- }, [selectedField]);
72
- const dynamicContentPicker = (<Flex container={{
73
- gap: 2,
74
- direction: 'column'
75
- }}>
76
- <FieldSelector itemList={[
77
- { id: 'CustomerName', text: 'CustomerName', namespace: 'XCompass' },
78
- { id: 'Address', text: 'Address', namespace: 'PegaPlatform' },
79
- { id: 'Locality', text: 'Locality', namespace: 'PegaPlatform' },
80
- { id: 'Country', text: 'Country', namespace: 'XCompass' },
81
- { id: 'Region', text: 'Region', namespace: 'PegaPlatform' },
82
- { id: 'Occupation', text: 'Occupation', namespace: 'PegaPlatform' }
83
- ]} key={selectedField?.id} label='Field' updateSelection={updateSelection} placeholder={t('select')} defaultSelection={selectedField}/>
84
- </Flex>);
85
- const onActiveFieldChange = (field) => setSelectedField(field);
86
- return (<Flex container={{ direction: 'column', gap: 2 }}>
87
- <Card>
88
- <CardContent>
89
- <TextArea value={html} onChange={e => setHtml(e.target.value)} autoResize ref={consolidatedRef}/>
90
- </CardContent>
91
- <CardFooter>
92
- <Button onClick={() => rteRef.current?.insertHtml(html.trim(), true)}>
93
- Overwrite RTE with new HTML
94
- </Button>
95
- </CardFooter>
96
- </Card>
97
- <DynamicContentEditor defaultValue={args.defaultValue || html} onImageAdded={onImageAdded} ref={rteRef} label='Dynamic content editor' toolbar={['inline-styling', 'lists', 'indentation', 'links', 'images']} form={args.form || { onSubmit, dynamicContentPicker }} onActiveFieldChange={args.onActiveFieldChange || onActiveFieldChange} fieldItems={args.fieldItems || fieldItems} onBlur={action('Editor onBlur')}/>
98
- <Flex container={{ gap: 1 }}>
99
- <Button onClick={() => handleShowHtml()}>Show HTML</Button>
100
- </Flex>
101
- </Flex>);
102
- };
103
- //# sourceMappingURL=DynamicContentEditor.stories.jsx.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DynamicContentEditor.stories.jsx","sourceRoot":"","sources":["../../../src/rte/DynamicContentEditor/DynamicContentEditor.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACtD,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAElD,OAAO,EACL,MAAM,EACN,IAAI,EACJ,WAAW,EACX,UAAU,EACV,IAAI,EACJ,QAAQ,EACR,aAAa,EACb,kBAAkB,EAClB,OAAO,EACR,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAG9D,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAG5C,eAAe;IACb,KAAK,EAAE,0BAA0B;IACjC,SAAS,EAAE,oBAAoB;CACxB,CAAC;AAIV,MAAM,CAAC,MAAM,wBAAwB,GAAqD,CACxF,IAA6C,EAC7C,EAAE;IACF,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,QAAQ,CAC9B,+OAA+O,CAChP,CAAC;IACF,MAAM,MAAM,GAAG,MAAM,CAAc,IAAI,CAAC,CAAC;IAEzC,MAAM,UAAU,GAA4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port { action } from '@storybook/addon-actions';\n\nimport {\n Button,\n Card,\n CardContent,\n CardFooter,\n Flex,\n TextArea,\n useAutoResize,\n useConsolidatedRef,\n useI18n\n} from '@pega/cosmos-react-core';\nimport { DynamicContentEditor } from '@pega/cosmos-react-rte';\nimport type { DynamicContentEditorProps, EditorState, ItemType } from '@pega/cosmos-react-rte';\n\nimport FieldSelector from './FieldSelector';\nimport type { FieldSelectorProps } from './FieldSelector';\n\nexport default {\n title: 'RTE/DynamicContentEditor',\n component: DynamicContentEditor\n} as Meta;\n\nexport interface DynamicContentEditorStoryProps extends DynamicContentEditorProps {}\n\nexport const DynamicContentEditorDemo: StoryFn<Partial<DynamicContentEditorStoryProps>> = (\n args: Partial<DynamicContentEditorStoryProps>\n) => {\n const [html, setHtml] = useState(\n '<p>Hi <pega-reference role=\"button\" contenteditable=\"false\" data-rule-type=\"field\" data-rule-id=\"CustomerName\" data-rule-namespace=\"XCompass\">CustomerName</pega-reference><p>please check this <a href=\"https://google.com\">link</a></p></p>'\n );\n const rteRef = useRef<EditorState>(null);\n\n const fieldItems: DynamicContentEditorProps['fieldItems'] = [\n {\n id: 'CustomerName',\n primary: 'CustomerName',\n namespace: 'XCompass',\n items: [\n {\n id: 'Locale',\n primary: 'Locale',\n namespace: 'XCompass'\n },\n {\n id: 'Response Type',\n primary: 'Response Type',\n items: [\n {\n id: 'B',\n label: 'B',\n items: [{ id: 'Reply to', primary: 'Reply to' }]\n },\n { id: 'Forward to', primary: 'Forward to' }\n ]\n }\n ]\n },\n { id: 'Address', primary: 'Address', namespace: 'PegaPlatform' },\n { id: 'Locality', primary: 'Locality', namespace: 'PegaPlatform' },\n { id: 'Country', primary: 'Country', namespace: 'XCompass' },\n { id: 'Region', primary: 'Region', namespace: 'PegaPlatform' },\n { id: 'Occupation', primary: 'Occupation', namespace: 'PegaPlatform' },\n { id: 'City', primary: 'City' },\n { id: 'Colony', primary: 'Colony' },\n { id: 'Lastname', primary: 'Lastname' },\n { id: 'Preference', primary: 'Preference' },\n { id: 'Currency', primary: 'Currency' },\n { id: 'Iconname', primary: 'Iconname' }\n ];\n\n const onImageAdded = (image: File, id: string) => {\n const src = URL.createObjectURL(image);\n rteRef.current?.appendImage({ src, alt: image.name }, id);\n };\n const [textAreaRef, resizeTextArea] = useAutoResize<HTMLTextAreaElement>(undefined, 100);\n const ref = useRef(null);\n const consolidatedRef = useConsolidatedRef(textAreaRef, ref);\n const handleShowHtml = () => {\n resizeTextArea();\n setHtml(rteRef.current?.getHtml() || '');\n };\n const t = useI18n();\n const [selectedField, setSelectedField] = useState<ItemType>({\n id: '',\n text: ''\n });\n\n const updateSelection: FieldSelectorProps['updateSelection'] = (selectedItem: ItemType) => {\n setSelectedField(selectedItem);\n };\n const onSubmit = useCallback(\n (insertField: (selectedField: ItemType) => void) => {\n insertField(selectedField);\n },\n [selectedField]\n );\n\n const dynamicContentPicker = (\n <Flex\n container={{\n gap: 2,\n direction: 'column'\n }}\n >\n <FieldSelector\n itemList={[\n { id: 'CustomerName', text: 'CustomerName', namespace: 'XCompass' },\n { id: 'Address', text: 'Address', namespace: 'PegaPlatform' },\n { id: 'Locality', text: 'Locality', namespace: 'PegaPlatform' },\n { id: 'Country', text: 'Country', namespace: 'XCompass' },\n { id: 'Region', text: 'Region', namespace: 'PegaPlatform' },\n { id: 'Occupation', text: 'Occupation', namespace: 'PegaPlatform' }\n ]}\n key={selectedField?.id}\n label='Field'\n updateSelection={updateSelection}\n placeholder={t('select')}\n defaultSelection={selectedField}\n />\n </Flex>\n );\n const onActiveFieldChange = (field: ItemType) => setSelectedField(field);\n\n return (\n <Flex container={{ direction: 'column', gap: 2 }}>\n <Card>\n <CardContent>\n <TextArea\n value={html}\n onChange={e => setHtml(e.target.value)}\n autoResize\n ref={consolidatedRef}\n />\n </CardContent>\n <CardFooter>\n <Button onClick={() => rteRef.current?.insertHtml(html.trim(), true)}>\n Overwrite RTE with new HTML\n </Button>\n </CardFooter>\n </Card>\n <DynamicContentEditor\n defaultValue={args.defaultValue || html}\n onImageAdded={onImageAdded}\n ref={rteRef}\n label='Dynamic content editor'\n toolbar={['inline-styling', 'lists', 'indentation', 'links', 'images']}\n form={args.form || { onSubmit, dynamicContentPicker }}\n onActiveFieldChange={args.onActiveFieldChange || onActiveFieldChange}\n fieldItems={args.fieldItems || fieldItems}\n onBlur={action('Editor onBlur')}\n />\n <Flex container={{ gap: 1 }}>\n <Button onClick={() => handleShowHtml()}>Show HTML</Button>\n </Flex>\n </Flex>\n );\n};\n"]}
@@ -1,11 +0,0 @@
1
- import type { FunctionComponent } from 'react';
2
- import type { ComboBoxProps, NoChildrenProp } from '@pega/cosmos-react-core';
3
- import type { ItemType } from '@pega/cosmos-react-rte/lib/components/DynamicContentEditor/DynamicContentEditor.types';
4
- export interface FieldSelectorProps extends NoChildrenProp {
5
- itemList: ItemType[];
6
- updateSelection: (selectedItem: ItemType, label: ComboBoxProps['label']) => void;
7
- defaultSelection?: ItemType;
8
- }
9
- declare const FieldSelector: FunctionComponent<FieldSelectorProps & Pick<ComboBoxProps, 'label' | 'mode' | 'required' | 'placeholder'>>;
10
- export default FieldSelector;
11
- //# sourceMappingURL=FieldSelector.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FieldSelector.d.ts","sourceRoot":"","sources":["../../../src/rte/DynamicContentEditor/FieldSelector.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAe,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAG5D,OAAO,KAAK,EAAE,aAAa,EAAiB,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC5F,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uFAAuF,CAAC;AAEtH,MAAM,WAAW,kBAAmB,SAAQ,cAAc;IAExD,QAAQ,EAAE,QAAQ,EAAE,CAAC;IAErB,eAAe,EAAE,CAAC,YAAY,EAAE,QAAQ,EAAE,KAAK,EAAE,aAAa,CAAC,OAAO,CAAC,KAAK,IAAI,CAAC;IAEjF,gBAAgB,CAAC,EAAE,QAAQ,CAAC;CAC7B;AAED,QAAA,MAAM,aAAa,EAAE,iBAAiB,CACpC,kBAAkB,GAAG,IAAI,CAAC,aAAa,EAAE,OAAO,GAAG,MAAM,GAAG,UAAU,GAAG,aAAa,CAAC,CAmGxF,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -1,82 +0,0 @@
1
- import { useMemo, useState, useCallback } from 'react';
2
- import { ComboBox, createStringMatcher, useI18n } from '@pega/cosmos-react-core';
3
- const FieldSelector = ({ itemList, label, mode = 'single-select', required = false, updateSelection, placeholder, defaultSelection }) => {
4
- const t = useI18n();
5
- const [filterValue, setFilterValue] = useState('');
6
- const [items, setItems] = useState(() => {
7
- return itemList.map(item => {
8
- return {
9
- id: item.id,
10
- primary: item.text,
11
- namespace: item.namespace ?? '',
12
- selected: defaultSelection ? defaultSelection.id === item.id : false
13
- };
14
- });
15
- });
16
- const filterRegex = createStringMatcher(filterValue, 'contains');
17
- const itemsToRender = useMemo(() => {
18
- return filterRegex ? items.filter(({ primary }) => filterRegex.test(primary)) : items;
19
- }, [filterValue, items]);
20
- const clearSelection = () => {
21
- setItems(curr => {
22
- return curr?.map(item => {
23
- return {
24
- ...item,
25
- selected: false
26
- };
27
- });
28
- });
29
- };
30
- const selectItem = useCallback((id) => {
31
- setFilterValue('');
32
- setItems(curr => curr?.map(item => {
33
- if (item.id === id) {
34
- return {
35
- ...item,
36
- selected: true
37
- };
38
- }
39
- return { ...item, selected: false };
40
- }));
41
- const selectedItem = items?.find(item => item.id === id);
42
- if (selectedItem?.id)
43
- updateSelection({
44
- id: selectedItem.id,
45
- text: selectedItem.primary,
46
- namespace: selectedItem.namespace
47
- }, label);
48
- }, [filterValue, items]);
49
- const selected = useMemo(() => {
50
- return items?.find(item => item.selected);
51
- }, [items]);
52
- const comboBoxProps = {
53
- label,
54
- placeholder,
55
- mode,
56
- value: filterValue,
57
- selected: selected
58
- ? {
59
- items: {
60
- id: selected.id,
61
- text: selected.primary
62
- }
63
- }
64
- : undefined,
65
- onChange: (e) => {
66
- if (e.target.value)
67
- clearSelection();
68
- setFilterValue(e.target.value);
69
- },
70
- onBlur: () => setFilterValue(''),
71
- menu: {
72
- items: itemsToRender,
73
- accent: filterRegex,
74
- onItemClick: selectItem,
75
- emptyText: t('no_items')
76
- },
77
- required
78
- };
79
- return <ComboBox {...comboBoxProps}/>;
80
- };
81
- export default FieldSelector;
82
- //# sourceMappingURL=FieldSelector.jsx.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FieldSelector.jsx","sourceRoot":"","sources":["../../../src/rte/DynamicContentEditor/FieldSelector.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAGvD,OAAO,EAAE,QAAQ,EAAE,mBAAmB,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAajF,MAAM,aAAa,GAEf,CAAC,EACH,QAAQ,EACR,KAAK,EACL,IAAI,GAAG,eAAe,EACtB,QAAQ,GAAG,KAAK,EAChB,eAAe,EACf,WAAW,EACX,gBAAgB,EACjB,EAAE,EAAE;IACH,MAAM,CAAC,GAAG,OAAO,EAAE,CAAC;IAEpB,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC;IACnD,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAC,GAAG,EAAE;QACtC,OAAO,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;YACzB,OAAO;gBACL,EAAE,EAAE,IAAI,CAAC,EAAE;gBACX,OAAO,EAAE,IAAI,CAAC,IAAI;gBAClB,SAAS,EAAE,IAAI,CAAC,SAAS,IAAI,EAAE;gBAC/B,QAAQ,EAAE,gBAAgB,CAAC,CAAC,CAAC,gBAAgB,CAAC,EAAE,KAAK,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK;aACrE,CAAC;QACJ,CAAC,CAAC,CAAC;I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BACnB,IAAI,EAAE,YAAY,CAAC,OAAO;gBAC1B,SAAS,EAAE,YAAY,CAAC,SAAS;aAClC,EACD,KAAK,CACN,CAAC;IACN,CAAC,EACD,CAAC,WAAW,EAAE,KAAK,CAAC,CACrB,CAAC;IAEF,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,EAAE;QAC5B,OAAO,KAAK,EAAE,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC5C,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;IAEZ,MAAM,aAAa,GAAkB;QACnC,KAAK;QACL,WAAW;QACX,IAAI;QACJ,KAAK,EAAE,WAAW;QAClB,QAAQ,EAAE,QAAQ;YAChB,CAAC,CAAC;gBACE,KAAK,EAAE;oBACL,EAAE,EAAE,QAAQ,CAAC,EAAE;oBACf,IAAI,EAAE,QAAQ,CAAC,OAAO;iBACvB;aACF;YACH,CAAC,CAAC,SAAS;QACb,QAAQ,EAAE,CAAC,CAAgC,EAAE,EAAE;YAC7C,IAAI,CAAC,CAAC,MAAM,CAAC,KAAK;gBAAE,cAAc,EAAE,CAAC;YACrC,cAAc,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QACjC,CAAC;QACD,MAAM,EAAE,GAAG,EAAE,CAAC,cAAc,CAAC,EAAE,CAAC;QAChC,IAAI,EAAE;YACJ,KAAK,EAAE,aAAa;YACpB,MAAM,EAAE,WAAW;YACnB,WAAW,EAAE,UAAU;YACvB,SAAS,EAAE,CAAC,CAAC,UAAU,CAAC;SACzB;QACD,QAAQ;KACT,CAAC;IACF,OAAO,CAAC,QAAQ,CAAC,IAAI,aAAa,CAAC,EAAG,CAAC;AACzC,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC","sourcesContent":["import { useMemo, useState, useCallback } from 'react';\nimport type { ChangeEvent, FunctionComponent } from 'react';\n\nimport { ComboBox, createStringMatcher, useI18n } from '@pega/cosmos-react-core';\nimport type { ComboBoxProps, MenuItemProps, NoChildrenProp } from '@pega/cosmos-react-core';\nimport type { ItemType } from '@pega/cosmos-react-rte/lib/components/DynamicContentEditor/DynamicContentEditor.types';\n\nexport interface FieldSelectorProps extends NoChildrenProp {\n /** Array of values for the combobox options. */\n itemList: ItemType[];\n /** Return selected item */\n updateSelection: (selectedItem: ItemType, label: ComboBoxProps['label']) => void;\n /** Default selected item */\n defaultSelection?: ItemType;\n}\n\nconst FieldSelector: FunctionComponent<\n FieldSelectorProps & Pick<ComboBoxProps, 'label' | 'mode' | 'required' | 'placeholder'>\n> = ({\n itemList,\n label,\n mode = 'single-select',\n required = false,\n updateSelection,\n placeholder,\n defaultSelection\n}) => {\n const t = useI18n();\n\n const [filterValue, setFilterValue] = useState('');\n const [items, setItems] = useState(() => {\n return itemList.map(item => {\n return {\n id: item.id,\n primary: item.text,\n namespace: item.namespace ?? '',\n selected: defaultSelection ? defaultSelection.id === item.id : false\n };\n });\n });\n\n const filterRegex = createStringMatcher(filterValue, 'contains');\n const itemsToRender = useMemo(() => {\n return filterRegex ? items.filter(({ primary }) => filterRegex.test(primary)) : items;\n }, [filterValue, items]);\n\n const clearSelection = () => {\n setItems(curr => {\n return curr?.map(item => {\n return {\n ...item,\n selected: false\n };\n });\n });\n };\n\n const selectItem = useCallback(\n (id: MenuItemProps['id']) => {\n setFilterValue('');\n setItems(curr =>\n curr?.map(item => {\n if (item.id === id) {\n return {\n ...item,\n selected: true\n };\n }\n return { ...item, selected: false };\n })\n );\n const selectedItem = items?.find(item => item.id === id);\n if (selectedItem?.id)\n updateSelection(\n {\n id: selectedItem.id,\n text: selectedItem.primary,\n namespace: selectedItem.namespace\n },\n label\n );\n },\n [filterValue, items]\n );\n\n const selected = useMemo(() => {\n return items?.find(item => item.selected);\n }, [items]);\n\n const comboBoxProps: ComboBoxProps = {\n label,\n placeholder,\n mode,\n value: filterValue,\n selected: selected\n ? {\n items: {\n id: selected.id,\n text: selected.primary\n }\n }\n : undefined,\n onChange: (e: ChangeEvent<HTMLInputElement>) => {\n if (e.target.value) clearSelection();\n setFilterValue(e.target.value);\n },\n onBlur: () => setFilterValue(''),\n menu: {\n items: itemsToRender,\n accent: filterRegex,\n onItemClick: selectItem,\n emptyText: t('no_items')\n },\n required\n };\n return <ComboBox {...comboBoxProps} />;\n};\n\nexport default FieldSelector;\n"]}