@finsemble/finsemble-ui 7.0.0-beta.1 → 7.0.0-beta.4

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 (266) hide show
  1. package/package.json +21 -31
  2. package/react/assets/css/button.css +1 -1
  3. package/react/assets/css/favorites.css +0 -47
  4. package/react/assets/css/finsemble.css +3 -0
  5. package/react/assets/css/linkerWindow.css +13 -1
  6. package/react/assets/css/menus.css +2 -2
  7. package/react/assets/css/notificationsCenter.css +33 -2
  8. package/react/assets/css/shared/common.css +40 -0
  9. package/react/assets/css/userPreferences.css +17 -12
  10. package/react/assets/css/windowTitleBar.css +8 -1
  11. package/react/assets/icons/server.svg +26 -0
  12. package/react/components/common/ButtonIcon.js +1 -1
  13. package/react/components/common/ButtonIcon.js.map +1 -1
  14. package/react/components/common/ButtonRow.js +2 -2
  15. package/react/components/common/ButtonRow.js.map +1 -1
  16. package/react/components/common/Checkbox.js +1 -1
  17. package/react/components/common/Checkbox.js.map +1 -1
  18. package/react/components/common/ErrorBoundary.d.ts +16 -0
  19. package/react/components/common/ErrorBoundary.js +22 -0
  20. package/react/components/common/ErrorBoundary.js.map +1 -0
  21. package/react/components/common/FinsembleIcon.d.ts +2 -2
  22. package/react/components/common/FinsembleIcon.js +10 -4
  23. package/react/components/common/FinsembleIcon.js.map +1 -1
  24. package/react/components/common/FinsembleToggle.d.ts +1 -2
  25. package/react/components/common/FinsembleToggle.js +2 -6
  26. package/react/components/common/FinsembleToggle.js.map +1 -1
  27. package/react/components/common/FinsembleToggleButtonBar.d.ts +13 -0
  28. package/react/components/common/FinsembleToggleButtonBar.js +44 -0
  29. package/react/components/common/FinsembleToggleButtonBar.js.map +1 -0
  30. package/react/components/common/Tab.js +33 -5
  31. package/react/components/common/Tab.js.map +1 -1
  32. package/react/components/common/css/FinsembleToggle.css +22 -0
  33. package/react/components/common/css/tab.css +8 -8
  34. package/react/components/common/css/time-select.css +1 -1
  35. package/react/components/common/css/toggle.css +2 -10
  36. package/react/components/common/helpers.js +4 -0
  37. package/react/components/common/helpers.js.map +1 -1
  38. package/react/components/common/stories/FinsembleToggle.stories.d.ts +1 -2
  39. package/react/components/common/stories/FinsembleToggle.stories.js +0 -7
  40. package/react/components/common/stories/FinsembleToggle.stories.js.map +1 -1
  41. package/react/components/common/stories/FinsembleToggleButtonBar.stories.d.ts +14 -0
  42. package/react/components/common/stories/FinsembleToggleButtonBar.stories.js +97 -0
  43. package/react/components/common/stories/FinsembleToggleButtonBar.stories.js.map +1 -0
  44. package/react/components/common/tests/ButtonRow.spec.js +5 -0
  45. package/react/components/common/tests/ButtonRow.spec.js.map +1 -1
  46. package/react/components/common/tests/FinsembleToggle.spec.js +1 -6
  47. package/react/components/common/tests/FinsembleToggle.spec.js.map +1 -1
  48. package/react/components/common/tests/FinsembleToggleButtonBar.spec.d.ts +1 -0
  49. package/react/components/common/tests/FinsembleToggleButtonBar.spec.js +40 -0
  50. package/react/components/common/tests/FinsembleToggleButtonBar.spec.js.map +1 -0
  51. package/react/components/favorites/FavoriteMaker.js +1 -1
  52. package/react/components/favorites/FavoriteMaker.js.map +1 -1
  53. package/react/components/fdc3Resolver/ResolverContainer.js +4 -7
  54. package/react/components/fdc3Resolver/ResolverContainer.js.map +1 -1
  55. package/react/components/icon/Icon.d.ts +1 -1
  56. package/react/components/icon/Icon.js +8 -1
  57. package/react/components/icon/Icon.js.map +1 -1
  58. package/react/components/legacyControls/FinsembleDialog.js +1 -1
  59. package/react/components/legacyControls/FinsembleDialog.js.map +1 -1
  60. package/react/components/legacyControls/FinsembleDnDContext.js +7 -7
  61. package/react/components/legacyControls/FinsembleDnDContext.js.map +1 -1
  62. package/react/components/linker/remoteRedux.js +1 -0
  63. package/react/components/linker/remoteRedux.js.map +1 -1
  64. package/react/components/menu/MenuItem.js +1 -1
  65. package/react/components/menu/MenuItem.js.map +1 -1
  66. package/react/components/menu/MenuPortal.js +12 -21
  67. package/react/components/menu/MenuPortal.js.map +1 -1
  68. package/react/components/menu/MenuToggle.js +1 -1
  69. package/react/components/menu/MenuToggle.js.map +1 -1
  70. package/react/components/menu/keyboardNavigation.d.ts +1 -22
  71. package/react/components/menu/keyboardNavigation.js +110 -160
  72. package/react/components/menu/keyboardNavigation.js.map +1 -1
  73. package/react/components/notifications/components/drawer/DrawerControls.js +39 -25
  74. package/react/components/notifications/components/drawer/DrawerControls.js.map +1 -1
  75. package/react/components/notifications/components/notificationsCenter/NotificationsCenter.js +19 -6
  76. package/react/components/notifications/components/notificationsCenter/NotificationsCenter.js.map +1 -1
  77. package/react/components/notifications/components/notificationsToasts/NotificationsToasts.js +14 -10
  78. package/react/components/notifications/components/notificationsToasts/NotificationsToasts.js.map +1 -1
  79. package/react/components/notifications/components/shared/CheckButton.js +19 -8
  80. package/react/components/notifications/components/shared/CheckButton.js.map +1 -1
  81. package/react/components/notifications/components/shared/NotificationCardShell.js +2 -1
  82. package/react/components/notifications/components/shared/NotificationCardShell.js.map +1 -1
  83. package/react/components/notifications/components/shared/notificationCard/NotificationCardBodyShell.js +2 -1
  84. package/react/components/notifications/components/shared/notificationCard/NotificationCardBodyShell.js.map +1 -1
  85. package/react/components/notifications/components/shared/notificationCard/NotificationCardHeaderShell.js +2 -1
  86. package/react/components/notifications/components/shared/notificationCard/NotificationCardHeaderShell.js.map +1 -1
  87. package/react/components/notifications/components/views/CardView.js +5 -3
  88. package/react/components/notifications/components/views/CardView.js.map +1 -1
  89. package/react/components/notifications/components/views/ListView.js +3 -1
  90. package/react/components/notifications/components/views/ListView.js.map +1 -1
  91. package/react/components/notifications/types.d.ts +3 -0
  92. package/react/components/notifications/types.js.map +1 -1
  93. package/react/components/processMonitor/ProcessMonitor.js +4 -1
  94. package/react/components/processMonitor/ProcessMonitor.js.map +1 -1
  95. package/react/components/processMonitor/components/ProcessStatistics.js +1 -3
  96. package/react/components/processMonitor/components/ProcessStatistics.js.map +1 -1
  97. package/react/components/processMonitor/helpers.js +4 -3
  98. package/react/components/processMonitor/helpers.js.map +1 -1
  99. package/react/components/processMonitor/helpers.spec.js +7 -3
  100. package/react/components/processMonitor/helpers.spec.js.map +1 -1
  101. package/react/components/sdd/AddApp.d.ts +4 -3
  102. package/react/components/sdd/AddApp.js +129 -33
  103. package/react/components/sdd/AddApp.js.map +1 -1
  104. package/react/components/sdd/AppEditAccess.d.ts +4 -3
  105. package/react/components/sdd/AppEditAccess.js.map +1 -1
  106. package/react/components/sdd/AppEditPage.d.ts +4 -3
  107. package/react/components/sdd/AppEditPage.js +124 -73
  108. package/react/components/sdd/AppEditPage.js.map +1 -1
  109. package/react/components/sdd/Application.d.ts +5 -4
  110. package/react/components/sdd/Application.js +61 -42
  111. package/react/components/sdd/Application.js.map +1 -1
  112. package/react/components/sdd/Applications.d.ts +12 -11
  113. package/react/components/sdd/Applications.js +23 -4
  114. package/react/components/sdd/Applications.js.map +1 -1
  115. package/react/components/sdd/AuthenticationProviderConfig.js +2 -1
  116. package/react/components/sdd/AuthenticationProviderConfig.js.map +1 -1
  117. package/react/components/sdd/EditPreload.d.ts +4 -3
  118. package/react/components/sdd/EditPreload.js +39 -22
  119. package/react/components/sdd/EditPreload.js.map +1 -1
  120. package/react/components/sdd/Export.d.ts +7 -6
  121. package/react/components/sdd/Export.js +2 -1
  122. package/react/components/sdd/Export.js.map +1 -1
  123. package/react/components/sdd/GettingStarted.js +1 -1
  124. package/react/components/sdd/GettingStarted.js.map +1 -1
  125. package/react/components/sdd/Navigation.js +29 -5
  126. package/react/components/sdd/Navigation.js.map +1 -1
  127. package/react/components/sdd/OptionalSettingsView.d.ts +6 -5
  128. package/react/components/sdd/OptionalSettingsView.js.map +1 -1
  129. package/react/components/sdd/ProjectErrors.js +1 -1
  130. package/react/components/sdd/ProjectErrors.js.map +1 -1
  131. package/react/components/sdd/Publish.js +2 -2
  132. package/react/components/sdd/Publish.js.map +1 -1
  133. package/react/components/sdd/SmartDesktopDesigner.d.ts +14 -13
  134. package/react/components/sdd/SmartDesktopDesigner.js +15 -11
  135. package/react/components/sdd/SmartDesktopDesigner.js.map +1 -1
  136. package/react/components/sdd/Toolbar.d.ts +5 -4
  137. package/react/components/sdd/Toolbar.js.map +1 -1
  138. package/react/components/sdd/common/setPreloadDefaults.js +4 -3
  139. package/react/components/sdd/common/setPreloadDefaults.js.map +1 -1
  140. package/react/components/sdd/common/views.js +40 -39
  141. package/react/components/sdd/common/views.js.map +1 -1
  142. package/react/components/sdd/css/addApp.css +52 -0
  143. package/react/components/sdd/css/applications.css +4 -24
  144. package/react/components/sdd/css/nav.css +3 -3
  145. package/react/components/sdd/smartDesktopClient.d.ts +163 -0
  146. package/react/components/sdd/smartDesktopClient.js +573 -0
  147. package/react/components/sdd/smartDesktopClient.js.map +1 -0
  148. package/react/components/sdd/smartDesktopClient.spec.d.ts +1 -0
  149. package/react/components/sdd/smartDesktopClient.spec.js +61 -0
  150. package/react/components/sdd/smartDesktopClient.spec.js.map +1 -0
  151. package/react/components/sdd/stories/AddApp.stories.d.ts +10 -0
  152. package/react/components/sdd/stories/AddApp.stories.js +18 -0
  153. package/react/components/sdd/stories/AddApp.stories.js.map +1 -0
  154. package/react/components/sdd/stories/AppEditPage.stories.d.ts +1 -0
  155. package/react/components/sdd/stories/AppEditPage.stories.js +1 -0
  156. package/react/components/sdd/stories/AppEditPage.stories.js.map +1 -1
  157. package/react/components/sdd/stories/SmartDesktopDesigner.stories.d.ts +1 -1
  158. package/react/components/sdd/tests/AddApp.spec.d.ts +1 -0
  159. package/react/components/sdd/tests/AddApp.spec.js +96 -0
  160. package/react/components/sdd/tests/AddApp.spec.js.map +1 -0
  161. package/react/components/sdd/tests/AppEditPage.spec.js +57 -19
  162. package/react/components/sdd/tests/AppEditPage.spec.js.map +1 -1
  163. package/react/components/sdd/tests/Application.spec.js +411 -24
  164. package/react/components/sdd/tests/Application.spec.js.map +1 -1
  165. package/react/components/sdd/tests/Applications.spec.js +1 -45
  166. package/react/components/sdd/tests/Applications.spec.js.map +1 -1
  167. package/react/components/sdd/tests/EditPreload.spec.js +36 -0
  168. package/react/components/sdd/tests/EditPreload.spec.js.map +1 -1
  169. package/react/components/sdd/tests/Navigation.spec.js +2 -2
  170. package/react/components/sdd/tests/Navigation.spec.js.map +1 -1
  171. package/react/components/sdd/tests/SmartDesktopDesigner.spec.js +2 -2
  172. package/react/components/sdd/tests/SmartDesktopDesigner.spec.js.map +1 -1
  173. package/react/components/search/Highlight.stories.js +1 -1
  174. package/react/components/search/Highlight.stories.js.map +1 -1
  175. package/react/components/search/Search.js +1 -1
  176. package/react/components/search/Search.js.map +1 -1
  177. package/react/components/search/SearchResult.d.ts +5 -0
  178. package/react/components/search/SearchResult.js.map +1 -1
  179. package/react/components/search/SearchResult.spec.d.ts +1 -0
  180. package/react/components/search/SearchResult.spec.js +39 -0
  181. package/react/components/search/SearchResult.spec.js.map +1 -0
  182. package/react/components/search/SearchResult.stories.d.ts +16 -0
  183. package/react/components/search/SearchResult.stories.js +109 -0
  184. package/react/components/search/SearchResult.stories.js.map +1 -0
  185. package/react/components/search/SearchResults.spec.d.ts +1 -0
  186. package/react/components/search/SearchResults.spec.js +28 -0
  187. package/react/components/search/SearchResults.spec.js.map +1 -0
  188. package/react/components/search/SearchResults.stories.d.ts +11 -0
  189. package/react/components/search/SearchResults.stories.js +458 -0
  190. package/react/components/search/SearchResults.stories.js.map +1 -0
  191. package/react/components/shared/DefaultDropdownButton.js +12 -1
  192. package/react/components/shared/DefaultDropdownButton.js.map +1 -1
  193. package/react/components/shared/tests/DefaultDropdownButton.spec.js +12 -0
  194. package/react/components/shared/tests/DefaultDropdownButton.spec.js.map +1 -1
  195. package/react/components/singleInputDialog/SingleInputDialog.stories.js +2 -2
  196. package/react/components/singleInputDialog/SingleInputDialog.stories.js.map +1 -1
  197. package/react/components/toolbar/AutoArrange.spec.js +9 -4
  198. package/react/components/toolbar/AutoArrange.spec.js.map +1 -1
  199. package/react/components/toolbar/DragHandle.stories.js.map +1 -1
  200. package/react/components/toolbar/ToolbarIcon.js +2 -2
  201. package/react/components/toolbar/ToolbarIcon.js.map +1 -1
  202. package/react/components/toolbar/ToolbarSection.d.ts +1 -9
  203. package/react/components/toolbar/ToolbarSection.js +3 -7
  204. package/react/components/toolbar/ToolbarSection.js.map +1 -1
  205. package/react/components/toolbar/advancedAppLauncher/components/AppDefinition.js +7 -10
  206. package/react/components/toolbar/advancedAppLauncher/components/AppDefinition.js.map +1 -1
  207. package/react/components/toolbar/advancedAppLauncher/stores/StoreActions.js +1 -1
  208. package/react/components/toolbar/advancedAppLauncher/stores/StoreActions.js.map +1 -1
  209. package/react/components/toolbar/advancedAppLauncher/utils/sort-functions.js +1 -3
  210. package/react/components/toolbar/advancedAppLauncher/utils/sort-functions.js.map +1 -1
  211. package/react/components/toolbar/dashbar/Dashbar.js +21 -11
  212. package/react/components/toolbar/dashbar/Dashbar.js.map +1 -1
  213. package/react/components/toolbar/workspaceManagementMenu/WorkspaceManagementMenu.d.ts +1 -1
  214. package/react/components/toolbar/workspaceManagementMenu/WorkspaceManagementMenu.js.map +1 -1
  215. package/react/components/toolbar/workspaceManagementMenu/components/Workspace.d.ts +1 -1
  216. package/react/components/toolbar/workspaceManagementMenu/components/Workspace.js +1 -1
  217. package/react/components/toolbar/workspaceManagementMenu/components/Workspace.js.map +1 -1
  218. package/react/components/toolbar/workspaceManagementMenu/components/WorkspaceList.d.ts +1 -1
  219. package/react/components/toolbar/workspaceManagementMenu/components/WorkspaceList.js.map +1 -1
  220. package/react/components/toolbar/workspaceManagementMenu/stores/workspaceManagementMenuStore.d.ts +1 -1
  221. package/react/components/toolbar/workspaceManagementMenu/stores/workspaceManagementMenuStore.js +1 -1
  222. package/react/components/toolbar/workspaceManagementMenu/stores/workspaceManagementMenuStore.js.map +1 -1
  223. package/react/components/userPreferences/components/ContentSection.js +1 -1
  224. package/react/components/userPreferences/components/ContentSection.js.map +1 -1
  225. package/react/components/userPreferences/components/content/Workspaces.js +1 -1
  226. package/react/components/userPreferences/components/content/Workspaces.js.map +1 -1
  227. package/react/components/userPreferences/components/content/notificationViews/NotificationsPreferencesHome.js +2 -1
  228. package/react/components/userPreferences/components/content/notificationViews/NotificationsPreferencesHome.js.map +1 -1
  229. package/react/components/userPreferences/components/general/ScheduledClose.js +12 -3
  230. package/react/components/userPreferences/components/general/ScheduledClose.js.map +1 -1
  231. package/react/components/userPreferences/components/workspaces/WorkspaceButton.js +1 -1
  232. package/react/components/userPreferences/components/workspaces/WorkspaceButton.js.map +1 -1
  233. package/react/components/userPreferences/stores/UserPreferencesStore.d.ts +1 -1
  234. package/react/components/userPreferences/stores/UserPreferencesStore.js +8 -6
  235. package/react/components/userPreferences/stores/UserPreferencesStore.js.map +1 -1
  236. package/react/components/userPreferences/tests/LeftNav.spec.js +15 -1
  237. package/react/components/userPreferences/tests/LeftNav.spec.js.map +1 -1
  238. package/react/components/userPreferences/tests/UserPreferencesBase.spec.d.ts +1 -0
  239. package/react/components/userPreferences/tests/UserPreferencesBase.spec.js +42 -0
  240. package/react/components/userPreferences/tests/UserPreferencesBase.spec.js.map +1 -0
  241. package/react/components/userPreferences/tests/Workspace.spec.d.ts +1 -0
  242. package/react/components/userPreferences/tests/Workspace.spec.js +119 -0
  243. package/react/components/userPreferences/tests/Workspace.spec.js.map +1 -0
  244. package/react/components/windowTitleBar/WindowTitleBarShell.d.ts +19 -2
  245. package/react/components/windowTitleBar/WindowTitleBarShell.js +194 -6
  246. package/react/components/windowTitleBar/WindowTitleBarShell.js.map +1 -1
  247. package/react/components/windowTitleBar/components/left/LinkerButton.js +7 -1
  248. package/react/components/windowTitleBar/components/left/LinkerButton.js.map +1 -1
  249. package/react/components/windowTitleBar/components/windowTitle.js +65 -24
  250. package/react/components/windowTitleBar/components/windowTitle.js.map +1 -1
  251. package/react/components/windowTitleBar/stores/windowTitleBarStore.js +9 -5
  252. package/react/components/windowTitleBar/stores/windowTitleBarStore.js.map +1 -1
  253. package/react/components/yesNoDialog/YesNoDialog.stories.js +2 -2
  254. package/react/components/yesNoDialog/YesNoDialog.stories.js.map +1 -1
  255. package/react/enzymeSetup.js +5 -0
  256. package/react/enzymeSetup.js.map +1 -1
  257. package/react/hooks/useNotifications.js +4 -8
  258. package/react/hooks/useNotifications.js.map +1 -1
  259. package/react/hooks/useToolbar.d.ts +1 -1
  260. package/react/hooks/useToolbar.js +2 -2
  261. package/react/hooks/useToolbar.js.map +1 -1
  262. package/react/reducers/rootReducer.d.ts +2 -2
  263. package/react/store.d.ts +4 -4
  264. package/react/tsconfig.tsbuildinfo +1 -1
  265. package/react/types/smartDesktopDesignerTypes.d.ts +3 -0
  266. package/react/types/smartDesktopDesignerTypes.js.map +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finsemble/finsemble-ui",
3
- "version": "7.0.0-beta.1",
3
+ "version": "7.0.0-beta.4",
4
4
  "description": "Ready-made React components to give you a head-start building your SmartDesktop.",
5
5
  "types": "index.d.ts",
6
6
  "files": [
@@ -28,29 +28,28 @@
28
28
  "build-storybook": "build-storybook"
29
29
  },
30
30
  "dependencies": {
31
- "@finsemble/finsemble-api": "7.0.0-beta.1",
31
+ "@finsemble/finsemble-api": "7.0.0-beta.4",
32
32
  "@q42/floating-focus-a11y": "^1.3.3",
33
33
  "@reduxjs/toolkit": "^1.5.0",
34
34
  "@svgr/webpack": "^5.5.0",
35
35
  "@types/async": "3.2.12",
36
- "@types/chai": "4.3.0",
37
- "@types/lodash": "4.14.179",
38
- "@types/mocha": "9.1.0",
39
- "@types/react": "17.0.40",
40
- "@types/react-dom": "17.0.13",
41
- "@types/react-redux": "7.1.23",
36
+ "@types/chai": "4.3.1",
37
+ "@types/lodash": "4.14.182",
38
+ "@types/mocha": "9.1.1",
39
+ "@types/react": "17.0.44",
40
+ "@types/react-dom": "17.0.15",
41
+ "@types/react-redux": "7.1.24",
42
42
  "@types/react-relative-portal": "^1.8.1",
43
43
  "async": "3.2.3",
44
44
  "date-fns": "^2.25.0",
45
45
  "immer": "9.0.12",
46
46
  "lodash": "4.17.21",
47
- "prop-types": "15.8.1",
48
47
  "react-circular-progressbar": "^2.0.3",
49
- "react-redux": "7.2.6",
48
+ "react-redux": "7.2.8",
50
49
  "react-relative-portal": "^1.8.0",
51
50
  "react-sortable-hoc": "2.0.0",
52
51
  "react-transition-group": "4.4.2",
53
- "redux": "4.1.2",
52
+ "redux": "4.2.0",
54
53
  "redux-loop": "6.2.0",
55
54
  "unionize": "3.1.0"
56
55
  },
@@ -62,10 +61,10 @@
62
61
  "@babel/preset-env": "^7.16.0",
63
62
  "@babel/preset-react": "^7.12.10",
64
63
  "@babel/register": "^7.16.0",
65
- "@storybook/addon-actions": "6.4.19",
66
- "@storybook/addon-essentials": "6.4.19",
67
- "@storybook/addon-links": "6.4.19",
68
- "@storybook/react": "6.4.19",
64
+ "@storybook/addon-actions": "6.4.22",
65
+ "@storybook/addon-essentials": "6.4.22",
66
+ "@storybook/addon-links": "6.4.22",
67
+ "@storybook/react": "6.4.22",
69
68
  "@types/enzyme": "^3.10.8",
70
69
  "@types/react-syntax-highlighter": "13.5.2",
71
70
  "@types/react-transition-group": "4.4.4",
@@ -73,10 +72,10 @@
73
72
  "@wojtekmaj/enzyme-adapter-react-17": "^0.6.2",
74
73
  "axe-core": "^4.2.3",
75
74
  "babel-loader": "^8.2.2",
76
- "canvas": "^2.6.1",
77
- "chai": "4.3.4",
75
+ "canvas": "^2.9.0",
76
+ "chai": "4.3.6",
78
77
  "chokidar-cli": "3.0.0",
79
- "concurrently": "7.0.0",
78
+ "concurrently": "7.1.0",
80
79
  "copyfiles": "2.4.1",
81
80
  "core-js": "^3.15.2",
82
81
  "depcheck": "^1.4.3",
@@ -84,7 +83,7 @@
84
83
  "ignore-styles": "^5.0.1",
85
84
  "improved-yarn-audit": "^3.0.0",
86
85
  "jsdom": "^19.0.0",
87
- "mocha": "9.1.3",
86
+ "mocha": "9.2.2",
88
87
  "nyc": "15.1.0",
89
88
  "react": "17.0.2",
90
89
  "react-dom": "17.0.2",
@@ -94,18 +93,9 @@
94
93
  "typescript": "4.5.5"
95
94
  },
96
95
  "resolutions": {
97
- "@types/react-dom": "17.0.13",
98
- "ts-mocha/ts-node": "^10.1.0",
99
- "trim": "0.0.3",
100
- "css-what": "5.0.1",
101
- "prismjs": "1.24.0",
102
- "tar": "6.1.9",
103
- "set-value": "^4.0.1",
104
- "glob-parent": "^5.1.2",
105
- "immer": "^9.0.6",
106
- "coa": "2.0.2",
107
- "node-fetch": "2.6.7",
108
- "simple-get": "^4.0.1"
96
+ "glob-parent": "~5.1.2",
97
+ "prismjs": "~1.27.0",
98
+ "trim": "~0.0.3"
109
99
  },
110
100
  "repository": {
111
101
  "type": "git",
@@ -14,7 +14,7 @@
14
14
 
15
15
  .finsemble-dropdown__btn:hover,
16
16
  .finsemble-dropdown__btn.active {
17
- background-color: var(--core-primary-2);
17
+ background-color: var(--core-primary-4);
18
18
  }
19
19
 
20
20
  .finsemble-dropdown__btn .finsemble-dropdown__btn-options {
@@ -13,13 +13,6 @@
13
13
  white-space: nowrap;
14
14
  }
15
15
 
16
- /*
17
- .favorite-maker {
18
- position: absolute;
19
- right: 0;
20
- }
21
- */
22
-
23
16
  .rearrange-region div {
24
17
  cursor: pointer;
25
18
  }
@@ -52,46 +45,6 @@
52
45
  filter: alpha(opacity=20);
53
46
  }
54
47
 
55
- .chevron-container {
56
- display: flex;
57
- align-items: center;
58
- }
59
-
60
- .scroll-button {
61
- color: var(--toolbar-scroll-button-color);
62
- margin: 8px 3px;
63
- padding: 5px;
64
- font-size: 10px;
65
- border: 1px solid transparent;
66
- border-radius: 50px;
67
- height: 10px;
68
- display: flex;
69
- align-items: center;
70
- justify-content: center;
71
- }
72
-
73
- .ff-chevron-left:before {
74
- padding-right: 2px;
75
- }
76
-
77
- .ff-chevron-right:before {
78
- padding-left: 2px;
79
- }
80
-
81
- .scroll-button:hover {
82
- background: var(--toolbar-button-hover-color);
83
- cursor: pointer;
84
- }
85
-
86
- .greyedOut {
87
- opacity: 0.3;
88
- }
89
-
90
- .greyedOut:hover {
91
- background: transparent;
92
- cursor: default;
93
- }
94
-
95
48
  #favoritesContainer {
96
49
  overflow: hidden;
97
50
  display: flex;
@@ -11,6 +11,9 @@
11
11
  @import url("./font-finance.css");
12
12
  @import url("./fonts/Open_Sans/OpenSans-Definition.css");
13
13
  @import url("./focus.css");
14
+
15
+ @import url("./shared/common.css");
16
+
14
17
  .hidden {
15
18
  display: none !important;
16
19
  }
@@ -95,6 +95,18 @@ body .linkerContainer {
95
95
  border: 1px solid #f29a01;
96
96
  }
97
97
 
98
+ .channel7 .linker-glyph,
99
+ .linker-group.channel7 {
100
+ background-color: #3c1d5f;
101
+ border: 1px solid #341853;
102
+ }
103
+
104
+ .channel8 .linker-glyph,
105
+ .linker-group.channel8 {
106
+ background-color: #690f2d;
107
+ border: 1px solid #5c0d27;
108
+ }
109
+
98
110
  /* To reduce the number of channels in the linker simply hide them with CSS!
99
111
  .channel6, .channel5 {
100
112
  display: none;
@@ -113,7 +125,7 @@ body .linkerContainer {
113
125
  display: block;
114
126
  visibility: visible;
115
127
  top: -10px;
116
- position: relative;
128
+ position: relative;
117
129
  }
118
130
  */
119
131
 
@@ -80,8 +80,8 @@ html.menu-portal body.menu-no-scroll {
80
80
  The "focused" attribute is set during keyboard navigation.
81
81
  */
82
82
 
83
- .menu-item[focused],
84
- .menu-item-icon[focused],
83
+ .menu-item:focus,
84
+ .menu-item-icon:focus,
85
85
  .menu-item:hover,
86
86
  .menu-item:focus,
87
87
  .finsemble-toolbar-button:hover {
@@ -6,7 +6,7 @@ body.notifications-center-body {
6
6
  background-color: transparent;
7
7
  bottom: 0;
8
8
  margin: 0;
9
- overflow: hidden;
9
+ overflow: hidden !important; /* necessary to hide default scrollbar, cause the parent html element is restyled at the `hackScrollbar()` function */
10
10
  }
11
11
 
12
12
  body.notifications-center-body.notifications-popped-in {
@@ -113,7 +113,11 @@ body.notifications-center-body.notifications-popped-in {
113
113
  display: flex;
114
114
  flex-direction: row;
115
115
  width: 100%;
116
- padding: 2px 0;
116
+ padding: 5px 0;
117
+ }
118
+
119
+ .notifications-center-controls__row.center {
120
+ justify-content: center;
117
121
  }
118
122
 
119
123
  .notifications-center-controls__filter-btn {
@@ -128,6 +132,7 @@ body.notifications-center-body.notifications-popped-in {
128
132
  padding: 0px 7px;
129
133
  margin: 0 3px;
130
134
  cursor: pointer;
135
+ white-space: nowrap;
131
136
  }
132
137
 
133
138
  .notifications-center-controls__filter-btn.active {
@@ -595,3 +600,29 @@ body.notifications-toasts-body {
595
600
  .notifications-toast-exit-active {
596
601
  animation: slide-out-right-opaque 0.5s cubic-bezier(0.55, 0.085, 0.68, 0.53) both;
597
602
  }
603
+
604
+ .notifications-center-controls__filter-btn i {
605
+ padding-right: 5px;
606
+ }
607
+
608
+ .notifications-center-controls__filter-btn i.icon_active {
609
+ color: var(--accent-positive);
610
+ }
611
+
612
+ .visible {
613
+ display: flex;
614
+ }
615
+
616
+ .invisible {
617
+ display: none;
618
+ }
619
+
620
+ .enabled {
621
+ cursor: pointer;
622
+ opacity: 1;
623
+ }
624
+
625
+ .disabled {
626
+ cursor: default;
627
+ opacity: 0.4;
628
+ }
@@ -0,0 +1,40 @@
1
+ /* chverons */
2
+ .chevron-container {
3
+ display: flex;
4
+ align-items: center;
5
+ }
6
+
7
+ .ff-chevron-left:before {
8
+ padding-right: 2px;
9
+ }
10
+
11
+ .ff-chevron-right:before {
12
+ padding-left: 2px;
13
+ }
14
+
15
+ .scroll-button {
16
+ color: var(--toolbar-scroll-button-color);
17
+ margin: 8px 3px;
18
+ padding: 5px;
19
+ font-size: 10px;
20
+ border: 1px solid transparent;
21
+ border-radius: 50px;
22
+ height: 10px;
23
+ display: flex;
24
+ align-items: center;
25
+ justify-content: center;
26
+ }
27
+
28
+ .scroll-button:hover {
29
+ background: var(--toolbar-button-hover-color);
30
+ cursor: pointer;
31
+ }
32
+
33
+ .greyedOut {
34
+ opacity: 0.3;
35
+ }
36
+
37
+ .greyedOut:hover {
38
+ background: transparent;
39
+ cursor: default;
40
+ }
@@ -44,11 +44,11 @@ img {
44
44
  flex-direction: column;
45
45
  justify-content: start;
46
46
  color: var(--content-font-color);
47
- background-color: var(--content-nav-background-color);
47
+ background-color: var(--core-primary-1);
48
48
  }
49
49
 
50
50
  .complex-menu-left-nav-header {
51
- background-color: var(--content-nav-header-background-color);
51
+ background-color: var(--core-primary-1);
52
52
  font-weight: var(--content-nav-header-font-weight);
53
53
  font-size: var(--content-nav-header-font-size);
54
54
  margin-bottom: 30px;
@@ -125,13 +125,14 @@ img {
125
125
  align-items: center;
126
126
  }
127
127
 
128
- .complex-menu-section-toggle:hover {
128
+ .complex-menu-section-toggle:hover,
129
+ .complex-menu-section-toggle:focus {
129
130
  cursor: pointer;
130
- background-color: var(--content-nav-highlighter-hover);
131
+ background-color: var(--accent-primary);
131
132
  }
132
133
 
133
134
  .active-section-toggle {
134
- background-color: var(--content-nav-highlighter);
135
+ background-color: var(--accent-primary-1);
135
136
  }
136
137
 
137
138
  .complex-menu-content-row {
@@ -139,7 +140,7 @@ img {
139
140
  padding: 0.75em;
140
141
  align-content: flex-start;
141
142
  user-select: none;
142
- background-color: var(--content-background-color);
143
+ background-color: var(--core-primary-2);
143
144
  overflow: auto;
144
145
  }
145
146
 
@@ -188,7 +189,7 @@ img {
188
189
  }
189
190
 
190
191
  .workspace-item:hover {
191
- background-color: var(--content-nav-highlighter-hover);
192
+ background-color: var(--core-primary-2);
192
193
  }
193
194
 
194
195
  .individual-workspace-actions {
@@ -272,8 +273,8 @@ img {
272
273
 
273
274
  .action-button:hover {
274
275
  cursor: pointer;
275
- border: solid 1px var(--content-button-neutral-hover-color);
276
- color: var(--content-button-neutral-hover-color);
276
+ border: solid 1px var(--font-color);
277
+ color: var(--font-color);
277
278
  }
278
279
 
279
280
  .disabled-button,
@@ -403,11 +404,11 @@ img {
403
404
  }
404
405
 
405
406
  .daily-select.disabled {
406
- color: var(--content-nav-highlighter);
407
+ color: var(--core-primary-5);
407
408
  }
408
409
 
409
410
  .disabled-restart {
410
- color: var(--content-nav-highlighter) !important;
411
+ color: var(--core-primary-5) !important;
411
412
  }
412
413
 
413
414
  select:focus,
@@ -480,7 +481,7 @@ option:focus {
480
481
  }
481
482
 
482
483
  .row-btn:hover {
483
- background: var(--menu-actions-hover-color);
484
+ background: var(--accent-primary);
484
485
  border-radius: 0px 20px 20px 0px;
485
486
  }
486
487
 
@@ -571,3 +572,7 @@ option:focus {
571
572
  margin-top: 8px;
572
573
  margin-left: 10px;
573
574
  }
575
+
576
+ .complex-menu-wrapper .workspace-list .individual-workspace-action:hover {
577
+ color: var(--font-color);
578
+ }
@@ -4,6 +4,13 @@
4
4
  * All rights reserved.
5
5
  */
6
6
  @import url("./linkerWindow.css");
7
+ @import url("./defaultTheme.css");
8
+ @import url("core/icons.css");
9
+ @import url("core/windowFrame.css");
10
+ @import url("core/formElements.css");
11
+ @import url("./font-finance.css");
12
+ @import url("./fonts/Open_Sans/OpenSans-Definition.css");
13
+ @import url("./focus.css");
7
14
 
8
15
  .fsbl-drag-handle {
9
16
  z-index: 2147483641;
@@ -635,7 +642,7 @@ html.desktop-active .fsbl-active-tab .fsbl-tab-title {
635
642
  background: transparent;
636
643
  }
637
644
 
638
- input:focus {
645
+ input.tab__input:focus {
639
646
  outline: none;
640
647
  animation: inputHighlighter 0.3s ease;
641
648
  }
@@ -0,0 +1,26 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!-- Generator: Adobe Illustrator 26.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3
+ <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
4
+ viewBox="0 0 7.7 9.2" style="enable-background:new 0 0 7.7 9.2;" xml:space="preserve">
5
+ <style type="text/css">
6
+ .st0{fill:#FFFFFF;}
7
+ </style>
8
+ <g>
9
+ <path class="st0" d="M1.2,6.5H2c0.2,0,0.3-0.1,0.3-0.3V5.4c0-0.1,0-0.1-0.1-0.2C2.2,5.2,2.1,5.2,2,5.2H1.2c-0.2,0-0.3,0.1-0.3,0.3
10
+ v0.8C0.9,6.4,1.1,6.5,1.2,6.5z M1.5,6V5.7h0.3V6H1.5z"/>
11
+ <path class="st0" d="M1.2,4.8H2c0.2,0,0.3-0.1,0.3-0.3V3.7c0-0.1,0-0.1-0.1-0.2C2.2,3.5,2.1,3.4,2,3.4H1.2c-0.2,0-0.3,0.1-0.3,0.3
12
+ v0.8C0.9,4.7,1.1,4.8,1.2,4.8z M1.5,4.2V4h0.3v0.3H1.5z"/>
13
+ <path class="st0" d="M1.2,8.3H2c0.2,0,0.3-0.1,0.3-0.3V7.2C2.3,7,2.2,6.9,2,6.9H1.2C1.1,6.9,0.9,7,0.9,7.2V8
14
+ C0.9,8.1,1.1,8.3,1.2,8.3z M1.8,7.4v0.3H1.5V7.4H1.8z"/>
15
+ <path class="st0" d="M5.7,6.5h0.8c0.2,0,0.3-0.1,0.3-0.3V5.4c0-0.1,0-0.1-0.1-0.2C6.6,5.2,6.6,5.2,6.5,5.2H5.7
16
+ c-0.2,0-0.3,0.1-0.3,0.3v0.8C5.4,6.4,5.5,6.5,5.7,6.5z M6,6V5.7h0.3V6H6z"/>
17
+ <path class="st0" d="M5.7,4.8h0.8c0.2,0,0.3-0.1,0.3-0.3V3.7c0-0.1,0-0.1-0.1-0.2C6.6,3.5,6.6,3.4,6.5,3.4H5.7
18
+ c-0.2,0-0.3,0.1-0.3,0.3v0.8C5.4,4.7,5.5,4.8,5.7,4.8z M6,4.2V4h0.3v0.3H6z"/>
19
+ <path class="st0" d="M5.7,8.3h0.8c0.2,0,0.3-0.1,0.3-0.3V7.2c0-0.2-0.1-0.3-0.3-0.3H5.7C5.5,6.9,5.4,7,5.4,7.2V8
20
+ C5.4,8.1,5.5,8.3,5.7,8.3z M6.2,7.4v0.3H6V7.4H6.2z"/>
21
+ <path class="st0" d="M7.3,0H4.9C4.7,0,4.5,0.2,4.5,0.5v8.3c0,0.2,0.2,0.5,0.5,0.5h2.3c0.2,0,0.5-0.2,0.5-0.5V0.5
22
+ C7.7,0.2,7.5,0,7.3,0z M7.1,0.6v8.1H5V0.6H7.1z"/>
23
+ <path class="st0" d="M2.8,0H0.5C0.2,0,0,0.2,0,0.5v8.3C0,9,0.2,9.2,0.5,9.2h2.3C3,9.2,3.3,9,3.3,8.8V0.5C3.3,0.2,3,0,2.8,0z
24
+ M2.7,0.6v8.1H0.6V0.6H2.7z"/>
25
+ </g>
26
+ </svg>
@@ -5,7 +5,7 @@ import { FinsembleIcon } from "./FinsembleIcon";
5
5
  export const ButtonIcon = ({ icon, text = "", disabled = false, tabIndex = 0, onClick = () => { }, className = "", buttonAttributes = {}, }) => {
6
6
  const containerClassName = fashion_class_lookup.icon;
7
7
  return (React.createElement("div", { className: `${containerClassName} ${className}` },
8
- React.createElement("button", Object.assign({}, buttonAttributes, { onClick: onClick, disabled: disabled, title: text, tabIndex: tabIndex }),
8
+ React.createElement("button", Object.assign({}, buttonAttributes, { onClick: onClick, disabled: disabled, title: text, "aria-label": text, tabIndex: tabIndex }),
9
9
  React.createElement(FinsembleIcon, { icon: icon }))));
10
10
  };
11
11
  //# sourceMappingURL=ButtonIcon.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ButtonIcon.js","sourceRoot":"","sources":["../../../src/components/common/ButtonIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAuB,oBAAoB,EAAE,MAAM,UAAU,CAAC;AACrE,OAAO,kBAAkB,CAAC;AAC1B,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,MAAM,CAAC,MAAM,UAAU,GAAkC,CAAC,EACzD,IAAI,EACJ,IAAI,GAAG,EAAE,EACT,QAAQ,GAAG,KAAK,EAChB,QAAQ,GAAG,CAAC,EACZ,OAAO,GAAG,GAAG,EAAE,GAAE,CAAC,EAClB,SAAS,GAAG,EAAE,EACd,gBAAgB,GAAG,EAAE,GACrB,EAAE,EAAE;IACJ,MAAM,kBAAkB,GAAG,oBAAoB,CAAC,IAAI,CAAC;IAErD,OAAO,CACN,6BAAK,SAAS,EAAE,GAAG,kBAAkB,IAAI,SAAS,EAAE;QACnD,gDAAY,gBAAgB,IAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ;YAClG,oBAAC,aAAa,IAAC,IAAI,EAAE,IAAI,GAAkB,CACnC,CACJ,CACN,CAAC;AACH,CAAC,CAAC","sourcesContent":["import React from \"react\";\nimport { AdvancedButtonProps, fashion_class_lookup } from \"./Button\";\nimport \"./css/button.css\";\nimport { FinsembleIcon } from \"./FinsembleIcon\";\n\nexport const ButtonIcon: React.FC<AdvancedButtonProps> = ({\n\ticon,\n\ttext = \"\",\n\tdisabled = false,\n\ttabIndex = 0,\n\tonClick = () => {},\n\tclassName = \"\",\n\tbuttonAttributes = {},\n}) => {\n\tconst containerClassName = fashion_class_lookup.icon;\n\n\treturn (\n\t\t<div className={`${containerClassName} ${className}`}>\n\t\t\t<button {...buttonAttributes} onClick={onClick} disabled={disabled} title={text} tabIndex={tabIndex}>\n\t\t\t\t<FinsembleIcon icon={icon}></FinsembleIcon>\n\t\t\t</button>\n\t\t</div>\n\t);\n};\n"]}
1
+ {"version":3,"file":"ButtonIcon.js","sourceRoot":"","sources":["../../../src/components/common/ButtonIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAuB,oBAAoB,EAAE,MAAM,UAAU,CAAC;AACrE,OAAO,kBAAkB,CAAC;AAC1B,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,MAAM,CAAC,MAAM,UAAU,GAAkC,CAAC,EACzD,IAAI,EACJ,IAAI,GAAG,EAAE,EACT,QAAQ,GAAG,KAAK,EAChB,QAAQ,GAAG,CAAC,EACZ,OAAO,GAAG,GAAG,EAAE,GAAE,CAAC,EAClB,SAAS,GAAG,EAAE,EACd,gBAAgB,GAAG,EAAE,GACrB,EAAE,EAAE;IACJ,MAAM,kBAAkB,GAAG,oBAAoB,CAAC,IAAI,CAAC;IAErD,OAAO,CACN,6BAAK,SAAS,EAAE,GAAG,kBAAkB,IAAI,SAAS,EAAE;QACnD,gDACK,gBAAgB,IACpB,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAE,IAAI,gBACC,IAAI,EAChB,QAAQ,EAAE,QAAQ;YAElB,oBAAC,aAAa,IAAC,IAAI,EAAE,IAAI,GAAkB,CACnC,CACJ,CACN,CAAC;AACH,CAAC,CAAC","sourcesContent":["import React from \"react\";\nimport { AdvancedButtonProps, fashion_class_lookup } from \"./Button\";\nimport \"./css/button.css\";\nimport { FinsembleIcon } from \"./FinsembleIcon\";\n\nexport const ButtonIcon: React.FC<AdvancedButtonProps> = ({\n\ticon,\n\ttext = \"\",\n\tdisabled = false,\n\ttabIndex = 0,\n\tonClick = () => {},\n\tclassName = \"\",\n\tbuttonAttributes = {},\n}) => {\n\tconst containerClassName = fashion_class_lookup.icon;\n\n\treturn (\n\t\t<div className={`${containerClassName} ${className}`}>\n\t\t\t<button\n\t\t\t\t{...buttonAttributes}\n\t\t\t\tonClick={onClick}\n\t\t\t\tdisabled={disabled}\n\t\t\t\ttitle={text}\n\t\t\t\taria-label={text}\n\t\t\t\ttabIndex={tabIndex}\n\t\t\t>\n\t\t\t\t<FinsembleIcon icon={icon}></FinsembleIcon>\n\t\t\t</button>\n\t\t</div>\n\t);\n};\n"]}
@@ -20,12 +20,12 @@ const ButtonRow = ({ label, onClick, iconClass, disabled, img, showDefaultIcon,
20
20
  func();
21
21
  }
22
22
  } },
23
- img && (React.createElement("img", { src: img, style: showDefaultIcon || imgError ? { display: "none" } : { width: "auto", height: "20px" }, onError: () => {
23
+ img && (React.createElement("img", { src: img, alt: "", style: showDefaultIcon || imgError ? { display: "none" } : { width: "auto", height: "20px" }, onError: () => {
24
24
  setImgError(true);
25
25
  } })),
26
26
  (showDefaultIcon || imgError) && React.createElement("i", { className: "ff-finsemble default-img" }),
27
27
  React.createElement("span", { className: "row__lbl" }, label),
28
- React.createElement("i", { className: iconClass })));
28
+ React.createElement("i", { className: iconClass, "aria-hidden": true })));
29
29
  };
30
30
  ButtonRow.defaultProps = defaultProps;
31
31
  export default ButtonRow;
@@ -1 +1 @@
1
- {"version":3,"file":"ButtonRow.js","sourceRoot":"","sources":["../../../src/components/common/ButtonRow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAexC,MAAM,YAAY,GAAmB;IACpC,KAAK,EAAE,EAAE;IACT,OAAO,EAAE,GAAG,EAAE,GAAE,CAAC;IACjB,SAAS,EAAE,EAAE;IACb,QAAQ,EAAE,KAAK;IACf,eAAe,EAAE,KAAK;IACtB,SAAS,EAAE,SAAS;CACpB,CAAC;AAEF,MAAM,SAAS,GAA6B,CAAC,EAC5C,KAAK,EACL,OAAO,EACP,SAAS,EACT,QAAQ,EACR,GAAG,EACH,eAAe,EACf,SAAS,GACT,EAAE,EAAE;IACJ,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAChD,OAAO,CACN,6BACC,SAAS,EAAE,QAAQ,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,SAAS,EACpD,IAAI,EAAC,QAAQ,EACb,QAAQ,EAAE,CAAC,EACX,OAAO,EAAE,GAAG,EAAE;YACb,IAAI,CAAC,QAAQ,EAAE;gBACd,MAAM,IAAI,GAAG,OAAO,CAAC;gBACrB,IAAI,EAAE,CAAC;aACP;QACF,CAAC,EACD,SAAS,EAAE,CAAC,CAAC,EAAE,EAAE;YAChB,IAAI,CAAC,CAAC,CAAC,GAAG,KAAK,OAAO,IAAI,CAAC,CAAC,GAAG,KAAK,GAAG,CAAC,IAAI,CAAC,QAAQ,EAAE;gBACtD,MAAM,IAAI,GAAG,OAAO,CAAC;gBACrB,IAAI,EAAE,CAAC;aACP;QACF,CAAC;QAEA,GAAG,IAAI,CACP,6BACC,GAAG,EAAE,GAAG,EACR,KAAK,EAAE,eAAe,IAAI,QAAQ,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,EAC5F,OAAO,EAAE,GAAG,EAAE;gBACb,WAAW,CAAC,IAAI,CAAC,CAAC;YACnB,CAAC,GACA,CACF;QACA,CAAC,eAAe,IAAI,QAAQ,CAAC,IAAI,2BAAG,SAAS,EAAC,0BAA0B,GAAG;QAC5E,8BAAM,SAAS,EAAC,UAAU,IAAE,KAAK,CAAQ;QACzC,2BAAG,SAAS,EAAE,SAAS,GAAI,CACtB,CACN,CAAC;AACH,CAAC,CAAC;AAEF,SAAS,CAAC,YAAY,GAAG,YAAY,CAAC;AACtC,eAAe,SAAS,CAAC","sourcesContent":["import React, { useState } from \"react\";\n\nexport interface ButtonRowProps {\n\tlabel?: string;\n\tonClick: Function;\n\ticonClass?: string;\n\tdisabled?: boolean;\n\timg?: string;\n\tshowDefaultIcon?: boolean;\n\tclassName?: string;\n\trole?: string;\n\ttabIndex?: number;\n\tonKeyDown?: Function;\n}\n\nconst defaultProps: ButtonRowProps = {\n\tlabel: \"\",\n\tonClick: () => {},\n\ticonClass: \"\",\n\tdisabled: false,\n\tshowDefaultIcon: false,\n\tclassName: \"row-btn\",\n};\n\nconst ButtonRow: React.FC<ButtonRowProps> = ({\n\tlabel,\n\tonClick,\n\ticonClass,\n\tdisabled,\n\timg,\n\tshowDefaultIcon,\n\tclassName,\n}) => {\n\tconst [imgError, setImgError] = useState(false);\n\treturn (\n\t\t<div\n\t\t\tclassName={disabled ? \"row-btn-disabled\" : className}\n\t\t\trole=\"button\"\n\t\t\ttabIndex={0}\n\t\t\tonClick={() => {\n\t\t\t\tif (!disabled) {\n\t\t\t\t\tconst func = onClick;\n\t\t\t\t\tfunc();\n\t\t\t\t}\n\t\t\t}}\n\t\t\tonKeyDown={(e) => {\n\t\t\t\tif ((e.key === \"Enter\" || e.key === \" \") && !disabled) {\n\t\t\t\t\tconst func = onClick;\n\t\t\t\t\tfunc();\n\t\t\t\t}\n\t\t\t}}\n\t\t>\n\t\t\t{img && (\n\t\t\t\t<img\n\t\t\t\t\tsrc={img}\n\t\t\t\t\tstyle={showDefaultIcon || imgError ? { display: \"none\" } : { width: \"auto\", height: \"20px\" }}\n\t\t\t\t\tonError={() => {\n\t\t\t\t\t\tsetImgError(true);\n\t\t\t\t\t}}\n\t\t\t\t/>\n\t\t\t)}\n\t\t\t{(showDefaultIcon || imgError) && <i className=\"ff-finsemble default-img\" />}\n\t\t\t<span className=\"row__lbl\">{label}</span>\n\t\t\t<i className={iconClass} />\n\t\t</div>\n\t);\n};\n\nButtonRow.defaultProps = defaultProps;\nexport default ButtonRow;\n"]}
1
+ {"version":3,"file":"ButtonRow.js","sourceRoot":"","sources":["../../../src/components/common/ButtonRow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAexC,MAAM,YAAY,GAAmB;IACpC,KAAK,EAAE,EAAE;IACT,OAAO,EAAE,GAAG,EAAE,GAAE,CAAC;IACjB,SAAS,EAAE,EAAE;IACb,QAAQ,EAAE,KAAK;IACf,eAAe,EAAE,KAAK;IACtB,SAAS,EAAE,SAAS;CACpB,CAAC;AAEF,MAAM,SAAS,GAA6B,CAAC,EAC5C,KAAK,EACL,OAAO,EACP,SAAS,EACT,QAAQ,EACR,GAAG,EACH,eAAe,EACf,SAAS,GACT,EAAE,EAAE;IACJ,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAChD,OAAO,CACN,6BACC,SAAS,EAAE,QAAQ,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,SAAS,EACpD,IAAI,EAAC,QAAQ,EACb,QAAQ,EAAE,CAAC,EACX,OAAO,EAAE,GAAG,EAAE;YACb,IAAI,CAAC,QAAQ,EAAE;gBACd,MAAM,IAAI,GAAG,OAAO,CAAC;gBACrB,IAAI,EAAE,CAAC;aACP;QACF,CAAC,EACD,SAAS,EAAE,CAAC,CAAC,EAAE,EAAE;YAChB,IAAI,CAAC,CAAC,CAAC,GAAG,KAAK,OAAO,IAAI,CAAC,CAAC,GAAG,KAAK,GAAG,CAAC,IAAI,CAAC,QAAQ,EAAE;gBACtD,MAAM,IAAI,GAAG,OAAO,CAAC;gBACrB,IAAI,EAAE,CAAC;aACP;QACF,CAAC;QAEA,GAAG,IAAI,CACP,6BACC,GAAG,EAAE,GAAG,EACR,GAAG,EAAC,EAAE,EACN,KAAK,EAAE,eAAe,IAAI,QAAQ,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,EAC5F,OAAO,EAAE,GAAG,EAAE;gBACb,WAAW,CAAC,IAAI,CAAC,CAAC;YACnB,CAAC,GACA,CACF;QACA,CAAC,eAAe,IAAI,QAAQ,CAAC,IAAI,2BAAG,SAAS,EAAC,0BAA0B,GAAG;QAC5E,8BAAM,SAAS,EAAC,UAAU,IAAE,KAAK,CAAQ;QACzC,2BAAG,SAAS,EAAE,SAAS,iBAAe,IAAI,GAAI,CACzC,CACN,CAAC;AACH,CAAC,CAAC;AAEF,SAAS,CAAC,YAAY,GAAG,YAAY,CAAC;AACtC,eAAe,SAAS,CAAC","sourcesContent":["import React, { useState } from \"react\";\n\nexport interface ButtonRowProps {\n\tlabel?: string;\n\tonClick: Function;\n\ticonClass?: string;\n\tdisabled?: boolean;\n\timg?: string;\n\tshowDefaultIcon?: boolean;\n\tclassName?: string;\n\trole?: string;\n\ttabIndex?: number;\n\tonKeyDown?: Function;\n}\n\nconst defaultProps: ButtonRowProps = {\n\tlabel: \"\",\n\tonClick: () => {},\n\ticonClass: \"\",\n\tdisabled: false,\n\tshowDefaultIcon: false,\n\tclassName: \"row-btn\",\n};\n\nconst ButtonRow: React.FC<ButtonRowProps> = ({\n\tlabel,\n\tonClick,\n\ticonClass,\n\tdisabled,\n\timg,\n\tshowDefaultIcon,\n\tclassName,\n}) => {\n\tconst [imgError, setImgError] = useState(false);\n\treturn (\n\t\t<div\n\t\t\tclassName={disabled ? \"row-btn-disabled\" : className}\n\t\t\trole=\"button\"\n\t\t\ttabIndex={0}\n\t\t\tonClick={() => {\n\t\t\t\tif (!disabled) {\n\t\t\t\t\tconst func = onClick;\n\t\t\t\t\tfunc();\n\t\t\t\t}\n\t\t\t}}\n\t\t\tonKeyDown={(e) => {\n\t\t\t\tif ((e.key === \"Enter\" || e.key === \" \") && !disabled) {\n\t\t\t\t\tconst func = onClick;\n\t\t\t\t\tfunc();\n\t\t\t\t}\n\t\t\t}}\n\t\t>\n\t\t\t{img && (\n\t\t\t\t<img\n\t\t\t\t\tsrc={img}\n\t\t\t\t\talt=\"\"\n\t\t\t\t\tstyle={showDefaultIcon || imgError ? { display: \"none\" } : { width: \"auto\", height: \"20px\" }}\n\t\t\t\t\tonError={() => {\n\t\t\t\t\t\tsetImgError(true);\n\t\t\t\t\t}}\n\t\t\t\t/>\n\t\t\t)}\n\t\t\t{(showDefaultIcon || imgError) && <i className=\"ff-finsemble default-img\" />}\n\t\t\t<span className=\"row__lbl\">{label}</span>\n\t\t\t<i className={iconClass} aria-hidden={true} />\n\t\t</div>\n\t);\n};\n\nButtonRow.defaultProps = defaultProps;\nexport default ButtonRow;\n"]}
@@ -10,7 +10,7 @@ export const Checkbox = ({ checked = false, disabled = false, label = "", onClic
10
10
  if (disabled) {
11
11
  style = {
12
12
  cursor: "default",
13
- opacity: ".55",
13
+ opacity: ".3",
14
14
  };
15
15
  }
16
16
  return (React.createElement("div", { style: style, className: "complex-menu-checkbox-wrapper", role: "checkbox", "aria-checked": checked, "aria-label": label, tabIndex: 0, onClick: disabled ? () => { } : onClick, onKeyDown: (e) => {
@@ -1 +1 @@
1
- {"version":3,"file":"Checkbox.js","sourceRoot":"","sources":["../../../src/components/common/Checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,oBAAoB,CAAC;AAS5B,MAAM,CAAC,MAAM,QAAQ,GAA4B,CAAC,EACjD,OAAO,GAAG,KAAK,EACf,QAAQ,GAAG,KAAK,EAChB,KAAK,GAAG,EAAE,EACV,OAAO,GAAG,GAAG,EAAE,GAAE,CAAC,GAClB,EAAE,EAAE;IACJ,IAAI,eAAe,GAAG,uBAAuB,CAAC;IAC9C,IAAI,OAAO,EAAE;QACZ,eAAe,GAAG,GAAG,eAAe,UAAU,CAAC;KAC/C;IACD,IAAI,KAAK,GAAG,EAAE,CAAC;IACf,IAAI,QAAQ,EAAE;QACb,KAAK,GAAG;YACP,MAAM,EAAE,SAAS;YACjB,OAAO,EAAE,KAAK;SACd,CAAC;KACF;IACD,OAAO,CACN,6BACC,KAAK,EAAE,KAAK,EACZ,SAAS,EAAC,+BAA+B,EACzC,IAAI,EAAC,UAAU,kBACD,OAAO,gBACT,KAAK,EACjB,QAAQ,EAAE,CAAC,EACX,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC,GAAG,EAAE,GAAE,CAAC,CAAC,CAAC,CAAC,OAAO,EACtC,SAAS,EAAE,CAAC,CAAC,EAAE,EAAE;YAChB,IAAI,CAAC,CAAC,GAAG,KAAK,OAAO,IAAI,CAAC,CAAC,GAAG,KAAK,GAAG,EAAE;gBACvC,CAAC,QAAQ,IAAI,OAAO,CAAC,CAAC,CAAC,CAAC;aACxB;QACF,CAAC;QAED,6BAAK,SAAS,EAAE,eAAe,IAAG,OAAO,IAAI,oBAAC,aAAa,IAAC,IAAI,EAAC,OAAO,GAAG,CAAO;QAClF,6BAAK,SAAS,EAAC,6BAA6B,IAAE,KAAK,CAAO,CACrD,CACN,CAAC;AACH,CAAC,CAAC","sourcesContent":["import React from \"react\";\nimport { FinsembleIcon } from \"./FinsembleIcon\";\nimport \"./css/checkbox.css\";\n\nexport interface CheckboxProps {\n\tchecked?: boolean;\n\tdisabled?: boolean;\n\tlabel?: string;\n\tonClick?: (e: React.MouseEvent<HTMLDivElement> | React.KeyboardEvent<HTMLDivElement>) => void;\n}\n\nexport const Checkbox: React.FC<CheckboxProps> = ({\n\tchecked = false,\n\tdisabled = false,\n\tlabel = \"\",\n\tonClick = () => {},\n}) => {\n\tlet checkboxClasses = \"complex-menu-checkbox\";\n\tif (checked) {\n\t\tcheckboxClasses = `${checkboxClasses} checked`;\n\t}\n\tlet style = {};\n\tif (disabled) {\n\t\tstyle = {\n\t\t\tcursor: \"default\",\n\t\t\topacity: \".55\",\n\t\t};\n\t}\n\treturn (\n\t\t<div\n\t\t\tstyle={style}\n\t\t\tclassName=\"complex-menu-checkbox-wrapper\"\n\t\t\trole=\"checkbox\"\n\t\t\taria-checked={checked}\n\t\t\taria-label={label}\n\t\t\ttabIndex={0}\n\t\t\tonClick={disabled ? () => {} : onClick}\n\t\t\tonKeyDown={(e) => {\n\t\t\t\tif (e.key === \"Enter\" || e.key === \" \") {\n\t\t\t\t\t!disabled && onClick(e);\n\t\t\t\t}\n\t\t\t}}\n\t\t>\n\t\t\t<div className={checkboxClasses}>{checked && <FinsembleIcon icon=\"check\" />}</div>\n\t\t\t<div className=\"complex-menu-checkbox-label\">{label}</div>\n\t\t</div>\n\t);\n};\n"]}
1
+ {"version":3,"file":"Checkbox.js","sourceRoot":"","sources":["../../../src/components/common/Checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,oBAAoB,CAAC;AAS5B,MAAM,CAAC,MAAM,QAAQ,GAA4B,CAAC,EACjD,OAAO,GAAG,KAAK,EACf,QAAQ,GAAG,KAAK,EAChB,KAAK,GAAG,EAAE,EACV,OAAO,GAAG,GAAG,EAAE,GAAE,CAAC,GAClB,EAAE,EAAE;IACJ,IAAI,eAAe,GAAG,uBAAuB,CAAC;IAC9C,IAAI,OAAO,EAAE;QACZ,eAAe,GAAG,GAAG,eAAe,UAAU,CAAC;KAC/C;IACD,IAAI,KAAK,GAAG,EAAE,CAAC;IACf,IAAI,QAAQ,EAAE;QACb,KAAK,GAAG;YACP,MAAM,EAAE,SAAS;YACjB,OAAO,EAAE,IAAI;SACb,CAAC;KACF;IACD,OAAO,CACN,6BACC,KAAK,EAAE,KAAK,EACZ,SAAS,EAAC,+BAA+B,EACzC,IAAI,EAAC,UAAU,kBACD,OAAO,gBACT,KAAK,EACjB,QAAQ,EAAE,CAAC,EACX,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC,GAAG,EAAE,GAAE,CAAC,CAAC,CAAC,CAAC,OAAO,EACtC,SAAS,EAAE,CAAC,CAAC,EAAE,EAAE;YAChB,IAAI,CAAC,CAAC,GAAG,KAAK,OAAO,IAAI,CAAC,CAAC,GAAG,KAAK,GAAG,EAAE;gBACvC,CAAC,QAAQ,IAAI,OAAO,CAAC,CAAC,CAAC,CAAC;aACxB;QACF,CAAC;QAED,6BAAK,SAAS,EAAE,eAAe,IAAG,OAAO,IAAI,oBAAC,aAAa,IAAC,IAAI,EAAC,OAAO,GAAG,CAAO;QAClF,6BAAK,SAAS,EAAC,6BAA6B,IAAE,KAAK,CAAO,CACrD,CACN,CAAC;AACH,CAAC,CAAC","sourcesContent":["import React from \"react\";\nimport { FinsembleIcon } from \"./FinsembleIcon\";\nimport \"./css/checkbox.css\";\n\nexport interface CheckboxProps {\n\tchecked?: boolean;\n\tdisabled?: boolean;\n\tlabel?: string;\n\tonClick?: (e: React.MouseEvent<HTMLDivElement> | React.KeyboardEvent<HTMLDivElement>) => void;\n}\n\nexport const Checkbox: React.FC<CheckboxProps> = ({\n\tchecked = false,\n\tdisabled = false,\n\tlabel = \"\",\n\tonClick = () => {},\n}) => {\n\tlet checkboxClasses = \"complex-menu-checkbox\";\n\tif (checked) {\n\t\tcheckboxClasses = `${checkboxClasses} checked`;\n\t}\n\tlet style = {};\n\tif (disabled) {\n\t\tstyle = {\n\t\t\tcursor: \"default\",\n\t\t\topacity: \".3\",\n\t\t};\n\t}\n\treturn (\n\t\t<div\n\t\t\tstyle={style}\n\t\t\tclassName=\"complex-menu-checkbox-wrapper\"\n\t\t\trole=\"checkbox\"\n\t\t\taria-checked={checked}\n\t\t\taria-label={label}\n\t\t\ttabIndex={0}\n\t\t\tonClick={disabled ? () => {} : onClick}\n\t\t\tonKeyDown={(e) => {\n\t\t\t\tif (e.key === \"Enter\" || e.key === \" \") {\n\t\t\t\t\t!disabled && onClick(e);\n\t\t\t\t}\n\t\t\t}}\n\t\t>\n\t\t\t<div className={checkboxClasses}>{checked && <FinsembleIcon icon=\"check\" />}</div>\n\t\t\t<div className=\"complex-menu-checkbox-label\">{label}</div>\n\t\t</div>\n\t);\n};\n"]}
@@ -0,0 +1,16 @@
1
+ import React, { ErrorInfo, ReactNode } from "react";
2
+ declare type ErrorBoundaryProps = {
3
+ fallBackUI?: ReactNode;
4
+ };
5
+ declare type ErrorBoundaryState = {
6
+ hasError: boolean;
7
+ };
8
+ export declare class ErrorBoundary extends React.Component<ErrorBoundaryProps, ErrorBoundaryState> {
9
+ constructor(props: ErrorBoundaryProps);
10
+ static getDerivedStateFromError(error: Error): {
11
+ hasError: boolean;
12
+ };
13
+ componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
14
+ render(): React.ReactNode;
15
+ }
16
+ export {};
@@ -0,0 +1,22 @@
1
+ import React from "react";
2
+ export class ErrorBoundary extends React.Component {
3
+ constructor(props) {
4
+ super(props);
5
+ this.state = { hasError: false };
6
+ }
7
+ static getDerivedStateFromError(error) {
8
+ return { hasError: true };
9
+ }
10
+ componentDidCatch(error, errorInfo) {
11
+ console.error(error, errorInfo);
12
+ FSBL.Clients.Logger.system.error(error, errorInfo);
13
+ }
14
+ render() {
15
+ var _a;
16
+ if (this.state.hasError) {
17
+ return (_a = this.props.fallBackUI) !== null && _a !== void 0 ? _a : React.createElement(React.Fragment, null);
18
+ }
19
+ return this.props.children;
20
+ }
21
+ }
22
+ //# sourceMappingURL=ErrorBoundary.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ErrorBoundary.js","sourceRoot":"","sources":["../../../src/components/common/ErrorBoundary.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;AA2BpD,MAAM,OAAO,aAAc,SAAQ,KAAK,CAAC,SAAiD;IACzF,YAAY,KAAyB;QACpC,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,IAAI,CAAC,KAAK,GAAG,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAClC,CAAC;IAED,MAAM,CAAC,wBAAwB,CAAC,KAAY;QAE3C,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC3B,CAAC;IAED,iBAAiB,CAAC,KAAY,EAAE,SAAoB;QAEnD,OAAO,CAAC,KAAK,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC;QAChC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC;IACpD,CAAC;IAED,MAAM;;QACL,IAAI,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE;YAExB,OAAO,MAAA,IAAI,CAAC,KAAK,CAAC,UAAU,mCAAI,yCAAK,CAAC;SACtC;QAED,OAAO,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC;IAC5B,CAAC;CACD","sourcesContent":["import React, { ErrorInfo, ReactNode } from \"react\";\n\ntype ErrorBoundaryProps = {\n\tfallBackUI?: ReactNode;\n};\ntype ErrorBoundaryState = {\n\thasError: boolean;\n};\n\n/**\n * Something like a try catch in React component form with some exceptions. Catches Errors and logs them to the central\n * logger. Prevents uncaught exceptions on the render of child components from unintentionally breaking the entire UI.\n * Has the added benefit of sending the errors to the Central Logger\n *\n * Note: The exceptions are that it not catch errors in Event handlers and Asynchronous code.\n * Note: This does not catch errors in the current component directly, only child components. See below for example\n *\n * Eg: WON'T WORK\n *\n * const ContainerComponent = ({test}:any) => <ErrorBoundary><div>{test.undefined.length}</div></ErrorBoundary>\n *\n * WILL WORK:\n * const BrokenComponent = ({test}:any) => <div>{test.undefined.length}</div>\n * const ContainerComponent = ({test}:any) => <ErrorBoundary><BrokenComponent test={test}/></ErrorBoundary>\n *\n * @see https://reactjs.org/docs/error-boundaries.html for more information on Error Boundaries\n */\nexport class ErrorBoundary extends React.Component<ErrorBoundaryProps, ErrorBoundaryState> {\n\tconstructor(props: ErrorBoundaryProps) {\n\t\tsuper(props);\n\t\tthis.state = { hasError: false };\n\t}\n\n\tstatic getDerivedStateFromError(error: Error) {\n\t\t// Update state so the next render will show the fallback UI.\n\t\treturn { hasError: true };\n\t}\n\n\tcomponentDidCatch(error: Error, errorInfo: ErrorInfo) {\n\t\t// Log the error to the dev tools where developers will expect it but also send it to the central logger\n\t\tconsole.error(error, errorInfo);\n\t\tFSBL.Clients.Logger.system.error(error, errorInfo);\n\t}\n\n\trender() {\n\t\tif (this.state.hasError) {\n\t\t\t// Render custom fallback UI or default to nothing\n\t\t\treturn this.props.fallBackUI ?? <></>;\n\t\t}\n\n\t\treturn this.props.children;\n\t}\n}\n"]}
@@ -1,10 +1,10 @@
1
1
  import React from "react";
2
2
  import "./css/icon.css";
3
- export declare type FinsembleIconType = "alwaysOnTop" | "caret" | "check-square" | "check" | "chevron-left" | "chevron-right" | "close" | "code-block" | "copy" | "documentation" | "exclamation-circle" | "external-link" | "flag" | "folder" | "font" | "globe" | "hdd" | "key" | "life-ring" | "linker" | "lock" | "magic" | "maximize" | "minimize" | "moon" | "paint-roller" | "pencil" | "plus" | "question-circle" | "search" | "sun" | "times" | "toggle-off" | "toggle-on" | "toolbar" | "tools" | "trash" | "upload" | "window";
3
+ export declare type FinsembleIconType = "alwaysOnTop" | "caret" | "check-square" | "check" | "chevron-left" | "chevron-right" | "close" | "code-block" | "copy" | "documentation" | "exclamation-circle" | "external-link" | "flag" | "folder" | "font" | "globe" | "hdd" | "key" | "life-ring" | "linker" | "lock" | "magic" | "maximize" | "minimize" | "moon" | "paint-roller" | "pencil" | "plus" | "question-circle" | "search" | "server" | "sun" | "times" | "toggle-off" | "toggle-on" | "toolbar" | "tools" | "trash" | "upload" | "window";
4
4
  export declare type FinsembleIconProps = {
5
5
  icon: FinsembleIconType;
6
6
  className?: string;
7
7
  onClick?: (e: React.MouseEvent) => void;
8
8
  label?: string;
9
9
  };
10
- export declare const FinsembleIcon: (props: FinsembleIconProps) => JSX.Element;
10
+ export declare const FinsembleIcon: ({ icon, onClick, className, label }: FinsembleIconProps) => JSX.Element;
@@ -30,6 +30,7 @@ import { ReactComponent as PencilIcon } from "../../assets/icons/pencil.svg";
30
30
  import { ReactComponent as PlusIcon } from "../../assets/icons/plus.svg";
31
31
  import { ReactComponent as QuestionCircleIcon } from "../../assets/icons/question-circle.svg";
32
32
  import { ReactComponent as SearchIcon } from "../../assets/icons/search.svg";
33
+ import { ReactComponent as ServerIcon } from "../../assets/icons/server.svg";
33
34
  import { ReactComponent as SunIcon } from "../../assets/icons/sun.svg";
34
35
  import { ReactComponent as TimesIcon } from "../../assets/icons/times.svg";
35
36
  import { ReactComponent as ToggleOffIcon } from "../../assets/icons/toggle-off.svg";
@@ -70,6 +71,7 @@ const icons = {
70
71
  plus: PlusIcon,
71
72
  "question-circle": QuestionCircleIcon,
72
73
  search: SearchIcon,
74
+ server: ServerIcon,
73
75
  sun: SunIcon,
74
76
  times: TimesIcon,
75
77
  "toggle-off": ToggleOffIcon,
@@ -80,9 +82,13 @@ const icons = {
80
82
  upload: UploadIcon,
81
83
  window: WindowIcon,
82
84
  };
83
- export const FinsembleIcon = (props) => {
84
- var _a;
85
- const Icon = icons[props.icon];
86
- return (React.createElement("span", { className: ["finsemble-icon", `finsemble-icon-${props.icon}`, props.className || ""].join(" "), role: "img", "aria-label": (_a = props.label) !== null && _a !== void 0 ? _a : `${props.icon} icon`, onClick: (e) => props.onClick && props.onClick(e) }, Icon && React.createElement(Icon, null)));
85
+ export const FinsembleIcon = ({ icon, onClick = () => { }, className = "", label = "" }) => {
86
+ const Icon = icons[icon];
87
+ return (React.createElement("span", Object.assign({ className: ["finsemble-icon", `finsemble-icon-${icon}`, className].join(" ") }, (label
88
+ ? {
89
+ role: "img",
90
+ "aria-label": label,
91
+ }
92
+ : {}), { onClick: onClick }), Icon && React.createElement(Icon, null)));
87
93
  };
88
94
  //# sourceMappingURL=FinsembleIcon.js.map