@boomerang-io/carbon-addons-boomerang-react 4.6.14-beta.9 → 4.6.15-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +162 -162
- package/dist/cjs/components/AboutPlatform/AboutPlatform.js +50 -50
- package/dist/cjs/components/AdvantageSideNav/AdvantageSideNav.js +221 -221
- package/dist/cjs/components/AutoSuggest/AutoSuggest.js +101 -101
- package/dist/cjs/components/Avatar/Avatar.js +18 -18
- package/dist/cjs/components/CheckboxList/CheckboxList.js +34 -34
- package/dist/cjs/components/ComboBox/ComboBox.js +103 -103
- package/dist/cjs/components/ComboBoxMultiSelect/ComboBoxMultiSelect.js +32 -32
- package/dist/cjs/components/ComboBoxMultiSelect/MultiSelect.js +208 -208
- package/dist/cjs/components/ComposedModal/ComposedModal.js +80 -80
- package/dist/cjs/components/ConfirmModal/ConfirmModal.js +43 -43
- package/dist/cjs/components/Creatable/Creatable.js +137 -137
- package/dist/cjs/components/DataDrivenInput/DataDrivenInput.js +226 -226
- package/dist/cjs/components/DateInput/DateInput.js +35 -35
- package/dist/cjs/components/DecisionButtons/DecisionButtons.js +61 -61
- package/dist/cjs/components/DelayedRender/DelayedRender.js +17 -17
- package/dist/cjs/components/DynamicFormik/DynamicFormik.js +578 -578
- package/dist/cjs/components/Error403/Error403.js +13 -13
- package/dist/cjs/components/Error403/ForbiddenErrorBackground.js +113 -113
- package/dist/cjs/components/Error403/GraphicWrangler/GraphicWrangler.js +62 -62
- package/dist/cjs/components/Error404/Error404.js +13 -13
- package/dist/cjs/components/Error404/GraphicLoch/GraphicLoch.js +17 -17
- package/dist/cjs/components/Error404/NotFoundErrorBackground.js +129 -129
- package/dist/cjs/components/ErrorBoundary/ErrorBoundary.js +32 -32
- package/dist/cjs/components/ErrorDragon/ErrorDragon.js +13 -13
- package/dist/cjs/components/ErrorDragon/assets/ErrorGraphic.js +35 -35
- package/dist/cjs/components/ErrorFullPage/ErrorFullPage.js +10 -10
- package/dist/cjs/components/ErrorMessage/ErrorMessage.js +22 -22
- package/dist/cjs/components/ErrorPage/ErrorPage.js +11 -11
- package/dist/cjs/components/ErrorPageCore/ErrorPageCore.js +15 -15
- package/dist/cjs/components/ErrorPageCore/GenericErrorBackground.js +124 -124
- package/dist/cjs/components/FeatureHeader/FeatureHeader.js +29 -29
- package/dist/cjs/components/FeatureNavTab/FeatureNavTab.js +12 -12
- package/dist/cjs/components/FeatureNavTabs/FeatureNavTabs.js +12 -12
- package/dist/cjs/components/FeatureSideNav/FeatureSideNav.js +12 -12
- package/dist/cjs/components/FeatureSideNav/FeatureSideNavFooter.js +8 -8
- package/dist/cjs/components/FeatureSideNav/FeatureSideNavHeader.js +8 -8
- package/dist/cjs/components/FeatureSideNav/FeatureSideNavLinks.js +14 -14
- package/dist/cjs/components/FeatureSideNavLink/FeatureSideNavLink.js +12 -12
- package/dist/cjs/components/Feedback/Feedback.js +38 -38
- package/dist/cjs/components/FlowModal/FlowModal.js +141 -141
- package/dist/cjs/components/FlowModal/FlowModalForm.js +12 -12
- package/dist/cjs/components/Header/Header.js +187 -187
- package/dist/cjs/components/Header/HeaderAppSwitcher.js +94 -94
- package/dist/cjs/components/Header/HeaderMenu.js +7 -7
- package/dist/cjs/components/Header/HeaderMenuItem.js +51 -51
- package/dist/cjs/components/Header/HeaderTeamSwitcher.js +329 -332
- package/dist/cjs/components/Header/UserRequests.js +29 -29
- package/dist/cjs/components/ImageModal/ImageModal.js +17 -17
- package/dist/cjs/components/Loading/Loading.js +8 -8
- package/dist/cjs/components/MemberBar/MemberBar.js +20 -20
- package/dist/cjs/components/Modal/Modal.js +20 -20
- package/dist/cjs/components/ModalConfirmEdit/ModalConfirmArray.js +14 -14
- package/dist/cjs/components/ModalConfirmEdit/ModalConfirmDetails.js +11 -11
- package/dist/cjs/components/ModalConfirmEdit/ModalConfirmEdit.js +17 -17
- package/dist/cjs/components/ModalForm/ModalForm.js +9 -9
- package/dist/cjs/components/Notifications/NotificationsContainer.js +22 -22
- package/dist/cjs/components/Notifications/ToastNotification.js +21 -21
- package/dist/cjs/components/Notifications/notify.js +17 -17
- package/dist/cjs/components/PlatformBanner/PlatformBanner.js +8 -8
- package/dist/cjs/components/PlatformNotifications/PlatformNotification.js +17 -17
- package/dist/cjs/components/PlatformNotifications/PlatformNotificationsContainer.js +136 -136
- package/dist/cjs/components/Portal/Portal.js +14 -14
- package/dist/cjs/components/PrivacyRedirect/PrivacyRedirect.js +30 -30
- package/dist/cjs/components/PrivacyStatement/PrivacyStatement.js +90 -90
- package/dist/cjs/components/ProfileSettings/ProfileSettings.js +124 -142
- package/dist/cjs/components/ProtectedRoute/ProtectedRoute.js +13 -13
- package/dist/cjs/components/RadioGroup/RadioGroup.js +33 -33
- package/dist/cjs/components/RichTextArea/RichTextArea.js +142 -142
- package/dist/cjs/components/SignOut/SignOut.js +27 -27
- package/dist/cjs/components/SupportCenter/SupportCenter.js +65 -65
- package/dist/cjs/components/TextArea/TextArea.js +16 -16
- package/dist/cjs/components/TextInput/TextInput.js +13 -13
- package/dist/cjs/components/Toggle/Toggle.js +22 -22
- package/dist/cjs/components/TooltipHover/TooltipHover.js +39 -39
- package/dist/cjs/components/UIShell/UIShell.js +95 -95
- package/dist/cjs/config/servicesConfig.js +22 -22
- package/dist/cjs/constants/DataDrivenInputTypes.js +74 -74
- package/dist/cjs/constants/UserType.js +13 -13
- package/dist/cjs/hooks/useHeaderMenu.js +49 -49
- package/dist/cjs/hooks/usePortal.js +74 -74
- package/dist/cjs/hooks/useWindowSize.js +33 -33
- package/dist/cjs/internal/ListBox/ListBox.js +41 -41
- package/dist/cjs/internal/ListBox/ListBoxField.js +19 -19
- package/dist/cjs/internal/ListBox/ListBoxMenu.js +19 -19
- package/dist/cjs/internal/ListBox/ListBoxMenuIcon.js +31 -31
- package/dist/cjs/internal/ListBox/ListBoxMenuItem.js +38 -38
- package/dist/cjs/internal/ListBox/ListBoxSelection.js +64 -64
- package/dist/cjs/internal/ListBox/index.js +10 -10
- package/dist/cjs/internal/keyboard/keys.js +16 -16
- package/dist/cjs/internal/keyboard/match.js +67 -67
- package/dist/cjs/internal/settings.js +5 -5
- package/dist/cjs/tools/accessibility.js +13 -13
- package/dist/cjs/tools/createPropAdapter.js +44 -44
- package/dist/cjs/tools/isUrl.js +39 -39
- package/dist/cjs/tools/setupGetInstanceId.js +20 -20
- package/dist/cjs/tools/useSetState.js +12 -12
- package/dist/cjs/tools/yupAst/astGenerator.js +212 -212
- package/dist/cjs/tools/yupAst/customValidators.js +17 -17
- package/dist/esm/components/AboutPlatform/AboutPlatform.js +50 -50
- package/dist/esm/components/AdvantageSideNav/AdvantageSideNav.js +221 -221
- package/dist/esm/components/AutoSuggest/AutoSuggest.js +101 -101
- package/dist/esm/components/Avatar/Avatar.js +18 -18
- package/dist/esm/components/CheckboxList/CheckboxList.js +34 -34
- package/dist/esm/components/ComboBox/ComboBox.js +103 -103
- package/dist/esm/components/ComboBoxMultiSelect/ComboBoxMultiSelect.js +32 -32
- package/dist/esm/components/ComboBoxMultiSelect/MultiSelect.js +208 -208
- package/dist/esm/components/ComposedModal/ComposedModal.js +80 -80
- package/dist/esm/components/ConfirmModal/ConfirmModal.js +43 -43
- package/dist/esm/components/Creatable/Creatable.js +137 -137
- package/dist/esm/components/DataDrivenInput/DataDrivenInput.js +226 -226
- package/dist/esm/components/DateInput/DateInput.js +35 -35
- package/dist/esm/components/DecisionButtons/DecisionButtons.js +61 -61
- package/dist/esm/components/DelayedRender/DelayedRender.js +17 -17
- package/dist/esm/components/DynamicFormik/DynamicFormik.js +578 -578
- package/dist/esm/components/Error403/Error403.js +13 -13
- package/dist/esm/components/Error403/ForbiddenErrorBackground.js +113 -113
- package/dist/esm/components/Error403/GraphicWrangler/GraphicWrangler.js +62 -62
- package/dist/esm/components/Error404/Error404.js +13 -13
- package/dist/esm/components/Error404/GraphicLoch/GraphicLoch.js +17 -17
- package/dist/esm/components/Error404/NotFoundErrorBackground.js +129 -129
- package/dist/esm/components/ErrorBoundary/ErrorBoundary.js +32 -32
- package/dist/esm/components/ErrorDragon/ErrorDragon.js +13 -13
- package/dist/esm/components/ErrorDragon/assets/ErrorGraphic.js +35 -35
- package/dist/esm/components/ErrorFullPage/ErrorFullPage.js +10 -10
- package/dist/esm/components/ErrorMessage/ErrorMessage.js +22 -22
- package/dist/esm/components/ErrorPage/ErrorPage.js +11 -11
- package/dist/esm/components/ErrorPageCore/ErrorPageCore.js +15 -15
- package/dist/esm/components/ErrorPageCore/GenericErrorBackground.js +124 -124
- package/dist/esm/components/FeatureHeader/FeatureHeader.js +29 -29
- package/dist/esm/components/FeatureNavTab/FeatureNavTab.js +12 -12
- package/dist/esm/components/FeatureNavTabs/FeatureNavTabs.js +12 -12
- package/dist/esm/components/FeatureSideNav/FeatureSideNav.js +12 -12
- package/dist/esm/components/FeatureSideNav/FeatureSideNavFooter.js +8 -8
- package/dist/esm/components/FeatureSideNav/FeatureSideNavHeader.js +8 -8
- package/dist/esm/components/FeatureSideNav/FeatureSideNavLinks.js +14 -14
- package/dist/esm/components/FeatureSideNavLink/FeatureSideNavLink.js +12 -12
- package/dist/esm/components/Feedback/Feedback.js +38 -38
- package/dist/esm/components/FlowModal/FlowModal.js +141 -141
- package/dist/esm/components/FlowModal/FlowModalForm.js +12 -12
- package/dist/esm/components/Header/Header.js +187 -187
- package/dist/esm/components/Header/HeaderAppSwitcher.js +94 -94
- package/dist/esm/components/Header/HeaderMenu.js +7 -7
- package/dist/esm/components/Header/HeaderMenuItem.js +51 -51
- package/dist/esm/components/Header/HeaderTeamSwitcher.js +329 -332
- package/dist/esm/components/Header/UserRequests.js +29 -29
- package/dist/esm/components/ImageModal/ImageModal.js +17 -17
- package/dist/esm/components/Loading/Loading.js +8 -8
- package/dist/esm/components/MemberBar/MemberBar.js +20 -20
- package/dist/esm/components/Modal/Modal.js +20 -20
- package/dist/esm/components/ModalConfirmEdit/ModalConfirmArray.js +14 -14
- package/dist/esm/components/ModalConfirmEdit/ModalConfirmDetails.js +11 -11
- package/dist/esm/components/ModalConfirmEdit/ModalConfirmEdit.js +17 -17
- package/dist/esm/components/ModalForm/ModalForm.js +9 -9
- package/dist/esm/components/Notifications/NotificationsContainer.js +22 -22
- package/dist/esm/components/Notifications/ToastNotification.js +21 -21
- package/dist/esm/components/Notifications/notify.js +17 -17
- package/dist/esm/components/PlatformBanner/PlatformBanner.js +8 -8
- package/dist/esm/components/PlatformNotifications/PlatformNotification.js +17 -17
- package/dist/esm/components/PlatformNotifications/PlatformNotificationsContainer.js +136 -136
- package/dist/esm/components/Portal/Portal.js +14 -14
- package/dist/esm/components/PrivacyRedirect/PrivacyRedirect.js +30 -30
- package/dist/esm/components/PrivacyStatement/PrivacyStatement.js +90 -90
- package/dist/esm/components/ProfileSettings/ProfileSettings.js +124 -142
- package/dist/esm/components/ProtectedRoute/ProtectedRoute.js +13 -13
- package/dist/esm/components/RadioGroup/RadioGroup.js +33 -33
- package/dist/esm/components/RichTextArea/RichTextArea.js +142 -142
- package/dist/esm/components/SignOut/SignOut.js +27 -27
- package/dist/esm/components/SupportCenter/SupportCenter.js +65 -65
- package/dist/esm/components/TextArea/TextArea.js +16 -16
- package/dist/esm/components/TextInput/TextInput.js +13 -13
- package/dist/esm/components/Toggle/Toggle.js +22 -22
- package/dist/esm/components/TooltipHover/TooltipHover.js +39 -39
- package/dist/esm/components/UIShell/UIShell.js +95 -95
- package/dist/esm/config/servicesConfig.js +22 -22
- package/dist/esm/constants/DataDrivenInputTypes.js +74 -74
- package/dist/esm/constants/UserType.js +13 -13
- package/dist/esm/hooks/useHeaderMenu.js +49 -49
- package/dist/esm/hooks/usePortal.js +74 -74
- package/dist/esm/hooks/useWindowSize.js +33 -33
- package/dist/esm/internal/ListBox/ListBox.js +41 -41
- package/dist/esm/internal/ListBox/ListBoxField.js +19 -19
- package/dist/esm/internal/ListBox/ListBoxMenu.js +19 -19
- package/dist/esm/internal/ListBox/ListBoxMenuIcon.js +31 -31
- package/dist/esm/internal/ListBox/ListBoxMenuItem.js +38 -38
- package/dist/esm/internal/ListBox/ListBoxSelection.js +64 -64
- package/dist/esm/internal/ListBox/index.js +10 -10
- package/dist/esm/internal/keyboard/keys.js +16 -16
- package/dist/esm/internal/keyboard/match.js +67 -67
- package/dist/esm/internal/settings.js +5 -5
- package/dist/esm/tools/accessibility.js +13 -13
- package/dist/esm/tools/createPropAdapter.js +44 -44
- package/dist/esm/tools/isUrl.js +39 -39
- package/dist/esm/tools/setupGetInstanceId.js +20 -20
- package/dist/esm/tools/useSetState.js +12 -12
- package/dist/esm/tools/yupAst/astGenerator.js +212 -212
- package/dist/esm/tools/yupAst/customValidators.js +17 -17
- package/dist/types/index.d.ts +1359 -1360
- package/package.json +167 -167
- package/scss/components/AboutPlatform/_aboutPlatform.scss +139 -139
- package/scss/components/AdvantageSideNav/_advantageSideNav.scss +272 -272
- package/scss/components/AutoSuggest/_autoSuggest.scss +62 -62
- package/scss/components/Avatar/_avatar.scss +32 -32
- package/scss/components/CheckboxList/_checkboxList.scss +26 -26
- package/scss/components/ComboBox/_combobox.scss +23 -23
- package/scss/components/ComboBoxMultiSelect/_comboBoxMultiSelect.scss +53 -53
- package/scss/components/ConfirmModal/_confirmModal.scss +12 -12
- package/scss/components/Creatable/_creatable.scss +48 -48
- package/scss/components/DateInput/_dateInput.scss +36 -36
- package/scss/components/DecisionButtons/_decisionButtons.scss +132 -132
- package/scss/components/DynamicFormik/_dynamicFormik.scss +17 -17
- package/scss/components/ErrorBoundary/_errorBoundary.scss +12 -12
- package/scss/components/ErrorDragon/_errorDragon.scss +55 -55
- package/scss/components/ErrorMessage/_errorMessage.scss +43 -43
- package/scss/components/ErrorPage/_errorPage.scss +66 -66
- package/scss/components/ErrorPageCore/_errorPageCore.scss +73 -73
- package/scss/components/FeatureHeader/_featureHeader.scss +67 -67
- package/scss/components/FeatureNavTab/_featureNavTab.scss +27 -27
- package/scss/components/FeatureSideNav/_featureSideNav.scss +76 -76
- package/scss/components/FeatureSideNavLink/_featureSideNavLink.scss +49 -49
- package/scss/components/Feedback/_feedback.scss +50 -50
- package/scss/components/Header/_header.scss +179 -179
- package/scss/components/Header/_headerAppSwitcher.scss +117 -117
- package/scss/components/Header/_headerMenu.scss +30 -30
- package/scss/components/Header/_headerMenuItem.scss +65 -65
- package/scss/components/Header/_headerTeamSwitcher.scss +222 -222
- package/scss/components/Header/_userRequests.scss +36 -36
- package/scss/components/ImageModal/_imageModal.scss +51 -51
- package/scss/components/MemberBar/_memberBar.scss +99 -99
- package/scss/components/Modal/_modal.scss +163 -163
- package/scss/components/ModalConfirmEdit/_modalConfirmEdit.scss +113 -113
- package/scss/components/Notifications/_notifications.scss +57 -57
- package/scss/components/PlatformBanner/_platformBanner.scss +30 -30
- package/scss/components/PlatformNotifications/_platformNotifications.scss +230 -230
- package/scss/components/PrivacyRedirect/_privacyRedirect.scss +43 -43
- package/scss/components/PrivacyStatement/_privacyStatement.scss +137 -137
- package/scss/components/ProfileSettings/_profileSettings.scss +117 -117
- package/scss/components/ProtectedRoute/_protectedRoute.scss +32 -32
- package/scss/components/RadioGroup/_radioGroup.scss +46 -46
- package/scss/components/RichTextArea/_richTextArea.scss +82 -82
- package/scss/components/SignOut/_signOut.scss +51 -51
- package/scss/components/SupportCenter/_supportCenter.scss +16 -16
- package/scss/components/TextArea/_textArea.scss +19 -19
- package/scss/components/TextInput/_textInput.scss +26 -26
- package/scss/components/Toggle/_toggle.scss +80 -80
- package/scss/components/TooltipHover/_tooltip.scss +48 -48
- package/scss/global/_config.scss +14 -14
- package/scss/global/_tippy.scss +49 -49
- package/scss/global/index.scss +401 -401
- package/scss/global/themes/_boomerang.scss +184 -184
- package/scss/global/themes/_default.scss +79 -79
- package/scss/global/themes/_shell-tokens.scss +42 -42
- package/scss/global/utils/_animations.scss +15 -15
- package/scss/global/utils/_mixins.scss +67 -67
- package/scss/global/utils/index.scss +10 -10
package/README.md
CHANGED
|
@@ -1,162 +1,162 @@
|
|
|
1
|
-
# Carbon Addons Boomerang React [](https://app.netlify.com/sites/carbon-addons-boomerang-react/deploys)
|
|
2
|
-
|
|
3
|
-
[Carbon](https://www.carbondesignsystem.com/) addon components for Boomerang written in React. View the [Storybook](https://carbon-addons-boomerang-react.netlify.app/).
|
|
4
|
-
|
|
5
|
-
## Installing
|
|
6
|
-
|
|
7
|
-
Install the the addons package, carbon and all of the required peer-dependencies.
|
|
8
|
-
|
|
9
|
-
Run the following command using [pnpm](https://pnpm.io). Other package managers like `npm` and `yarn` work as well.
|
|
10
|
-
|
|
11
|
-
```bash
|
|
12
|
-
pnpm install @carbon/react @boomerang-io/carbon-addons-boomerang-react axios@0.27.2 formik react-router-dom@5 yup
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
Upgrading from a previous version? View our [migration guide](/docs/v4-migration.md).
|
|
16
|
-
|
|
17
|
-
## Styles
|
|
18
|
-
|
|
19
|
-
You need to use Sass, as we are built on top of Carbon and import the entry style sheet for the components. We recommend using `sass` or `sass-embedded` to compile styles. Configure as required for the bundler you are using. Tools like Vite and Create React App work without additional configuration needed.
|
|
20
|
-
|
|
21
|
-
```scss
|
|
22
|
-
// app.scss
|
|
23
|
-
@use "@carbon/react";
|
|
24
|
-
@use "@boomerang-io/carbon-addons-boomerang-react/scss/global";
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
Import this file in the JavaScript code to ensure that it is included in your bundle.
|
|
28
|
-
|
|
29
|
-
## Carbon themes
|
|
30
|
-
|
|
31
|
-
We recommend using Carbon theme functionality and the associated CSS custom properties in your styles to easily use Carbon theme tokens. See the following example for guidance on a couple common use cases.
|
|
32
|
-
|
|
33
|
-
### Default theme
|
|
34
|
-
|
|
35
|
-
```scss
|
|
36
|
-
// styles.scss
|
|
37
|
-
@use "@carbon/react";
|
|
38
|
-
@use '@carbon/themes';
|
|
39
|
-
@use "@boomerang-io/carbon-addons-boomerang-react/scss/global";
|
|
40
|
-
|
|
41
|
-
// Include theme tokens
|
|
42
|
-
:root {
|
|
43
|
-
@include themes.theme();
|
|
44
|
-
}
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
### Gray 10 theme
|
|
48
|
-
|
|
49
|
-
This is how we import things in our applications. We use a number of Carbon v10 tokens so we use the compatibility g10 theme from Carbon to support both new and old values. We also use Akamai as the host for our fonts instead of self-hosting via the `$use-akamai-cdn: true` argument to the `@carbon/react` import. View the Carbon docs to see all the arguments you can pass to customize how you use Carbon
|
|
50
|
-
|
|
51
|
-
```scss
|
|
52
|
-
@use "@carbon/react" with (
|
|
53
|
-
$use-akamai-cdn: true
|
|
54
|
-
);
|
|
55
|
-
@use "@carbon/themes";
|
|
56
|
-
@use "@carbon/react/scss/compat/themes" as compat;
|
|
57
|
-
@use "@boomerang-io/carbon-addons-boomerang-react/scss/global";
|
|
58
|
-
|
|
59
|
-
:root {
|
|
60
|
-
@include themes.theme(compat.$g10);
|
|
61
|
-
}
|
|
62
|
-
```
|
|
63
|
-
|
|
64
|
-
> Note: The library does not currently support changing the default class prefix from `cds`.
|
|
65
|
-
|
|
66
|
-
## Boomerang theme
|
|
67
|
-
|
|
68
|
-
Do you want to continue using the Boomerang theme? Follow the steps below.
|
|
69
|
-
|
|
70
|
-
## Step 1 - Import styles
|
|
71
|
-
|
|
72
|
-
Import the individual Carbon packages and addons styles as follows:
|
|
73
|
-
|
|
74
|
-
```scss
|
|
75
|
-
// app.scss
|
|
76
|
-
@use "sass:map";
|
|
77
|
-
|
|
78
|
-
// Carbon base styles and utilities
|
|
79
|
-
@use '@carbon/react/scss/config' with ($use-akamai-cdn: true);
|
|
80
|
-
@use '@carbon/react/scss/reset';
|
|
81
|
-
@use '@carbon/react/scss/motion';
|
|
82
|
-
@use '@carbon/react/scss/type';
|
|
83
|
-
|
|
84
|
-
// Themes
|
|
85
|
-
@use "@boomerang-io/carbon-addons-boomerang-react/scss/global/themes/boomerang";
|
|
86
|
-
@use '@carbon/react/scss/compat/themes' as compat;
|
|
87
|
-
@use '@carbon/react/scss/compat/theme' with (
|
|
88
|
-
$theme: map.merge(compat.$white, boomerang.$theme)
|
|
89
|
-
);
|
|
90
|
-
|
|
91
|
-
// More base styles, components, and component tokens
|
|
92
|
-
@use '@carbon/react/scss/fonts';
|
|
93
|
-
@use '@carbon/react/scss/grid';
|
|
94
|
-
@use '@carbon/react/scss/layer';
|
|
95
|
-
@use '@carbon/react/scss/zone';
|
|
96
|
-
@use '@carbon/react/scss/components/button/tokens' as button;
|
|
97
|
-
@use '@carbon/react/scss/components/notification/tokens' as notification;
|
|
98
|
-
@use '@carbon/react/scss/components/tag/tokens' as tag;
|
|
99
|
-
@use '@carbon/react/scss/components';
|
|
100
|
-
|
|
101
|
-
// Addons library with boomerang enabled
|
|
102
|
-
@use '@boomerang-io/carbon-addons-boomerang-react/scss/global' with ($use-theme-boomerang: true);
|
|
103
|
-
|
|
104
|
-
// Finally include the theme to include all of the css custom properties
|
|
105
|
-
[data-carbon-theme="boomerang"] {
|
|
106
|
-
@include theme.add-component-tokens(map.merge(button.$button-tokens, boomerang.$v11-button-tokens));
|
|
107
|
-
@include theme.add-component-tokens(notification.$notification-tokens);
|
|
108
|
-
@include theme.add-component-tokens(tag.$tag-tokens);
|
|
109
|
-
@include theme.theme();
|
|
110
|
-
}
|
|
111
|
-
```
|
|
112
|
-
|
|
113
|
-
## Step 2 - Set HTML property
|
|
114
|
-
|
|
115
|
-
You need to set the `data-carbon-theme="boomerang"` attribute value in your app, at the highest level in the document tree as possible.
|
|
116
|
-
|
|
117
|
-
```html
|
|
118
|
-
<html lang="en" data-carbon-theme="boomerang">
|
|
119
|
-
...
|
|
120
|
-
</html>
|
|
121
|
-
```
|
|
122
|
-
|
|
123
|
-
## Use
|
|
124
|
-
|
|
125
|
-
After you have the styles configured, you can then import components as you'd expect.
|
|
126
|
-
|
|
127
|
-
```js
|
|
128
|
-
import { UIShell } from "@boomerang-io/carbon-addons-boomerang-react";
|
|
129
|
-
```
|
|
130
|
-
|
|
131
|
-
> Note: In v3 of the component library we have removed the re-exporting of all of the Carbon components.
|
|
132
|
-
|
|
133
|
-
### Integrating with UIShell Notifications
|
|
134
|
-
|
|
135
|
-
We use [react-toastify](https://github.com/fkhadra/react-toastify) to create notifications for UIShell events. If you are using the UIShell and want to also use react-toastify in your app for own notifications, you need to configure your `ToastContainer` component to support [multiple containers](https://fkhadra.github.io/react-toastify/multi-containers/#multi-containers-support) via the `enableMultiContainer` prop. It is _NOT_ required to include a `containerId` on your container or with notifications that you create. Without multi-container support enabled, you will see two notifications created for UIShell events.
|
|
136
|
-
|
|
137
|
-
## 🛟 Version 2 LTS
|
|
138
|
-
|
|
139
|
-
Because of the potential time and difficulty involved in a migration to Carbon v11, we will maintain a maintenance v2 of the component library that is compatible with Carbon v10 for a period of time. It will recieve critical functionality and security updates. The code is found on the [v2 branch](https://github.com/boomerang-io/carbon-addons-boomerang-react/tree/v2) and is published under the `2.x.x` semantic version and `classic` tag.
|
|
140
|
-
|
|
141
|
-
Please view the support table below.
|
|
142
|
-
|
|
143
|
-
## Support Schedule
|
|
144
|
-
|
|
145
|
-
| Release | Status | End-of-life |
|
|
146
|
-
| ------- | --------------- | ----------- |
|
|
147
|
-
| v1 | **End-of-Life** | 2022-03-18 |
|
|
148
|
-
| v2 | **Maintenance** | 2023-04-30 |
|
|
149
|
-
| v3 | **End-of-Life** | 2023-01-16 |
|
|
150
|
-
| v4 | **Current** | TBD |
|
|
151
|
-
|
|
152
|
-
## 📚 Docs
|
|
153
|
-
|
|
154
|
-
You can find more information about how to use each component by checking out our [Storybook](https://carbon-addons-boomerang-react.netlify.app/).
|
|
155
|
-
|
|
156
|
-
## 🤲 Contributing
|
|
157
|
-
|
|
158
|
-
Please check out our [Contribution Guidelines](./.github/CONTRIBUTING.md) for more info on how you can help out!
|
|
159
|
-
|
|
160
|
-
## 🚀 Release History
|
|
161
|
-
|
|
162
|
-
View [all releases](https://github.com/boomerang-io/carbon-addons-boomerang-react/releases)
|
|
1
|
+
# Carbon Addons Boomerang React [](https://app.netlify.com/sites/carbon-addons-boomerang-react/deploys)
|
|
2
|
+
|
|
3
|
+
[Carbon](https://www.carbondesignsystem.com/) addon components for Boomerang written in React. View the [Storybook](https://carbon-addons-boomerang-react.netlify.app/).
|
|
4
|
+
|
|
5
|
+
## Installing
|
|
6
|
+
|
|
7
|
+
Install the the addons package, carbon and all of the required peer-dependencies.
|
|
8
|
+
|
|
9
|
+
Run the following command using [pnpm](https://pnpm.io). Other package managers like `npm` and `yarn` work as well.
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
pnpm install @carbon/react @boomerang-io/carbon-addons-boomerang-react axios@0.27.2 formik react-router-dom@5 yup
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
Upgrading from a previous version? View our [migration guide](/docs/v4-migration.md).
|
|
16
|
+
|
|
17
|
+
## Styles
|
|
18
|
+
|
|
19
|
+
You need to use Sass, as we are built on top of Carbon and import the entry style sheet for the components. We recommend using `sass` or `sass-embedded` to compile styles. Configure as required for the bundler you are using. Tools like Vite and Create React App work without additional configuration needed.
|
|
20
|
+
|
|
21
|
+
```scss
|
|
22
|
+
// app.scss
|
|
23
|
+
@use "@carbon/react";
|
|
24
|
+
@use "@boomerang-io/carbon-addons-boomerang-react/scss/global";
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Import this file in the JavaScript code to ensure that it is included in your bundle.
|
|
28
|
+
|
|
29
|
+
## Carbon themes
|
|
30
|
+
|
|
31
|
+
We recommend using Carbon theme functionality and the associated CSS custom properties in your styles to easily use Carbon theme tokens. See the following example for guidance on a couple common use cases.
|
|
32
|
+
|
|
33
|
+
### Default theme
|
|
34
|
+
|
|
35
|
+
```scss
|
|
36
|
+
// styles.scss
|
|
37
|
+
@use "@carbon/react";
|
|
38
|
+
@use '@carbon/themes';
|
|
39
|
+
@use "@boomerang-io/carbon-addons-boomerang-react/scss/global";
|
|
40
|
+
|
|
41
|
+
// Include theme tokens
|
|
42
|
+
:root {
|
|
43
|
+
@include themes.theme();
|
|
44
|
+
}
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
### Gray 10 theme
|
|
48
|
+
|
|
49
|
+
This is how we import things in our applications. We use a number of Carbon v10 tokens so we use the compatibility g10 theme from Carbon to support both new and old values. We also use Akamai as the host for our fonts instead of self-hosting via the `$use-akamai-cdn: true` argument to the `@carbon/react` import. View the Carbon docs to see all the arguments you can pass to customize how you use Carbon
|
|
50
|
+
|
|
51
|
+
```scss
|
|
52
|
+
@use "@carbon/react" with (
|
|
53
|
+
$use-akamai-cdn: true
|
|
54
|
+
);
|
|
55
|
+
@use "@carbon/themes";
|
|
56
|
+
@use "@carbon/react/scss/compat/themes" as compat;
|
|
57
|
+
@use "@boomerang-io/carbon-addons-boomerang-react/scss/global";
|
|
58
|
+
|
|
59
|
+
:root {
|
|
60
|
+
@include themes.theme(compat.$g10);
|
|
61
|
+
}
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
> Note: The library does not currently support changing the default class prefix from `cds`.
|
|
65
|
+
|
|
66
|
+
## Boomerang theme
|
|
67
|
+
|
|
68
|
+
Do you want to continue using the Boomerang theme? Follow the steps below.
|
|
69
|
+
|
|
70
|
+
## Step 1 - Import styles
|
|
71
|
+
|
|
72
|
+
Import the individual Carbon packages and addons styles as follows:
|
|
73
|
+
|
|
74
|
+
```scss
|
|
75
|
+
// app.scss
|
|
76
|
+
@use "sass:map";
|
|
77
|
+
|
|
78
|
+
// Carbon base styles and utilities
|
|
79
|
+
@use '@carbon/react/scss/config' with ($use-akamai-cdn: true);
|
|
80
|
+
@use '@carbon/react/scss/reset';
|
|
81
|
+
@use '@carbon/react/scss/motion';
|
|
82
|
+
@use '@carbon/react/scss/type';
|
|
83
|
+
|
|
84
|
+
// Themes
|
|
85
|
+
@use "@boomerang-io/carbon-addons-boomerang-react/scss/global/themes/boomerang";
|
|
86
|
+
@use '@carbon/react/scss/compat/themes' as compat;
|
|
87
|
+
@use '@carbon/react/scss/compat/theme' with (
|
|
88
|
+
$theme: map.merge(compat.$white, boomerang.$theme)
|
|
89
|
+
);
|
|
90
|
+
|
|
91
|
+
// More base styles, components, and component tokens
|
|
92
|
+
@use '@carbon/react/scss/fonts';
|
|
93
|
+
@use '@carbon/react/scss/grid';
|
|
94
|
+
@use '@carbon/react/scss/layer';
|
|
95
|
+
@use '@carbon/react/scss/zone';
|
|
96
|
+
@use '@carbon/react/scss/components/button/tokens' as button;
|
|
97
|
+
@use '@carbon/react/scss/components/notification/tokens' as notification;
|
|
98
|
+
@use '@carbon/react/scss/components/tag/tokens' as tag;
|
|
99
|
+
@use '@carbon/react/scss/components';
|
|
100
|
+
|
|
101
|
+
// Addons library with boomerang enabled
|
|
102
|
+
@use '@boomerang-io/carbon-addons-boomerang-react/scss/global' with ($use-theme-boomerang: true);
|
|
103
|
+
|
|
104
|
+
// Finally include the theme to include all of the css custom properties
|
|
105
|
+
[data-carbon-theme="boomerang"] {
|
|
106
|
+
@include theme.add-component-tokens(map.merge(button.$button-tokens, boomerang.$v11-button-tokens));
|
|
107
|
+
@include theme.add-component-tokens(notification.$notification-tokens);
|
|
108
|
+
@include theme.add-component-tokens(tag.$tag-tokens);
|
|
109
|
+
@include theme.theme();
|
|
110
|
+
}
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
## Step 2 - Set HTML property
|
|
114
|
+
|
|
115
|
+
You need to set the `data-carbon-theme="boomerang"` attribute value in your app, at the highest level in the document tree as possible.
|
|
116
|
+
|
|
117
|
+
```html
|
|
118
|
+
<html lang="en" data-carbon-theme="boomerang">
|
|
119
|
+
...
|
|
120
|
+
</html>
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
## Use
|
|
124
|
+
|
|
125
|
+
After you have the styles configured, you can then import components as you'd expect.
|
|
126
|
+
|
|
127
|
+
```js
|
|
128
|
+
import { UIShell } from "@boomerang-io/carbon-addons-boomerang-react";
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
> Note: In v3 of the component library we have removed the re-exporting of all of the Carbon components.
|
|
132
|
+
|
|
133
|
+
### Integrating with UIShell Notifications
|
|
134
|
+
|
|
135
|
+
We use [react-toastify](https://github.com/fkhadra/react-toastify) to create notifications for UIShell events. If you are using the UIShell and want to also use react-toastify in your app for own notifications, you need to configure your `ToastContainer` component to support [multiple containers](https://fkhadra.github.io/react-toastify/multi-containers/#multi-containers-support) via the `enableMultiContainer` prop. It is _NOT_ required to include a `containerId` on your container or with notifications that you create. Without multi-container support enabled, you will see two notifications created for UIShell events.
|
|
136
|
+
|
|
137
|
+
## 🛟 Version 2 LTS
|
|
138
|
+
|
|
139
|
+
Because of the potential time and difficulty involved in a migration to Carbon v11, we will maintain a maintenance v2 of the component library that is compatible with Carbon v10 for a period of time. It will recieve critical functionality and security updates. The code is found on the [v2 branch](https://github.com/boomerang-io/carbon-addons-boomerang-react/tree/v2) and is published under the `2.x.x` semantic version and `classic` tag.
|
|
140
|
+
|
|
141
|
+
Please view the support table below.
|
|
142
|
+
|
|
143
|
+
## Support Schedule
|
|
144
|
+
|
|
145
|
+
| Release | Status | End-of-life |
|
|
146
|
+
| ------- | --------------- | ----------- |
|
|
147
|
+
| v1 | **End-of-Life** | 2022-03-18 |
|
|
148
|
+
| v2 | **Maintenance** | 2023-04-30 |
|
|
149
|
+
| v3 | **End-of-Life** | 2023-01-16 |
|
|
150
|
+
| v4 | **Current** | TBD |
|
|
151
|
+
|
|
152
|
+
## 📚 Docs
|
|
153
|
+
|
|
154
|
+
You can find more information about how to use each component by checking out our [Storybook](https://carbon-addons-boomerang-react.netlify.app/).
|
|
155
|
+
|
|
156
|
+
## 🤲 Contributing
|
|
157
|
+
|
|
158
|
+
Please check out our [Contribution Guidelines](./.github/CONTRIBUTING.md) for more info on how you can help out!
|
|
159
|
+
|
|
160
|
+
## 🚀 Release History
|
|
161
|
+
|
|
162
|
+
View [all releases](https://github.com/boomerang-io/carbon-addons-boomerang-react/releases)
|
|
@@ -16,56 +16,56 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
|
16
16
|
|
|
17
17
|
var React__default = /*#__PURE__*/_interopDefault(React);
|
|
18
18
|
|
|
19
|
-
/*
|
|
20
|
-
IBM Confidential
|
|
21
|
-
694970X, 69497O0
|
|
22
|
-
© Copyright IBM Corp. 2022, 2025
|
|
23
|
-
*/
|
|
24
|
-
function AboutPlatform({ baseServicesUrl, closeModal, isOpen = false, name }) {
|
|
25
|
-
const platformVersioUrl = servicesConfig.serviceUrl.getPlatformVersion({ baseServicesUrl });
|
|
26
|
-
const { data: platformVersionData, isLoading: isPlatformVersionLoading, isError: isPlatformVersionError, } = reactQuery.useQuery({
|
|
27
|
-
queryKey: platformVersioUrl,
|
|
28
|
-
queryFn: servicesConfig.resolver.query(platformVersioUrl, null),
|
|
29
|
-
enabled: isOpen,
|
|
30
|
-
});
|
|
31
|
-
return (React__default.default.createElement(react.ComposedModal, { open: isOpen, className: `${settings.prefix}--bmrg-aboutPlatform-container ${settings.prefix}--bmrg-header-modal ${settings.prefix}--bmrg-aboutPlatform-modalheader`, onClose: closeModal },
|
|
32
|
-
React__default.default.createElement(react.ModalHeader, { className: `${settings.prefix}--bmrg-aboutPlatform-modaltitle`, title: `About ${name}`, closeModal: closeModal }),
|
|
33
|
-
isPlatformVersionLoading ? (React__default.default.createElement(react.ModalBody, { style: { display: "flex", alignItems: "center", justifyContent: "center" } },
|
|
34
|
-
React__default.default.createElement(react.Loading, { withOverlay: false }))) : isPlatformVersionError ? (React__default.default.createElement(react.ModalBody, { style: { display: "flex", alignItems: "center", justifyContent: "center" } },
|
|
35
|
-
React__default.default.createElement(ErrorMessage.default, null))) : platformVersionData ? (React__default.default.createElement(react.ModalBody, null,
|
|
36
|
-
React__default.default.createElement("div", null,
|
|
37
|
-
React__default.default.createElement("div", { className: `${settings.prefix}--bmrg-aboutPlatform-platform-version` },
|
|
38
|
-
React__default.default.createElement("p", { className: `${settings.prefix}--bmrg-aboutPlatform-platform-version-text` }, `Version ${platformVersionData.platformVersion}`),
|
|
39
|
-
platformVersionData.platformVersionError ? (React__default.default.createElement(TooltipHover.default, { direction: "right", tooltipText: `Failed to retrieve the versioning of one or more components. Displaying only the ${name} platform version.` },
|
|
40
|
-
React__default.default.createElement(icons.Information, { size: 16, fill: "currentColor" }))) : null),
|
|
41
|
-
React__default.default.createElement("h5", { className: `${settings.prefix}--bmrg-aboutPlatform-component-header` }, "Components"),
|
|
42
|
-
React__default.default.createElement("ul", null,
|
|
43
|
-
React__default.default.createElement("li", { className: `${settings.prefix}--bmrg-aboutPlatform-li-between` },
|
|
44
|
-
React__default.default.createElement("span", { className: `${settings.prefix}--bmrg-aboutPlatform-li` }, "Advantage Core"),
|
|
45
|
-
React__default.default.createElement("span", { className: `${settings.prefix}--bmrg-aboutPlatform-li-version` }, platformVersionData.version)),
|
|
46
|
-
React__default.default.createElement("li", { className: `${settings.prefix}--bmrg-aboutPlatform-li-between` },
|
|
47
|
-
React__default.default.createElement("span", { className: `${settings.prefix}--bmrg-aboutPlatform-li` }, "Assistants "),
|
|
48
|
-
React__default.default.createElement("span", { className: `${settings.prefix}--bmrg-aboutPlatform-li-version` }, platformVersionData.assistantVersion)),
|
|
49
|
-
React__default.default.createElement("li", { className: `${settings.prefix}--bmrg-aboutPlatform-li-between` },
|
|
50
|
-
React__default.default.createElement("span", { className: `${settings.prefix}--bmrg-aboutPlatform-li` }, "Agents"),
|
|
51
|
-
React__default.default.createElement("span", { className: `${settings.prefix}--bmrg-aboutPlatform-li-version` }, platformVersionData.agentsVersion)),
|
|
52
|
-
React__default.default.createElement("li", { className: `${settings.prefix}--bmrg-aboutPlatform-li-between-last` },
|
|
53
|
-
React__default.default.createElement("span", { className: `${settings.prefix}--bmrg-aboutPlatform-li` }, "Scribeflow"),
|
|
54
|
-
React__default.default.createElement("span", { className: `${settings.prefix}--bmrg-aboutPlatform-li-version` }, platformVersionData.scribeFlowVersion))),
|
|
55
|
-
React__default.default.createElement("h1", { className: `${settings.prefix}--bmrg-aboutPlatform-footer__header` }, "Copyright IBM Corp. 2022, 2025")))) : null));
|
|
56
|
-
}
|
|
57
|
-
function AboutPlatformMenuItem(props) {
|
|
58
|
-
const menuItemRef = React__default.default.useRef(null);
|
|
59
|
-
const [isOpen, setIsOpen] = React__default.default.useState(false);
|
|
60
|
-
const handleClose = () => {
|
|
61
|
-
setIsOpen(false);
|
|
62
|
-
setTimeout(() => {
|
|
63
|
-
menuItemRef.current?.focus();
|
|
64
|
-
}, 0);
|
|
65
|
-
};
|
|
66
|
-
return (React__default.default.createElement(React__default.default.Fragment, null,
|
|
67
|
-
React__default.default.createElement(HeaderMenuItem.default, { icon: React__default.default.createElement(icons.Information, null), onClick: () => setIsOpen(!isOpen), ref: menuItemRef, text: `About ${props.name}`, type: "button" }),
|
|
68
|
-
React__default.default.createElement(AboutPlatform, { isOpen: isOpen, closeModal: handleClose, ...props })));
|
|
19
|
+
/*
|
|
20
|
+
IBM Confidential
|
|
21
|
+
694970X, 69497O0
|
|
22
|
+
© Copyright IBM Corp. 2022, 2025
|
|
23
|
+
*/
|
|
24
|
+
function AboutPlatform({ baseServicesUrl, closeModal, isOpen = false, name }) {
|
|
25
|
+
const platformVersioUrl = servicesConfig.serviceUrl.getPlatformVersion({ baseServicesUrl });
|
|
26
|
+
const { data: platformVersionData, isLoading: isPlatformVersionLoading, isError: isPlatformVersionError, } = reactQuery.useQuery({
|
|
27
|
+
queryKey: platformVersioUrl,
|
|
28
|
+
queryFn: servicesConfig.resolver.query(platformVersioUrl, null),
|
|
29
|
+
enabled: isOpen,
|
|
30
|
+
});
|
|
31
|
+
return (React__default.default.createElement(react.ComposedModal, { open: isOpen, className: `${settings.prefix}--bmrg-aboutPlatform-container ${settings.prefix}--bmrg-header-modal ${settings.prefix}--bmrg-aboutPlatform-modalheader`, onClose: closeModal },
|
|
32
|
+
React__default.default.createElement(react.ModalHeader, { className: `${settings.prefix}--bmrg-aboutPlatform-modaltitle`, title: `About ${name}`, closeModal: closeModal }),
|
|
33
|
+
isPlatformVersionLoading ? (React__default.default.createElement(react.ModalBody, { style: { display: "flex", alignItems: "center", justifyContent: "center" } },
|
|
34
|
+
React__default.default.createElement(react.Loading, { withOverlay: false }))) : isPlatformVersionError ? (React__default.default.createElement(react.ModalBody, { style: { display: "flex", alignItems: "center", justifyContent: "center" } },
|
|
35
|
+
React__default.default.createElement(ErrorMessage.default, null))) : platformVersionData ? (React__default.default.createElement(react.ModalBody, null,
|
|
36
|
+
React__default.default.createElement("div", null,
|
|
37
|
+
React__default.default.createElement("div", { className: `${settings.prefix}--bmrg-aboutPlatform-platform-version` },
|
|
38
|
+
React__default.default.createElement("p", { className: `${settings.prefix}--bmrg-aboutPlatform-platform-version-text` }, `Version ${platformVersionData.platformVersion}`),
|
|
39
|
+
platformVersionData.platformVersionError ? (React__default.default.createElement(TooltipHover.default, { direction: "right", tooltipText: `Failed to retrieve the versioning of one or more components. Displaying only the ${name} platform version.` },
|
|
40
|
+
React__default.default.createElement(icons.Information, { size: 16, fill: "currentColor" }))) : null),
|
|
41
|
+
React__default.default.createElement("h5", { className: `${settings.prefix}--bmrg-aboutPlatform-component-header` }, "Components"),
|
|
42
|
+
React__default.default.createElement("ul", null,
|
|
43
|
+
React__default.default.createElement("li", { className: `${settings.prefix}--bmrg-aboutPlatform-li-between` },
|
|
44
|
+
React__default.default.createElement("span", { className: `${settings.prefix}--bmrg-aboutPlatform-li` }, "Advantage Core"),
|
|
45
|
+
React__default.default.createElement("span", { className: `${settings.prefix}--bmrg-aboutPlatform-li-version` }, platformVersionData.version)),
|
|
46
|
+
React__default.default.createElement("li", { className: `${settings.prefix}--bmrg-aboutPlatform-li-between` },
|
|
47
|
+
React__default.default.createElement("span", { className: `${settings.prefix}--bmrg-aboutPlatform-li` }, "Assistants "),
|
|
48
|
+
React__default.default.createElement("span", { className: `${settings.prefix}--bmrg-aboutPlatform-li-version` }, platformVersionData.assistantVersion)),
|
|
49
|
+
React__default.default.createElement("li", { className: `${settings.prefix}--bmrg-aboutPlatform-li-between` },
|
|
50
|
+
React__default.default.createElement("span", { className: `${settings.prefix}--bmrg-aboutPlatform-li` }, "Agents"),
|
|
51
|
+
React__default.default.createElement("span", { className: `${settings.prefix}--bmrg-aboutPlatform-li-version` }, platformVersionData.agentsVersion)),
|
|
52
|
+
React__default.default.createElement("li", { className: `${settings.prefix}--bmrg-aboutPlatform-li-between-last` },
|
|
53
|
+
React__default.default.createElement("span", { className: `${settings.prefix}--bmrg-aboutPlatform-li` }, "Scribeflow"),
|
|
54
|
+
React__default.default.createElement("span", { className: `${settings.prefix}--bmrg-aboutPlatform-li-version` }, platformVersionData.scribeFlowVersion))),
|
|
55
|
+
React__default.default.createElement("h1", { className: `${settings.prefix}--bmrg-aboutPlatform-footer__header` }, "Copyright IBM Corp. 2022, 2025")))) : null));
|
|
56
|
+
}
|
|
57
|
+
function AboutPlatformMenuItem(props) {
|
|
58
|
+
const menuItemRef = React__default.default.useRef(null);
|
|
59
|
+
const [isOpen, setIsOpen] = React__default.default.useState(false);
|
|
60
|
+
const handleClose = () => {
|
|
61
|
+
setIsOpen(false);
|
|
62
|
+
setTimeout(() => {
|
|
63
|
+
menuItemRef.current?.focus();
|
|
64
|
+
}, 0);
|
|
65
|
+
};
|
|
66
|
+
return (React__default.default.createElement(React__default.default.Fragment, null,
|
|
67
|
+
React__default.default.createElement(HeaderMenuItem.default, { icon: React__default.default.createElement(icons.Information, null), onClick: () => setIsOpen(!isOpen), ref: menuItemRef, text: `About ${props.name}`, type: "button" }),
|
|
68
|
+
React__default.default.createElement(AboutPlatform, { isOpen: isOpen, closeModal: handleClose, ...props })));
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
exports.AboutPlatformMenuItem = AboutPlatformMenuItem;
|