@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.
- package/package.json +21 -31
- package/react/assets/css/button.css +1 -1
- package/react/assets/css/favorites.css +0 -47
- package/react/assets/css/finsemble.css +3 -0
- package/react/assets/css/linkerWindow.css +13 -1
- package/react/assets/css/menus.css +2 -2
- package/react/assets/css/notificationsCenter.css +33 -2
- package/react/assets/css/shared/common.css +40 -0
- package/react/assets/css/userPreferences.css +17 -12
- package/react/assets/css/windowTitleBar.css +8 -1
- package/react/assets/icons/server.svg +26 -0
- package/react/components/common/ButtonIcon.js +1 -1
- package/react/components/common/ButtonIcon.js.map +1 -1
- package/react/components/common/ButtonRow.js +2 -2
- package/react/components/common/ButtonRow.js.map +1 -1
- package/react/components/common/Checkbox.js +1 -1
- package/react/components/common/Checkbox.js.map +1 -1
- package/react/components/common/ErrorBoundary.d.ts +16 -0
- package/react/components/common/ErrorBoundary.js +22 -0
- package/react/components/common/ErrorBoundary.js.map +1 -0
- package/react/components/common/FinsembleIcon.d.ts +2 -2
- package/react/components/common/FinsembleIcon.js +10 -4
- package/react/components/common/FinsembleIcon.js.map +1 -1
- package/react/components/common/FinsembleToggle.d.ts +1 -2
- package/react/components/common/FinsembleToggle.js +2 -6
- package/react/components/common/FinsembleToggle.js.map +1 -1
- package/react/components/common/FinsembleToggleButtonBar.d.ts +13 -0
- package/react/components/common/FinsembleToggleButtonBar.js +44 -0
- package/react/components/common/FinsembleToggleButtonBar.js.map +1 -0
- package/react/components/common/Tab.js +33 -5
- package/react/components/common/Tab.js.map +1 -1
- package/react/components/common/css/FinsembleToggle.css +22 -0
- package/react/components/common/css/tab.css +8 -8
- package/react/components/common/css/time-select.css +1 -1
- package/react/components/common/css/toggle.css +2 -10
- package/react/components/common/helpers.js +4 -0
- package/react/components/common/helpers.js.map +1 -1
- package/react/components/common/stories/FinsembleToggle.stories.d.ts +1 -2
- package/react/components/common/stories/FinsembleToggle.stories.js +0 -7
- package/react/components/common/stories/FinsembleToggle.stories.js.map +1 -1
- package/react/components/common/stories/FinsembleToggleButtonBar.stories.d.ts +14 -0
- package/react/components/common/stories/FinsembleToggleButtonBar.stories.js +97 -0
- package/react/components/common/stories/FinsembleToggleButtonBar.stories.js.map +1 -0
- package/react/components/common/tests/ButtonRow.spec.js +5 -0
- package/react/components/common/tests/ButtonRow.spec.js.map +1 -1
- package/react/components/common/tests/FinsembleToggle.spec.js +1 -6
- package/react/components/common/tests/FinsembleToggle.spec.js.map +1 -1
- package/react/components/common/tests/FinsembleToggleButtonBar.spec.d.ts +1 -0
- package/react/components/common/tests/FinsembleToggleButtonBar.spec.js +40 -0
- package/react/components/common/tests/FinsembleToggleButtonBar.spec.js.map +1 -0
- package/react/components/favorites/FavoriteMaker.js +1 -1
- package/react/components/favorites/FavoriteMaker.js.map +1 -1
- package/react/components/fdc3Resolver/ResolverContainer.js +4 -7
- package/react/components/fdc3Resolver/ResolverContainer.js.map +1 -1
- package/react/components/icon/Icon.d.ts +1 -1
- package/react/components/icon/Icon.js +8 -1
- package/react/components/icon/Icon.js.map +1 -1
- package/react/components/legacyControls/FinsembleDialog.js +1 -1
- package/react/components/legacyControls/FinsembleDialog.js.map +1 -1
- package/react/components/legacyControls/FinsembleDnDContext.js +7 -7
- package/react/components/legacyControls/FinsembleDnDContext.js.map +1 -1
- package/react/components/linker/remoteRedux.js +1 -0
- package/react/components/linker/remoteRedux.js.map +1 -1
- package/react/components/menu/MenuItem.js +1 -1
- package/react/components/menu/MenuItem.js.map +1 -1
- package/react/components/menu/MenuPortal.js +12 -21
- package/react/components/menu/MenuPortal.js.map +1 -1
- package/react/components/menu/MenuToggle.js +1 -1
- package/react/components/menu/MenuToggle.js.map +1 -1
- package/react/components/menu/keyboardNavigation.d.ts +1 -22
- package/react/components/menu/keyboardNavigation.js +110 -160
- package/react/components/menu/keyboardNavigation.js.map +1 -1
- package/react/components/notifications/components/drawer/DrawerControls.js +39 -25
- package/react/components/notifications/components/drawer/DrawerControls.js.map +1 -1
- package/react/components/notifications/components/notificationsCenter/NotificationsCenter.js +19 -6
- package/react/components/notifications/components/notificationsCenter/NotificationsCenter.js.map +1 -1
- package/react/components/notifications/components/notificationsToasts/NotificationsToasts.js +14 -10
- package/react/components/notifications/components/notificationsToasts/NotificationsToasts.js.map +1 -1
- package/react/components/notifications/components/shared/CheckButton.js +19 -8
- package/react/components/notifications/components/shared/CheckButton.js.map +1 -1
- package/react/components/notifications/components/shared/NotificationCardShell.js +2 -1
- package/react/components/notifications/components/shared/NotificationCardShell.js.map +1 -1
- package/react/components/notifications/components/shared/notificationCard/NotificationCardBodyShell.js +2 -1
- package/react/components/notifications/components/shared/notificationCard/NotificationCardBodyShell.js.map +1 -1
- package/react/components/notifications/components/shared/notificationCard/NotificationCardHeaderShell.js +2 -1
- package/react/components/notifications/components/shared/notificationCard/NotificationCardHeaderShell.js.map +1 -1
- package/react/components/notifications/components/views/CardView.js +5 -3
- package/react/components/notifications/components/views/CardView.js.map +1 -1
- package/react/components/notifications/components/views/ListView.js +3 -1
- package/react/components/notifications/components/views/ListView.js.map +1 -1
- package/react/components/notifications/types.d.ts +3 -0
- package/react/components/notifications/types.js.map +1 -1
- package/react/components/processMonitor/ProcessMonitor.js +4 -1
- package/react/components/processMonitor/ProcessMonitor.js.map +1 -1
- package/react/components/processMonitor/components/ProcessStatistics.js +1 -3
- package/react/components/processMonitor/components/ProcessStatistics.js.map +1 -1
- package/react/components/processMonitor/helpers.js +4 -3
- package/react/components/processMonitor/helpers.js.map +1 -1
- package/react/components/processMonitor/helpers.spec.js +7 -3
- package/react/components/processMonitor/helpers.spec.js.map +1 -1
- package/react/components/sdd/AddApp.d.ts +4 -3
- package/react/components/sdd/AddApp.js +129 -33
- package/react/components/sdd/AddApp.js.map +1 -1
- package/react/components/sdd/AppEditAccess.d.ts +4 -3
- package/react/components/sdd/AppEditAccess.js.map +1 -1
- package/react/components/sdd/AppEditPage.d.ts +4 -3
- package/react/components/sdd/AppEditPage.js +124 -73
- package/react/components/sdd/AppEditPage.js.map +1 -1
- package/react/components/sdd/Application.d.ts +5 -4
- package/react/components/sdd/Application.js +61 -42
- package/react/components/sdd/Application.js.map +1 -1
- package/react/components/sdd/Applications.d.ts +12 -11
- package/react/components/sdd/Applications.js +23 -4
- package/react/components/sdd/Applications.js.map +1 -1
- package/react/components/sdd/AuthenticationProviderConfig.js +2 -1
- package/react/components/sdd/AuthenticationProviderConfig.js.map +1 -1
- package/react/components/sdd/EditPreload.d.ts +4 -3
- package/react/components/sdd/EditPreload.js +39 -22
- package/react/components/sdd/EditPreload.js.map +1 -1
- package/react/components/sdd/Export.d.ts +7 -6
- package/react/components/sdd/Export.js +2 -1
- package/react/components/sdd/Export.js.map +1 -1
- package/react/components/sdd/GettingStarted.js +1 -1
- package/react/components/sdd/GettingStarted.js.map +1 -1
- package/react/components/sdd/Navigation.js +29 -5
- package/react/components/sdd/Navigation.js.map +1 -1
- package/react/components/sdd/OptionalSettingsView.d.ts +6 -5
- package/react/components/sdd/OptionalSettingsView.js.map +1 -1
- package/react/components/sdd/ProjectErrors.js +1 -1
- package/react/components/sdd/ProjectErrors.js.map +1 -1
- package/react/components/sdd/Publish.js +2 -2
- package/react/components/sdd/Publish.js.map +1 -1
- package/react/components/sdd/SmartDesktopDesigner.d.ts +14 -13
- package/react/components/sdd/SmartDesktopDesigner.js +15 -11
- package/react/components/sdd/SmartDesktopDesigner.js.map +1 -1
- package/react/components/sdd/Toolbar.d.ts +5 -4
- package/react/components/sdd/Toolbar.js.map +1 -1
- package/react/components/sdd/common/setPreloadDefaults.js +4 -3
- package/react/components/sdd/common/setPreloadDefaults.js.map +1 -1
- package/react/components/sdd/common/views.js +40 -39
- package/react/components/sdd/common/views.js.map +1 -1
- package/react/components/sdd/css/addApp.css +52 -0
- package/react/components/sdd/css/applications.css +4 -24
- package/react/components/sdd/css/nav.css +3 -3
- package/react/components/sdd/smartDesktopClient.d.ts +163 -0
- package/react/components/sdd/smartDesktopClient.js +573 -0
- package/react/components/sdd/smartDesktopClient.js.map +1 -0
- package/react/components/sdd/smartDesktopClient.spec.d.ts +1 -0
- package/react/components/sdd/smartDesktopClient.spec.js +61 -0
- package/react/components/sdd/smartDesktopClient.spec.js.map +1 -0
- package/react/components/sdd/stories/AddApp.stories.d.ts +10 -0
- package/react/components/sdd/stories/AddApp.stories.js +18 -0
- package/react/components/sdd/stories/AddApp.stories.js.map +1 -0
- package/react/components/sdd/stories/AppEditPage.stories.d.ts +1 -0
- package/react/components/sdd/stories/AppEditPage.stories.js +1 -0
- package/react/components/sdd/stories/AppEditPage.stories.js.map +1 -1
- package/react/components/sdd/stories/SmartDesktopDesigner.stories.d.ts +1 -1
- package/react/components/sdd/tests/AddApp.spec.d.ts +1 -0
- package/react/components/sdd/tests/AddApp.spec.js +96 -0
- package/react/components/sdd/tests/AddApp.spec.js.map +1 -0
- package/react/components/sdd/tests/AppEditPage.spec.js +57 -19
- package/react/components/sdd/tests/AppEditPage.spec.js.map +1 -1
- package/react/components/sdd/tests/Application.spec.js +411 -24
- package/react/components/sdd/tests/Application.spec.js.map +1 -1
- package/react/components/sdd/tests/Applications.spec.js +1 -45
- package/react/components/sdd/tests/Applications.spec.js.map +1 -1
- package/react/components/sdd/tests/EditPreload.spec.js +36 -0
- package/react/components/sdd/tests/EditPreload.spec.js.map +1 -1
- package/react/components/sdd/tests/Navigation.spec.js +2 -2
- package/react/components/sdd/tests/Navigation.spec.js.map +1 -1
- package/react/components/sdd/tests/SmartDesktopDesigner.spec.js +2 -2
- package/react/components/sdd/tests/SmartDesktopDesigner.spec.js.map +1 -1
- package/react/components/search/Highlight.stories.js +1 -1
- package/react/components/search/Highlight.stories.js.map +1 -1
- package/react/components/search/Search.js +1 -1
- package/react/components/search/Search.js.map +1 -1
- package/react/components/search/SearchResult.d.ts +5 -0
- package/react/components/search/SearchResult.js.map +1 -1
- package/react/components/search/SearchResult.spec.d.ts +1 -0
- package/react/components/search/SearchResult.spec.js +39 -0
- package/react/components/search/SearchResult.spec.js.map +1 -0
- package/react/components/search/SearchResult.stories.d.ts +16 -0
- package/react/components/search/SearchResult.stories.js +109 -0
- package/react/components/search/SearchResult.stories.js.map +1 -0
- package/react/components/search/SearchResults.spec.d.ts +1 -0
- package/react/components/search/SearchResults.spec.js +28 -0
- package/react/components/search/SearchResults.spec.js.map +1 -0
- package/react/components/search/SearchResults.stories.d.ts +11 -0
- package/react/components/search/SearchResults.stories.js +458 -0
- package/react/components/search/SearchResults.stories.js.map +1 -0
- package/react/components/shared/DefaultDropdownButton.js +12 -1
- package/react/components/shared/DefaultDropdownButton.js.map +1 -1
- package/react/components/shared/tests/DefaultDropdownButton.spec.js +12 -0
- package/react/components/shared/tests/DefaultDropdownButton.spec.js.map +1 -1
- package/react/components/singleInputDialog/SingleInputDialog.stories.js +2 -2
- package/react/components/singleInputDialog/SingleInputDialog.stories.js.map +1 -1
- package/react/components/toolbar/AutoArrange.spec.js +9 -4
- package/react/components/toolbar/AutoArrange.spec.js.map +1 -1
- package/react/components/toolbar/DragHandle.stories.js.map +1 -1
- package/react/components/toolbar/ToolbarIcon.js +2 -2
- package/react/components/toolbar/ToolbarIcon.js.map +1 -1
- package/react/components/toolbar/ToolbarSection.d.ts +1 -9
- package/react/components/toolbar/ToolbarSection.js +3 -7
- package/react/components/toolbar/ToolbarSection.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/components/AppDefinition.js +7 -10
- package/react/components/toolbar/advancedAppLauncher/components/AppDefinition.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/stores/StoreActions.js +1 -1
- package/react/components/toolbar/advancedAppLauncher/stores/StoreActions.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/utils/sort-functions.js +1 -3
- package/react/components/toolbar/advancedAppLauncher/utils/sort-functions.js.map +1 -1
- package/react/components/toolbar/dashbar/Dashbar.js +21 -11
- package/react/components/toolbar/dashbar/Dashbar.js.map +1 -1
- package/react/components/toolbar/workspaceManagementMenu/WorkspaceManagementMenu.d.ts +1 -1
- package/react/components/toolbar/workspaceManagementMenu/WorkspaceManagementMenu.js.map +1 -1
- package/react/components/toolbar/workspaceManagementMenu/components/Workspace.d.ts +1 -1
- package/react/components/toolbar/workspaceManagementMenu/components/Workspace.js +1 -1
- package/react/components/toolbar/workspaceManagementMenu/components/Workspace.js.map +1 -1
- package/react/components/toolbar/workspaceManagementMenu/components/WorkspaceList.d.ts +1 -1
- package/react/components/toolbar/workspaceManagementMenu/components/WorkspaceList.js.map +1 -1
- package/react/components/toolbar/workspaceManagementMenu/stores/workspaceManagementMenuStore.d.ts +1 -1
- package/react/components/toolbar/workspaceManagementMenu/stores/workspaceManagementMenuStore.js +1 -1
- package/react/components/toolbar/workspaceManagementMenu/stores/workspaceManagementMenuStore.js.map +1 -1
- package/react/components/userPreferences/components/ContentSection.js +1 -1
- package/react/components/userPreferences/components/ContentSection.js.map +1 -1
- package/react/components/userPreferences/components/content/Workspaces.js +1 -1
- package/react/components/userPreferences/components/content/Workspaces.js.map +1 -1
- package/react/components/userPreferences/components/content/notificationViews/NotificationsPreferencesHome.js +2 -1
- package/react/components/userPreferences/components/content/notificationViews/NotificationsPreferencesHome.js.map +1 -1
- package/react/components/userPreferences/components/general/ScheduledClose.js +12 -3
- package/react/components/userPreferences/components/general/ScheduledClose.js.map +1 -1
- package/react/components/userPreferences/components/workspaces/WorkspaceButton.js +1 -1
- package/react/components/userPreferences/components/workspaces/WorkspaceButton.js.map +1 -1
- package/react/components/userPreferences/stores/UserPreferencesStore.d.ts +1 -1
- package/react/components/userPreferences/stores/UserPreferencesStore.js +8 -6
- package/react/components/userPreferences/stores/UserPreferencesStore.js.map +1 -1
- package/react/components/userPreferences/tests/LeftNav.spec.js +15 -1
- package/react/components/userPreferences/tests/LeftNav.spec.js.map +1 -1
- package/react/components/userPreferences/tests/UserPreferencesBase.spec.d.ts +1 -0
- package/react/components/userPreferences/tests/UserPreferencesBase.spec.js +42 -0
- package/react/components/userPreferences/tests/UserPreferencesBase.spec.js.map +1 -0
- package/react/components/userPreferences/tests/Workspace.spec.d.ts +1 -0
- package/react/components/userPreferences/tests/Workspace.spec.js +119 -0
- package/react/components/userPreferences/tests/Workspace.spec.js.map +1 -0
- package/react/components/windowTitleBar/WindowTitleBarShell.d.ts +19 -2
- package/react/components/windowTitleBar/WindowTitleBarShell.js +194 -6
- package/react/components/windowTitleBar/WindowTitleBarShell.js.map +1 -1
- package/react/components/windowTitleBar/components/left/LinkerButton.js +7 -1
- package/react/components/windowTitleBar/components/left/LinkerButton.js.map +1 -1
- package/react/components/windowTitleBar/components/windowTitle.js +65 -24
- package/react/components/windowTitleBar/components/windowTitle.js.map +1 -1
- package/react/components/windowTitleBar/stores/windowTitleBarStore.js +9 -5
- package/react/components/windowTitleBar/stores/windowTitleBarStore.js.map +1 -1
- package/react/components/yesNoDialog/YesNoDialog.stories.js +2 -2
- package/react/components/yesNoDialog/YesNoDialog.stories.js.map +1 -1
- package/react/enzymeSetup.js +5 -0
- package/react/enzymeSetup.js.map +1 -1
- package/react/hooks/useNotifications.js +4 -8
- package/react/hooks/useNotifications.js.map +1 -1
- package/react/hooks/useToolbar.d.ts +1 -1
- package/react/hooks/useToolbar.js +2 -2
- package/react/hooks/useToolbar.js.map +1 -1
- package/react/reducers/rootReducer.d.ts +2 -2
- package/react/store.d.ts +4 -4
- package/react/tsconfig.tsbuildinfo +1 -1
- package/react/types/smartDesktopDesignerTypes.d.ts +3 -0
- 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.
|
|
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.
|
|
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.
|
|
37
|
-
"@types/lodash": "4.14.
|
|
38
|
-
"@types/mocha": "9.1.
|
|
39
|
-
"@types/react": "17.0.
|
|
40
|
-
"@types/react-dom": "17.0.
|
|
41
|
-
"@types/react-redux": "7.1.
|
|
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.
|
|
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.
|
|
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.
|
|
66
|
-
"@storybook/addon-essentials": "6.4.
|
|
67
|
-
"@storybook/addon-links": "6.4.
|
|
68
|
-
"@storybook/react": "6.4.
|
|
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.
|
|
77
|
-
"chai": "4.3.
|
|
75
|
+
"canvas": "^2.9.0",
|
|
76
|
+
"chai": "4.3.6",
|
|
78
77
|
"chokidar-cli": "3.0.0",
|
|
79
|
-
"concurrently": "7.
|
|
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.
|
|
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
|
-
"
|
|
98
|
-
"
|
|
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",
|
|
@@ -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;
|
|
@@ -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
|
|
84
|
-
.menu-item-icon
|
|
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:
|
|
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(--
|
|
47
|
+
background-color: var(--core-primary-1);
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
.complex-menu-left-nav-header {
|
|
51
|
-
background-color: var(--
|
|
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(--
|
|
131
|
+
background-color: var(--accent-primary);
|
|
131
132
|
}
|
|
132
133
|
|
|
133
134
|
.active-section-toggle {
|
|
134
|
-
background-color: var(--
|
|
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(--
|
|
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(--
|
|
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(--
|
|
276
|
-
color: var(--
|
|
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(--
|
|
407
|
+
color: var(--core-primary-5);
|
|
407
408
|
}
|
|
408
409
|
|
|
409
410
|
.disabled-restart {
|
|
410
|
-
color: var(--
|
|
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(--
|
|
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,
|
|
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,
|
|
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: ".
|
|
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,
|
|
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: (
|
|
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 = (
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
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
|