@finsemble/finsemble-ui 6.2.1 → 6.3.1-beta-1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (749) hide show
  1. package/package.json +27 -22
  2. package/react/actions/smartDesktopDesignerActions.d.ts +7 -8
  3. package/react/actions/smartDesktopDesignerActions.js.map +1 -1
  4. package/react/actions/toolbarActions.d.ts +2 -3
  5. package/react/actions/toolbarActions.js.map +1 -1
  6. package/react/assets/css/button.css +2 -1
  7. package/react/assets/css/notificationsCenter.css +4 -2
  8. package/react/assets/css/userPreferences.css +1 -0
  9. package/react/assets/css/windowTitleBar.css +33 -1
  10. package/react/componentTemplateGenerator.js.map +1 -1
  11. package/react/components/FinsembleProvider.js +1 -1
  12. package/react/components/FinsembleProvider.js.map +1 -1
  13. package/react/components/appCatalog/AppCatalogComponent.js +7 -13
  14. package/react/components/appCatalog/AppCatalogComponent.js.map +1 -1
  15. package/react/components/appCatalog/components/AppList.d.ts +7 -1
  16. package/react/components/appCatalog/components/AppList.js +1 -1
  17. package/react/components/appCatalog/components/AppList.js.map +1 -1
  18. package/react/components/appCatalog/components/AppResults.d.ts +10 -8
  19. package/react/components/appCatalog/components/AppResults.js +1 -1
  20. package/react/components/appCatalog/components/AppResults.js.map +1 -1
  21. package/react/components/appCatalog/components/Carousel.js +1 -1
  22. package/react/components/appCatalog/components/Carousel.js.map +1 -1
  23. package/react/components/appCatalog/components/EmptyResults.d.ts +2 -1
  24. package/react/components/appCatalog/components/EmptyResults.js +2 -4
  25. package/react/components/appCatalog/components/EmptyResults.js.map +1 -1
  26. package/react/components/appCatalog/components/Hero.d.ts +24 -4
  27. package/react/components/appCatalog/components/Hero.js +2 -1
  28. package/react/components/appCatalog/components/Hero.js.map +1 -1
  29. package/react/components/appCatalog/components/Home.d.ts +18 -4
  30. package/react/components/appCatalog/components/Home.js.map +1 -1
  31. package/react/components/appCatalog/components/SearchBar.d.ts +20 -7
  32. package/react/components/appCatalog/components/SearchBar.js +4 -7
  33. package/react/components/appCatalog/components/SearchBar.js.map +1 -1
  34. package/react/components/appCatalog/components/Showcase/AppDescription.d.ts +5 -3
  35. package/react/components/appCatalog/components/Showcase/AppDescription.js +4 -6
  36. package/react/components/appCatalog/components/Showcase/AppDescription.js.map +1 -1
  37. package/react/components/appCatalog/components/Showcase/AppDevNotes.d.ts +5 -4
  38. package/react/components/appCatalog/components/Showcase/AppDevNotes.js.map +1 -1
  39. package/react/components/appCatalog/components/Showcase/AppShowcase.js +1 -1
  40. package/react/components/appCatalog/components/Showcase/AppShowcase.js.map +1 -1
  41. package/react/components/appCatalog/components/Showcase/Header.d.ts +13 -5
  42. package/react/components/appCatalog/components/Showcase/Header.js +2 -2
  43. package/react/components/appCatalog/components/Showcase/Header.js.map +1 -1
  44. package/react/components/appCatalog/components/Showcase/Modal.d.ts +7 -4
  45. package/react/components/appCatalog/components/Showcase/Modal.js +6 -6
  46. package/react/components/appCatalog/components/Showcase/Modal.js.map +1 -1
  47. package/react/components/appCatalog/components/Showcase/defaults.d.ts +3 -3
  48. package/react/components/appCatalog/components/Showcase/defaults.js.map +1 -1
  49. package/react/components/appCatalog/components/Tag.d.ts +6 -4
  50. package/react/components/appCatalog/components/Tag.js.map +1 -1
  51. package/react/components/appCatalog/components/Toast.d.ts +5 -3
  52. package/react/components/appCatalog/components/Toast.js +5 -5
  53. package/react/components/appCatalog/components/Toast.js.map +1 -1
  54. package/react/components/appCatalog/components/helpers.js +2 -1
  55. package/react/components/appCatalog/components/helpers.js.map +1 -1
  56. package/react/components/appCatalog/modules/AppDirectory.d.ts +5 -1
  57. package/react/components/appCatalog/modules/AppDirectory.js.map +1 -1
  58. package/react/components/appCatalog/modules/FDC3.d.ts +12 -11
  59. package/react/components/appCatalog/modules/FDC3.js +39 -48
  60. package/react/components/appCatalog/modules/FDC3.js.map +1 -1
  61. package/react/components/appCatalog/stores/appStore.d.ts +9 -2
  62. package/react/components/appCatalog/stores/appStore.js +10 -4
  63. package/react/components/appCatalog/stores/appStore.js.map +1 -1
  64. package/react/components/appCatalog/stores/storeActions.js +96 -98
  65. package/react/components/appCatalog/stores/storeActions.js.map +1 -1
  66. package/react/components/common/Button.d.ts +4 -4
  67. package/react/components/common/Button.js +1 -1
  68. package/react/components/common/Button.js.map +1 -1
  69. package/react/components/common/ButtonIcon.js +1 -1
  70. package/react/components/common/ButtonIcon.js.map +1 -1
  71. package/react/components/common/ColorPicker.js +1 -1
  72. package/react/components/common/ColorPicker.js.map +1 -1
  73. package/react/components/common/DropZone.d.ts +0 -5
  74. package/react/components/common/DropZone.js.map +1 -1
  75. package/react/components/common/DropdownButton.js +1 -1
  76. package/react/components/common/DropdownButton.js.map +1 -1
  77. package/react/components/common/FileInput.d.ts +0 -5
  78. package/react/components/common/FileInput.js +7 -9
  79. package/react/components/common/FileInput.js.map +1 -1
  80. package/react/components/common/FinsembleIcon.d.ts +2 -2
  81. package/react/components/common/FinsembleIcon.js.map +1 -1
  82. package/react/components/common/FinsembleSelect.js +2 -5
  83. package/react/components/common/FinsembleSelect.js.map +1 -1
  84. package/react/components/common/FinsembleToggle.js +2 -2
  85. package/react/components/common/FinsembleToggle.js.map +1 -1
  86. package/react/components/common/FontSizeSelector.js +2 -2
  87. package/react/components/common/FontSizeSelector.js.map +1 -1
  88. package/react/components/common/ImagePreview.js +2 -2
  89. package/react/components/common/ImagePreview.js.map +1 -1
  90. package/react/components/common/Tab.js +2 -1
  91. package/react/components/common/Tab.js.map +1 -1
  92. package/react/components/common/file_helpers.js +3 -2
  93. package/react/components/common/file_helpers.js.map +1 -1
  94. package/react/components/common/helpers.js +12 -10
  95. package/react/components/common/helpers.js.map +1 -1
  96. package/react/components/common/stories/Button.stories.js +1 -1
  97. package/react/components/common/stories/Button.stories.js.map +1 -1
  98. package/react/components/common/stories/ButtonIcon.stories.js +1 -1
  99. package/react/components/common/stories/ButtonIcon.stories.js.map +1 -1
  100. package/react/components/common/stories/ButtonRow.stories.js +2 -2
  101. package/react/components/common/stories/ButtonRow.stories.js.map +1 -1
  102. package/react/components/common/stories/ButtonTile.stories.js +1 -1
  103. package/react/components/common/stories/ButtonTile.stories.js.map +1 -1
  104. package/react/components/common/stories/Checkbox.stories.js +1 -1
  105. package/react/components/common/stories/Checkbox.stories.js.map +1 -1
  106. package/react/components/common/stories/ColorPicker.stories.js +1 -1
  107. package/react/components/common/stories/ColorPicker.stories.js.map +1 -1
  108. package/react/components/common/stories/DropZone.stories.js +1 -1
  109. package/react/components/common/stories/DropZone.stories.js.map +1 -1
  110. package/react/components/common/stories/FinsembleIcon.stories.js.map +1 -1
  111. package/react/components/common/stories/FinsembleSelect.stories.js +1 -1
  112. package/react/components/common/stories/FinsembleSelect.stories.js.map +1 -1
  113. package/react/components/common/stories/FinsembleToggle.stories.js +3 -1
  114. package/react/components/common/stories/FinsembleToggle.stories.js.map +1 -1
  115. package/react/components/common/stories/FontSizeSelector.stories.js +1 -1
  116. package/react/components/common/stories/FontSizeSelector.stories.js.map +1 -1
  117. package/react/components/common/stories/Header.stories.js +1 -1
  118. package/react/components/common/stories/Header.stories.js.map +1 -1
  119. package/react/components/common/tests/Checkbox.spec.js +4 -4
  120. package/react/components/common/tests/Checkbox.spec.js.map +1 -1
  121. package/react/components/common/tests/ColorPicker.spec.js +6 -6
  122. package/react/components/common/tests/ColorPicker.spec.js.map +1 -1
  123. package/react/components/common/tests/DropZone.spec.js +4 -4
  124. package/react/components/common/tests/DropZone.spec.js.map +1 -1
  125. package/react/components/common/tests/FileInput.spec.js +5 -5
  126. package/react/components/common/tests/FileInput.spec.js.map +1 -1
  127. package/react/components/common/tests/FinsembleSelect.spec.js +12 -11
  128. package/react/components/common/tests/FinsembleSelect.spec.js.map +1 -1
  129. package/react/components/common/tests/FinsembleToggle.spec.js +8 -2
  130. package/react/components/common/tests/FinsembleToggle.spec.js.map +1 -1
  131. package/react/components/common/tests/Header.spec.js +3 -3
  132. package/react/components/common/tests/Header.spec.js.map +1 -1
  133. package/react/components/common/tests/ImagePreview.spec.js +8 -8
  134. package/react/components/common/tests/ImagePreview.spec.js.map +1 -1
  135. package/react/components/common/tests/Tab.spec.js +3 -3
  136. package/react/components/common/tests/Tab.spec.js.map +1 -1
  137. package/react/components/common/tests/Tooltip.spec.js +5 -5
  138. package/react/components/common/tests/Tooltip.spec.js.map +1 -1
  139. package/react/components/favorites/FavoriteMaker.d.ts +0 -5
  140. package/react/components/favorites/FavoriteMaker.js +1 -1
  141. package/react/components/favorites/FavoriteMaker.js.map +1 -1
  142. package/react/components/favorites/FavoritesShell.js +1 -1
  143. package/react/components/favorites/FavoritesShell.js.map +1 -1
  144. package/react/components/favorites/FavoritesShell.spec.js +7 -7
  145. package/react/components/favorites/FavoritesShell.spec.js.map +1 -1
  146. package/react/components/favorites/FavoritesShell.stories.js +5 -4
  147. package/react/components/favorites/FavoritesShell.stories.js.map +1 -1
  148. package/react/components/fdc3Resolver/ResolverContainer.js +2 -1
  149. package/react/components/fdc3Resolver/ResolverContainer.js.map +1 -1
  150. package/react/components/fdc3Resolver/ResolverDialog.js +13 -13
  151. package/react/components/fdc3Resolver/ResolverDialog.js.map +1 -1
  152. package/react/components/fdc3Resolver/ResolverDialog.spec.js +5 -5
  153. package/react/components/fdc3Resolver/ResolverDialog.spec.js.map +1 -1
  154. package/react/components/fdc3Resolver/ResolverDialog.stories.js +1 -1
  155. package/react/components/fdc3Resolver/ResolverDialog.stories.js.map +1 -1
  156. package/react/components/icon/Icon.js +5 -4
  157. package/react/components/icon/Icon.js.map +1 -1
  158. package/react/components/legacyControls/FinsembleDialog.js +0 -1
  159. package/react/components/legacyControls/FinsembleDialog.js.map +1 -1
  160. package/react/components/legacyControls/FinsembleDialogButton.d.ts +1 -1
  161. package/react/components/legacyControls/FinsembleDialogButton.js +4 -3
  162. package/react/components/legacyControls/FinsembleDialogButton.js.map +1 -1
  163. package/react/components/legacyControls/FinsembleDialogQuestion.js +2 -1
  164. package/react/components/legacyControls/FinsembleDialogQuestion.js.map +1 -1
  165. package/react/components/legacyControls/FinsembleDialogTextInput.d.ts +1 -1
  166. package/react/components/legacyControls/FinsembleDialogTextInput.js +8 -5
  167. package/react/components/legacyControls/FinsembleDialogTextInput.js.map +1 -1
  168. package/react/components/legacyControls/FinsembleDnDContext.js +34 -22
  169. package/react/components/legacyControls/FinsembleDnDContext.js.map +1 -1
  170. package/react/components/legacyControls/FinsembleDraggable.js +3 -3
  171. package/react/components/legacyControls/FinsembleDraggable.js.map +1 -1
  172. package/react/components/legacyControls/FinsembleHoverDetector.js +2 -1
  173. package/react/components/legacyControls/FinsembleHoverDetector.js.map +1 -1
  174. package/react/components/legacyControls/FinsembleMenuSection.js +9 -5
  175. package/react/components/legacyControls/FinsembleMenuSection.js.map +1 -1
  176. package/react/components/legacyControls/stories/FinsembleDialog.stories.js +1 -1
  177. package/react/components/legacyControls/stories/FinsembleDialog.stories.js.map +1 -1
  178. package/react/components/legacyControls/stories/FinsembleDialogButton.stories.js +1 -1
  179. package/react/components/legacyControls/stories/FinsembleDialogButton.stories.js.map +1 -1
  180. package/react/components/legacyControls/stories/FinsembleDialogQuestion.stories.js +1 -1
  181. package/react/components/legacyControls/stories/FinsembleDialogQuestion.stories.js.map +1 -1
  182. package/react/components/legacyControls/stories/FinsembleDialogTextInput.stories.js +1 -1
  183. package/react/components/legacyControls/stories/FinsembleDialogTextInput.stories.js.map +1 -1
  184. package/react/components/legacyControls/tests/FinsembleDialog.spec.js +1 -1
  185. package/react/components/legacyControls/tests/FinsembleDialog.spec.js.map +1 -1
  186. package/react/components/legacyControls/tests/FinsembleDialogButton.spec.js +8 -7
  187. package/react/components/legacyControls/tests/FinsembleDialogButton.spec.js.map +1 -1
  188. package/react/components/legacyControls/tests/FinsembleDialogQuestion.spec.js +7 -5
  189. package/react/components/legacyControls/tests/FinsembleDialogQuestion.spec.js.map +1 -1
  190. package/react/components/legacyControls/tests/FinsembleDialogTextInput.spec.js +13 -12
  191. package/react/components/legacyControls/tests/FinsembleDialogTextInput.spec.js.map +1 -1
  192. package/react/components/linker/LinkerMenu.js +4 -3
  193. package/react/components/linker/LinkerMenu.js.map +1 -1
  194. package/react/components/linker/LinkerMenuDeprecated.js +1 -1
  195. package/react/components/linker/LinkerMenuDeprecated.js.map +1 -1
  196. package/react/components/linker/remoteRedux.d.ts +10 -42
  197. package/react/components/linker/remoteRedux.js.map +1 -1
  198. package/react/components/menu/Menu.d.ts +1 -1
  199. package/react/components/menu/Menu.js +1 -1
  200. package/react/components/menu/Menu.js.map +1 -1
  201. package/react/components/menu/MenuAutoResizer.js.map +1 -1
  202. package/react/components/menu/MenuContent.js +1 -2
  203. package/react/components/menu/MenuContent.js.map +1 -1
  204. package/react/components/menu/MenuHotKey.js +1 -1
  205. package/react/components/menu/MenuHotKey.js.map +1 -1
  206. package/react/components/menu/MenuPortal.js +7 -6
  207. package/react/components/menu/MenuPortal.js.map +1 -1
  208. package/react/components/menu/keyboardNavigation.js +14 -15
  209. package/react/components/menu/keyboardNavigation.js.map +1 -1
  210. package/react/components/notifications/components/NoNotifications.js +2 -4
  211. package/react/components/notifications/components/NoNotifications.js.map +1 -1
  212. package/react/components/notifications/components/drawer/Drawer.js +2 -4
  213. package/react/components/notifications/components/drawer/Drawer.js.map +1 -1
  214. package/react/components/notifications/components/drawer/DrawerControls.js +3 -5
  215. package/react/components/notifications/components/drawer/DrawerControls.js.map +1 -1
  216. package/react/components/notifications/components/drawer/DrawerHeader.js +1 -4
  217. package/react/components/notifications/components/drawer/DrawerHeader.js.map +1 -1
  218. package/react/components/notifications/components/notificationsCenter/NotificationsCenter.js +64 -79
  219. package/react/components/notifications/components/notificationsCenter/NotificationsCenter.js.map +1 -1
  220. package/react/components/notifications/components/notificationsToasts/NotificationsToasts.js +15 -13
  221. package/react/components/notifications/components/notificationsToasts/NotificationsToasts.js.map +1 -1
  222. package/react/components/notifications/components/shared/CheckButton.d.ts +2 -2
  223. package/react/components/notifications/components/shared/CheckButton.js.map +1 -1
  224. package/react/components/notifications/components/shared/IconButton.js +3 -5
  225. package/react/components/notifications/components/shared/IconButton.js.map +1 -1
  226. package/react/components/notifications/components/shared/NotificationCardShell.d.ts +3 -2
  227. package/react/components/notifications/components/shared/NotificationCardShell.js.map +1 -1
  228. package/react/components/notifications/components/shared/OverflowMenu.d.ts +2 -1
  229. package/react/components/notifications/components/shared/OverflowMenu.js +6 -5
  230. package/react/components/notifications/components/shared/OverflowMenu.js.map +1 -1
  231. package/react/components/notifications/components/shared/notificationCard/NotificationCardBodyActions.d.ts +3 -2
  232. package/react/components/notifications/components/shared/notificationCard/NotificationCardBodyActions.js +2 -2
  233. package/react/components/notifications/components/shared/notificationCard/NotificationCardBodyActions.js.map +1 -1
  234. package/react/components/notifications/components/shared/notificationCard/NotificationCardBodyShell.d.ts +3 -2
  235. package/react/components/notifications/components/shared/notificationCard/NotificationCardBodyShell.js.map +1 -1
  236. package/react/components/notifications/components/shared/notificationCard/NotificationCardHeaderControls.d.ts +3 -2
  237. package/react/components/notifications/components/shared/notificationCard/NotificationCardHeaderControls.js +2 -4
  238. package/react/components/notifications/components/shared/notificationCard/NotificationCardHeaderControls.js.map +1 -1
  239. package/react/components/notifications/components/shared/notificationCard/NotificationCardHeaderShell.d.ts +3 -2
  240. package/react/components/notifications/components/shared/notificationCard/NotificationCardHeaderShell.js.map +1 -1
  241. package/react/components/notifications/components/views/CardView.js +15 -24
  242. package/react/components/notifications/components/views/CardView.js.map +1 -1
  243. package/react/components/notifications/components/views/ListView.d.ts +2 -2
  244. package/react/components/notifications/components/views/ListView.js +9 -9
  245. package/react/components/notifications/components/views/ListView.js.map +1 -1
  246. package/react/components/notifications/components/views/NotificationDetailsView.d.ts +2 -2
  247. package/react/components/notifications/components/views/NotificationDetailsView.js +2 -6
  248. package/react/components/notifications/components/views/NotificationDetailsView.js.map +1 -1
  249. package/react/components/notifications/constants.d.ts +0 -13
  250. package/react/components/notifications/constants.js.map +1 -1
  251. package/react/components/notifications/types.d.ts +7 -6
  252. package/react/components/notifications/types.js.map +1 -1
  253. package/react/components/notifications/utils.d.ts +6 -4
  254. package/react/components/notifications/utils.js +26 -32
  255. package/react/components/notifications/utils.js.map +1 -1
  256. package/react/components/processMonitor/ProcessMonitor.d.ts +3 -1
  257. package/react/components/processMonitor/ProcessMonitor.js +24 -14
  258. package/react/components/processMonitor/ProcessMonitor.js.map +1 -1
  259. package/react/components/processMonitor/ProcessMonitorTypes.d.ts +33 -0
  260. package/react/components/processMonitor/ProcessMonitorTypes.js +6 -0
  261. package/react/components/processMonitor/ProcessMonitorTypes.js.map +1 -0
  262. package/react/components/processMonitor/components/ChildWindow.d.ts +10 -3
  263. package/react/components/processMonitor/components/ChildWindow.js +29 -10
  264. package/react/components/processMonitor/components/ChildWindow.js.map +1 -1
  265. package/react/components/processMonitor/components/ListHeader.d.ts +18 -4
  266. package/react/components/processMonitor/components/ListHeader.js +11 -3
  267. package/react/components/processMonitor/components/ListHeader.js.map +1 -1
  268. package/react/components/processMonitor/components/ProcessStatistics.d.ts +11 -3
  269. package/react/components/processMonitor/components/ProcessStatistics.js +35 -18
  270. package/react/components/processMonitor/components/ProcessStatistics.js.map +1 -1
  271. package/react/components/processMonitor/constants.d.ts +11 -16
  272. package/react/components/processMonitor/constants.js +6 -1
  273. package/react/components/processMonitor/constants.js.map +1 -1
  274. package/react/components/processMonitor/helpers.d.ts +14 -6
  275. package/react/components/processMonitor/helpers.js +31 -23
  276. package/react/components/processMonitor/helpers.js.map +1 -1
  277. package/react/components/processMonitor/helpers.spec.d.ts +1 -0
  278. package/react/components/processMonitor/helpers.spec.js +44 -0
  279. package/react/components/processMonitor/helpers.spec.js.map +1 -0
  280. package/react/components/processMonitor/stores/ProcessMonitorStore.d.ts +31 -15
  281. package/react/components/processMonitor/stores/ProcessMonitorStore.js +104 -95
  282. package/react/components/processMonitor/stores/ProcessMonitorStore.js.map +1 -1
  283. package/react/components/quickComponentForm/QuickComponentForm.d.ts +4 -1
  284. package/react/components/quickComponentForm/QuickComponentForm.js +14 -15
  285. package/react/components/quickComponentForm/QuickComponentForm.js.map +1 -1
  286. package/react/components/search/Highlight.js +2 -2
  287. package/react/components/search/Highlight.js.map +1 -1
  288. package/react/components/search/Highlight.spec.js +3 -3
  289. package/react/components/search/Highlight.spec.js.map +1 -1
  290. package/react/components/search/Highlight.stories.js +1 -1
  291. package/react/components/search/Highlight.stories.js.map +1 -1
  292. package/react/components/search/Search.js +17 -8
  293. package/react/components/search/Search.js.map +1 -1
  294. package/react/components/search/SearchBestMatch.js +3 -5
  295. package/react/components/search/SearchBestMatch.js.map +1 -1
  296. package/react/components/search/SearchProviderResults.js +4 -5
  297. package/react/components/search/SearchProviderResults.js.map +1 -1
  298. package/react/components/search/SearchResult.js +3 -2
  299. package/react/components/search/SearchResult.js.map +1 -1
  300. package/react/components/search/SearchResults.js +1 -1
  301. package/react/components/search/SearchResults.js.map +1 -1
  302. package/react/components/shared/Button.js +2 -4
  303. package/react/components/shared/Button.js.map +1 -1
  304. package/react/components/shared/DefaultDropdownButton.js +58 -13
  305. package/react/components/shared/DefaultDropdownButton.js.map +1 -1
  306. package/react/components/shared/NavigationButton.js +9 -11
  307. package/react/components/shared/NavigationButton.js.map +1 -1
  308. package/react/components/shared/Tag.d.ts +11 -1
  309. package/react/components/shared/Tag.js.map +1 -1
  310. package/react/components/shared/TagsMenu.d.ts +26 -6
  311. package/react/components/shared/TagsMenu.js.map +1 -1
  312. package/react/components/shared/linkerUtil.d.ts +3 -1
  313. package/react/components/shared/linkerUtil.js.map +1 -1
  314. package/react/components/shared/tests/DefaultDropdownButton.spec.js.map +1 -1
  315. package/react/components/shared/tests/addProtocolToValidURL.spec.js.map +1 -1
  316. package/react/components/singleInputDialog/SingleInputDialog.js +0 -2
  317. package/react/components/singleInputDialog/SingleInputDialog.js.map +1 -1
  318. package/react/components/singleInputDialog/SingleInputDialog.spec.js +6 -6
  319. package/react/components/singleInputDialog/SingleInputDialog.spec.js.map +1 -1
  320. package/react/components/singleInputDialog/SingleInputDialog.stories.js +1 -1
  321. package/react/components/singleInputDialog/SingleInputDialog.stories.js.map +1 -1
  322. package/react/components/smartDesktopDesigner/AppEditAccess.d.ts +1 -1
  323. package/react/components/smartDesktopDesigner/AppEditAccess.js +17 -34
  324. package/react/components/smartDesktopDesigner/AppEditAccess.js.map +1 -1
  325. package/react/components/smartDesktopDesigner/AppEditPage.d.ts +4 -4
  326. package/react/components/smartDesktopDesigner/AppEditPage.js +2 -2
  327. package/react/components/smartDesktopDesigner/AppEditPage.js.map +1 -1
  328. package/react/components/smartDesktopDesigner/Appearance.js +3 -5
  329. package/react/components/smartDesktopDesigner/Appearance.js.map +1 -1
  330. package/react/components/smartDesktopDesigner/Application.d.ts +7 -5
  331. package/react/components/smartDesktopDesigner/Application.js +78 -92
  332. package/react/components/smartDesktopDesigner/Application.js.map +1 -1
  333. package/react/components/smartDesktopDesigner/ApplicationEdit.d.ts +4 -1
  334. package/react/components/smartDesktopDesigner/ApplicationEdit.js +68 -51
  335. package/react/components/smartDesktopDesigner/ApplicationEdit.js.map +1 -1
  336. package/react/components/smartDesktopDesigner/ApplicationList.d.ts +4 -2
  337. package/react/components/smartDesktopDesigner/ApplicationList.js +23 -20
  338. package/react/components/smartDesktopDesigner/ApplicationList.js.map +1 -1
  339. package/react/components/smartDesktopDesigner/ApplicationSetup.d.ts +4 -3
  340. package/react/components/smartDesktopDesigner/ApplicationSetup.js +8 -20
  341. package/react/components/smartDesktopDesigner/ApplicationSetup.js.map +1 -1
  342. package/react/components/smartDesktopDesigner/Applications.d.ts +3 -2
  343. package/react/components/smartDesktopDesigner/Applications.js +73 -62
  344. package/react/components/smartDesktopDesigner/Applications.js.map +1 -1
  345. package/react/components/smartDesktopDesigner/Authentication.js +2 -8
  346. package/react/components/smartDesktopDesigner/Authentication.js.map +1 -1
  347. package/react/components/smartDesktopDesigner/AuthenticationProviderConfig.js +1 -8
  348. package/react/components/smartDesktopDesigner/AuthenticationProviderConfig.js.map +1 -1
  349. package/react/components/smartDesktopDesigner/Content.js.map +1 -1
  350. package/react/components/smartDesktopDesigner/CurrentView.js +1 -1
  351. package/react/components/smartDesktopDesigner/CurrentView.js.map +1 -1
  352. package/react/components/smartDesktopDesigner/Export.js +3 -3
  353. package/react/components/smartDesktopDesigner/Export.js.map +1 -1
  354. package/react/components/smartDesktopDesigner/ExportCloud.js +1 -1
  355. package/react/components/smartDesktopDesigner/ExportCloud.js.map +1 -1
  356. package/react/components/smartDesktopDesigner/ExportDeployInfo.js +1 -1
  357. package/react/components/smartDesktopDesigner/ExportDeployInfo.js.map +1 -1
  358. package/react/components/smartDesktopDesigner/ExportZip.js +0 -1
  359. package/react/components/smartDesktopDesigner/ExportZip.js.map +1 -1
  360. package/react/components/smartDesktopDesigner/GettingStarted.d.ts +1 -1
  361. package/react/components/smartDesktopDesigner/GettingStarted.js +1 -1
  362. package/react/components/smartDesktopDesigner/GettingStarted.js.map +1 -1
  363. package/react/components/smartDesktopDesigner/ProjectHeader.d.ts +1 -1
  364. package/react/components/smartDesktopDesigner/ProjectHeader.js +1 -1
  365. package/react/components/smartDesktopDesigner/ProjectHeader.js.map +1 -1
  366. package/react/components/smartDesktopDesigner/Publish.js +1 -1
  367. package/react/components/smartDesktopDesigner/Publish.js.map +1 -1
  368. package/react/components/smartDesktopDesigner/SmartDesktopDesigner.d.ts +0 -11
  369. package/react/components/smartDesktopDesigner/SmartDesktopDesigner.js +18 -31
  370. package/react/components/smartDesktopDesigner/SmartDesktopDesigner.js.map +1 -1
  371. package/react/components/smartDesktopDesigner/Themes.js +2 -8
  372. package/react/components/smartDesktopDesigner/Themes.js.map +1 -1
  373. package/react/components/smartDesktopDesigner/View.js.map +1 -1
  374. package/react/components/smartDesktopDesigner/common/getCSSVars.d.ts +1 -2
  375. package/react/components/smartDesktopDesigner/common/getCSSVars.js +2 -2
  376. package/react/components/smartDesktopDesigner/common/getCSSVars.js.map +1 -1
  377. package/react/components/smartDesktopDesigner/common/views.d.ts +1 -1
  378. package/react/components/smartDesktopDesigner/common/views.js +8 -18
  379. package/react/components/smartDesktopDesigner/common/views.js.map +1 -1
  380. package/react/components/smartDesktopDesigner/fixtures/applicationEditProps.js +16 -24
  381. package/react/components/smartDesktopDesigner/fixtures/applicationEditProps.js.map +1 -1
  382. package/react/components/smartDesktopDesigner/fixtures/applicationSetupProps.js +8 -9
  383. package/react/components/smartDesktopDesigner/fixtures/applicationSetupProps.js.map +1 -1
  384. package/react/components/smartDesktopDesigner/fixtures/apps.d.ts +4 -70
  385. package/react/components/smartDesktopDesigner/fixtures/apps.js +20 -31
  386. package/react/components/smartDesktopDesigner/fixtures/apps.js.map +1 -1
  387. package/react/components/smartDesktopDesigner/fixtures/authenticationProps.js +6 -9
  388. package/react/components/smartDesktopDesigner/fixtures/authenticationProps.js.map +1 -1
  389. package/react/components/smartDesktopDesigner/fixtures/exportProps.js +5 -5
  390. package/react/components/smartDesktopDesigner/fixtures/exportProps.js.map +1 -1
  391. package/react/components/smartDesktopDesigner/fixtures/publishProgress.d.ts +2 -1
  392. package/react/components/smartDesktopDesigner/fixtures/publishProgress.js.map +1 -1
  393. package/react/components/smartDesktopDesigner/fixtures/themeProps.d.ts +5 -5
  394. package/react/components/smartDesktopDesigner/fixtures/themeProps.js +6 -7
  395. package/react/components/smartDesktopDesigner/fixtures/themeProps.js.map +1 -1
  396. package/react/components/smartDesktopDesigner/fixtures/views.js +4 -4
  397. package/react/components/smartDesktopDesigner/fixtures/views.js.map +1 -1
  398. package/react/components/smartDesktopDesigner/sdd_helpers.js +2 -1
  399. package/react/components/smartDesktopDesigner/sdd_helpers.js.map +1 -1
  400. package/react/components/smartDesktopDesigner/stories/AppEditPage.stories.d.ts +3 -4
  401. package/react/components/smartDesktopDesigner/stories/AppEditPage.stories.js +14 -20
  402. package/react/components/smartDesktopDesigner/stories/AppEditPage.stories.js.map +1 -1
  403. package/react/components/smartDesktopDesigner/stories/Appearance.stories.js +7 -7
  404. package/react/components/smartDesktopDesigner/stories/Appearance.stories.js.map +1 -1
  405. package/react/components/smartDesktopDesigner/stories/ApplicationEdit.stories.js +3 -7
  406. package/react/components/smartDesktopDesigner/stories/ApplicationEdit.stories.js.map +1 -1
  407. package/react/components/smartDesktopDesigner/stories/ApplicationList.stories.js +9 -2
  408. package/react/components/smartDesktopDesigner/stories/ApplicationList.stories.js.map +1 -1
  409. package/react/components/smartDesktopDesigner/stories/ApplicationSetup.stories.js +3 -10
  410. package/react/components/smartDesktopDesigner/stories/ApplicationSetup.stories.js.map +1 -1
  411. package/react/components/smartDesktopDesigner/stories/Applications.stories.js +1 -1
  412. package/react/components/smartDesktopDesigner/stories/Applications.stories.js.map +1 -1
  413. package/react/components/smartDesktopDesigner/stories/Authentication.stories.js +18 -36
  414. package/react/components/smartDesktopDesigner/stories/Authentication.stories.js.map +1 -1
  415. package/react/components/smartDesktopDesigner/stories/Export.stories.js +2 -2
  416. package/react/components/smartDesktopDesigner/stories/Export.stories.js.map +1 -1
  417. package/react/components/smartDesktopDesigner/stories/ExportCloud.stories.js +2 -2
  418. package/react/components/smartDesktopDesigner/stories/ExportCloud.stories.js.map +1 -1
  419. package/react/components/smartDesktopDesigner/stories/ExportZip.stories.js +5 -11
  420. package/react/components/smartDesktopDesigner/stories/ExportZip.stories.js.map +1 -1
  421. package/react/components/smartDesktopDesigner/stories/GettingStarted.stories.d.ts +1 -1
  422. package/react/components/smartDesktopDesigner/stories/GettingStarted.stories.js +1 -1
  423. package/react/components/smartDesktopDesigner/stories/GettingStarted.stories.js.map +1 -1
  424. package/react/components/smartDesktopDesigner/stories/Navigation.stories.js +1 -1
  425. package/react/components/smartDesktopDesigner/stories/Navigation.stories.js.map +1 -1
  426. package/react/components/smartDesktopDesigner/stories/ProjectErrors.stories.js +2 -4
  427. package/react/components/smartDesktopDesigner/stories/ProjectErrors.stories.js.map +1 -1
  428. package/react/components/smartDesktopDesigner/stories/ProjectHeader.stories.d.ts +1 -1
  429. package/react/components/smartDesktopDesigner/stories/ProjectHeader.stories.js +1 -1
  430. package/react/components/smartDesktopDesigner/stories/ProjectHeader.stories.js.map +1 -1
  431. package/react/components/smartDesktopDesigner/stories/Publish.stories.js +13 -28
  432. package/react/components/smartDesktopDesigner/stories/Publish.stories.js.map +1 -1
  433. package/react/components/smartDesktopDesigner/stories/PublishProgress.stories.js +1 -1
  434. package/react/components/smartDesktopDesigner/stories/PublishProgress.stories.js.map +1 -1
  435. package/react/components/smartDesktopDesigner/stories/SmartDesktopDesigner.stories.js +3 -3
  436. package/react/components/smartDesktopDesigner/stories/SmartDesktopDesigner.stories.js.map +1 -1
  437. package/react/components/smartDesktopDesigner/stories/Themes.stories.js +1 -1
  438. package/react/components/smartDesktopDesigner/stories/Themes.stories.js.map +1 -1
  439. package/react/components/smartDesktopDesigner/tests/AppEditPage.spec.js +32 -32
  440. package/react/components/smartDesktopDesigner/tests/AppEditPage.spec.js.map +1 -1
  441. package/react/components/smartDesktopDesigner/tests/ApplicationEdit.spec.js +6 -5
  442. package/react/components/smartDesktopDesigner/tests/ApplicationEdit.spec.js.map +1 -1
  443. package/react/components/smartDesktopDesigner/tests/ApplicationList.spec.js +11 -11
  444. package/react/components/smartDesktopDesigner/tests/ApplicationList.spec.js.map +1 -1
  445. package/react/components/smartDesktopDesigner/tests/ApplicationSetup.spec.js +9 -7
  446. package/react/components/smartDesktopDesigner/tests/ApplicationSetup.spec.js.map +1 -1
  447. package/react/components/smartDesktopDesigner/tests/Applications.spec.js +35 -35
  448. package/react/components/smartDesktopDesigner/tests/Applications.spec.js.map +1 -1
  449. package/react/components/smartDesktopDesigner/tests/Authentication.spec.js +6 -18
  450. package/react/components/smartDesktopDesigner/tests/Authentication.spec.js.map +1 -1
  451. package/react/components/smartDesktopDesigner/tests/Export.spec.js +14 -22
  452. package/react/components/smartDesktopDesigner/tests/Export.spec.js.map +1 -1
  453. package/react/components/smartDesktopDesigner/tests/ExportZip.spec.js +2 -6
  454. package/react/components/smartDesktopDesigner/tests/ExportZip.spec.js.map +1 -1
  455. package/react/components/smartDesktopDesigner/tests/Navigation.spec.js +2 -2
  456. package/react/components/smartDesktopDesigner/tests/Navigation.spec.js.map +1 -1
  457. package/react/components/smartDesktopDesigner/tests/ProjectErrors.spec.js +2 -2
  458. package/react/components/smartDesktopDesigner/tests/ProjectErrors.spec.js.map +1 -1
  459. package/react/components/smartDesktopDesigner/tests/ProjectHeader.spec.js +2 -2
  460. package/react/components/smartDesktopDesigner/tests/ProjectHeader.spec.js.map +1 -1
  461. package/react/components/smartDesktopDesigner/tests/Publish.spec.js +3 -10
  462. package/react/components/smartDesktopDesigner/tests/Publish.spec.js.map +1 -1
  463. package/react/components/smartDesktopDesigner/tests/PublishProgess.spec.js +2 -6
  464. package/react/components/smartDesktopDesigner/tests/PublishProgess.spec.js.map +1 -1
  465. package/react/components/smartDesktopDesigner/tests/SmartDesktopDesigner.spec.js +3 -3
  466. package/react/components/smartDesktopDesigner/tests/SmartDesktopDesigner.spec.js.map +1 -1
  467. package/react/components/smartDesktopDesigner/tests/Themes.spec.js +7 -7
  468. package/react/components/smartDesktopDesigner/tests/Themes.spec.js.map +1 -1
  469. package/react/components/smartDesktopDesigner/tests/a11y_helper.js +4 -5
  470. package/react/components/smartDesktopDesigner/tests/a11y_helper.js.map +1 -1
  471. package/react/components/system/System.spec.js +1 -1
  472. package/react/components/system/System.spec.js.map +1 -1
  473. package/react/components/system/SystemTrayComponentShell.js +1 -1
  474. package/react/components/system/SystemTrayComponentShell.js.map +1 -1
  475. package/react/components/toolbar/MinimizeAll.spec.js +5 -5
  476. package/react/components/toolbar/MinimizeAll.spec.js.map +1 -1
  477. package/react/components/toolbar/NotificationControl.js +3 -2
  478. package/react/components/toolbar/NotificationControl.js.map +1 -1
  479. package/react/components/toolbar/RevealAll.spec.js +5 -5
  480. package/react/components/toolbar/RevealAll.spec.js.map +1 -1
  481. package/react/components/toolbar/ToolbarIcon.js +14 -2
  482. package/react/components/toolbar/ToolbarIcon.js.map +1 -1
  483. package/react/components/toolbar/advancedAppLauncher/AdvancedAppLauncher.d.ts +22 -5
  484. package/react/components/toolbar/advancedAppLauncher/AdvancedAppLauncher.js +11 -6
  485. package/react/components/toolbar/advancedAppLauncher/AdvancedAppLauncher.js.map +1 -1
  486. package/react/components/toolbar/advancedAppLauncher/AdvancedAppLauncherMenu.js +21 -9
  487. package/react/components/toolbar/advancedAppLauncher/AdvancedAppLauncherMenu.js.map +1 -1
  488. package/react/components/toolbar/advancedAppLauncher/components/AddNewAppForm.d.ts +33 -10
  489. package/react/components/toolbar/advancedAppLauncher/components/AddNewAppForm.js +41 -10
  490. package/react/components/toolbar/advancedAppLauncher/components/AddNewAppForm.js.map +1 -1
  491. package/react/components/toolbar/advancedAppLauncher/components/AddNewFolder.d.ts +3 -3
  492. package/react/components/toolbar/advancedAppLauncher/components/AddNewFolder.js +0 -3
  493. package/react/components/toolbar/advancedAppLauncher/components/AddNewFolder.js.map +1 -1
  494. package/react/components/toolbar/advancedAppLauncher/components/AppActionsMenu.d.ts +24 -8
  495. package/react/components/toolbar/advancedAppLauncher/components/AppActionsMenu.js +4 -2
  496. package/react/components/toolbar/advancedAppLauncher/components/AppActionsMenu.js.map +1 -1
  497. package/react/components/toolbar/advancedAppLauncher/components/AppDefinition.d.ts +18 -4
  498. package/react/components/toolbar/advancedAppLauncher/components/AppDefinition.js +7 -5
  499. package/react/components/toolbar/advancedAppLauncher/components/AppDefinition.js.map +1 -1
  500. package/react/components/toolbar/advancedAppLauncher/components/AppTagsList.d.ts +14 -6
  501. package/react/components/toolbar/advancedAppLauncher/components/AppTagsList.js +2 -3
  502. package/react/components/toolbar/advancedAppLauncher/components/AppTagsList.js.map +1 -1
  503. package/react/components/toolbar/advancedAppLauncher/components/Content.d.ts +30 -13
  504. package/react/components/toolbar/advancedAppLauncher/components/Content.js +35 -37
  505. package/react/components/toolbar/advancedAppLauncher/components/Content.js.map +1 -1
  506. package/react/components/toolbar/advancedAppLauncher/components/FilterSort.d.ts +15 -5
  507. package/react/components/toolbar/advancedAppLauncher/components/FilterSort.js +4 -3
  508. package/react/components/toolbar/advancedAppLauncher/components/FilterSort.js.map +1 -1
  509. package/react/components/toolbar/advancedAppLauncher/components/FoldersList.d.ts +38 -21
  510. package/react/components/toolbar/advancedAppLauncher/components/FoldersList.js +14 -9
  511. package/react/components/toolbar/advancedAppLauncher/components/FoldersList.js.map +1 -1
  512. package/react/components/toolbar/advancedAppLauncher/components/LeftNavBottomLinks.d.ts +18 -3
  513. package/react/components/toolbar/advancedAppLauncher/components/LeftNavBottomLinks.js +8 -4
  514. package/react/components/toolbar/advancedAppLauncher/components/LeftNavBottomLinks.js.map +1 -1
  515. package/react/components/toolbar/advancedAppLauncher/components/NoAppsFound.d.ts +10 -3
  516. package/react/components/toolbar/advancedAppLauncher/components/NoAppsFound.js +1 -3
  517. package/react/components/toolbar/advancedAppLauncher/components/NoAppsFound.js.map +1 -1
  518. package/react/components/toolbar/advancedAppLauncher/components/SearchBox.d.ts +15 -6
  519. package/react/components/toolbar/advancedAppLauncher/components/SearchBox.js +11 -6
  520. package/react/components/toolbar/advancedAppLauncher/components/SearchBox.js.map +1 -1
  521. package/react/components/toolbar/advancedAppLauncher/components/SortBy.d.ts +11 -4
  522. package/react/components/toolbar/advancedAppLauncher/components/SortBy.js +3 -2
  523. package/react/components/toolbar/advancedAppLauncher/components/SortBy.js.map +1 -1
  524. package/react/components/toolbar/advancedAppLauncher/components/TagsList.d.ts +18 -6
  525. package/react/components/toolbar/advancedAppLauncher/components/TagsList.js +2 -2
  526. package/react/components/toolbar/advancedAppLauncher/components/TagsList.js.map +1 -1
  527. package/react/components/toolbar/advancedAppLauncher/components/TagsMenu.d.ts +20 -4
  528. package/react/components/toolbar/advancedAppLauncher/components/TagsMenu.js +2 -4
  529. package/react/components/toolbar/advancedAppLauncher/components/TagsMenu.js.map +1 -1
  530. package/react/components/toolbar/advancedAppLauncher/modules/AppDirectory.js.map +1 -1
  531. package/react/components/toolbar/advancedAppLauncher/modules/FDC3.d.ts +15 -10
  532. package/react/components/toolbar/advancedAppLauncher/modules/FDC3.js +19 -30
  533. package/react/components/toolbar/advancedAppLauncher/modules/FDC3.js.map +1 -1
  534. package/react/components/toolbar/advancedAppLauncher/stores/LauncherStore.d.ts +5 -2
  535. package/react/components/toolbar/advancedAppLauncher/stores/LauncherStore.js +1 -1
  536. package/react/components/toolbar/advancedAppLauncher/stores/LauncherStore.js.map +1 -1
  537. package/react/components/toolbar/advancedAppLauncher/stores/StoreActions.d.ts +87 -59
  538. package/react/components/toolbar/advancedAppLauncher/stores/StoreActions.js +51 -54
  539. package/react/components/toolbar/advancedAppLauncher/stores/StoreActions.js.map +1 -1
  540. package/react/components/toolbar/advancedAppLauncher/utils/sort-functions.d.ts +7 -6
  541. package/react/components/toolbar/advancedAppLauncher/utils/sort-functions.js +11 -13
  542. package/react/components/toolbar/advancedAppLauncher/utils/sort-functions.js.map +1 -1
  543. package/react/components/toolbar/appLauncher/AppLauncherMenu.d.ts +3 -3
  544. package/react/components/toolbar/appLauncher/AppLauncherMenu.js +1 -1
  545. package/react/components/toolbar/appLauncher/AppLauncherMenu.js.map +1 -1
  546. package/react/components/toolbar/appLauncher/DynamicAppLauncher.js.map +1 -1
  547. package/react/components/toolbar/appLauncher/StaticAppLauncherMenu.d.ts +25 -3
  548. package/react/components/toolbar/appLauncher/StaticAppLauncherMenu.js +4 -11
  549. package/react/components/toolbar/appLauncher/StaticAppLauncherMenu.js.map +1 -1
  550. package/react/components/toolbar/appLauncher/components/componentList.d.ts +34 -6
  551. package/react/components/toolbar/appLauncher/components/componentList.js +25 -22
  552. package/react/components/toolbar/appLauncher/components/componentList.js.map +1 -1
  553. package/react/components/toolbar/appLauncher/stores/appLauncherStore.d.ts +32 -32
  554. package/react/components/toolbar/appLauncher/stores/appLauncherStore.js +43 -65
  555. package/react/components/toolbar/appLauncher/stores/appLauncherStore.js.map +1 -1
  556. package/react/components/toolbar/dashbar/Dashbar.js +143 -125
  557. package/react/components/toolbar/dashbar/Dashbar.js.map +1 -1
  558. package/react/components/toolbar/dashbar/DashbarItem.js +4 -5
  559. package/react/components/toolbar/dashbar/DashbarItem.js.map +1 -1
  560. package/react/components/toolbar/workspaceManagementMenu/WorkspaceManagementMenu.d.ts +28 -5
  561. package/react/components/toolbar/workspaceManagementMenu/WorkspaceManagementMenu.js +17 -23
  562. package/react/components/toolbar/workspaceManagementMenu/WorkspaceManagementMenu.js.map +1 -1
  563. package/react/components/toolbar/workspaceManagementMenu/components/Workspace.d.ts +25 -3
  564. package/react/components/toolbar/workspaceManagementMenu/components/Workspace.js.map +1 -1
  565. package/react/components/toolbar/workspaceManagementMenu/components/WorkspaceActions.d.ts +13 -8
  566. package/react/components/toolbar/workspaceManagementMenu/components/WorkspaceActions.js +2 -2
  567. package/react/components/toolbar/workspaceManagementMenu/components/WorkspaceActions.js.map +1 -1
  568. package/react/components/toolbar/workspaceManagementMenu/components/WorkspaceList.d.ts +16 -8
  569. package/react/components/toolbar/workspaceManagementMenu/components/WorkspaceList.js +0 -3
  570. package/react/components/toolbar/workspaceManagementMenu/components/WorkspaceList.js.map +1 -1
  571. package/react/components/toolbar/workspaceManagementMenu/stores/workspaceManagementMenuStore.d.ts +66 -11
  572. package/react/components/toolbar/workspaceManagementMenu/stores/workspaceManagementMenuStore.js +103 -153
  573. package/react/components/toolbar/workspaceManagementMenu/stores/workspaceManagementMenuStore.js.map +1 -1
  574. package/react/components/toolbar/workspaceManagementMenu/workspaceManagementMenu.css +0 -4
  575. package/react/components/userPreferences/UserPreferenceTypes.d.ts +5 -0
  576. package/react/components/userPreferences/UserPreferenceTypes.js +2 -0
  577. package/react/components/userPreferences/UserPreferenceTypes.js.map +1 -0
  578. package/react/components/userPreferences/UserPreferencesBase.js +2 -2
  579. package/react/components/userPreferences/UserPreferencesBase.js.map +1 -1
  580. package/react/components/userPreferences/UserPreferencesWrapper.js +1 -1
  581. package/react/components/userPreferences/UserPreferencesWrapper.js.map +1 -1
  582. package/react/components/userPreferences/components/ContentSection.js +1 -1
  583. package/react/components/userPreferences/components/ContentSection.js.map +1 -1
  584. package/react/components/userPreferences/components/LeftNav.d.ts +1 -1
  585. package/react/components/userPreferences/components/LeftNav.js +1 -1
  586. package/react/components/userPreferences/components/LeftNav.js.map +1 -1
  587. package/react/components/userPreferences/components/content/DashbarEditor.js +4 -4
  588. package/react/components/userPreferences/components/content/DashbarEditor.js.map +1 -1
  589. package/react/components/userPreferences/components/content/Notifications.js +2 -0
  590. package/react/components/userPreferences/components/content/Notifications.js.map +1 -1
  591. package/react/components/userPreferences/components/content/Workspaces.d.ts +51 -14
  592. package/react/components/userPreferences/components/content/Workspaces.js +96 -90
  593. package/react/components/userPreferences/components/content/Workspaces.js.map +1 -1
  594. package/react/components/userPreferences/components/content/notificationViews/NotificationsPreferencesHome.js +48 -51
  595. package/react/components/userPreferences/components/content/notificationViews/NotificationsPreferencesHome.js.map +1 -1
  596. package/react/components/userPreferences/components/content/notificationViews/NotificationsSourceTypes.js +9 -9
  597. package/react/components/userPreferences/components/content/notificationViews/NotificationsSourceTypes.js.map +1 -1
  598. package/react/components/userPreferences/components/content/notificationViews/NotificationsSourcesPreferences.js +4 -6
  599. package/react/components/userPreferences/components/content/notificationViews/NotificationsSourcesPreferences.js.map +1 -1
  600. package/react/components/userPreferences/components/content/notificationViews/notificationViewsUtils.js +6 -6
  601. package/react/components/userPreferences/components/content/notificationViews/notificationViewsUtils.js.map +1 -1
  602. package/react/components/userPreferences/components/general/ScheduledRestart.js +0 -1
  603. package/react/components/userPreferences/components/general/ScheduledRestart.js.map +1 -1
  604. package/react/components/userPreferences/components/workspaces/WorkspaceButton.d.ts +3 -4
  605. package/react/components/userPreferences/components/workspaces/WorkspaceButton.js +5 -1
  606. package/react/components/userPreferences/components/workspaces/WorkspaceButton.js.map +1 -1
  607. package/react/components/userPreferences/components/workspaces/WorkspaceComponents.js +8 -5
  608. package/react/components/userPreferences/components/workspaces/WorkspaceComponents.js.map +1 -1
  609. package/react/components/userPreferences/components/workspaces/WorkspaceItem.d.ts +1 -1
  610. package/react/components/userPreferences/components/workspaces/WorkspaceItem.js +24 -9
  611. package/react/components/userPreferences/components/workspaces/WorkspaceItem.js.map +1 -1
  612. package/react/components/userPreferences/components/workspaces/WorkspaceItemList.js +16 -2
  613. package/react/components/userPreferences/components/workspaces/WorkspaceItemList.js.map +1 -1
  614. package/react/components/userPreferences/stores/UserPreferencesStore.d.ts +12 -12
  615. package/react/components/userPreferences/stores/UserPreferencesStore.js +10 -17
  616. package/react/components/userPreferences/stores/UserPreferencesStore.js.map +1 -1
  617. package/react/components/userPreferences/stories/DashbarEditor.stories.js +1 -1
  618. package/react/components/userPreferences/stories/DashbarEditor.stories.js.map +1 -1
  619. package/react/components/userPreferences/stories/DashbarEditorItem.stories.js +1 -1
  620. package/react/components/userPreferences/stories/DashbarEditorItem.stories.js.map +1 -1
  621. package/react/components/userPreferences/stories/General.stories.js.map +1 -1
  622. package/react/components/userPreferences/stories/NotificationsSourceTypes.stories.js +1 -1
  623. package/react/components/userPreferences/stories/NotificationsSourceTypes.stories.js.map +1 -1
  624. package/react/components/userPreferences/stories/NotificationsSources.stories.js +1 -1
  625. package/react/components/userPreferences/stories/NotificationsSources.stories.js.map +1 -1
  626. package/react/components/userPreferences/stories/UserPreferences.stories.d.ts +1 -1
  627. package/react/components/userPreferences/stories/UserPreferences.stories.js +1 -1
  628. package/react/components/userPreferences/stories/UserPreferences.stories.js.map +1 -1
  629. package/react/components/userPreferences/stories/WorkspaceButton.stories.d.ts +5 -9
  630. package/react/components/userPreferences/stories/WorkspaceButton.stories.js +10 -3
  631. package/react/components/userPreferences/stories/WorkspaceButton.stories.js.map +1 -1
  632. package/react/components/userPreferences/stories/WorkspaceItem.stories.js +2 -2
  633. package/react/components/userPreferences/stories/WorkspaceItem.stories.js.map +1 -1
  634. package/react/components/userPreferences/stories/WorkspaceItemList.stories.js.map +1 -1
  635. package/react/components/userPreferences/stories/Workspaces.stories.js +2 -2
  636. package/react/components/userPreferences/stories/Workspaces.stories.js.map +1 -1
  637. package/react/components/userPreferences/tests/ContentSection.spec.js.map +1 -1
  638. package/react/components/userPreferences/tests/DashbarEditor.spec.js.map +1 -1
  639. package/react/components/userPreferences/tests/DashbarEditorItem.spec.js.map +1 -1
  640. package/react/components/userPreferences/tests/General.spec.js.map +1 -1
  641. package/react/components/userPreferences/tests/LeftNav.spec.js.map +1 -1
  642. package/react/components/userPreferences/tests/NotificationSourceTypes.spec.js.map +1 -1
  643. package/react/components/userPreferences/tests/Notifications.spec.js.map +1 -1
  644. package/react/components/userPreferences/tests/NotificationsPreferencesHome.spec.js.map +1 -1
  645. package/react/components/userPreferences/tests/NotificationsSourcesPreferences.spec.js.map +1 -1
  646. package/react/components/userPreferences/tests/ScheduledRestart.spec.js.map +1 -1
  647. package/react/components/userPreferences/tests/WorkspaceButton.spec.js +17 -3
  648. package/react/components/userPreferences/tests/WorkspaceButton.spec.js.map +1 -1
  649. package/react/components/userPreferences/tests/WorkspaceComponents.spec.js +1 -1
  650. package/react/components/userPreferences/tests/WorkspaceComponents.spec.js.map +1 -1
  651. package/react/components/userPreferences/tests/WorkspaceItem.spec.js.map +1 -1
  652. package/react/components/userPreferences/tests/WorkspaceItemList.spec.js.map +1 -1
  653. package/react/components/utils.js +1 -1
  654. package/react/components/utils.js.map +1 -1
  655. package/react/components/windowTitleBar/WindowTitleBarShell.d.ts +58 -31
  656. package/react/components/windowTitleBar/WindowTitleBarShell.js +47 -50
  657. package/react/components/windowTitleBar/WindowTitleBarShell.js.map +1 -1
  658. package/react/components/windowTitleBar/components/center/Tab.d.ts +28 -7
  659. package/react/components/windowTitleBar/components/center/Tab.js +11 -4
  660. package/react/components/windowTitleBar/components/center/Tab.js.map +1 -1
  661. package/react/components/windowTitleBar/components/center/TabList.d.ts +43 -30
  662. package/react/components/windowTitleBar/components/center/TabList.js +179 -66
  663. package/react/components/windowTitleBar/components/center/TabList.js.map +1 -1
  664. package/react/components/windowTitleBar/components/left/LinkerButton.js +5 -4
  665. package/react/components/windowTitleBar/components/left/LinkerButton.js.map +1 -1
  666. package/react/components/windowTitleBar/components/left/LinkerButtonDeprecated.d.ts +1 -21
  667. package/react/components/windowTitleBar/components/left/LinkerGroups.js +6 -8
  668. package/react/components/windowTitleBar/components/left/LinkerGroups.js.map +1 -1
  669. package/react/components/windowTitleBar/components/left/LinkerGroupsDeprecated.js +2 -1
  670. package/react/components/windowTitleBar/components/left/LinkerGroupsDeprecated.js.map +1 -1
  671. package/react/components/windowTitleBar/components/left/ShareButton.d.ts +1 -21
  672. package/react/components/windowTitleBar/components/right/CloseButton.d.ts +12 -25
  673. package/react/components/windowTitleBar/components/right/CloseButton.js.map +1 -1
  674. package/react/components/windowTitleBar/components/right/GroupingButton.d.ts +17 -26
  675. package/react/components/windowTitleBar/components/right/GroupingButton.js +2 -2
  676. package/react/components/windowTitleBar/components/right/GroupingButton.js.map +1 -1
  677. package/react/components/windowTitleBar/components/right/MaximizeButton.d.ts +16 -26
  678. package/react/components/windowTitleBar/components/right/MaximizeButton.js +7 -9
  679. package/react/components/windowTitleBar/components/right/MaximizeButton.js.map +1 -1
  680. package/react/components/windowTitleBar/components/right/MinimizeButton.d.ts +12 -25
  681. package/react/components/windowTitleBar/components/right/MinimizeButton.js.map +1 -1
  682. package/react/components/windowTitleBar/components/windowTitle.d.ts +2 -1
  683. package/react/components/windowTitleBar/components/windowTitle.js +22 -10
  684. package/react/components/windowTitleBar/components/windowTitle.js.map +1 -1
  685. package/react/components/windowTitleBar/stores/windowTitleBarStore.d.ts +56 -44
  686. package/react/components/windowTitleBar/stores/windowTitleBarStore.js +96 -64
  687. package/react/components/windowTitleBar/stores/windowTitleBarStore.js.map +1 -1
  688. package/react/components/windowTitleBar/stores/windowTitleBarStoreDefaults.d.ts +42 -44
  689. package/react/components/windowTitleBar/stores/windowTitleBarStoreDefaults.js.map +1 -1
  690. package/react/components/windowTitleBar/windowTitleBarContext.d.ts +9 -9
  691. package/react/components/windowTitleBar/windowTitleBarContext.js +2 -4
  692. package/react/components/windowTitleBar/windowTitleBarContext.js.map +1 -1
  693. package/react/components/yesNoDialog/Timer.spec.js +2 -2
  694. package/react/components/yesNoDialog/Timer.spec.js.map +1 -1
  695. package/react/components/yesNoDialog/Timer.stories.js +1 -1
  696. package/react/components/yesNoDialog/Timer.stories.js.map +1 -1
  697. package/react/components/yesNoDialog/YesNoDialog.spec.js +5 -5
  698. package/react/components/yesNoDialog/YesNoDialog.spec.js.map +1 -1
  699. package/react/components/yesNoDialog/YesNoDialog.stories.js +1 -1
  700. package/react/components/yesNoDialog/YesNoDialog.stories.js.map +1 -1
  701. package/react/hooks/useFavoritesShell.js +1 -3
  702. package/react/hooks/useFavoritesShell.js.map +1 -1
  703. package/react/hooks/useLinker.js +4 -4
  704. package/react/hooks/useLinker.js.map +1 -1
  705. package/react/hooks/useMenu.js +2 -2
  706. package/react/hooks/useMenu.js.map +1 -1
  707. package/react/hooks/useNotifications.d.ts +8 -8
  708. package/react/hooks/useNotifications.js +30 -30
  709. package/react/hooks/useNotifications.js.map +1 -1
  710. package/react/hooks/usePubSub.js +3 -5
  711. package/react/hooks/usePubSub.js.map +1 -1
  712. package/react/hooks/useSearch.js +1 -1
  713. package/react/hooks/useSearch.js.map +1 -1
  714. package/react/hooks/useToolbar.js +16 -35
  715. package/react/hooks/useToolbar.js.map +1 -1
  716. package/react/hooks/useWorkspace.js +1 -1
  717. package/react/hooks/useWorkspace.js.map +1 -1
  718. package/react/reducers/favoriteReducer.js +1 -1
  719. package/react/reducers/favoriteReducer.js.map +1 -1
  720. package/react/reducers/linkerReducer.js.map +1 -1
  721. package/react/reducers/rootReducer.d.ts +3 -4
  722. package/react/reducers/toolbarReducer.js +1 -1
  723. package/react/reducers/toolbarReducer.js.map +1 -1
  724. package/react/store.d.ts +6 -7
  725. package/react/store.js.map +1 -1
  726. package/react/types/advancedAppLauncherTypes.d.ts +28 -1
  727. package/react/types/advancedAppLauncherTypes.js.map +1 -1
  728. package/react/types/favoriteTypes.d.ts +1 -1
  729. package/react/types/favoriteTypes.js.map +1 -1
  730. package/react/types/fdc3.d.ts +22 -0
  731. package/react/types/fdc3.js.map +1 -1
  732. package/react/types/searchTypes.d.ts +3 -0
  733. package/react/types/searchTypes.js.map +1 -1
  734. package/react/types/smartDesktopDesignerTypes.d.ts +11 -9
  735. package/react/types/smartDesktopDesignerTypes.js.map +1 -1
  736. package/react/types/windowTitleBar.d.ts +47 -0
  737. package/react/types/windowTitleBar.js +2 -0
  738. package/react/types/windowTitleBar.js.map +1 -0
  739. package/react/types/workspaceTypes.d.ts +19 -0
  740. package/react/types/workspaceTypes.js.map +1 -1
  741. package/react/components/processMonitor/components/ChildWindows.d.ts +0 -4
  742. package/react/components/processMonitor/components/ChildWindows.js +0 -11
  743. package/react/components/processMonitor/components/ChildWindows.js.map +0 -1
  744. package/react/components/smartDesktopDesigner/fixtures/applicationsProps.d.ts +0 -2
  745. package/react/components/smartDesktopDesigner/fixtures/applicationsProps.js +0 -88
  746. package/react/components/smartDesktopDesigner/fixtures/applicationsProps.js.map +0 -1
  747. package/react/components/toolbar/advancedAppLauncher/components/LeftNav.d.ts +0 -4
  748. package/react/components/toolbar/advancedAppLauncher/components/LeftNav.js +0 -14
  749. package/react/components/toolbar/advancedAppLauncher/components/LeftNav.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"FontSizeSelector.js","sourceRoot":"","sources":["../../../src/components/common/FontSizeSelector.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAe,QAAQ,EAAE,MAAM,OAAO,CAAC;AAErD,MAAM,cAAc,GAAG;IACtB,UAAU;IACV,SAAS;IACT,OAAO;IACP,QAAQ;IACR,OAAO;IACP,SAAS;IACT,UAAU;IACV,WAAW;IACX,SAAS;IACT,QAAQ;IACR,KAAK;IACL,MAAM;IACN,MAAM;IACN,MAAM;IACN,MAAM;IACN,KAAK;IACL,MAAM;IACN,MAAM;IACN,MAAM;IACN,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,KAAK;IACL,KAAK;IACL,MAAM;IACN,MAAM;IACN,SAAS;IACT,SAAS;IACT,OAAO;CACP,CAAC;AAaF,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,EAAE,EAAE,EAAE,SAAS,EAAE,UAAU,EAAiB,EAAE,EAAE;IACxE,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,QAAQ,CAAC,SAAS,CAAC,CAAC;IAE5C,OAAO,CACN,6BAAK,SAAS,EAAC,kBAAkB;QAChC,mCACK,EAAE,EAAE,EAAE,EACV,KAAK,EAAE,IAAI,EACX,QAAQ,EAAE,CAAC,CAAiC,EAAE,EAAE;gBAC/C,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;gBACxB,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;YAC5B,CAAC,IAEA,cAAc,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,CAClC,gCAAQ,GAAG,EAAE,SAAS,IAAG,SAAS,CAAU,CAC5C,CAAC,CACM,CACJ,CACN,CAAC;AACH,CAAC,CAAC","sourcesContent":["import React, { ChangeEvent, useState } from \"react\";\r\n\r\nconst FONT_SIZE_LIST = [\r\n\t\"xx-small\",\r\n\t\"x-small\",\r\n\t\"small\",\r\n\t\"medium\",\r\n\t\"large\",\r\n\t\"x-large\",\r\n\t\"xx-large\",\r\n\t\"xxx-large\",\r\n\t\"smaller\",\r\n\t\"larger\",\r\n\t\"8px\",\r\n\t\"10px\",\r\n\t\"12px\",\r\n\t\"14px\",\r\n\t\"16px\",\r\n\t\"8pt\",\r\n\t\"10pt\",\r\n\t\"12pt\",\r\n\t\"14pt\",\r\n\t\"0.6em\",\r\n\t\"0.8em\",\r\n\t\"1.2em\",\r\n\t\"1.4em\",\r\n\t\"60%\",\r\n\t\"80%\",\r\n\t\"120%\",\r\n\t\"140%\",\r\n\t\"inherit\",\r\n\t\"initial\",\r\n\t\"unset\",\r\n];\r\n\r\nexport interface FontSizeProps {\r\n\tid?: string;\r\n\tstartSize: string;\r\n\tupdateSize: (newSize: string) => void;\r\n}\r\n\r\n/**\r\n * FontSize component to update theme variables. Text input that validates against browser.\r\n *\r\n * @param {{ id?: string; startSize: string; updateSize: (newSize: string) => void }} { startSize, updateSize }\r\n */\r\nexport const FontSize = ({ id, startSize, updateSize }: FontSizeProps) => {\r\n\tconst [size, setSize] = useState(startSize);\r\n\r\n\treturn (\r\n\t\t<div className=\"font-size-picker\">\r\n\t\t\t<select\r\n\t\t\t\t{...{ id }}\r\n\t\t\t\tvalue={size}\r\n\t\t\t\tonChange={(e: ChangeEvent<HTMLSelectElement>) => {\r\n\t\t\t\t\tsetSize(e.target.value);\r\n\t\t\t\t\tupdateSize(e.target.value);\r\n\t\t\t\t}}\r\n\t\t\t>\r\n\t\t\t\t{FONT_SIZE_LIST.map((font_size) => (\r\n\t\t\t\t\t<option key={font_size}>{font_size}</option>\r\n\t\t\t\t))}\r\n\t\t\t</select>\r\n\t\t</div>\r\n\t);\r\n};\r\n"]}
1
+ {"version":3,"file":"FontSizeSelector.js","sourceRoot":"","sources":["../../../src/components/common/FontSizeSelector.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAe,QAAQ,EAAE,MAAM,OAAO,CAAC;AAErD,MAAM,cAAc,GAAG;IACtB,UAAU;IACV,SAAS;IACT,OAAO;IACP,QAAQ;IACR,OAAO;IACP,SAAS;IACT,UAAU;IACV,WAAW;IACX,SAAS;IACT,QAAQ;IACR,KAAK;IACL,MAAM;IACN,MAAM;IACN,MAAM;IACN,MAAM;IACN,KAAK;IACL,MAAM;IACN,MAAM;IACN,MAAM;IACN,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,KAAK;IACL,KAAK;IACL,MAAM;IACN,MAAM;IACN,SAAS;IACT,SAAS;IACT,OAAO;CACP,CAAC;AAaF,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,EAAE,EAAE,EAAE,SAAS,EAAE,UAAU,EAAiB,EAAE,EAAE;IACxE,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,QAAQ,CAAC,SAAS,CAAC,CAAC;IAE5C,OAAO,CACN,6BAAK,SAAS,EAAC,kBAAkB;QAChC,gDACK,EAAE,EAAE,EAAE,IACV,KAAK,EAAE,IAAI,EACX,QAAQ,EAAE,CAAC,CAAiC,EAAE,EAAE;gBAC/C,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;gBACxB,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;YAC5B,CAAC,KAEA,cAAc,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,CAClC,gCAAQ,GAAG,EAAE,SAAS,IAAG,SAAS,CAAU,CAC5C,CAAC,CACM,CACJ,CACN,CAAC;AACH,CAAC,CAAC","sourcesContent":["import React, { ChangeEvent, useState } from \"react\";\r\n\r\nconst FONT_SIZE_LIST = [\r\n\t\"xx-small\",\r\n\t\"x-small\",\r\n\t\"small\",\r\n\t\"medium\",\r\n\t\"large\",\r\n\t\"x-large\",\r\n\t\"xx-large\",\r\n\t\"xxx-large\",\r\n\t\"smaller\",\r\n\t\"larger\",\r\n\t\"8px\",\r\n\t\"10px\",\r\n\t\"12px\",\r\n\t\"14px\",\r\n\t\"16px\",\r\n\t\"8pt\",\r\n\t\"10pt\",\r\n\t\"12pt\",\r\n\t\"14pt\",\r\n\t\"0.6em\",\r\n\t\"0.8em\",\r\n\t\"1.2em\",\r\n\t\"1.4em\",\r\n\t\"60%\",\r\n\t\"80%\",\r\n\t\"120%\",\r\n\t\"140%\",\r\n\t\"inherit\",\r\n\t\"initial\",\r\n\t\"unset\",\r\n];\r\n\r\nexport interface FontSizeProps {\r\n\tid?: string;\r\n\tstartSize: string;\r\n\tupdateSize: (newSize: string) => void;\r\n}\r\n\r\n/**\r\n * FontSize component to update theme variables. Text input that validates against browser.\r\n *\r\n * @param {{ id?: string; startSize: string; updateSize: (newSize: string) => void }} { startSize, updateSize }\r\n */\r\nexport const FontSize = ({ id, startSize, updateSize }: FontSizeProps) => {\r\n\tconst [size, setSize] = useState(startSize);\r\n\r\n\treturn (\r\n\t\t<div className=\"font-size-picker\">\r\n\t\t\t<select\r\n\t\t\t\t{...{ id }}\r\n\t\t\t\tvalue={size}\r\n\t\t\t\tonChange={(e: ChangeEvent<HTMLSelectElement>) => {\r\n\t\t\t\t\tsetSize(e.target.value);\r\n\t\t\t\t\tupdateSize(e.target.value);\r\n\t\t\t\t}}\r\n\t\t\t>\r\n\t\t\t\t{FONT_SIZE_LIST.map((font_size) => (\r\n\t\t\t\t\t<option key={font_size}>{font_size}</option>\r\n\t\t\t\t))}\r\n\t\t\t</select>\r\n\t\t</div>\r\n\t);\r\n};\r\n"]}
@@ -33,10 +33,10 @@ export const ImagePreview = (props) => {
33
33
  setDroppedFile(file);
34
34
  } },
35
35
  React.createElement("div", { className: ["image-preview-container", `image-preview-size-${previewSize}`].join(" ") },
36
- React.createElement(FileInput, { value: imagePath, uploadFunction: props.uploadFunction, onSetValue: (value) => {
36
+ React.createElement(FileInput, Object.assign({ value: imagePath, uploadFunction: props.uploadFunction, onSetValue: (value) => {
37
37
  setImagePath(value);
38
38
  setCacheIndex(++globalCacheIndex);
39
- }, acceptTypes: props.acceptTypes, presetFile: droppedFile, suppressDropzone: true, ...(props.id ? { id: props.id } : {}) }),
39
+ }, acceptTypes: props.acceptTypes, presetFile: droppedFile, suppressDropzone: true }, (props.id ? { id: props.id } : {}))),
40
40
  !imagePath ? (React.createElement("div", { className: "empty-preview" })) : (React.createElement("div", { className: "filled-preview" },
41
41
  React.createElement("img", { src: `${props.baseURL}/${imagePath}?${cacheIndex}` }))))));
42
42
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ImagePreview.js","sourceRoot":"","sources":["../../../src/components/common/ImagePreview.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,SAAS,EAA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AC,CAAC,CAAC;IACrD,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;IAEZ,OAAO,CACN,oBAAC,QAAQ,IACR,WAAW,EAAE,CAAC,IAAU,EAAE,EAAE;YAC3B,cAAc,CAAC,IAAI,CAAC,CAAC;QACtB,CAAC;QAED,6BAAK,SAAS,EAAE,CAAC,yBAAyB,EAAE,sBAAsB,WAAW,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC;YACzF,oBAAC,SAAS,IACT,KAAK,EAAE,SAAS,EAChB,cAAc,EAAE,KAAK,CAAC,cAAc,EACpC,UAAU,EAAE,CAAC,KAAa,EAAE,EAAE;oBAC7B,YAAY,CAAC,KAAK,CAAC,CAAC;oBACpB,aAAa,CAAC,EAAE,gBAAgB,CAAC,CAAC;gBACnC,CAAC,EACD,WAAW,EAAE,KAAK,CAAC,WAAW,EAC9B,UAAU,EAAE,WAAW,EACvB,gBAAgB,EAAE,IAAI,KAClB,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,GAC1B;YAEZ,CAAC,SAAS,CAAC,CAAC,CAAC,CACb,6BAAK,SAAS,EAAC,eAAe,GAAO,CACrC,CAAC,CAAC,CAAC,CACH,6BAAK,SAAS,EAAC,gBAAgB;gBAC9B,6BAAK,GAAG,EAAE,GAAG,KAAK,CAAC,OAAO,IAAI,SAAS,IAAI,UAAU,EAAE,GAAI,CACtD,CACN,CACI,CACI,CACX,CAAC;AACH,CAAC,CAAC","sourcesContent":["/*!\r\n * Copyright 2017 - 2020 by ChartIQ, Inc.\r\n * All rights reserved.\r\n */\r\n\r\nimport React, { useState, useEffect } from \"react\";\r\n\r\nimport { FileInput, FileInputUploadCb } from \"./FileInput\";\r\nimport \"./css/image-preview.css\";\r\nimport { DropZone, FileWithPath } from \"./DropZone\";\r\n\r\nexport enum ImagePreviewSize {\r\n\tSMALL = \"small\",\r\n\tLARGE = \"large\",\r\n}\r\n\r\nexport type ImagePreviewProps = {\r\n\tid?: string;\r\n\tvalue: string;\r\n\tbaseURL: string;\r\n\tonSetValue?: (value: string) => void;\r\n\tuploadFunction: FileInputUploadCb;\r\n\tacceptTypes: string[];\r\n\tpreviewSize?: ImagePreviewSize;\r\n};\r\n\r\nlet globalCacheIndex = 0;\r\n\r\nconst cleanPath = (path: string, baseURL: string) =>\r\n\tpath\r\n\t\t.replace(new RegExp(`^${baseURL}`), \"\")\r\n\t\t.replace(/\\/{1,}/g, \"/\")\r\n\t\t.replace(/^\\//, \"\");\r\n\r\nexport const ImagePreview = (props: ImagePreviewProps) => {\r\n\tconst [cacheIndex, setCacheIndex] = useState(++globalCacheIndex);\r\n\tconst previewSize = props.previewSize || ImagePreviewSize.SMALL;\r\n\tconst [droppedFile, setDroppedFile] = useState<FileWithPath | null>(null);\r\n\r\n\tconst [imagePath, setImagePath] = useState(cleanPath(props.value, props.baseURL));\r\n\r\n\tuseEffect(() => {\r\n\t\tif (props.onSetValue) {\r\n\t\t\tprops.onSetValue(imagePath);\r\n\t\t}\r\n\t}, [imagePath]);\r\n\r\n\tuseEffect(() => {\r\n\t\tsetImagePath(cleanPath(props.value, props.baseURL));\r\n\t}, [props]);\r\n\r\n\treturn (\r\n\t\t<DropZone\r\n\t\t\tprocessFile={(file: File) => {\r\n\t\t\t\tsetDroppedFile(file);\r\n\t\t\t}}\r\n\t\t>\r\n\t\t\t<div className={[\"image-preview-container\", `image-preview-size-${previewSize}`].join(\" \")}>\r\n\t\t\t\t<FileInput\r\n\t\t\t\t\tvalue={imagePath}\r\n\t\t\t\t\tuploadFunction={props.uploadFunction}\r\n\t\t\t\t\tonSetValue={(value: string) => {\r\n\t\t\t\t\t\tsetImagePath(value);\r\n\t\t\t\t\t\tsetCacheIndex(++globalCacheIndex);\r\n\t\t\t\t\t}}\r\n\t\t\t\t\tacceptTypes={props.acceptTypes}\r\n\t\t\t\t\tpresetFile={droppedFile}\r\n\t\t\t\t\tsuppressDropzone={true}\r\n\t\t\t\t\t{...(props.id ? { id: props.id } : {})}\r\n\t\t\t\t></FileInput>\r\n\r\n\t\t\t\t{!imagePath ? (\r\n\t\t\t\t\t<div className=\"empty-preview\"></div>\r\n\t\t\t\t) : (\r\n\t\t\t\t\t<div className=\"filled-preview\">\r\n\t\t\t\t\t\t<img src={`${props.baseURL}/${imagePath}?${cacheIndex}`} />\r\n\t\t\t\t\t</div>\r\n\t\t\t\t)}\r\n\t\t\t</div>\r\n\t\t</DropZone>\r\n\t);\r\n};\r\n"]}
1
+ {"version":3,"file":"ImagePreview.js","sourceRoot":"","sources":["../../../src/components/common/ImagePreview.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,SAAS,EAAqB,MAAM,aAAa,CAAC;AAC3D,OAAO,yBAAyB,CAAC;AACjC,OAAO,EAAE,QAAQ,EAAgB,MAAM,YAAY,CAAC;AAEpD,MAAM,CAAN,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IAC3B,mCAAe,CAAA;IACf,mCAAe,CAAA;AAChB,CAAC,EAHW,gBAAgB,KAAhB,gBAAgB,QAG3B;AAYD,IAAI,gBAAgB,GAAG,CAAC,CAAC;AAEzB,MAAM,SAAS,GAAG,CAAC,IAAY,EAAE,OAAe,EAAE,EAAE,CACnD,IAAI;KACF,OAAO,CAAC,IAAI,MAAM,CAAC,IAAI,OAAO,EAAE,CAAC,EAAE,EAAE,CAAC;KACtC,OAAO,CAAC,SAAS,EAAE,GAAG,CAAC;KACvB,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;AAEtB,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,KAAwB,EAAE,EAAE;IACxD,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,QAAQ,CAAC,EAAE,gBAAgB,CAAC,CAAC;IACjE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E,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAC1B;YAEZ,CAAC,SAAS,CAAC,CAAC,CAAC,CACb,6BAAK,SAAS,EAAC,eAAe,GAAO,CACrC,CAAC,CAAC,CAAC,CACH,6BAAK,SAAS,EAAC,gBAAgB;gBAC9B,6BAAK,GAAG,EAAE,GAAG,KAAK,CAAC,OAAO,IAAI,SAAS,IAAI,UAAU,EAAE,GAAI,CACtD,CACN,CACI,CACI,CACX,CAAC;AACH,CAAC,CAAC","sourcesContent":["/*!\r\n * Copyright 2017 - 2020 by ChartIQ, Inc.\r\n * All rights reserved.\r\n */\r\n\r\nimport React, { useState, useEffect } from \"react\";\r\n\r\nimport { FileInput, FileInputUploadCb } from \"./FileInput\";\r\nimport \"./css/image-preview.css\";\r\nimport { DropZone, FileWithPath } from \"./DropZone\";\r\n\r\nexport enum ImagePreviewSize {\r\n\tSMALL = \"small\",\r\n\tLARGE = \"large\",\r\n}\r\n\r\nexport type ImagePreviewProps = {\r\n\tid?: string;\r\n\tvalue: string;\r\n\tbaseURL: string;\r\n\tonSetValue?: (value: string) => void;\r\n\tuploadFunction: FileInputUploadCb;\r\n\tacceptTypes: string[];\r\n\tpreviewSize?: ImagePreviewSize;\r\n};\r\n\r\nlet globalCacheIndex = 0;\r\n\r\nconst cleanPath = (path: string, baseURL: string) =>\r\n\tpath\r\n\t\t.replace(new RegExp(`^${baseURL}`), \"\")\r\n\t\t.replace(/\\/{1,}/g, \"/\")\r\n\t\t.replace(/^\\//, \"\");\r\n\r\nexport const ImagePreview = (props: ImagePreviewProps) => {\r\n\tconst [cacheIndex, setCacheIndex] = useState(++globalCacheIndex);\r\n\tconst previewSize = props.previewSize || ImagePreviewSize.SMALL;\r\n\tconst [droppedFile, setDroppedFile] = useState<FileWithPath | null>(null);\r\n\r\n\tconst [imagePath, setImagePath] = useState(cleanPath(props.value, props.baseURL));\r\n\r\n\tuseEffect(() => {\r\n\t\tif (props.onSetValue) {\r\n\t\t\tprops.onSetValue(imagePath);\r\n\t\t}\r\n\t}, [imagePath]);\r\n\r\n\tuseEffect(() => {\r\n\t\tsetImagePath(cleanPath(props.value, props.baseURL));\r\n\t}, [props]);\r\n\r\n\treturn (\r\n\t\t<DropZone\r\n\t\t\tprocessFile={(file: File) => {\r\n\t\t\t\tsetDroppedFile(file);\r\n\t\t\t}}\r\n\t\t>\r\n\t\t\t<div className={[\"image-preview-container\", `image-preview-size-${previewSize}`].join(\" \")}>\r\n\t\t\t\t<FileInput\r\n\t\t\t\t\tvalue={imagePath}\r\n\t\t\t\t\tuploadFunction={props.uploadFunction}\r\n\t\t\t\t\tonSetValue={(value: string) => {\r\n\t\t\t\t\t\tsetImagePath(value);\r\n\t\t\t\t\t\tsetCacheIndex(++globalCacheIndex);\r\n\t\t\t\t\t}}\r\n\t\t\t\t\tacceptTypes={props.acceptTypes}\r\n\t\t\t\t\tpresetFile={droppedFile}\r\n\t\t\t\t\tsuppressDropzone={true}\r\n\t\t\t\t\t{...(props.id ? { id: props.id } : {})}\r\n\t\t\t\t></FileInput>\r\n\r\n\t\t\t\t{!imagePath ? (\r\n\t\t\t\t\t<div className=\"empty-preview\"></div>\r\n\t\t\t\t) : (\r\n\t\t\t\t\t<div className=\"filled-preview\">\r\n\t\t\t\t\t\t<img src={`${props.baseURL}/${imagePath}?${cacheIndex}`} />\r\n\t\t\t\t\t</div>\r\n\t\t\t\t)}\r\n\t\t\t</div>\r\n\t\t</DropZone>\r\n\t);\r\n};\r\n"]}
@@ -8,8 +8,9 @@ export const Tab = ({ children, autofocus }) => {
8
8
  const [selectedTab, setSelectedTab] = useState(autofocus || 0);
9
9
  const ref = useRef(null);
10
10
  useLayoutEffect(() => {
11
+ var _a;
11
12
  if (ref.current !== null) {
12
- ref.current.style.height = `${window.innerHeight - (ref.current.getBoundingClientRect()?.top || 0) - 10}px`;
13
+ ref.current.style.height = `${window.innerHeight - (((_a = ref.current.getBoundingClientRect()) === null || _a === void 0 ? void 0 : _a.top) || 0) - 10}px`;
13
14
  }
14
15
  });
15
16
  return (React.createElement(React.Fragment, null,
@@ -1 +1 @@
1
- {"version":3,"file":"Tab.js","sourceRoot":"","sources":["../../../src/components/common/Tab.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,eAAe,EAAmC,MAAM,OAAO,CAAC;AAClG,OAAO,eAAe,CAAC;AAOvB,MAAM,CAAC,MAAM,GAAG,GAAgC,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,EAAE;IAC3E,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,QAAQ,CAAC,SAAS,IAAI,CAAC,CAAC,CAAC;IAC/D,MAAM,GAAG,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAC;IAEzC,eAAe,CAAC,GAAG,EAAE;QAIpB,IAAI,GAAG,CAAC,OAAO,KAAK,IAAI,EAAE;YACzB,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC,MAAM,GAAG,GAAG,MAAM,CAAC,WAAW,GAAG,CAAC,GAAG,CAAC,OAAO,CAAC,qBAAqB,EAAE,EAAE,GAAG,IAAI,CAAC,CAAC,GAAG,EAAE,IAAI,CAAC;SAC5G;IACF,CAAC,CAAC,CAAC;IAEH,OAAO,CACN;QACC,6BAAK,IAAI,EAAC,SAAS,IACjB,KAAK,CAAC,QAAQ,CAAC,GAAG,CAClB,QAAQ,EACR,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,CACZ,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,IAAI,CAC5B,6BACC,GAAG,EAAE,OAAO,GAAG,EAAE,EACjB,IAAI,EAAC,KAAK,mBACK,WAAW,KAAK,GAAG,mBACnB,YAAY,GAAG,EAAE,EAChC,QAAQ,EAAE,CAAC,EACX,SAAS,EAAE,CAAC,CAAC,EAAE,EAAE;gBAChB,IAAI,CAAC,CAAC,GAAG,KAAK,GAAG,IAAI,CAAC,CAAC,GAAG,KAAK,OAAO,EAAE;oBACvC,cAAc,CAAC,GAAG,CAAC,CAAC;oBACpB,CAAC,CAAC,cAAc,EAAE,CAAC;iBACnB;YACF,CAAC,EACD,OAAO,EAAE,GAAG,EAAE;gBACb,cAAc,CAAC,GAAG,CAAC,CAAC;YACrB,CAAC,IAEC,GAAoB,CAAC,KAAK,CAAC,YAAY,CAAC,CACrC,CACN,CACF,CACI;QAEN,6BAAK,EAAE,EAAC,mBAAmB,EAAC,GAAG,EAAE,GAAG,IAClC,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,CAAC,CAC3C,6BACC,GAAG,EAAE,YAAY,GAAG,EAAE,EACtB,IAAI,EAAC,UAAU,EACf,EAAE,EAAE,YAAY,GAAG,EAAE,EACrB,SAAS,EAAE,WAAW,KAAK,GAAG,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,IAE9C,GAAG,CACC,CACN,CAAC,CACG,CACJ,CACH,CAAC;AACH,CAAC,CAAC","sourcesContent":["/*!\r\n * Copyright 2017 - 2020 by ChartIQ, Inc.\r\n * All rights reserved.\r\n */\r\n\r\nimport React, { useState, useRef, useLayoutEffect, FunctionComponent, ReactElement } from \"react\";\r\nimport \"./css/tab.css\";\r\n\r\nexport type TabProps = {\r\n\tchildren?: React.ReactNode;\r\n\tautofocus?: number;\r\n};\r\n\r\nexport const Tab: FunctionComponent<TabProps> = ({ children, autofocus }) => {\r\n\tconst [selectedTab, setSelectedTab] = useState(autofocus || 0);\r\n\tconst ref = useRef<HTMLDivElement>(null);\r\n\r\n\tuseLayoutEffect(() => {\r\n\t\t// Allow for the tab panel content to look nice with its own scrollbar,\r\n\t\t// which also keeps the heading/tab group at the top of the page.\r\n\t\t// It feels like css flex should do this, but I could never get it to work.\r\n\t\tif (ref.current !== null) {\r\n\t\t\tref.current.style.height = `${window.innerHeight - (ref.current.getBoundingClientRect()?.top || 0) - 10}px`;\r\n\t\t}\r\n\t});\r\n\r\n\treturn (\r\n\t\t<>\r\n\t\t\t<div role=\"tablist\">\r\n\t\t\t\t{React.Children.map(\r\n\t\t\t\t\tchildren,\r\n\t\t\t\t\t(tab, key) =>\r\n\t\t\t\t\t\tReact.isValidElement(tab) && (\r\n\t\t\t\t\t\t\t<div\r\n\t\t\t\t\t\t\t\tkey={`tab-${key}`}\r\n\t\t\t\t\t\t\t\trole=\"tab\"\r\n\t\t\t\t\t\t\t\taria-selected={selectedTab === key}\r\n\t\t\t\t\t\t\t\taria-controls={`tabpanel-${key}`}\r\n\t\t\t\t\t\t\t\ttabIndex={0}\r\n\t\t\t\t\t\t\t\tonKeyDown={(e) => {\r\n\t\t\t\t\t\t\t\t\tif (e.key === \" \" || e.key === \"Enter\") {\r\n\t\t\t\t\t\t\t\t\t\tsetSelectedTab(key);\r\n\t\t\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\tonClick={() => {\r\n\t\t\t\t\t\t\t\t\tsetSelectedTab(key);\r\n\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t{(tab as ReactElement).props[\"data-label\"]}\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t)\r\n\t\t\t\t)}\r\n\t\t\t</div>\r\n\r\n\t\t\t<div id=\"tabpanelContainer\" ref={ref}>\r\n\t\t\t\t{React.Children.map(children, (tab, key) => (\r\n\t\t\t\t\t<div\r\n\t\t\t\t\t\tkey={`tabpanel-${key}`}\r\n\t\t\t\t\t\trole=\"tabpanel\"\r\n\t\t\t\t\t\tid={`tabpanel-${key}`}\r\n\t\t\t\t\t\tclassName={selectedTab === key ? \"visible\" : \"\"}\r\n\t\t\t\t\t>\r\n\t\t\t\t\t\t{tab}\r\n\t\t\t\t\t</div>\r\n\t\t\t\t))}\r\n\t\t\t</div>\r\n\t\t</>\r\n\t);\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,GAAG,CAAC,CAAC;oBACpB,CAAC,CAAC,cAAc,EAAE,CAAC;iBACnB;YACF,CAAC,EACD,OAAO,EAAE,GAAG,EAAE;gBACb,cAAc,CAAC,GAAG,CAAC,CAAC;YACrB,CAAC,IAEC,GAAoB,CAAC,KAAK,CAAC,YAAY,CAAC,CACrC,CACN,CACF,CACI;QAEN,6BAAK,EAAE,EAAC,mBAAmB,EAAC,GAAG,EAAE,GAAG,IAClC,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,CAAC,CAC3C,6BACC,GAAG,EAAE,YAAY,GAAG,EAAE,EACtB,IAAI,EAAC,UAAU,EACf,EAAE,EAAE,YAAY,GAAG,EAAE,EACrB,SAAS,EAAE,WAAW,KAAK,GAAG,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,IAE9C,GAAG,CACC,CACN,CAAC,CACG,CACJ,CACH,CAAC;AACH,CAAC,CAAC","sourcesContent":["/*!\r\n * Copyright 2017 - 2020 by ChartIQ, Inc.\r\n * All rights reserved.\r\n */\r\n\r\nimport React, { useState, useRef, useLayoutEffect, FunctionComponent, ReactElement } from \"react\";\r\nimport \"./css/tab.css\";\r\n\r\nexport type TabProps = {\r\n\tchildren?: React.ReactNode;\r\n\tautofocus?: number;\r\n};\r\n\r\nexport const Tab: FunctionComponent<TabProps> = ({ children, autofocus }) => {\r\n\tconst [selectedTab, setSelectedTab] = useState(autofocus || 0);\r\n\tconst ref = useRef<HTMLDivElement>(null);\r\n\r\n\tuseLayoutEffect(() => {\r\n\t\t// Allow for the tab panel content to look nice with its own scrollbar,\r\n\t\t// which also keeps the heading/tab group at the top of the page.\r\n\t\t// It feels like css flex should do this, but I could never get it to work.\r\n\t\tif (ref.current !== null) {\r\n\t\t\tref.current.style.height = `${window.innerHeight - (ref.current.getBoundingClientRect()?.top || 0) - 10}px`;\r\n\t\t}\r\n\t});\r\n\r\n\treturn (\r\n\t\t<>\r\n\t\t\t<div role=\"tablist\">\r\n\t\t\t\t{React.Children.map(\r\n\t\t\t\t\tchildren,\r\n\t\t\t\t\t(tab, key) =>\r\n\t\t\t\t\t\tReact.isValidElement(tab) && (\r\n\t\t\t\t\t\t\t<div\r\n\t\t\t\t\t\t\t\tkey={`tab-${key}`}\r\n\t\t\t\t\t\t\t\trole=\"tab\"\r\n\t\t\t\t\t\t\t\taria-selected={selectedTab === key}\r\n\t\t\t\t\t\t\t\taria-controls={`tabpanel-${key}`}\r\n\t\t\t\t\t\t\t\ttabIndex={0}\r\n\t\t\t\t\t\t\t\tonKeyDown={(e) => {\r\n\t\t\t\t\t\t\t\t\tif (e.key === \" \" || e.key === \"Enter\") {\r\n\t\t\t\t\t\t\t\t\t\tsetSelectedTab(key);\r\n\t\t\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\tonClick={() => {\r\n\t\t\t\t\t\t\t\t\tsetSelectedTab(key);\r\n\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t{(tab as ReactElement).props[\"data-label\"]}\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t)\r\n\t\t\t\t)}\r\n\t\t\t</div>\r\n\r\n\t\t\t<div id=\"tabpanelContainer\" ref={ref}>\r\n\t\t\t\t{React.Children.map(children, (tab, key) => (\r\n\t\t\t\t\t<div\r\n\t\t\t\t\t\tkey={`tabpanel-${key}`}\r\n\t\t\t\t\t\trole=\"tabpanel\"\r\n\t\t\t\t\t\tid={`tabpanel-${key}`}\r\n\t\t\t\t\t\tclassName={selectedTab === key ? \"visible\" : \"\"}\r\n\t\t\t\t\t>\r\n\t\t\t\t\t\t{tab}\r\n\t\t\t\t\t</div>\r\n\t\t\t\t))}\r\n\t\t\t</div>\r\n\t\t</>\r\n\t);\r\n};\r\n"]}
@@ -11,8 +11,9 @@ export const VALID_APP_EXTENSIONS = ["application/x-msdos-program"];
11
11
  export const validateFilename = (acceptTypes, filename) => {
12
12
  const ext_re = /(?:\.([^.]+))?$/;
13
13
  const matches = acceptTypes.filter((mimeType) => {
14
- const ext = ext_re.exec(filename)?.[1];
15
- return mimeType === "*" || (ext && mimeType?.toLowerCase() == mimeTypes[ext]);
14
+ var _a;
15
+ const ext = (_a = ext_re.exec(filename)) === null || _a === void 0 ? void 0 : _a[1];
16
+ return mimeType === "*" || (ext && (mimeType === null || mimeType === void 0 ? void 0 : mimeType.toLowerCase()) == mimeTypes[ext]);
16
17
  });
17
18
  return filename !== "" && matches.length === 0;
18
19
  };
@@ -1 +1 @@
1
- {"version":3,"file":"file_helpers.js","sourceRoot":"","sources":["../../../src/components/common/file_helpers.ts"],"names":[],"mappings":"AACA,MAAM,SAAS,GAA2B;IACzC,GAAG,EAAE,cAAc;IACnB,GAAG,EAAE,WAAW;IAChB,IAAI,EAAE,YAAY;IAClB,GAAG,EAAE,YAAY;IACjB,GAAG,EAAE,YAAY;IACjB,GAAG,EAAE,WAAW;IAChB,GAAG,EAAE,6BAA6B;CAClC,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,6BAA6B,CAAC,CAAC;AAEpE,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,WAAqB,EAAE,QAAgB,EAAE,EAAE;IAE3E,MAAM,MAAM,GAAG,iBAAiB,CAAC;IACjC,MAAM,OAAO,GAAG,WAAW,CAAC,MAAM,CAAC,CAAC,QAAgB,EAAE,EAAE;QACvD,MAAM,GAAG,GAAG,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;QACvC,OAAO,QAAQ,KAAK,GAAG,IAAI,CAAC,GAAG,IAAI,QAAQ,EAAE,WAAW,EAAE,IAAI,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;IAC/E,CAAC,CAAC,CAAC;IACH,OAAO,QAAQ,KAAK,EAAE,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC,CAAC;AAChD,CAAC,CAAC","sourcesContent":["// Dictionary to match extensions (eg, \"png\") to mimetypes (eg, \"image/png\")\r\nconst mimeTypes: Record<string, string> = {\r\n\tico: \"image/x-icon\",\r\n\tpng: \"image/png\",\r\n\tjpeg: \"image/jpeg\",\r\n\tjpg: \"image/jpeg\",\r\n\tjpe: \"image/jpeg\",\r\n\tgif: \"image/gif\",\r\n\texe: \"application/x-msdos-program\",\r\n};\r\n\r\nexport const VALID_APP_EXTENSIONS = [\"application/x-msdos-program\"];\r\n\r\nexport const validateFilename = (acceptTypes: string[], filename: string) => {\r\n\t// regular express to extract extension (eg, \"png\")\r\n\tconst ext_re = /(?:\\.([^.]+))?$/;\r\n\tconst matches = acceptTypes.filter((mimeType: string) => {\r\n\t\tconst ext = ext_re.exec(filename)?.[1];\r\n\t\treturn mimeType === \"*\" || (ext && mimeType?.toLowerCase() == mimeTypes[ext]);\r\n\t});\r\n\treturn filename !== \"\" && matches.length === 0;\r\n};\r\n"]}
1
+ {"version":3,"file":"file_helpers.js","sourceRoot":"","sources":["../../../src/components/common/file_helpers.ts"],"names":[],"mappings":"AACA,MAAM,SAAS,GAA2B;IACzC,GAAG,EAAE,cAAc;IACnB,GAAG,EAAE,WAAW;IAChB,IAAI,EAAE,YAAY;IAClB,GAAG,EAAE,YAAY;IACjB,GAAG,EAAE,YAAY;IACjB,GAAG,EAAE,WAAW;IAChB,GAAG,EAAE,6BAA6B;CAClC,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,6BAA6B,CAAC,CAAC;AAEpE,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,WAAqB,EAAE,QAAgB,EAAE,EAAE;IAE3E,MAAM,MAAM,GAAG,iBAAiB,CAAC;IACjC,MAAM,OAAO,GAAG,WAAW,CAAC,MAAM,CAAC,CAAC,QAAgB,EAAE,EAAE;;QACvD,MAAM,GAAG,GAAG,MAAA,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,0CAAG,CAAC,CAAC,CAAC;QACvC,OAAO,QAAQ,KAAK,GAAG,IAAI,CAAC,GAAG,IAAI,CAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,KAAI,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;IAC/E,CAAC,CAAC,CAAC;IACH,OAAO,QAAQ,KAAK,EAAE,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC,CAAC;AAChD,CAAC,CAAC","sourcesContent":["// Dictionary to match extensions (eg, \"png\") to mimetypes (eg, \"image/png\")\r\nconst mimeTypes: Record<string, string> = {\r\n\tico: \"image/x-icon\",\r\n\tpng: \"image/png\",\r\n\tjpeg: \"image/jpeg\",\r\n\tjpg: \"image/jpeg\",\r\n\tjpe: \"image/jpeg\",\r\n\tgif: \"image/gif\",\r\n\texe: \"application/x-msdos-program\",\r\n};\r\n\r\nexport const VALID_APP_EXTENSIONS = [\"application/x-msdos-program\"];\r\n\r\nexport const validateFilename = (acceptTypes: string[], filename: string) => {\r\n\t// regular express to extract extension (eg, \"png\")\r\n\tconst ext_re = /(?:\\.([^.]+))?$/;\r\n\tconst matches = acceptTypes.filter((mimeType: string) => {\r\n\t\tconst ext = ext_re.exec(filename)?.[1];\r\n\t\treturn mimeType === \"*\" || (ext && mimeType?.toLowerCase() == mimeTypes[ext]);\r\n\t});\r\n\treturn filename !== \"\" && matches.length === 0;\r\n};\r\n"]}
@@ -8,18 +8,19 @@ export const uploadFunction = (fileObject) => new Promise((resolve) => {
8
8
  });
9
9
  });
10
10
  export const initFSBL = (windowObject) => {
11
+ const globalAsAny = global;
11
12
  if (!windowObject) {
12
- windowObject = global.window = {};
13
+ windowObject = globalAsAny.window = {};
13
14
  }
14
15
  else {
15
16
  windowObject = window;
16
17
  setTimeout(() => {
17
18
  const event = window.document.createEvent("Event");
18
- event?.initEvent("FSBLReady", true, true);
19
+ event === null || event === void 0 ? void 0 : event.initEvent("FSBLReady", true, true);
19
20
  window.dispatchEvent(event);
20
21
  });
21
22
  }
22
- global.FSBL = windowObject.FSBL = {
23
+ globalAsAny.FSBL = windowObject.FSBL = {
23
24
  addEventListener: (name, callback) => {
24
25
  callback();
25
26
  },
@@ -55,6 +56,10 @@ export const initFSBL = (windowObject) => {
55
56
  error: () => { },
56
57
  system: {
57
58
  debug: () => { },
59
+ log: () => { },
60
+ error: () => { },
61
+ verbose: () => { },
62
+ deprecated: () => { },
58
63
  },
59
64
  },
60
65
  RouterClient: {
@@ -89,13 +94,10 @@ export const initFSBL = (windowObject) => {
89
94
  publishCheckpointState: () => { },
90
95
  },
91
96
  };
92
- global.FSBL.Clients = {
93
- ...global.FSBL.Clients,
94
- WindowClient: {
97
+ globalAsAny.FSBL.Clients = Object.assign(Object.assign({}, globalAsAny.FSBL.Clients), { WindowClient: {
95
98
  fitToDOM: () => { },
96
- },
97
- };
98
- global.finsembleWindow = windowObject.finsembleWindow = {
99
+ } });
100
+ globalAsAny.finsembleWindow = windowObject.finsembleWindow = {
99
101
  setAlwaysOnTop: () => { },
100
102
  addEventListener: () => { },
101
103
  removeEventListener: () => { },
@@ -105,7 +107,7 @@ export function createStory(Component, args) {
105
107
  const template = (props) => {
106
108
  initFSBL(window);
107
109
  return (React.createElement(Provider, { store: createStore() },
108
- React.createElement(Component, { ...{ ...args, ...props } })));
110
+ React.createElement(Component, Object.assign({}, Object.assign(Object.assign({}, args), props)))));
109
111
  };
110
112
  template.args = args;
111
113
  return template;
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../src/components/common/helpers.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,MAAM,CAAC,MAAM,cAAc,GAAsB,CAAC,UAAgB,EAAE,EAAE,CACrE,IAAI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C;YAC7B,CAAC,CAAC;SACH;QACD,mBAAmB,EAAE;YACpB,sBAAsB,EAAE,GAAG,EAAE,GAAE,CAAC;SAChC;KACM,CAAC;IAKT,MAAM,CAAC,IAAI,CAAC,OAAO,GAAG;QACrB,GAAG,MAAM,CAAC,IAAI,CAAC,OAAO;QACtB,YAAY,EAAE;YACb,QAAQ,EAAE,GAAG,EAAE,GAAE,CAAC;SACX;KACR,CAAC;IAGF,MAAM,CAAC,eAAe,GAAG,YAAY,CAAC,eAAe,GAAG;QACvD,cAAc,EAAE,GAAG,EAAE,GAAE,CAAC;QACxB,gBAAgB,EAAE,GAAG,EAAE,GAAE,CAAC;QAC1B,mBAAmB,EAAE,GAAG,EAAE,GAAE,CAAC;KAC7B,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,UAAU,WAAW,CAAI,SAAmB,EAAE,IAAO;IAC1D,MAAM,QAAQ,GAAa,CAAC,KAAQ,EAAE,EAAE;QACvC,QAAQ,CAAC,MAAM,CAAC,CAAC;QAEjB,OAAO,CACN,oBAAC,QAAQ,IAAC,KAAK,EAAE,WAAW,EAAE;YAC7B,oBAAC,SAAS,OAAK,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK,EAAE,GAAI,CAC9B,CACX,CAAC;IACH,CAAC,CAAC;IAEF,QAAQ,CAAC,IAAI,GAAG,IAAI,CAAC;IAErB,OAAO,QAAQ,CAAC;AACjB,CAAC","sourcesContent":["import React from \"react\";\r\nimport { FileInputUploadCb } from \"./FileInput\";\r\nimport { Story } from \"@storybook/react/types-6-0\";\r\n\r\nimport { SDServerInfo } from \"../../types/smartDesktopDesignerTypes\";\r\nimport { Provider } from \"react-redux\";\r\nimport { createStore } from \"../../store\";\r\n\r\nexport const uploadFunction: FileInputUploadCb = (fileObject: File) =>\r\n\tnew Promise((resolve) => {\r\n\t\tresolve({\r\n\t\t\terr: \"\",\r\n\t\t\tpath: fileObject.name,\r\n\t\t});\r\n\t});\r\n\r\nexport const initFSBL = (windowObject?: any) => {\r\n\tif (!windowObject) {\r\n\t\twindowObject = global.window = {} as any;\r\n\t} else {\r\n\t\twindowObject = window;\r\n\r\n\t\tsetTimeout(() => {\r\n\t\t\tconst event = window.document.createEvent(\"Event\");\r\n\r\n\t\t\tevent?.initEvent(\"FSBLReady\", true, true);\r\n\r\n\t\t\twindow.dispatchEvent(event);\r\n\t\t});\r\n\t}\r\n\r\n\tglobal.FSBL = windowObject.FSBL = {\r\n\t\taddEventListener: (name: String, callback: () => void) => {\r\n\t\t\tcallback();\r\n\t\t},\r\n\t\tClients: {\r\n\t\t\tSmartDesktopClient: {\r\n\t\t\t\tcheckValidURL(url: string) {\r\n\t\t\t\t\tif (url.length === 0) {\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn /^https?:\\/\\/[^\\s]+$/.test(url);\r\n\t\t\t\t},\r\n\t\t\t\tcheckValidProjectName(name: string) {\r\n\t\t\t\t\treturn /^[a-zA-Z0-9 \\-_.]{1,}$/.test(name) && /[a-zA-Z0-9]{1,}/.test(name);\r\n\t\t\t\t},\r\n\t\t\t} as unknown,\r\n\t\t\tConfigClient: {\r\n\t\t\t\tsetPreference: () => {},\r\n\t\t\t\tgetValues: () => {},\r\n\t\t\t\tgetPreferences: () => {},\r\n\t\t\t},\r\n\t\t\tDialogManager: {\r\n\t\t\t\tspawnDialog: (obj1: any) => {\r\n\t\t\t\t\tconsole.table(obj1);\r\n\t\t\t\t},\r\n\t\t\t\tregisterDialogCallback: () => {},\r\n\t\t\t\trespondToOpener: () => {},\r\n\t\t\t},\r\n\t\t\tLauncherClient: {\r\n\t\t\t\tshowWindow: () => {},\r\n\t\t\t},\r\n\t\t\tLogger: {\r\n\t\t\t\tlog: () => {},\r\n\t\t\t\terror: () => {},\r\n\t\t\t\tsystem: {\r\n\t\t\t\t\tdebug: () => {},\r\n\t\t\t\t},\r\n\t\t\t},\r\n\t\t\tRouterClient: {\r\n\t\t\t\ttransmit: () => {},\r\n\t\t\t\taddListener: () => {},\r\n\t\t\t},\r\n\t\t\tStorageClient: {\r\n\t\t\t\tsave: () => {},\r\n\t\t\t\tclearCache: () => {},\r\n\t\t\t},\r\n\t\t\tWindowClient: {\r\n\t\t\t\tfitToDOM: () => {},\r\n\t\t\t},\r\n\t\t\tWorkspaceClient: {\r\n\t\t\t\tbringWindowsToFront: () => {},\r\n\t\t\t\tminimizeAll: () => {},\r\n\t\t\t\tactiveWorkspace: {\r\n\t\t\t\t\tname: \" \",\r\n\t\t\t\t},\r\n\t\t\t\tgetWorkspaceDefinition: (obj: Object, cb: Function) => {\r\n\t\t\t\t\tcb(null, null);\r\n\t\t\t\t},\r\n\t\t\t},\r\n\t\t},\r\n\t\tonShutdown: () => {},\r\n\t\tSystem: {\r\n\t\t\tgetSDServerInfo: () =>\r\n\t\t\t\tnew Promise((resolve) => {\r\n\t\t\t\t\tresolve({} as SDServerInfo);\r\n\t\t\t\t}),\r\n\t\t},\r\n\t\tSystemManagerClient: {\r\n\t\t\tpublishCheckpointState: () => {},\r\n\t\t},\r\n\t} as any;\r\n\r\n\t// @todo imesner: 20210426: The following errors existed within the github actions build when WindowClient was declared above.\r\n\t// Error: src/components/common/helpers.tsx(84,4): error TS1117: An object literal cannot have multiple properties with the same name in strict mode.\r\n\t// Error: src/components/common/helpers.tsx(84,4): error TS2300: Duplicate identifier 'WindowClient'.\r\n\tglobal.FSBL.Clients = {\r\n\t\t...global.FSBL.Clients,\r\n\t\tWindowClient: {\r\n\t\t\tfitToDOM: () => {},\r\n\t\t} as any,\r\n\t};\r\n\r\n\t// @ts-ignore\r\n\tglobal.finsembleWindow = windowObject.finsembleWindow = {\r\n\t\tsetAlwaysOnTop: () => {},\r\n\t\taddEventListener: () => {},\r\n\t\tremoveEventListener: () => {},\r\n\t};\r\n};\r\n\r\nexport function createStory<T>(Component: Function, args: T) {\r\n\tconst template: Story<T> = (props: T) => {\r\n\t\tinitFSBL(window);\r\n\r\n\t\treturn (\r\n\t\t\t<Provider store={createStore()}>\r\n\t\t\t\t<Component {...{ ...args, ...props }} />\r\n\t\t\t</Provider>\r\n\t\t);\r\n\t};\r\n\r\n\ttemplate.args = args;\r\n\r\n\treturn template;\r\n}\r\n"]}
1
+ {"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../src/components/common/helpers.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,MAAM,CAAC,MAAM,cAAc,GAAsB,CAAC,UAAgB,EAAE,EAAE,CACrE,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;IACvB,OAAO,CAAC;QACP,GAAG,EAAE,EAAE;QACP,IAAI,EAAE,UAAU,CAAC,IAAI;KACrB,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC;AAEJ,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,YAAkB,EAAE,EAAE;IAE9C,MAAM,WAAW,GAAQ,MAAM,CAAC;IAEhC,IAAI,CAAC,YAAY,EAAE;QAClB,YAAY,GAAG,WAAW,CAAC,MAAM,GAAG,EAAS,CAAC;KAC9C;SAAM;QACN,YAAY,GAAG,MAAM,CAAC;QAEtB,UAAU,CAAC,GAAG,EAAE;YACf,MAAM,KAAK,GAAG,MAAM,CAAC,QAAQ,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;YAEnD,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,SAAS,CAAC,WAAW,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;YAE1C,MAAM,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;QAC7B,CAAC,CAAC,CAAC;KACH;IAED,WAAW,CAAC,IAAI,GAAG,YAAY,CAAC,IAAI,GAAG;QACtC,gBAAgB,EAAE,CAAC,IAAY,EAAE,QAAoB,EAAE,EAAE;YACxD,QAAQ,EAAE,CAAC;QACZ,CAAC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AQ,CAAC,MAAM,CAAC,CAAC;QAEjB,OAAO,CACN,oBAAC,QAAQ,IAAC,KAAK,EAAE,WAAW,EAAE;YAC7B,oBAAC,SAAS,oDAAU,IAAI,GAAK,KAAK,GAAM,CAC9B,CACX,CAAC;IACH,CAAC,CAAC;IAEF,QAAQ,CAAC,IAAI,GAAG,IAAI,CAAC;IAErB,OAAO,QAAQ,CAAC;AACjB,CAAC","sourcesContent":["import React from \"react\";\r\nimport { FileInputUploadCb } from \"./FileInput\";\r\nimport { Story } from \"@storybook/react/types-6-0\";\r\n\r\nimport { SDServerInfo } from \"../../types/smartDesktopDesignerTypes\";\r\nimport { Provider } from \"react-redux\";\r\nimport { createStore } from \"../../store\";\r\n\r\nexport const uploadFunction: FileInputUploadCb = (fileObject: File) =>\r\n\tnew Promise((resolve) => {\r\n\t\tresolve({\r\n\t\t\terr: \"\",\r\n\t\t\tpath: fileObject.name,\r\n\t\t});\r\n\t});\r\n\r\nexport const initFSBL = (windowObject?: any) => {\r\n\t// Poor man's global that can take any appendage\r\n\tconst globalAsAny: any = global;\r\n\r\n\tif (!windowObject) {\r\n\t\twindowObject = globalAsAny.window = {} as any;\r\n\t} else {\r\n\t\twindowObject = window;\r\n\r\n\t\tsetTimeout(() => {\r\n\t\t\tconst event = window.document.createEvent(\"Event\");\r\n\r\n\t\t\tevent?.initEvent(\"FSBLReady\", true, true);\r\n\r\n\t\t\twindow.dispatchEvent(event);\r\n\t\t});\r\n\t}\r\n\r\n\tglobalAsAny.FSBL = windowObject.FSBL = {\r\n\t\taddEventListener: (name: String, callback: () => void) => {\r\n\t\t\tcallback();\r\n\t\t},\r\n\t\tClients: {\r\n\t\t\tSmartDesktopClient: {\r\n\t\t\t\tcheckValidURL(url: string) {\r\n\t\t\t\t\tif (url.length === 0) {\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn /^https?:\\/\\/[^\\s]+$/.test(url);\r\n\t\t\t\t},\r\n\t\t\t\tcheckValidProjectName(name: string) {\r\n\t\t\t\t\treturn /^[a-zA-Z0-9 \\-_.]{1,}$/.test(name) && /[a-zA-Z0-9]{1,}/.test(name);\r\n\t\t\t\t},\r\n\t\t\t} as unknown,\r\n\t\t\tConfigClient: {\r\n\t\t\t\tsetPreference: () => {},\r\n\t\t\t\tgetValues: () => {},\r\n\t\t\t\tgetPreferences: () => {},\r\n\t\t\t},\r\n\t\t\tDialogManager: {\r\n\t\t\t\tspawnDialog: (obj1: any) => {\r\n\t\t\t\t\tconsole.table(obj1);\r\n\t\t\t\t},\r\n\t\t\t\tregisterDialogCallback: () => {},\r\n\t\t\t\trespondToOpener: () => {},\r\n\t\t\t},\r\n\t\t\tLauncherClient: {\r\n\t\t\t\tshowWindow: () => {},\r\n\t\t\t},\r\n\t\t\tLogger: {\r\n\t\t\t\tlog: () => {},\r\n\t\t\t\terror: () => {},\r\n\t\t\t\tsystem: {\r\n\t\t\t\t\tdebug: () => {},\r\n\t\t\t\t\tlog: () => {},\r\n\t\t\t\t\terror: () => {},\r\n\t\t\t\t\tverbose: () => {},\r\n\t\t\t\t\tdeprecated: () => {},\r\n\t\t\t\t},\r\n\t\t\t},\r\n\t\t\tRouterClient: {\r\n\t\t\t\ttransmit: () => {},\r\n\t\t\t\taddListener: () => {},\r\n\t\t\t},\r\n\t\t\tStorageClient: {\r\n\t\t\t\tsave: () => {},\r\n\t\t\t\tclearCache: () => {},\r\n\t\t\t},\r\n\t\t\tWindowClient: {\r\n\t\t\t\tfitToDOM: () => {},\r\n\t\t\t},\r\n\t\t\tWorkspaceClient: {\r\n\t\t\t\tbringWindowsToFront: () => {},\r\n\t\t\t\tminimizeAll: () => {},\r\n\t\t\t\tactiveWorkspace: {\r\n\t\t\t\t\tname: \" \",\r\n\t\t\t\t},\r\n\t\t\t\tgetWorkspaceDefinition: (obj: Object, cb: Function) => {\r\n\t\t\t\t\tcb(null, null);\r\n\t\t\t\t},\r\n\t\t\t},\r\n\t\t},\r\n\t\tonShutdown: () => {},\r\n\t\tSystem: {\r\n\t\t\tgetSDServerInfo: () =>\r\n\t\t\t\tnew Promise((resolve) => {\r\n\t\t\t\t\tresolve({} as SDServerInfo);\r\n\t\t\t\t}),\r\n\t\t},\r\n\t\tSystemManagerClient: {\r\n\t\t\tpublishCheckpointState: () => {},\r\n\t\t},\r\n\t} as any;\r\n\r\n\tglobalAsAny.FSBL.Clients = {\r\n\t\t...globalAsAny.FSBL.Clients,\r\n\t\tWindowClient: {\r\n\t\t\tfitToDOM: () => {},\r\n\t\t} as any,\r\n\t};\r\n\r\n\tglobalAsAny.finsembleWindow = windowObject.finsembleWindow = {\r\n\t\tsetAlwaysOnTop: () => {},\r\n\t\taddEventListener: () => {},\r\n\t\tremoveEventListener: () => {},\r\n\t};\r\n};\r\n\r\nexport function createStory<T>(Component: Function, args: T) {\r\n\tconst template: Story<T> = (props: T) => {\r\n\t\tinitFSBL(window);\r\n\r\n\t\treturn (\r\n\t\t\t<Provider store={createStore()}>\r\n\t\t\t\t<Component {...{ ...args, ...props }} />\r\n\t\t\t</Provider>\r\n\t\t);\r\n\t};\r\n\r\n\ttemplate.args = args;\r\n\r\n\treturn template;\r\n}\r\n"]}
@@ -6,7 +6,7 @@ export default {
6
6
  title: "Common/Button/Text",
7
7
  component: Button,
8
8
  };
9
- const Template = (args) => React.createElement(Button, { ...args });
9
+ const Template = (args) => React.createElement(Button, Object.assign({}, args));
10
10
  export const PrimaryButton = Template.bind({});
11
11
  PrimaryButton.args = {
12
12
  fashion: "primary",
@@ -1 +1 @@
1
- {"version":3,"file":"Button.stories.js","sourceRoot":"","sources":["../../../../src/components/common/stories/Button.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAe,MAAM,WAAW,CAAC;AAChD,OAAO,mCAAmC,CAAC;AAC3C,OAAO,mBAAmB,CAAC;AAG3B,eAAe;IACd,KAAK,EAAE,oBAAoB;IAC3B,SAAS,EAAE,MAAM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AAM;IAClB,IAAI,EAAE,YAAY;CAClB,CAAC;AACF,MAAM,CAAC,MAAM,gBAAgB,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAClD,gBAAgB,CAAC,IAAI,GAAG;IACvB,OAAO,EAAE,SAAS;IAClB,UAAU,EAAE,MAAM;IAClB,IAAI,EAAE,KAAK;CACX,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACjD,eAAe,CAAC,IAAI,GAAG;IACtB,OAAO,EAAE,WAAW;IACpB,IAAI,EAAE,MAAM;CACZ,CAAC;AACF,MAAM,CAAC,MAAM,uBAAuB,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACzD,uBAAuB,CAAC,IAAI,GAAG;IAC9B,OAAO,EAAE,WAAW;IACpB,IAAI,EAAE,MAAM;IACZ,QAAQ,EAAE,IAAI;CACd,CAAC;AACF,MAAM,CAAC,MAAM,uBAAuB,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACzD,uBAAuB,CAAC,IAAI,GAAG;IAC9B,OAAO,EAAE,QAAQ;IACjB,IAAI,EAAE,YAAY;CAClB,CAAC;AACF,MAAM,CAAC,MAAM,WAAW,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC7C,WAAW,CAAC,IAAI,GAAG;IAClB,OAAO,EAAE,OAAO;IAChB,IAAI,EAAE,QAAQ;CACd,CAAC;AACF,MAAM,CAAC,MAAM,mBAAmB,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACrD,mBAAmB,CAAC,IAAI,GAAG;IAC1B,OAAO,EAAE,cAAc;IACvB,IAAI,EAAE,eAAe;CACrB,CAAC","sourcesContent":["import React from \"react\";\r\nimport { Button, ButtonProps } from \"../Button\";\r\nimport \"../../../assets/css/finsemble.css\";\r\nimport \"../css/styles.css\";\r\nimport { Story } from \"@storybook/react/types-6-0\";\r\n\r\nexport default {\r\n\ttitle: \"Common/Button/Text\",\r\n\tcomponent: Button,\r\n};\r\n\r\nconst Template: Story<ButtonProps> = (args: ButtonProps) => <Button {...args} />;\r\n\r\nexport const PrimaryButton = Template.bind({});\r\nPrimaryButton.args = {\r\n\tfashion: \"primary\",\r\n\ttext: \"Jagged\",\r\n};\r\nexport const PrimaryButtonDisabled = Template.bind({});\r\nPrimaryButtonDisabled.args = {\r\n\tdisabled: true,\r\n\tfashion: \"primary\",\r\n\ttext: \"Jagged\",\r\n};\r\nexport const PrimaryButtonBack = Template.bind({});\r\nPrimaryButtonBack.args = {\r\n\tfashion: \"primary\",\r\n\ticonBefore: \"chevron-left\",\r\n\ttext: \"Back\",\r\n};\r\nexport const PrimaryButtonForward = Template.bind({});\r\nPrimaryButtonForward.args = {\r\n\tfashion: \"primary\",\r\n\ticonAfter: \"chevron-right\",\r\n\ttext: \"Forward\",\r\n};\r\nexport const PrimaryButtonThemeLight = Template.bind({});\r\nPrimaryButtonThemeLight.args = {\r\n\tfashion: \"primary\",\r\n\ticonBefore: \"sun\",\r\n\ttext: \"Light theme\",\r\n};\r\nexport const PrimaryButtonThemeDark = Template.bind({});\r\nPrimaryButtonThemeDark.args = {\r\n\tfashion: \"primary\",\r\n\ticonBefore: \"moon\",\r\n\ttext: \"Dark theme\",\r\n};\r\nexport const PrimaryButtonAdd = Template.bind({});\r\nPrimaryButtonAdd.args = {\r\n\tfashion: \"primary\",\r\n\ticonBefore: \"plus\",\r\n\ttext: \"Add\",\r\n};\r\n\r\nexport const SecondaryButton = Template.bind({});\r\nSecondaryButton.args = {\r\n\tfashion: \"secondary\",\r\n\ttext: \"Next\",\r\n};\r\nexport const SecondaryButtonDisabled = Template.bind({});\r\nSecondaryButtonDisabled.args = {\r\n\tfashion: \"secondary\",\r\n\ttext: \"Next\",\r\n\tdisabled: true,\r\n};\r\nexport const SecondaryButtonNegative = Template.bind({});\r\nSecondaryButtonNegative.args = {\r\n\tfashion: \"danger\",\r\n\ttext: \"Remove app\",\r\n};\r\nexport const GhostButton = Template.bind({});\r\nGhostButton.args = {\r\n\tfashion: \"ghost\",\r\n\ttext: \"Cancel\",\r\n};\r\nexport const GhostButtonNegative = Template.bind({});\r\nGhostButtonNegative.args = {\r\n\tfashion: \"danger ghost\",\r\n\ttext: \"Reset project\",\r\n};\r\n"]}
1
+ {"version":3,"file":"Button.stories.js","sourceRoot":"","sources":["../../../../src/components/common/stories/Button.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAe,MAAM,WAAW,CAAC;AAChD,OAAO,mCAAmC,CAAC;AAC3C,OAAO,mBAAmB,CAAC;AAG3B,eAAe;IACd,KAAK,EAAE,oBAAoB;IAC3B,SAAS,EAAE,MAAM;CACjB,CAAC;AAEF,MAAM,QAAQ,GAAuB,CAAC,IAAiB,EAAE,EAAE,CAAC,oBAAC,MAAM,oBAAK,IAAI,EAAI,CAAC;AAEjF,MAAM,CAAC,MAAM,aAAa,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC/C,aAAa,CAAC,IAAI,GAAG;IACpB,OAAO,EAAE,SAAS;IAClB,IAAI,EAAE,QAAQ;CACd,CAAC;AACF,MAAM,CAAC,MAAM,qBAAqB,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACvD,qBAAqB,CAAC,IAAI,GAAG;IAC5B,QAAQ,EAAE,IAAI;IACd,OAAO,EAAE,SAAS;IAClB,IAAI,EAAE,QAAQ;CACd,CAAC;AACF,MAAM,CAAC,MAAM,iBAAiB,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACnD,iBAAiB,CAAC,IAAI,GAAG;IACxB,OAAO,EAAE,SAAS;IAClB,UAAU,EAAE,cAAc;IAC1B,IAAI,EAAE,MAAM;CACZ,CAAC;AACF,MAAM,CAAC,MAAM,oB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AC,IAAI,GAAG;IAC9B,OAAO,EAAE,QAAQ;IACjB,IAAI,EAAE,YAAY;CAClB,CAAC;AACF,MAAM,CAAC,MAAM,WAAW,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC7C,WAAW,CAAC,IAAI,GAAG;IAClB,OAAO,EAAE,OAAO;IAChB,IAAI,EAAE,QAAQ;CACd,CAAC;AACF,MAAM,CAAC,MAAM,mBAAmB,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACrD,mBAAmB,CAAC,IAAI,GAAG;IAC1B,OAAO,EAAE,cAAc;IACvB,IAAI,EAAE,eAAe;CACrB,CAAC","sourcesContent":["import React from \"react\";\r\nimport { Button, ButtonProps } from \"../Button\";\r\nimport \"../../../assets/css/finsemble.css\";\r\nimport \"../css/styles.css\";\r\nimport { Story } from \"@storybook/react/types-6-0\";\r\n\r\nexport default {\r\n\ttitle: \"Common/Button/Text\",\r\n\tcomponent: Button,\r\n};\r\n\r\nconst Template: Story<ButtonProps> = (args: ButtonProps) => <Button {...args} />;\r\n\r\nexport const PrimaryButton = Template.bind({});\r\nPrimaryButton.args = {\r\n\tfashion: \"primary\",\r\n\ttext: \"Jagged\",\r\n};\r\nexport const PrimaryButtonDisabled = Template.bind({});\r\nPrimaryButtonDisabled.args = {\r\n\tdisabled: true,\r\n\tfashion: \"primary\",\r\n\ttext: \"Jagged\",\r\n};\r\nexport const PrimaryButtonBack = Template.bind({});\r\nPrimaryButtonBack.args = {\r\n\tfashion: \"primary\",\r\n\ticonBefore: \"chevron-left\",\r\n\ttext: \"Back\",\r\n};\r\nexport const PrimaryButtonForward = Template.bind({});\r\nPrimaryButtonForward.args = {\r\n\tfashion: \"primary\",\r\n\ticonAfter: \"chevron-right\",\r\n\ttext: \"Forward\",\r\n};\r\nexport const PrimaryButtonThemeLight = Template.bind({});\r\nPrimaryButtonThemeLight.args = {\r\n\tfashion: \"primary\",\r\n\ticonBefore: \"sun\",\r\n\ttext: \"Light theme\",\r\n};\r\nexport const PrimaryButtonThemeDark = Template.bind({});\r\nPrimaryButtonThemeDark.args = {\r\n\tfashion: \"primary\",\r\n\ticonBefore: \"moon\",\r\n\ttext: \"Dark theme\",\r\n};\r\nexport const PrimaryButtonAdd = Template.bind({});\r\nPrimaryButtonAdd.args = {\r\n\tfashion: \"primary\",\r\n\ticonBefore: \"plus\",\r\n\ttext: \"Add\",\r\n};\r\n\r\nexport const SecondaryButton = Template.bind({});\r\nSecondaryButton.args = {\r\n\tfashion: \"secondary\",\r\n\ttext: \"Next\",\r\n};\r\nexport const SecondaryButtonDisabled = Template.bind({});\r\nSecondaryButtonDisabled.args = {\r\n\tfashion: \"secondary\",\r\n\ttext: \"Next\",\r\n\tdisabled: true,\r\n};\r\nexport const SecondaryButtonNegative = Template.bind({});\r\nSecondaryButtonNegative.args = {\r\n\tfashion: \"danger\",\r\n\ttext: \"Remove app\",\r\n};\r\nexport const GhostButton = Template.bind({});\r\nGhostButton.args = {\r\n\tfashion: \"ghost\",\r\n\ttext: \"Cancel\",\r\n};\r\nexport const GhostButtonNegative = Template.bind({});\r\nGhostButtonNegative.args = {\r\n\tfashion: \"danger ghost\",\r\n\ttext: \"Reset project\",\r\n};\r\n"]}
@@ -6,7 +6,7 @@ export default {
6
6
  title: "Common/Button/Icon",
7
7
  component: ButtonIcon,
8
8
  };
9
- const Template = (args) => React.createElement(ButtonIcon, { ...args });
9
+ const Template = (args) => React.createElement(ButtonIcon, Object.assign({}, args));
10
10
  export const DeleteIcon = Template.bind({});
11
11
  DeleteIcon.args = {
12
12
  text: "Delete",
@@ -1 +1 @@
1
- {"version":3,"file":"ButtonIcon.stories.js","sourceRoot":"","sources":["../../../../src/components/common/stories/ButtonIcon.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,mCAAmC,CAAC;AAC3C,OAAO,mBAAmB,CAAC;AAI3B,eAAe;IACd,KAAK,EAAE,oBAAoB;IAC3B,SAAS,EAAE,UAAU;CACrB,CAAC;AAEF,MAAM,QAAQ,GAA+B,CAAC,IAAyB,EAAE,EAAE,CAAC,oBAAC,UAAU,OAAK,IAAI,GAAI,CAAC;AAErG,MAAM,CAAC,MAAM,UAAU,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC5C,UAAU,CAAC,IAAI,GAAG;IACjB,IAAI,EAAE,QAAQ;IACd,IAAI,EAAE,OAAO;CACb,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC1C,QAAQ,CAAC,IAAI,GAAG;IACf,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;CACZ,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC1C,QAAQ,CAAC,IAAI,GAAG;IACf,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,WAAW;CACjB,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC7C,WAAW,CAAC,IAAI,GAAG;IAClB,IAAI,EAAE,SAAS;IACf,IAAI,EAAE,OAAO;CACb,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC5C,UAAU,CAAC,IAAI,GAAG;IACjB,IAAI,EAAE,QAAQ;IACd,IAAI,EAAE,OAAO;CACb,CAAC","sourcesContent":["import React from \"react\";\r\nimport { ButtonIcon } from \"../ButtonIcon\";\r\nimport \"../../../assets/css/finsemble.css\";\r\nimport \"../css/styles.css\";\r\nimport { Story } from \"@storybook/react/types-6-0\";\r\nimport { AdvancedButtonProps } from \"../Button\";\r\n\r\nexport default {\r\n\ttitle: \"Common/Button/Icon\",\r\n\tcomponent: ButtonIcon,\r\n};\r\n\r\nconst Template: Story<AdvancedButtonProps> = (args: AdvancedButtonProps) => <ButtonIcon {...args} />;\r\n\r\nexport const DeleteIcon = Template.bind({});\r\nDeleteIcon.args = {\r\n\ttext: \"Delete\",\r\n\ticon: \"trash\",\r\n};\r\n\r\nexport const CopyIcon = Template.bind({});\r\nCopyIcon.args = {\r\n\ttext: \"Copy\",\r\n\ticon: \"copy\",\r\n};\r\n\r\nexport const HelpIcon = Template.bind({});\r\nHelpIcon.args = {\r\n\ttext: \"Help\",\r\n\ticon: \"life-ring\",\r\n};\r\n\r\nexport const ConfirmIcon = Template.bind({});\r\nConfirmIcon.args = {\r\n\ttext: \"Confirm\",\r\n\ticon: \"check\",\r\n};\r\n\r\nexport const CancelIcon = Template.bind({});\r\nCancelIcon.args = {\r\n\ttext: \"Cancel\",\r\n\ticon: \"times\",\r\n};\r\n"]}
1
+ {"version":3,"file":"ButtonIcon.stories.js","sourceRoot":"","sources":["../../../../src/components/common/stories/ButtonIcon.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,mCAAmC,CAAC;AAC3C,OAAO,mBAAmB,CAAC;AAI3B,eAAe;IACd,KAAK,EAAE,oBAAoB;IAC3B,SAAS,EAAE,UAAU;CACrB,CAAC;AAEF,MAAM,QAAQ,GAA+B,CAAC,IAAyB,EAAE,EAAE,CAAC,oBAAC,UAAU,oBAAK,IAAI,EAAI,CAAC;AAErG,MAAM,CAAC,MAAM,UAAU,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC5C,UAAU,CAAC,IAAI,GAAG;IACjB,IAAI,EAAE,QAAQ;IACd,IAAI,EAAE,OAAO;CACb,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC1C,QAAQ,CAAC,IAAI,GAAG;IACf,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;CACZ,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC1C,QAAQ,CAAC,IAAI,GAAG;IACf,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,WAAW;CACjB,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC7C,WAAW,CAAC,IAAI,GAAG;IAClB,IAAI,EAAE,SAAS;IACf,IAAI,EAAE,OAAO;CACb,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC5C,UAAU,CAAC,IAAI,GAAG;IACjB,IAAI,EAAE,QAAQ;IACd,IAAI,EAAE,OAAO;CACb,CAAC","sourcesContent":["import React from \"react\";\r\nimport { ButtonIcon } from \"../ButtonIcon\";\r\nimport \"../../../assets/css/finsemble.css\";\r\nimport \"../css/styles.css\";\r\nimport { Story } from \"@storybook/react/types-6-0\";\r\nimport { AdvancedButtonProps } from \"../Button\";\r\n\r\nexport default {\r\n\ttitle: \"Common/Button/Icon\",\r\n\tcomponent: ButtonIcon,\r\n};\r\n\r\nconst Template: Story<AdvancedButtonProps> = (args: AdvancedButtonProps) => <ButtonIcon {...args} />;\r\n\r\nexport const DeleteIcon = Template.bind({});\r\nDeleteIcon.args = {\r\n\ttext: \"Delete\",\r\n\ticon: \"trash\",\r\n};\r\n\r\nexport const CopyIcon = Template.bind({});\r\nCopyIcon.args = {\r\n\ttext: \"Copy\",\r\n\ticon: \"copy\",\r\n};\r\n\r\nexport const HelpIcon = Template.bind({});\r\nHelpIcon.args = {\r\n\ttext: \"Help\",\r\n\ticon: \"life-ring\",\r\n};\r\n\r\nexport const ConfirmIcon = Template.bind({});\r\nConfirmIcon.args = {\r\n\ttext: \"Confirm\",\r\n\ticon: \"check\",\r\n};\r\n\r\nexport const CancelIcon = Template.bind({});\r\nCancelIcon.args = {\r\n\ttext: \"Cancel\",\r\n\ticon: \"times\",\r\n};\r\n"]}
@@ -10,10 +10,10 @@ export default {
10
10
  React.createElement(StoryDisplay, null))),
11
11
  ],
12
12
  };
13
- const Template = (args) => React.createElement(ButtonRow, { ...args });
13
+ const Template = (args) => React.createElement(ButtonRow, Object.assign({}, args));
14
14
  export const Default = Template.bind({});
15
15
  Default.args = {
16
- label: "Notification Sources",
16
+ label: "Notification sources",
17
17
  onClick: () => { },
18
18
  iconClass: "ff-caret-up rotate-90",
19
19
  disabled: false,
@@ -1 +1 @@
1
- {"version":3,"file":"ButtonRow.stories.js","sourceRoot":"","sources":["../../../../src/components/common/stories/ButtonRow.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,SAA6B,MAAM,cAAc,CAAC;AACzD,OAAO,mCAAmC,CAAC;AAC3C,OAAO,mBAAmB,CAAC;AAG3B,eAAe;IACd,KAAK,EAAE,mBAAmB;IAC1B,SAAS,EAAE,SAAS;IACpB,UAAU,EAAE;QACX,CAAC,YAAiB,EAAE,EAAE,CAAC,CACtB,6BAAK,SAAS,EAAC,aAAa,EAAC,KAAK,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,EAAE,EAAE;YAC7D,oBAAC,YAAY,OAAG,CACX,CACN;KACD;CACD,CAAC;AAEF,MAAM,QAAQ,GAA0B,CAAC,IAAoB,EAAE,EAAE,CAAC,oBAAC,SAAS,OAAK,IAAI,GAAI,CAAC;AAE1F,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACzC,OAAO,CAAC,IAAI,GAAG;IACd,KAAK,EAAE,sBAAsB;IAC7B,OAAO,EAAE,GAAG,EAAE,GAAE,CAAC;IACjB,SAAS,EAAE,uBAAuB;IAClC,QAAQ,EAAE,KAAK;CACf,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC3C,SAAS,CAAC,IAAI,GAAG;IAChB,KAAK,EAAE,SAAS;IAChB,OAAO,EAAE,GAAG,EAAE,GAAE,CAAC;IACjB,SAAS,EAAE,uBAAuB;IAClC,QAAQ,EAAE,KAAK;IACf,GAAG,EAAE,6DAA6D;IAClE,eAAe,EAAE,KAAK;CACtB,CAAC;AACF,MAAM,CAAC,MAAM,UAAU,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC5C,UAAU,CAAC,IAAI,GAAG;IACjB,KAAK,EAAE,WAAW;IAClB,OAAO,EAAE,GAAG,EAAE,GAAE,CAAC;IACjB,SAAS,EAAE,uBAAuB;IAClC,QAAQ,EAAE,KAAK;IACf,GAAG,EAAE,4DAA4D;IACjE,eAAe,EAAE,KAAK;CACtB,CAAC","sourcesContent":["import React from \"react\";\r\nimport ButtonRow, { ButtonRowProps } from \"../ButtonRow\";\r\nimport \"../../../assets/css/finsemble.css\";\r\nimport \"../css/styles.css\";\r\nimport { Story } from \"@storybook/react/types-6-0\";\r\n\r\nexport default {\r\n\ttitle: \"Common/Button/Row\",\r\n\tcomponent: ButtonRow,\r\n\tdecorators: [\r\n\t\t(StoryDisplay: any) => (\r\n\t\t\t<div className=\"row-section\" style={{ width: 300, height: 40 }}>\r\n\t\t\t\t<StoryDisplay />\r\n\t\t\t</div>\r\n\t\t),\r\n\t],\r\n};\r\n\r\nconst Template: Story<ButtonRowProps> = (args: ButtonRowProps) => <ButtonRow {...args} />;\r\n\r\nexport const Default = Template.bind({});\r\nDefault.args = {\r\n\tlabel: \"Notification Sources\",\r\n\tonClick: () => {},\r\n\ticonClass: \"ff-caret-up rotate-90\",\r\n\tdisabled: false,\r\n};\r\n\r\nexport const WithImage = Template.bind({});\r\nWithImage.args = {\r\n\tlabel: \"ChartIQ\",\r\n\tonClick: () => {},\r\n\ticonClass: \"ff-caret-up rotate-90\",\r\n\tdisabled: false,\r\n\timg: \"https://documentation.chartiq.com/img/CIQ_logo_negative.png\",\r\n\tshowDefaultIcon: false,\r\n};\r\nexport const ImageError = Template.bind({});\r\nImageError.args = {\r\n\tlabel: \"Finsemble\",\r\n\tonClick: () => {},\r\n\ticonClass: \"ff-caret-up rotate-90\",\r\n\tdisabled: false,\r\n\timg: \"https://thiswillresultinanerrorbutdontworrythatswhatwewant\",\r\n\tshowDefaultIcon: false,\r\n};\r\n"]}
1
+ {"version":3,"file":"ButtonRow.stories.js","sourceRoot":"","sources":["../../../../src/components/common/stories/ButtonRow.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,SAA6B,MAAM,cAAc,CAAC;AACzD,OAAO,mCAAmC,CAAC;AAC3C,OAAO,mBAAmB,CAAC;AAG3B,eAAe;IACd,KAAK,EAAE,mBAAmB;IAC1B,SAAS,EAAE,SAAS;IACpB,UAAU,EAAE;QACX,CAAC,YAAiB,EAAE,EAAE,CAAC,CACtB,6BAAK,SAAS,EAAC,aAAa,EAAC,KAAK,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,EAAE,EAAE;YAC7D,oBAAC,YAAY,OAAG,CACX,CACN;KACD;CACD,CAAC;AAEF,MAAM,QAAQ,GAA0B,CAAC,IAAoB,EAAE,EAAE,CAAC,oBAAC,SAAS,oBAAK,IAAI,EAAI,CAAC;AAE1F,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACzC,OAAO,CAAC,IAAI,GAAG;IACd,KAAK,EAAE,sBAAsB;IAC7B,OAAO,EAAE,GAAG,EAAE,GAAE,CAAC;IACjB,SAAS,EAAE,uBAAuB;IAClC,QAAQ,EAAE,KAAK;CACf,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC3C,SAAS,CAAC,IAAI,GAAG;IAChB,KAAK,EAAE,SAAS;IAChB,OAAO,EAAE,GAAG,EAAE,GAAE,CAAC;IACjB,SAAS,EAAE,uBAAuB;IAClC,QAAQ,EAAE,KAAK;IACf,GAAG,EAAE,6DAA6D;IAClE,eAAe,EAAE,KAAK;CACtB,CAAC;AACF,MAAM,CAAC,MAAM,UAAU,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC5C,UAAU,CAAC,IAAI,GAAG;IACjB,KAAK,EAAE,WAAW;IAClB,OAAO,EAAE,GAAG,EAAE,GAAE,CAAC;IACjB,SAAS,EAAE,uBAAuB;IAClC,QAAQ,EAAE,KAAK;IACf,GAAG,EAAE,4DAA4D;IACjE,eAAe,EAAE,KAAK;CACtB,CAAC","sourcesContent":["import React from \"react\";\r\nimport ButtonRow, { ButtonRowProps } from \"../ButtonRow\";\r\nimport \"../../../assets/css/finsemble.css\";\r\nimport \"../css/styles.css\";\r\nimport { Story } from \"@storybook/react/types-6-0\";\r\n\r\nexport default {\r\n\ttitle: \"Common/Button/Row\",\r\n\tcomponent: ButtonRow,\r\n\tdecorators: [\r\n\t\t(StoryDisplay: any) => (\r\n\t\t\t<div className=\"row-section\" style={{ width: 300, height: 40 }}>\r\n\t\t\t\t<StoryDisplay />\r\n\t\t\t</div>\r\n\t\t),\r\n\t],\r\n};\r\n\r\nconst Template: Story<ButtonRowProps> = (args: ButtonRowProps) => <ButtonRow {...args} />;\r\n\r\nexport const Default = Template.bind({});\r\nDefault.args = {\r\n\tlabel: \"Notification sources\",\r\n\tonClick: () => {},\r\n\ticonClass: \"ff-caret-up rotate-90\",\r\n\tdisabled: false,\r\n};\r\n\r\nexport const WithImage = Template.bind({});\r\nWithImage.args = {\r\n\tlabel: \"ChartIQ\",\r\n\tonClick: () => {},\r\n\ticonClass: \"ff-caret-up rotate-90\",\r\n\tdisabled: false,\r\n\timg: \"https://documentation.chartiq.com/img/CIQ_logo_negative.png\",\r\n\tshowDefaultIcon: false,\r\n};\r\nexport const ImageError = Template.bind({});\r\nImageError.args = {\r\n\tlabel: \"Finsemble\",\r\n\tonClick: () => {},\r\n\ticonClass: \"ff-caret-up rotate-90\",\r\n\tdisabled: false,\r\n\timg: \"https://thiswillresultinanerrorbutdontworrythatswhatwewant\",\r\n\tshowDefaultIcon: false,\r\n};\r\n"]}
@@ -6,7 +6,7 @@ export default {
6
6
  title: "Common/Button/Tile",
7
7
  component: ButtonTile,
8
8
  };
9
- const Template = (args) => React.createElement(ButtonTile, { ...args });
9
+ const Template = (args) => React.createElement(ButtonTile, Object.assign({}, args));
10
10
  export const AddApplications = Template.bind({});
11
11
  AddApplications.args = {
12
12
  icon: "window",
@@ -1 +1 @@
1
- {"version":3,"file":"ButtonTile.stories.js","sourceRoot":"","sources":["../../../../src/components/common/stories/ButtonTile.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,mCAAmC,CAAC;AAC3C,OAAO,mBAAmB,CAAC;AAG3B,eAAe;IACd,KAAK,EAAE,oBAAoB;IAC3B,SAAS,EAAE,UAAU;CACrB,CAAC;AAEF,MAAM,QAAQ,GAA+B,CAAC,IAAyB,EAAE,EAAE,CAAC,oBAAC,UAAU,OAAK,IAAI,GAAI,CAAC;AAErG,MAAM,CAAC,MAAM,eAAe,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACjD,eAAe,CAAC,IAAI,GAAG;IACtB,IAAI,EAAE,QAAQ;IACd,IAAI,EAAE,UAAU;CAChB,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC3C,SAAS,CAAC,IAAI,GAAG;IAChB,IAAI,EAAE,cAAc;IACpB,IAAI,EAAE,YAAY;CAClB,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAChD,cAAc,CAAC,IAAI,GAAG;IACrB,IAAI,EAAE,QAAQ;IACd,IAAI,EAAE,iBAAiB;CACvB,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACnD,iBAAiB,CAAC,IAAI,GAAG;IACxB,IAAI,EAAE,OAAO;IACb,IAAI,EAAE,YAAY;CAClB,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC7C,WAAW,CAAC,IAAI,GAAG;IAClB,IAAI,EAAE,OAAO;IACb,IAAI,EAAE,yBAAyB;CAC/B,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAChD,cAAc,CAAC,IAAI,GAAG;IACrB,IAAI,EAAE,OAAO;IACb,IAAI,EAAE,SAAS;CACf,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACnD,iBAAiB,CAAC,IAAI,GAAG;IACxB,IAAI,EAAE,KAAK;IACX,IAAI,EAAE,YAAY;CAClB,CAAC","sourcesContent":["import React from \"react\";\r\nimport { ButtonTile } from \"../ButtonTile\";\r\nimport { AdvancedButtonProps } from \"../Button\";\r\nimport \"../../../assets/css/finsemble.css\";\r\nimport \"../css/styles.css\";\r\nimport { Story } from \"@storybook/react/types-6-0\";\r\n\r\nexport default {\r\n\ttitle: \"Common/Button/Tile\",\r\n\tcomponent: ButtonTile,\r\n};\r\n\r\nconst Template: Story<AdvancedButtonProps> = (args: AdvancedButtonProps) => <ButtonTile {...args} />;\r\n\r\nexport const AddApplications = Template.bind({});\r\nAddApplications.args = {\r\n\ticon: \"window\",\r\n\ttext: \"Add apps\",\r\n};\r\n\r\nexport const EditTheme = Template.bind({});\r\nEditTheme.args = {\r\n\ticon: \"paint-roller\",\r\n\ttext: \"Edit theme\",\r\n};\r\n\r\nexport const PublishDesktop = Template.bind({});\r\nPublishDesktop.args = {\r\n\ticon: \"upload\",\r\n\ttext: \"Publish desktop\",\r\n};\r\n\r\nexport const ApplicationWizard = Template.bind({});\r\nApplicationWizard.args = {\r\n\ticon: \"magic\",\r\n\ttext: \"App wizard\",\r\n};\r\n\r\nexport const ManualSetup = Template.bind({});\r\nManualSetup.args = {\r\n\ticon: \"tools\",\r\n\ttext: \"Manual setup (advanced)\",\r\n};\r\n\r\nexport const WebApplication = Template.bind({});\r\nWebApplication.args = {\r\n\ticon: \"globe\",\r\n\ttext: \"Web app\",\r\n};\r\n\r\nexport const NativeApplication = Template.bind({});\r\nNativeApplication.args = {\r\n\ticon: \"hdd\",\r\n\ttext: \"Native app\",\r\n};\r\n"]}
1
+ {"version":3,"file":"ButtonTile.stories.js","sourceRoot":"","sources":["../../../../src/components/common/stories/ButtonTile.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,mCAAmC,CAAC;AAC3C,OAAO,mBAAmB,CAAC;AAG3B,eAAe;IACd,KAAK,EAAE,oBAAoB;IAC3B,SAAS,EAAE,UAAU;CACrB,CAAC;AAEF,MAAM,QAAQ,GAA+B,CAAC,IAAyB,EAAE,EAAE,CAAC,oBAAC,UAAU,oBAAK,IAAI,EAAI,CAAC;AAErG,MAAM,CAAC,MAAM,eAAe,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACjD,eAAe,CAAC,IAAI,GAAG;IACtB,IAAI,EAAE,QAAQ;IACd,IAAI,EAAE,UAAU;CAChB,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC3C,SAAS,CAAC,IAAI,GAAG;IAChB,IAAI,EAAE,cAAc;IACpB,IAAI,EAAE,YAAY;CAClB,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAChD,cAAc,CAAC,IAAI,GAAG;IACrB,IAAI,EAAE,QAAQ;IACd,IAAI,EAAE,iBAAiB;CACvB,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACnD,iBAAiB,CAAC,IAAI,GAAG;IACxB,IAAI,EAAE,OAAO;IACb,IAAI,EAAE,YAAY;CAClB,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC7C,WAAW,CAAC,IAAI,GAAG;IAClB,IAAI,EAAE,OAAO;IACb,IAAI,EAAE,yBAAyB;CAC/B,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAChD,cAAc,CAAC,IAAI,GAAG;IACrB,IAAI,EAAE,OAAO;IACb,IAAI,EAAE,SAAS;CACf,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACnD,iBAAiB,CAAC,IAAI,GAAG;IACxB,IAAI,EAAE,KAAK;IACX,IAAI,EAAE,YAAY;CAClB,CAAC","sourcesContent":["import React from \"react\";\r\nimport { ButtonTile } from \"../ButtonTile\";\r\nimport { AdvancedButtonProps } from \"../Button\";\r\nimport \"../../../assets/css/finsemble.css\";\r\nimport \"../css/styles.css\";\r\nimport { Story } from \"@storybook/react/types-6-0\";\r\n\r\nexport default {\r\n\ttitle: \"Common/Button/Tile\",\r\n\tcomponent: ButtonTile,\r\n};\r\n\r\nconst Template: Story<AdvancedButtonProps> = (args: AdvancedButtonProps) => <ButtonTile {...args} />;\r\n\r\nexport const AddApplications = Template.bind({});\r\nAddApplications.args = {\r\n\ticon: \"window\",\r\n\ttext: \"Add apps\",\r\n};\r\n\r\nexport const EditTheme = Template.bind({});\r\nEditTheme.args = {\r\n\ticon: \"paint-roller\",\r\n\ttext: \"Edit theme\",\r\n};\r\n\r\nexport const PublishDesktop = Template.bind({});\r\nPublishDesktop.args = {\r\n\ticon: \"upload\",\r\n\ttext: \"Publish desktop\",\r\n};\r\n\r\nexport const ApplicationWizard = Template.bind({});\r\nApplicationWizard.args = {\r\n\ticon: \"magic\",\r\n\ttext: \"App wizard\",\r\n};\r\n\r\nexport const ManualSetup = Template.bind({});\r\nManualSetup.args = {\r\n\ticon: \"tools\",\r\n\ttext: \"Manual setup (advanced)\",\r\n};\r\n\r\nexport const WebApplication = Template.bind({});\r\nWebApplication.args = {\r\n\ticon: \"globe\",\r\n\ttext: \"Web app\",\r\n};\r\n\r\nexport const NativeApplication = Template.bind({});\r\nNativeApplication.args = {\r\n\ticon: \"hdd\",\r\n\ttext: \"Native app\",\r\n};\r\n"]}
@@ -8,7 +8,7 @@ export default {
8
8
  };
9
9
  const Template = (args) => {
10
10
  const [toggle, setToggle] = React.useState(args.checked);
11
- return React.createElement(Checkbox, { ...args, onClick: () => setToggle((t) => !t), checked: toggle });
11
+ return React.createElement(Checkbox, Object.assign({}, args, { onClick: () => setToggle((t) => !t), checked: toggle }));
12
12
  };
13
13
  export const Unchecked = Template.bind({});
14
14
  Unchecked.args = {
@@ -1 +1 @@
1
- {"version":3,"file":"Checkbox.stories.js","sourceRoot":"","sources":["../../../../src/components/common/stories/Checkbox.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAiB,MAAM,aAAa,CAAC;AACtD,OAAO,mCAAmC,CAAC;AAC3C,OAAO,mBAAmB,CAAC;AAI3B,eAAe;IACd,KAAK,EAAE,iBAAiB;IACxB,SAAS,EAAE,QAAQ;CACnB,CAAC;AAEF,MAAM,QAAQ,GAAyB,CAAC,IAAmB,EAAE,EAAE;IAC9D,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAEzD,OAAO,oBAAC,QAAQ,OAAK,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,MAAM,GAAI,CAAC;AACrF,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC3C,SAAS,CAAC,IAAI,GAAG;IAChB,OAAO,EAAE,KAAK;IACd,KAAK,EAAE,OAAO;CACd,CAAC;AACF,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACzC,OAAO,CAAC,IAAI,GAAG;IACd,OAAO,EAAE,IAAI;IACb,KAAK,EAAE,OAAO;CACd,CAAC;AACF,MAAM,CAAC,MAAM,QAAQ,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC1C,QAAQ,CAAC,IAAI,GAAG;IACf,OAAO,EAAE,KAAK;IACd,KAAK,EAAE,OAAO;IACd,QAAQ,EAAE,IAAI;CACd,CAAC","sourcesContent":["import React from \"react\";\r\nimport { Checkbox, CheckboxProps } from \"../Checkbox\";\r\nimport \"../../../assets/css/finsemble.css\";\r\nimport \"../css/styles.css\";\r\nimport { Story } from \"@storybook/react/types-6-0\";\r\nimport { action } from \"@storybook/addon-actions\";\r\n\r\nexport default {\r\n\ttitle: \"Common/Checkbox\",\r\n\tcomponent: Checkbox,\r\n};\r\n\r\nconst Template: Story<CheckboxProps> = (args: CheckboxProps) => {\r\n\tconst [toggle, setToggle] = React.useState(args.checked);\r\n\r\n\treturn <Checkbox {...args} onClick={() => setToggle((t) => !t)} checked={toggle} />;\r\n};\r\n\r\nexport const Unchecked = Template.bind({});\r\nUnchecked.args = {\r\n\tchecked: false,\r\n\tlabel: \"Label\",\r\n};\r\nexport const Checked = Template.bind({});\r\nChecked.args = {\r\n\tchecked: true,\r\n\tlabel: \"Label\",\r\n};\r\nexport const Disabled = Template.bind({});\r\nDisabled.args = {\r\n\tchecked: false,\r\n\tlabel: \"Label\",\r\n\tdisabled: true,\r\n};\r\n"]}
1
+ {"version":3,"file":"Checkbox.stories.js","sourceRoot":"","sources":["../../../../src/components/common/stories/Checkbox.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAiB,MAAM,aAAa,CAAC;AACtD,OAAO,mCAAmC,CAAC;AAC3C,OAAO,mBAAmB,CAAC;AAG3B,eAAe;IACd,KAAK,EAAE,iBAAiB;IACxB,SAAS,EAAE,QAAQ;CACnB,CAAC;AAEF,MAAM,QAAQ,GAAyB,CAAC,IAAmB,EAAE,EAAE;IAC9D,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAEzD,OAAO,oBAAC,QAAQ,oBAAK,IAAI,IAAE,OAAO,EAAE,GAAG,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC;AACrF,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC3C,SAAS,CAAC,IAAI,GAAG;IAChB,OAAO,EAAE,KAAK;IACd,KAAK,EAAE,OAAO;CACd,CAAC;AACF,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACzC,OAAO,CAAC,IAAI,GAAG;IACd,OAAO,EAAE,IAAI;IACb,KAAK,EAAE,OAAO;CACd,CAAC;AACF,MAAM,CAAC,MAAM,QAAQ,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC1C,QAAQ,CAAC,IAAI,GAAG;IACf,OAAO,EAAE,KAAK;IACd,KAAK,EAAE,OAAO;IACd,QAAQ,EAAE,IAAI;CACd,CAAC","sourcesContent":["import React from \"react\";\r\nimport { Checkbox, CheckboxProps } from \"../Checkbox\";\r\nimport \"../../../assets/css/finsemble.css\";\r\nimport \"../css/styles.css\";\r\nimport { Story } from \"@storybook/react/types-6-0\";\r\n\r\nexport default {\r\n\ttitle: \"Common/Checkbox\",\r\n\tcomponent: Checkbox,\r\n};\r\n\r\nconst Template: Story<CheckboxProps> = (args: CheckboxProps) => {\r\n\tconst [toggle, setToggle] = React.useState(args.checked);\r\n\r\n\treturn <Checkbox {...args} onClick={() => setToggle((t) => !t)} checked={toggle} />;\r\n};\r\n\r\nexport const Unchecked = Template.bind({});\r\nUnchecked.args = {\r\n\tchecked: false,\r\n\tlabel: \"Label\",\r\n};\r\nexport const Checked = Template.bind({});\r\nChecked.args = {\r\n\tchecked: true,\r\n\tlabel: \"Label\",\r\n};\r\nexport const Disabled = Template.bind({});\r\nDisabled.args = {\r\n\tchecked: false,\r\n\tlabel: \"Label\",\r\n\tdisabled: true,\r\n};\r\n"]}
@@ -6,7 +6,7 @@ export default {
6
6
  title: "Common/ColorPicker",
7
7
  component: ColorPicker,
8
8
  };
9
- const Template = (args) => React.createElement(ColorPicker, { ...args });
9
+ const Template = (args) => React.createElement(ColorPicker, Object.assign({}, args));
10
10
  export const EmptyField = Template.bind({});
11
11
  EmptyField.args = {
12
12
  startColor: "",
@@ -1 +1 @@
1
- {"version":3,"file":"ColorPicker.stories.js","sourceRoot":"","sources":["../../../../src/components/common/stories/ColorPicker.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,WAAW,EAAoB,MAAM,gBAAgB,CAAC;AAC/D,OAAO,mCAAmC,CAAC;AAC3C,OAAO,mBAAmB,CAAC;AAG3B,eAAe;IACd,KAAK,EAAE,oBAAoB;IAC3B,SAAS,EAAE,WAAW;CACtB,CAAC;AAEF,MAAM,QAAQ,GAA4B,CAAC,IAAsB,EAAE,EAAE,CAAC,oBAAC,WAAW,OAAK,IAAI,GAAI,CAAC;AAEhG,MAAM,CAAC,MAAM,UAAU,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC5C,UAAU,CAAC,IAAI,GAAG;IACjB,UAAU,EAAE,EAAE;IACd,WAAW,EAAE,CAAC,QAAQ,EAAE,EAAE;QACzB,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IACvB,CAAC;CACD,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC5C,UAAU,CAAC,IAAI,GAAG;IACjB,UAAU,EAAE,SAAS;IACrB,WAAW,EAAE,CAAC,QAAQ,EAAE,EAAE;QACzB,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IACvB,CAAC;CACD,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC9C,YAAY,CAAC,IAAI,GAAG;IACnB,UAAU,EAAE,SAAS;IACrB,WAAW,EAAE,CAAC,QAAQ,EAAE,EAAE;QACzB,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IACvB,CAAC;CACD,CAAC","sourcesContent":["import React from \"react\";\r\nimport { ColorPicker, ColorPickerProps } from \"../ColorPicker\";\r\nimport \"../../../assets/css/finsemble.css\";\r\nimport \"../css/styles.css\";\r\nimport { Story } from \"@storybook/react/types-6-0\";\r\n\r\nexport default {\r\n\ttitle: \"Common/ColorPicker\",\r\n\tcomponent: ColorPicker,\r\n};\r\n\r\nconst Template: Story<ColorPickerProps> = (args: ColorPickerProps) => <ColorPicker {...args} />;\r\n\r\nexport const EmptyField = Template.bind({});\r\nEmptyField.args = {\r\n\tstartColor: \"\",\r\n\tupdateColor: (newColor) => {\r\n\t\tconsole.log(newColor);\r\n\t},\r\n};\r\n\r\nexport const ValidColor = Template.bind({});\r\nValidColor.args = {\r\n\tstartColor: \"#FF0000\",\r\n\tupdateColor: (newColor) => {\r\n\t\tconsole.log(newColor);\r\n\t},\r\n};\r\n\r\nexport const InvalidColor = Template.bind({});\r\nInvalidColor.args = {\r\n\tstartColor: \"#ZZZZZZ\",\r\n\tupdateColor: (newColor) => {\r\n\t\tconsole.log(newColor);\r\n\t},\r\n};\r\n"]}
1
+ {"version":3,"file":"ColorPicker.stories.js","sourceRoot":"","sources":["../../../../src/components/common/stories/ColorPicker.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,WAAW,EAAoB,MAAM,gBAAgB,CAAC;AAC/D,OAAO,mCAAmC,CAAC;AAC3C,OAAO,mBAAmB,CAAC;AAG3B,eAAe;IACd,KAAK,EAAE,oBAAoB;IAC3B,SAAS,EAAE,WAAW;CACtB,CAAC;AAEF,MAAM,QAAQ,GAA4B,CAAC,IAAsB,EAAE,EAAE,CAAC,oBAAC,WAAW,oBAAK,IAAI,EAAI,CAAC;AAEhG,MAAM,CAAC,MAAM,UAAU,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC5C,UAAU,CAAC,IAAI,GAAG;IACjB,UAAU,EAAE,EAAE;IACd,WAAW,EAAE,CAAC,QAAQ,EAAE,EAAE;QACzB,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IACvB,CAAC;CACD,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC5C,UAAU,CAAC,IAAI,GAAG;IACjB,UAAU,EAAE,SAAS;IACrB,WAAW,EAAE,CAAC,QAAQ,EAAE,EAAE;QACzB,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IACvB,CAAC;CACD,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC9C,YAAY,CAAC,IAAI,GAAG;IACnB,UAAU,EAAE,SAAS;IACrB,WAAW,EAAE,CAAC,QAAQ,EAAE,EAAE;QACzB,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IACvB,CAAC;CACD,CAAC","sourcesContent":["import React from \"react\";\r\nimport { ColorPicker, ColorPickerProps } from \"../ColorPicker\";\r\nimport \"../../../assets/css/finsemble.css\";\r\nimport \"../css/styles.css\";\r\nimport { Story } from \"@storybook/react/types-6-0\";\r\n\r\nexport default {\r\n\ttitle: \"Common/ColorPicker\",\r\n\tcomponent: ColorPicker,\r\n};\r\n\r\nconst Template: Story<ColorPickerProps> = (args: ColorPickerProps) => <ColorPicker {...args} />;\r\n\r\nexport const EmptyField = Template.bind({});\r\nEmptyField.args = {\r\n\tstartColor: \"\",\r\n\tupdateColor: (newColor) => {\r\n\t\tconsole.log(newColor);\r\n\t},\r\n};\r\n\r\nexport const ValidColor = Template.bind({});\r\nValidColor.args = {\r\n\tstartColor: \"#FF0000\",\r\n\tupdateColor: (newColor) => {\r\n\t\tconsole.log(newColor);\r\n\t},\r\n};\r\n\r\nexport const InvalidColor = Template.bind({});\r\nInvalidColor.args = {\r\n\tstartColor: \"#ZZZZZZ\",\r\n\tupdateColor: (newColor) => {\r\n\t\tconsole.log(newColor);\r\n\t},\r\n};\r\n"]}
@@ -7,7 +7,7 @@ export default {
7
7
  title: "Common/DropZone",
8
8
  component: DropZone,
9
9
  };
10
- const Template = (args) => React.createElement(DropZone, { ...args });
10
+ const Template = (args) => React.createElement(DropZone, Object.assign({}, args));
11
11
  export const Default = Template.bind({});
12
12
  Default.args = {
13
13
  children: React.createElement("div", null, "This is a test"),
@@ -1 +1 @@
1
- {"version":3,"file":"DropZone.stories.js","sourceRoot":"","sources":["../../../../src/components/common/stories/DropZone.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAiB,MAAM,aAAa,CAAC;AACtD,OAAO,mCAAmC,CAAC;AAC3C,OAAO,mBAAmB,CAAC;AAE3B,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAElD,eAAe;IACd,KAAK,EAAE,iBAAiB;IACxB,SAAS,EAAE,QAAQ;CACnB,CAAC;AAEF,MAAM,QAAQ,GAAyB,CAAC,IAAmB,EAAE,EAAE,CAAC,oBAAC,QAAQ,OAAK,IAAI,GAAI,CAAC;AAEvF,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACzC,OAAO,CAAC,IAAI,GAAG;IACd,QAAQ,EAAE,kDAAyB;IACnC,WAAW,EAAE,MAAM,CAAC,QAAQ,CAAC;CAC7B,CAAC","sourcesContent":["import React from \"react\";\r\nimport { DropZone, DropZoneProps } from \"../DropZone\";\r\nimport \"../../../assets/css/finsemble.css\";\r\nimport \"../css/styles.css\";\r\nimport { Story } from \"@storybook/react/types-6-0\";\r\nimport { action } from \"@storybook/addon-actions\";\r\n\r\nexport default {\r\n\ttitle: \"Common/DropZone\",\r\n\tcomponent: DropZone,\r\n};\r\n\r\nconst Template: Story<DropZoneProps> = (args: DropZoneProps) => <DropZone {...args} />;\r\n\r\nexport const Default = Template.bind({});\r\nDefault.args = {\r\n\tchildren: <div>This is a test</div>,\r\n\tprocessFile: action(\"update\"),\r\n};\r\n"]}
1
+ {"version":3,"file":"DropZone.stories.js","sourceRoot":"","sources":["../../../../src/components/common/stories/DropZone.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAiB,MAAM,aAAa,CAAC;AACtD,OAAO,mCAAmC,CAAC;AAC3C,OAAO,mBAAmB,CAAC;AAE3B,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAElD,eAAe;IACd,KAAK,EAAE,iBAAiB;IACxB,SAAS,EAAE,QAAQ;CACnB,CAAC;AAEF,MAAM,QAAQ,GAAyB,CAAC,IAAmB,EAAE,EAAE,CAAC,oBAAC,QAAQ,oBAAK,IAAI,EAAI,CAAC;AAEvF,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACzC,OAAO,CAAC,IAAI,GAAG;IACd,QAAQ,EAAE,kDAAyB;IACnC,WAAW,EAAE,MAAM,CAAC,QAAQ,CAAC;CAC7B,CAAC","sourcesContent":["import React from \"react\";\r\nimport { DropZone, DropZoneProps } from \"../DropZone\";\r\nimport \"../../../assets/css/finsemble.css\";\r\nimport \"../css/styles.css\";\r\nimport { Story } from \"@storybook/react/types-6-0\";\r\nimport { action } from \"@storybook/addon-actions\";\r\n\r\nexport default {\r\n\ttitle: \"Common/DropZone\",\r\n\tcomponent: DropZone,\r\n};\r\n\r\nconst Template: Story<DropZoneProps> = (args: DropZoneProps) => <DropZone {...args} />;\r\n\r\nexport const Default = Template.bind({});\r\nDefault.args = {\r\n\tchildren: <div>This is a test</div>,\r\n\tprocessFile: action(\"update\"),\r\n};\r\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"FinsembleIcon.stories.js","sourceRoot":"","sources":["../../../../src/components/common/stories/FinsembleIcon.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,mCAAmC,CAAC;AAC3C,OAAO,+BAA+B,CAAC;AACvC,OAAO,mBAAmB,CAAC;AAC3B,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,MAAM,OAAO,GAAG,SAAS,CAAC,sBAAsB,EAAE,MAAM,CAAC,CAAC;AAGzD;IACC,OAAO;IACP,cAAc;IACd,cAAc;IACd,eAAe;IACf,MAAM;IACN,oBAAoB;IACpB,eAAe;IACf,MAAM;IACN,QAAQ;IACR,MAAM;IACN,OAAO;IACP,KAAK;IACL,KAAK;IACL,WAAW;IACX,MAAM;IACN,OAAO;IACP,MAAM;IACN,cAAc;IACd,QAAQ;IACR,MAAM;IACN,iBAAiB;IACjB,QAAQ;IACR,KAAK;IACL,OAAO;IACP,YAAY;IACZ,WAAW;IACX,OAAO;IACP,OAAO;IACP,QAAQ;IACR,QAAQ;CAET,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;IAClB,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,GAAG,EAAE,CAAC,oBAAC,aAAa,IAAC,SAAS,EAAC,qBAAqB,EAAC,IAAI,EAAE,IAAI,GAAkB,CAAC,CAAC;AACtG,CAAC,CAAC,CAAC","sourcesContent":["import React from \"react\";\r\nimport { FinsembleIcon } from \"../FinsembleIcon\";\r\nimport \"../../../assets/css/finsemble.css\";\r\nimport \"../fixtures/FinsembleIcon.css\";\r\nimport \"../css/styles.css\";\r\nimport { storiesOf } from \"@storybook/react\";\r\n\r\nconst stories = storiesOf(\"Common/FinsembleIcon\", module);\r\n\r\n(\r\n\t[\r\n\t\t\"check\",\r\n\t\t\"check-square\",\r\n\t\t\"chevron-left\",\r\n\t\t\"chevron-right\",\r\n\t\t\"copy\",\r\n\t\t\"exclamation-circle\",\r\n\t\t\"external-link\",\r\n\t\t\"flag\",\r\n\t\t\"folder\",\r\n\t\t\"font\",\r\n\t\t\"globe\",\r\n\t\t\"hdd\",\r\n\t\t\"key\",\r\n\t\t\"life-ring\",\r\n\t\t\"lock\",\r\n\t\t\"magic\",\r\n\t\t\"moon\",\r\n\t\t\"paint-roller\",\r\n\t\t\"pencil\",\r\n\t\t\"plus\",\r\n\t\t\"question-circle\",\r\n\t\t\"search\",\r\n\t\t\"sun\",\r\n\t\t\"times\",\r\n\t\t\"toggle-off\",\r\n\t\t\"toggle-on\",\r\n\t\t\"tools\",\r\n\t\t\"trash\",\r\n\t\t\"upload\",\r\n\t\t\"window\",\r\n\t] as FinsembleIcon[]\r\n).forEach((icon) => {\r\n\tstories.add(icon, () => <FinsembleIcon className=\"test-finsemble-icon\" icon={icon}></FinsembleIcon>);\r\n});\r\n"]}
1
+ {"version":3,"file":"FinsembleIcon.stories.js","sourceRoot":"","sources":["../../../../src/components/common/stories/FinsembleIcon.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,aAAa,EAAqB,MAAM,kBAAkB,CAAC;AACpE,OAAO,mCAAmC,CAAC;AAC3C,OAAO,+BAA+B,CAAC;AACvC,OAAO,mBAAmB,CAAC;AAC3B,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,MAAM,OAAO,GAAG,SAAS,CAAC,sBAAsB,EAAE,MAAM,CAAC,CAAC;AAGzD;IACC,OAAO;IACP,cAAc;IACd,cAAc;IACd,eAAe;IACf,MAAM;IACN,oBAAoB;IACpB,eAAe;IACf,MAAM;IACN,QAAQ;IACR,MAAM;IACN,OAAO;IACP,KAAK;IACL,KAAK;IACL,WAAW;IACX,MAAM;IACN,OAAO;IACP,MAAM;IACN,cAAc;IACd,QAAQ;IACR,MAAM;IACN,iBAAiB;IACjB,QAAQ;IACR,KAAK;IACL,OAAO;IACP,YAAY;IACZ,WAAW;IACX,OAAO;IACP,OAAO;IACP,QAAQ;IACR,QAAQ;CAET,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;IAClB,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,GAAG,EAAE,CAAC,oBAAC,aAAa,IAAC,SAAS,EAAC,qBAAqB,EAAC,IAAI,EAAE,IAAI,GAAkB,CAAC,CAAC;AACtG,CAAC,CAAC,CAAC","sourcesContent":["import React from \"react\";\r\nimport { FinsembleIcon, FinsembleIconType } from \"../FinsembleIcon\";\r\nimport \"../../../assets/css/finsemble.css\";\r\nimport \"../fixtures/FinsembleIcon.css\";\r\nimport \"../css/styles.css\";\r\nimport { storiesOf } from \"@storybook/react\";\r\n\r\nconst stories = storiesOf(\"Common/FinsembleIcon\", module);\r\n\r\n(\r\n\t[\r\n\t\t\"check\",\r\n\t\t\"check-square\",\r\n\t\t\"chevron-left\",\r\n\t\t\"chevron-right\",\r\n\t\t\"copy\",\r\n\t\t\"exclamation-circle\",\r\n\t\t\"external-link\",\r\n\t\t\"flag\",\r\n\t\t\"folder\",\r\n\t\t\"font\",\r\n\t\t\"globe\",\r\n\t\t\"hdd\",\r\n\t\t\"key\",\r\n\t\t\"life-ring\",\r\n\t\t\"lock\",\r\n\t\t\"magic\",\r\n\t\t\"moon\",\r\n\t\t\"paint-roller\",\r\n\t\t\"pencil\",\r\n\t\t\"plus\",\r\n\t\t\"question-circle\",\r\n\t\t\"search\",\r\n\t\t\"sun\",\r\n\t\t\"times\",\r\n\t\t\"toggle-off\",\r\n\t\t\"toggle-on\",\r\n\t\t\"tools\",\r\n\t\t\"trash\",\r\n\t\t\"upload\",\r\n\t\t\"window\",\r\n\t] as FinsembleIconType[]\r\n).forEach((icon) => {\r\n\tstories.add(icon, () => <FinsembleIcon className=\"test-finsemble-icon\" icon={icon}></FinsembleIcon>);\r\n});\r\n"]}
@@ -7,7 +7,7 @@ export default {
7
7
  title: "Common/FinsembleSelect",
8
8
  component: FinsembleSelect,
9
9
  };
10
- const Template = (args) => React.createElement(FinsembleSelect, { ...args });
10
+ const Template = (args) => React.createElement(FinsembleSelect, Object.assign({}, args));
11
11
  export const Sample = Template.bind({});
12
12
  Sample.args = {
13
13
  options: ["A", "B", "C", "D"],
@@ -1 +1 @@
1
- {"version":3,"file":"FinsembleSelect.stories.js","sourceRoot":"","sources":["../../../../src/components/common/stories/FinsembleSelect.stories.tsx"],"names":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CAAC,CAAC;AAC5C,UAAU,CAAC,IAAI,GAAG;IACjB,OAAO,EAAE,UAAU;IACnB,MAAM,EAAE,UAAU;IAClB,cAAc,EAAE,MAAM,CAAC,iBAAiB,CAAC;IACzC,IAAI,EAAE,CAAC;IACP,UAAU,EAAE,IAAI;CAChB,CAAC;AAEF,MAAM,CAAC,MAAM,MAAM,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACxC,MAAM,CAAC,IAAI,GAAG;IACb,KAAK,EAAE,CAAC;IACR,OAAO,EAAE,UAAU;IACnB,MAAM,EAAE,UAAU;IAClB,cAAc,EAAE,MAAM,CAAC,iBAAiB,CAAC;IACzC,IAAI,EAAE,CAAC;IACP,UAAU,EAAE,IAAI;CAChB,CAAC;AAEF,MAAM,CAAC,MAAM,MAAM,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACxC,MAAM,CAAC,IAAI,GAAG;IACb,KAAK,EAAE,CAAC;IACR,OAAO,EAAE,UAAU;IACnB,MAAM,EAAE,UAAU;IAClB,cAAc,EAAE,MAAM,CAAC,iBAAiB,CAAC;IACzC,IAAI,EAAE,CAAC;IACP,UAAU,EAAE,IAAI;CAChB,CAAC","sourcesContent":["import React from \"react\";\r\nimport { FinsembleSelect, FinsembleSelectProps } from \"../FinsembleSelect\";\r\nimport \"../../../assets/css/finsemble.css\";\r\nimport \"../css/styles.css\";\r\nimport { Story } from \"@storybook/react/types-6-0\";\r\nimport { action } from \"@storybook/addon-actions\";\r\n\r\nexport default {\r\n\ttitle: \"Common/FinsembleSelect\",\r\n\tcomponent: FinsembleSelect,\r\n};\r\n\r\nconst Template: Story<FinsembleSelectProps> = (args: FinsembleSelectProps) => <FinsembleSelect {...args} />;\r\n\r\nexport const Sample = Template.bind({});\r\nSample.args = {\r\n\toptions: [\"A\", \"B\", \"C\", \"D\"],\r\n\tupdateCallback: action(\"Selected values\"),\r\n};\r\nexport const Adjustable = Template.bind({});\r\nAdjustable.args = {\r\n\toptions: [\"A\", \"B\", \"C\", \"D\"],\r\n\tupdateCallback: action(\"Selected values\"),\r\n\tsize: 3,\r\n};\r\nexport const LongText = Template.bind({});\r\nLongText.args = {\r\n\toptions: [\r\n\t\t\"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\",\r\n\t\t\"BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB\",\r\n\t\t\"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\",\r\n\t\t\"nope\",\r\n\t],\r\n\tupdateCallback: action(\"Selected values\"),\r\n\tsize: 3,\r\n};\r\nexport const SeperateValuesFromText = Template.bind({});\r\nSeperateValuesFromText.args = {\r\n\toptions: [\"A\", \"B\", \"C\", \"D\"],\r\n\tvalues: [\"1\", \"2\", \"3\", \"4\"],\r\n\tupdateCallback: action(\"Selected values\"),\r\n};\r\nexport const PreSelected = Template.bind({});\r\nPreSelected.args = {\r\n\toptions: [\"A\", \"B\", \"C\", \"D\"],\r\n\tselected: [\"C\", \"B\"],\r\n\tupdateCallback: action(\"Selected values\"),\r\n};\r\nexport const InvalidPreSelected = Template.bind({});\r\nInvalidPreSelected.args = {\r\n\toptions: [\"A\", \"B\", \"C\", \"D\"],\r\n\tselected: [\"E\"],\r\n\tupdateCallback: action(\"Selected values\"),\r\n};\r\nexport const PreSelectedValues = Template.bind({});\r\nPreSelectedValues.args = {\r\n\toptions: [\"A\", \"B\", \"C\", \"D\"],\r\n\tvalues: [\"1\", \"2\", \"3\", \"4\"],\r\n\tselected: [\"3\", \"2\"],\r\n\tupdateCallback: action(\"Selected values\"),\r\n};\r\n\r\nconst stateNames = [\r\n\t\"Alabama\",\r\n\t\"Alaska\",\r\n\t\"Arizona\",\r\n\t\"Arkansas\",\r\n\t\"California\",\r\n\t\"Colorado\",\r\n\t\"Connecticut\",\r\n\t\"Delaware\",\r\n\t\"Florida\",\r\n\t\"Georgia\",\r\n\t\"Hawaii\",\r\n\t\"Idaho\",\r\n\t\"Illinois\",\r\n\t\"Indiana\",\r\n\t\"Iowa\",\r\n\t\"Kansas\",\r\n\t\"Kentucky\",\r\n\t\"Louisiana\",\r\n\t\"Maine\",\r\n\t\"Maryland\",\r\n\t\"Massachusetts\",\r\n\t\"Michigan\",\r\n\t\"Minnesota\",\r\n\t\"Mississippi\",\r\n\t\"Missouri\",\r\n\t\"Montana\",\r\n\t\"Nebraska\",\r\n\t\"Nevada\",\r\n\t\"New Hampshire\",\r\n\t\"New Jersey\",\r\n\t\"New Mexico\",\r\n\t\"New York\",\r\n\t\"North Carolina\",\r\n\t\"North Dakota\",\r\n\t\"Ohio\",\r\n\t\"Oklahoma\",\r\n\t\"Oregon\",\r\n\t\"Pennsylvania\",\r\n\t\"Rhode Island\",\r\n\t\"South Carolina\",\r\n\t\"South Dakota\",\r\n\t\"Tennessee\",\r\n\t\"Texas\",\r\n\t\"Utah\",\r\n\t\"Vermont\",\r\n\t\"Virginia\",\r\n\t\"Washington\",\r\n\t\"West Virginia\",\r\n\t\"Wisconsin\",\r\n\t\"Wyoming\",\r\n];\r\nconst stateCodes = [\r\n\t\"AL\",\r\n\t\"AK\",\r\n\t\"AZ\",\r\n\t\"AR\",\r\n\t\"CA\",\r\n\t\"CO\",\r\n\t\"CT\",\r\n\t\"DE\",\r\n\t\"FL\",\r\n\t\"GA\",\r\n\t\"HI\",\r\n\t\"ID\",\r\n\t\"IL\",\r\n\t\"IN\",\r\n\t\"IA\",\r\n\t\"KS\",\r\n\t\"KY\",\r\n\t\"LA\",\r\n\t\"ME\",\r\n\t\"MD\",\r\n\t\"MA\",\r\n\t\"MI\",\r\n\t\"MN\",\r\n\t\"MS\",\r\n\t\"MO\",\r\n\t\"MT\",\r\n\t\"NE\",\r\n\t\"NV\",\r\n\t\"NH\",\r\n\t\"NJ\",\r\n\t\"NM\",\r\n\t\"NY\",\r\n\t\"NC\",\r\n\t\"ND\",\r\n\t\"OH\",\r\n\t\"OK\",\r\n\t\"OR\",\r\n\t\"PA\",\r\n\t\"RI\",\r\n\t\"SC\",\r\n\t\"SD\",\r\n\t\"TN\",\r\n\t\"TX\",\r\n\t\"UT\",\r\n\t\"VT\",\r\n\t\"VA\",\r\n\t\"WA\",\r\n\t\"WV\",\r\n\t\"WI\",\r\n\t\"WY\",\r\n];\r\nexport const Searchable = Template.bind({});\r\nSearchable.args = {\r\n\toptions: stateNames,\r\n\tvalues: stateCodes,\r\n\tupdateCallback: action(\"Selected values\"),\r\n\tsize: 6,\r\n\tshowSearch: true,\r\n};\r\n\r\nexport const Limit1 = Template.bind({});\r\nLimit1.args = {\r\n\tlimit: 1,\r\n\toptions: stateNames,\r\n\tvalues: stateCodes,\r\n\tupdateCallback: action(\"Selected values\"),\r\n\tsize: 6,\r\n\tshowSearch: true,\r\n};\r\n\r\nexport const Limit2 = Template.bind({});\r\nLimit2.args = {\r\n\tlimit: 2,\r\n\toptions: stateNames,\r\n\tvalues: stateCodes,\r\n\tupdateCallback: action(\"Selected values\"),\r\n\tsize: 6,\r\n\tshowSearch: true,\r\n};\r\n"]}
1
+ {"version":3,"file":"FinsembleSelect.stories.js","sourceRoot":"","sources":["../../../../src/components/common/stories/FinsembleSelect.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,eAAe,EAAwB,MAAM,oBAAoB,CAAC;AAC3E,OAAO,mCAAmC,CAAC;AAC3C,OAAO,mBAAmB,CAAC;AAE3B,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAElD,eAAe;IACd,KAAK,EAAE,wBAAwB;IAC/B,SAAS,EAAE,eAAe;CAC1B,CAAC;AAEF,MAAM,QAAQ,GAAgC,CAAC,IAA0B,EAAE,EAAE,CAAC,oBAAC,eAAe,oBAAK,IAAI,EAAI,CAAC;AAE5G,MAAM,CAAC,MAAM,MAAM,GAAG,QAAQ,CAAC,IAAI,CAAC,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AC;IACP,UAAU,EAAE,IAAI;CAChB,CAAC;AAEF,MAAM,CAAC,MAAM,MAAM,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACxC,MAAM,CAAC,IAAI,GAAG;IACb,KAAK,EAAE,CAAC;IACR,OAAO,EAAE,UAAU;IACnB,MAAM,EAAE,UAAU;IAClB,cAAc,EAAE,MAAM,CAAC,iBAAiB,CAAC;IACzC,IAAI,EAAE,CAAC;IACP,UAAU,EAAE,IAAI;CAChB,CAAC","sourcesContent":["import React from \"react\";\r\nimport { FinsembleSelect, FinsembleSelectProps } from \"../FinsembleSelect\";\r\nimport \"../../../assets/css/finsemble.css\";\r\nimport \"../css/styles.css\";\r\nimport { Story } from \"@storybook/react/types-6-0\";\r\nimport { action } from \"@storybook/addon-actions\";\r\n\r\nexport default {\r\n\ttitle: \"Common/FinsembleSelect\",\r\n\tcomponent: FinsembleSelect,\r\n};\r\n\r\nconst Template: Story<FinsembleSelectProps> = (args: FinsembleSelectProps) => <FinsembleSelect {...args} />;\r\n\r\nexport const Sample = Template.bind({});\r\nSample.args = {\r\n\toptions: [\"A\", \"B\", \"C\", \"D\"],\r\n\tupdateCallback: action(\"Selected values\"),\r\n};\r\nexport const Adjustable = Template.bind({});\r\nAdjustable.args = {\r\n\toptions: [\"A\", \"B\", \"C\", \"D\"],\r\n\tupdateCallback: action(\"Selected values\"),\r\n\tsize: 3,\r\n};\r\nexport const LongText = Template.bind({});\r\nLongText.args = {\r\n\toptions: [\r\n\t\t\"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\",\r\n\t\t\"BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB\",\r\n\t\t\"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\",\r\n\t\t\"nope\",\r\n\t],\r\n\tupdateCallback: action(\"Selected values\"),\r\n\tsize: 3,\r\n};\r\nexport const SeperateValuesFromText = Template.bind({});\r\nSeperateValuesFromText.args = {\r\n\toptions: [\"A\", \"B\", \"C\", \"D\"],\r\n\tvalues: [\"1\", \"2\", \"3\", \"4\"],\r\n\tupdateCallback: action(\"Selected values\"),\r\n};\r\nexport const PreSelected = Template.bind({});\r\nPreSelected.args = {\r\n\toptions: [\"A\", \"B\", \"C\", \"D\"],\r\n\tselected: [\"C\", \"B\"],\r\n\tupdateCallback: action(\"Selected values\"),\r\n};\r\nexport const InvalidPreSelected = Template.bind({});\r\nInvalidPreSelected.args = {\r\n\toptions: [\"A\", \"B\", \"C\", \"D\"],\r\n\tselected: [\"E\"],\r\n\tupdateCallback: action(\"Selected values\"),\r\n};\r\nexport const PreSelectedValues = Template.bind({});\r\nPreSelectedValues.args = {\r\n\toptions: [\"A\", \"B\", \"C\", \"D\"],\r\n\tvalues: [\"1\", \"2\", \"3\", \"4\"],\r\n\tselected: [\"3\", \"2\"],\r\n\tupdateCallback: action(\"Selected values\"),\r\n};\r\n\r\nconst stateNames = [\r\n\t\"Alabama\",\r\n\t\"Alaska\",\r\n\t\"Arizona\",\r\n\t\"Arkansas\",\r\n\t\"California\",\r\n\t\"Colorado\",\r\n\t\"Connecticut\",\r\n\t\"Delaware\",\r\n\t\"Florida\",\r\n\t\"Georgia\",\r\n\t\"Hawaii\",\r\n\t\"Idaho\",\r\n\t\"Illinois\",\r\n\t\"Indiana\",\r\n\t\"Iowa\",\r\n\t\"Kansas\",\r\n\t\"Kentucky\",\r\n\t\"Louisiana\",\r\n\t\"Maine\",\r\n\t\"Maryland\",\r\n\t\"Massachusetts\",\r\n\t\"Michigan\",\r\n\t\"Minnesota\",\r\n\t\"Mississippi\",\r\n\t\"Missouri\",\r\n\t\"Montana\",\r\n\t\"Nebraska\",\r\n\t\"Nevada\",\r\n\t\"New Hampshire\",\r\n\t\"New Jersey\",\r\n\t\"New Mexico\",\r\n\t\"New York\",\r\n\t\"North Carolina\",\r\n\t\"North Dakota\",\r\n\t\"Ohio\",\r\n\t\"Oklahoma\",\r\n\t\"Oregon\",\r\n\t\"Pennsylvania\",\r\n\t\"Rhode Island\",\r\n\t\"South Carolina\",\r\n\t\"South Dakota\",\r\n\t\"Tennessee\",\r\n\t\"Texas\",\r\n\t\"Utah\",\r\n\t\"Vermont\",\r\n\t\"Virginia\",\r\n\t\"Washington\",\r\n\t\"West Virginia\",\r\n\t\"Wisconsin\",\r\n\t\"Wyoming\",\r\n];\r\nconst stateCodes = [\r\n\t\"AL\",\r\n\t\"AK\",\r\n\t\"AZ\",\r\n\t\"AR\",\r\n\t\"CA\",\r\n\t\"CO\",\r\n\t\"CT\",\r\n\t\"DE\",\r\n\t\"FL\",\r\n\t\"GA\",\r\n\t\"HI\",\r\n\t\"ID\",\r\n\t\"IL\",\r\n\t\"IN\",\r\n\t\"IA\",\r\n\t\"KS\",\r\n\t\"KY\",\r\n\t\"LA\",\r\n\t\"ME\",\r\n\t\"MD\",\r\n\t\"MA\",\r\n\t\"MI\",\r\n\t\"MN\",\r\n\t\"MS\",\r\n\t\"MO\",\r\n\t\"MT\",\r\n\t\"NE\",\r\n\t\"NV\",\r\n\t\"NH\",\r\n\t\"NJ\",\r\n\t\"NM\",\r\n\t\"NY\",\r\n\t\"NC\",\r\n\t\"ND\",\r\n\t\"OH\",\r\n\t\"OK\",\r\n\t\"OR\",\r\n\t\"PA\",\r\n\t\"RI\",\r\n\t\"SC\",\r\n\t\"SD\",\r\n\t\"TN\",\r\n\t\"TX\",\r\n\t\"UT\",\r\n\t\"VT\",\r\n\t\"VA\",\r\n\t\"WA\",\r\n\t\"WV\",\r\n\t\"WI\",\r\n\t\"WY\",\r\n];\r\nexport const Searchable = Template.bind({});\r\nSearchable.args = {\r\n\toptions: stateNames,\r\n\tvalues: stateCodes,\r\n\tupdateCallback: action(\"Selected values\"),\r\n\tsize: 6,\r\n\tshowSearch: true,\r\n};\r\n\r\nexport const Limit1 = Template.bind({});\r\nLimit1.args = {\r\n\tlimit: 1,\r\n\toptions: stateNames,\r\n\tvalues: stateCodes,\r\n\tupdateCallback: action(\"Selected values\"),\r\n\tsize: 6,\r\n\tshowSearch: true,\r\n};\r\n\r\nexport const Limit2 = Template.bind({});\r\nLimit2.args = {\r\n\tlimit: 2,\r\n\toptions: stateNames,\r\n\tvalues: stateCodes,\r\n\tupdateCallback: action(\"Selected values\"),\r\n\tsize: 6,\r\n\tshowSearch: true,\r\n};\r\n"]}
@@ -7,15 +7,17 @@ export default {
7
7
  title: "Common/FinsembleToggle",
8
8
  component: FinsembleToggle,
9
9
  };
10
- const Template = (args) => React.createElement(FinsembleToggle, { ...args });
10
+ const Template = (args) => React.createElement(FinsembleToggle, Object.assign({}, args));
11
11
  export const Unchecked = Template.bind({});
12
12
  Unchecked.args = {
13
13
  checked: false,
14
14
  onChange: action("Selected values"),
15
+ label: "Test",
15
16
  };
16
17
  export const Checked = Template.bind({});
17
18
  Checked.args = {
18
19
  checked: true,
19
20
  onChange: action("Selected values"),
21
+ label: "Pre-checked test",
20
22
  };
21
23
  //# sourceMappingURL=FinsembleToggle.stories.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"FinsembleToggle.stories.js","sourceRoot":"","sources":["../../../../src/components/common/stories/FinsembleToggle.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,eAAe,EAAwB,MAAM,oBAAoB,CAAC;AAC3E,OAAO,mCAAmC,CAAC;AAC3C,OAAO,mBAAmB,CAAC;AAE3B,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAElD,eAAe;IACd,KAAK,EAAE,wBAAwB;IAC/B,SAAS,EAAE,eAAe;CAC1B,CAAC;AAEF,MAAM,QAAQ,GAAgC,CAAC,IAA0B,EAAE,EAAE,CAAC,oBAAC,eAAe,OAAK,IAAI,GAAI,CAAC;AAE5G,MAAM,CAAC,MAAM,SAAS,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC3C,SAAS,CAAC,IAAI,GAAG;IAChB,OAAO,EAAE,KAAK;IACd,QAAQ,EAAE,MAAM,CAAC,iBAAiB,CAAC;CACnC,CAAC;AACF,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACzC,OAAO,CAAC,IAAI,GAAG;IACd,OAAO,EAAE,IAAI;IACb,QAAQ,EAAE,MAAM,CAAC,iBAAiB,CAAC;CACnC,CAAC","sourcesContent":["import React from \"react\";\r\nimport { FinsembleToggle, FinsembleToggleProps } from \"../FinsembleToggle\";\r\nimport \"../../../assets/css/finsemble.css\";\r\nimport \"../css/styles.css\";\r\nimport { Story } from \"@storybook/react/types-6-0\";\r\nimport { action } from \"@storybook/addon-actions\";\r\n\r\nexport default {\r\n\ttitle: \"Common/FinsembleToggle\",\r\n\tcomponent: FinsembleToggle,\r\n};\r\n\r\nconst Template: Story<FinsembleToggleProps> = (args: FinsembleToggleProps) => <FinsembleToggle {...args} />;\r\n\r\nexport const Unchecked = Template.bind({});\r\nUnchecked.args = {\r\n\tchecked: false,\r\n\tonChange: action(\"Selected values\"),\r\n};\r\nexport const Checked = Template.bind({});\r\nChecked.args = {\r\n\tchecked: true,\r\n\tonChange: action(\"Selected values\"),\r\n};\r\n"]}
1
+ {"version":3,"file":"FinsembleToggle.stories.js","sourceRoot":"","sources":["../../../../src/components/common/stories/FinsembleToggle.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,eAAe,EAAwB,MAAM,oBAAoB,CAAC;AAC3E,OAAO,mCAAmC,CAAC;AAC3C,OAAO,mBAAmB,CAAC;AAE3B,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAElD,eAAe;IACd,KAAK,EAAE,wBAAwB;IAC/B,SAAS,EAAE,eAAe;CAC1B,CAAC;AAEF,MAAM,QAAQ,GAAgC,CAAC,IAA0B,EAAE,EAAE,CAAC,oBAAC,eAAe,oBAAK,IAAI,EAAI,CAAC;AAE5G,MAAM,CAAC,MAAM,SAAS,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC3C,SAAS,CAAC,IAAI,GAAG;IAChB,OAAO,EAAE,KAAK;IACd,QAAQ,EAAE,MAAM,CAAC,iBAAiB,CAAC;IACnC,KAAK,EAAE,MAAM;CACb,CAAC;AACF,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACzC,OAAO,CAAC,IAAI,GAAG;IACd,OAAO,EAAE,IAAI;IACb,QAAQ,EAAE,MAAM,CAAC,iBAAiB,CAAC;IACnC,KAAK,EAAE,kBAAkB;CACzB,CAAC","sourcesContent":["import React from \"react\";\r\nimport { FinsembleToggle, FinsembleToggleProps } from \"../FinsembleToggle\";\r\nimport \"../../../assets/css/finsemble.css\";\r\nimport \"../css/styles.css\";\r\nimport { Story } from \"@storybook/react/types-6-0\";\r\nimport { action } from \"@storybook/addon-actions\";\r\n\r\nexport default {\r\n\ttitle: \"Common/FinsembleToggle\",\r\n\tcomponent: FinsembleToggle,\r\n};\r\n\r\nconst Template: Story<FinsembleToggleProps> = (args: FinsembleToggleProps) => <FinsembleToggle {...args} />;\r\n\r\nexport const Unchecked = Template.bind({});\r\nUnchecked.args = {\r\n\tchecked: false,\r\n\tonChange: action(\"Selected values\"),\r\n\tlabel: \"Test\",\r\n};\r\nexport const Checked = Template.bind({});\r\nChecked.args = {\r\n\tchecked: true,\r\n\tonChange: action(\"Selected values\"),\r\n\tlabel: \"Pre-checked test\",\r\n};\r\n"]}
@@ -6,7 +6,7 @@ export default {
6
6
  title: "Common/FontSize",
7
7
  component: FontSize,
8
8
  };
9
- const Template = (args) => React.createElement(FontSize, { ...args });
9
+ const Template = (args) => React.createElement(FontSize, Object.assign({}, args));
10
10
  export const EmptyField = Template.bind({});
11
11
  EmptyField.args = {
12
12
  startSize: "",
@@ -1 +1 @@
1
- {"version":3,"file":"FontSizeSelector.stories.js","sourceRoot":"","sources":["../../../../src/components/common/stories/FontSizeSelector.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAiB,MAAM,qBAAqB,CAAC;AAC9D,OAAO,mCAAmC,CAAC;AAC3C,OAAO,mBAAmB,CAAC;AAG3B,eAAe;IACd,KAAK,EAAE,iBAAiB;IACxB,SAAS,EAAE,QAAQ;CACnB,CAAC;AAEF,MAAM,QAAQ,GAAyB,CAAC,IAAmB,EAAE,EAAE,CAAC,oBAAC,QAAQ,OAAK,IAAI,GAAI,CAAC;AAEvF,MAAM,CAAC,MAAM,UAAU,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC5C,UAAU,CAAC,IAAI,GAAG;IACjB,SAAS,EAAE,EAAE;IACb,UAAU,EAAE,CAAC,OAAO,EAAE,EAAE;QACvB,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IACtB,CAAC;CACD,CAAC;AAEF,MAAM,CAAC,MAAM,KAAK,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACvC,KAAK,CAAC,IAAI,GAAG;IACZ,SAAS,EAAE,OAAO;IAClB,UAAU,EAAE,CAAC,OAAO,EAAE,EAAE;QACvB,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IACtB,CAAC;CACD,CAAC","sourcesContent":["import React from \"react\";\r\nimport { FontSize, FontSizeProps } from \"../FontSizeSelector\";\r\nimport \"../../../assets/css/finsemble.css\";\r\nimport \"../css/styles.css\";\r\nimport { Story } from \"@storybook/react/types-6-0\";\r\n\r\nexport default {\r\n\ttitle: \"Common/FontSize\",\r\n\tcomponent: FontSize,\r\n};\r\n\r\nconst Template: Story<FontSizeProps> = (args: FontSizeProps) => <FontSize {...args} />;\r\n\r\nexport const EmptyField = Template.bind({});\r\nEmptyField.args = {\r\n\tstartSize: \"\",\r\n\tupdateSize: (newSize) => {\r\n\t\tconsole.log(newSize);\r\n\t},\r\n};\r\n\r\nexport const Large = Template.bind({});\r\nLarge.args = {\r\n\tstartSize: \"large\",\r\n\tupdateSize: (newSize) => {\r\n\t\tconsole.log(newSize);\r\n\t},\r\n};\r\n"]}
1
+ {"version":3,"file":"FontSizeSelector.stories.js","sourceRoot":"","sources":["../../../../src/components/common/stories/FontSizeSelector.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAiB,MAAM,qBAAqB,CAAC;AAC9D,OAAO,mCAAmC,CAAC;AAC3C,OAAO,mBAAmB,CAAC;AAG3B,eAAe;IACd,KAAK,EAAE,iBAAiB;IACxB,SAAS,EAAE,QAAQ;CACnB,CAAC;AAEF,MAAM,QAAQ,GAAyB,CAAC,IAAmB,EAAE,EAAE,CAAC,oBAAC,QAAQ,oBAAK,IAAI,EAAI,CAAC;AAEvF,MAAM,CAAC,MAAM,UAAU,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC5C,UAAU,CAAC,IAAI,GAAG;IACjB,SAAS,EAAE,EAAE;IACb,UAAU,EAAE,CAAC,OAAO,EAAE,EAAE;QACvB,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IACtB,CAAC;CACD,CAAC;AAEF,MAAM,CAAC,MAAM,KAAK,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACvC,KAAK,CAAC,IAAI,GAAG;IACZ,SAAS,EAAE,OAAO;IAClB,UAAU,EAAE,CAAC,OAAO,EAAE,EAAE;QACvB,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IACtB,CAAC;CACD,CAAC","sourcesContent":["import React from \"react\";\r\nimport { FontSize, FontSizeProps } from \"../FontSizeSelector\";\r\nimport \"../../../assets/css/finsemble.css\";\r\nimport \"../css/styles.css\";\r\nimport { Story } from \"@storybook/react/types-6-0\";\r\n\r\nexport default {\r\n\ttitle: \"Common/FontSize\",\r\n\tcomponent: FontSize,\r\n};\r\n\r\nconst Template: Story<FontSizeProps> = (args: FontSizeProps) => <FontSize {...args} />;\r\n\r\nexport const EmptyField = Template.bind({});\r\nEmptyField.args = {\r\n\tstartSize: \"\",\r\n\tupdateSize: (newSize) => {\r\n\t\tconsole.log(newSize);\r\n\t},\r\n};\r\n\r\nexport const Large = Template.bind({});\r\nLarge.args = {\r\n\tstartSize: \"large\",\r\n\tupdateSize: (newSize) => {\r\n\t\tconsole.log(newSize);\r\n\t},\r\n};\r\n"]}
@@ -6,7 +6,7 @@ export default {
6
6
  title: "Common/Header",
7
7
  component: Header,
8
8
  };
9
- const Template = (args) => React.createElement(Header, { ...args });
9
+ const Template = (args) => React.createElement(Header, Object.assign({}, args));
10
10
  export const BasicHeader = Template.bind({});
11
11
  BasicHeader.args = {
12
12
  children: "This is a Header",
@@ -1 +1 @@
1
- {"version":3,"file":"Header.stories.js","sourceRoot":"","sources":["../../../../src/components/common/stories/Header.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAe,MAAM,WAAW,CAAC;AAChD,OAAO,mCAAmC,CAAC;AAC3C,OAAO,mBAAmB,CAAC;AAG3B,eAAe;IACd,KAAK,EAAE,eAAe;IACtB,SAAS,EAAE,MAAM;CACjB,CAAC;AAEF,MAAM,QAAQ,GAAuB,CAAC,IAAiB,EAAE,EAAE,CAAC,oBAAC,MAAM,OAAK,IAAI,GAAI,CAAC;AAEjF,MAAM,CAAC,MAAM,WAAW,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC7C,WAAW,CAAC,IAAI,GAAG;IAClB,QAAQ,EAAE,kBAAkB;CAC5B,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACtD,oBAAoB,CAAC,IAAI,GAAG;IAC3B,QAAQ,EAAE,WAAW;IACrB,YAAY,EAAE,GAAG,EAAE;QAClB,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAClC,CAAC;CACD,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAChD,cAAc,CAAC,IAAI,GAAG;IACrB,QAAQ,EAAE,WAAW;IACrB,YAAY,EAAE,GAAG,EAAE;QAClB,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAClC,CAAC;CACD,CAAC;AACF,MAAM,CAAC,MAAM,WAAW,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC7C,WAAW,CAAC,IAAI,GAAG;IAClB,QAAQ,EAAE,WAAW;IACrB,YAAY,EAAE,GAAG,EAAE;QAClB,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAClC,CAAC;IACD,YAAY,EAAE,GAAG,EAAE;QAClB,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAClC,CAAC;CACD,CAAC","sourcesContent":["import React from \"react\";\r\nimport { Header, HeaderProps } from \"../Header\";\r\nimport \"../../../assets/css/finsemble.css\";\r\nimport \"../css/styles.css\";\r\nimport { Story } from \"@storybook/react/types-6-0\";\r\n\r\nexport default {\r\n\ttitle: \"Common/Header\",\r\n\tcomponent: Header,\r\n};\r\n\r\nconst Template: Story<HeaderProps> = (args: HeaderProps) => <Header {...args} />;\r\n\r\nexport const BasicHeader = Template.bind({});\r\nBasicHeader.args = {\r\n\tchildren: \"This is a Header\",\r\n};\r\n\r\nexport const HeaderWithBackButton = Template.bind({});\r\nHeaderWithBackButton.args = {\r\n\tchildren: \"My Header\",\r\n\tbackFunction: () => {\r\n\t\talert(\"Clicked the back button\");\r\n\t},\r\n};\r\n\r\nexport const HeaderWithHelp = Template.bind({});\r\nHeaderWithHelp.args = {\r\n\tchildren: \"My Header\",\r\n\thelpFunction: () => {\r\n\t\talert(\"Clicked the help button\");\r\n\t},\r\n};\r\nexport const KitchenSink = Template.bind({});\r\nKitchenSink.args = {\r\n\tchildren: \"My Header\",\r\n\tbackFunction: () => {\r\n\t\talert(\"Clicked the back button\");\r\n\t},\r\n\thelpFunction: () => {\r\n\t\talert(\"Clicked the help button\");\r\n\t},\r\n};\r\n"]}
1
+ {"version":3,"file":"Header.stories.js","sourceRoot":"","sources":["../../../../src/components/common/stories/Header.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAe,MAAM,WAAW,CAAC;AAChD,OAAO,mCAAmC,CAAC;AAC3C,OAAO,mBAAmB,CAAC;AAG3B,eAAe;IACd,KAAK,EAAE,eAAe;IACtB,SAAS,EAAE,MAAM;CACjB,CAAC;AAEF,MAAM,QAAQ,GAAuB,CAAC,IAAiB,EAAE,EAAE,CAAC,oBAAC,MAAM,oBAAK,IAAI,EAAI,CAAC;AAEjF,MAAM,CAAC,MAAM,WAAW,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC7C,WAAW,CAAC,IAAI,GAAG;IAClB,QAAQ,EAAE,kBAAkB;CAC5B,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACtD,oBAAoB,CAAC,IAAI,GAAG;IAC3B,QAAQ,EAAE,WAAW;IACrB,YAAY,EAAE,GAAG,EAAE;QAClB,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAClC,CAAC;CACD,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAChD,cAAc,CAAC,IAAI,GAAG;IACrB,QAAQ,EAAE,WAAW;IACrB,YAAY,EAAE,GAAG,EAAE;QAClB,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAClC,CAAC;CACD,CAAC;AACF,MAAM,CAAC,MAAM,WAAW,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC7C,WAAW,CAAC,IAAI,GAAG;IAClB,QAAQ,EAAE,WAAW;IACrB,YAAY,EAAE,GAAG,EAAE;QAClB,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAClC,CAAC;IACD,YAAY,EAAE,GAAG,EAAE;QAClB,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAClC,CAAC;CACD,CAAC","sourcesContent":["import React from \"react\";\r\nimport { Header, HeaderProps } from \"../Header\";\r\nimport \"../../../assets/css/finsemble.css\";\r\nimport \"../css/styles.css\";\r\nimport { Story } from \"@storybook/react/types-6-0\";\r\n\r\nexport default {\r\n\ttitle: \"Common/Header\",\r\n\tcomponent: Header,\r\n};\r\n\r\nconst Template: Story<HeaderProps> = (args: HeaderProps) => <Header {...args} />;\r\n\r\nexport const BasicHeader = Template.bind({});\r\nBasicHeader.args = {\r\n\tchildren: \"This is a Header\",\r\n};\r\n\r\nexport const HeaderWithBackButton = Template.bind({});\r\nHeaderWithBackButton.args = {\r\n\tchildren: \"My Header\",\r\n\tbackFunction: () => {\r\n\t\talert(\"Clicked the back button\");\r\n\t},\r\n};\r\n\r\nexport const HeaderWithHelp = Template.bind({});\r\nHeaderWithHelp.args = {\r\n\tchildren: \"My Header\",\r\n\thelpFunction: () => {\r\n\t\talert(\"Clicked the help button\");\r\n\t},\r\n};\r\nexport const KitchenSink = Template.bind({});\r\nKitchenSink.args = {\r\n\tchildren: \"My Header\",\r\n\tbackFunction: () => {\r\n\t\talert(\"Clicked the back button\");\r\n\t},\r\n\thelpFunction: () => {\r\n\t\talert(\"Clicked the help button\");\r\n\t},\r\n};\r\n"]}