@openshift-migration-advisor/shared-components 0.28.0-a68bc28c8af9 → 0.28.0-cc35dd2cf135
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OsUpgradeRecommendationPopover.d.ts","sourceRoot":"","sources":["../../src/report/OsUpgradeRecommendationPopover.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"OsUpgradeRecommendationPopover.d.ts","sourceRoot":"","sources":["../../src/report/OsUpgradeRecommendationPopover.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAQhC,UAAU,mCAAmC;IAC3C,qBAAqB,EAAE,MAAM,CAAC;CAC/B;AAED,eAAO,MAAM,8BAA8B,EAAE,EAAE,CAC7C,mCAAmC,CAgBpC,CAAC;AAIF,UAAU,eAAe;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,eAAe,CAyB1C,CAAC"}
|
|
@@ -3,17 +3,11 @@ import { css } from "@emotion/css";
|
|
|
3
3
|
import { Button, Flex, FlexItem, Popover } from "@patternfly/react-core";
|
|
4
4
|
import { InfoCircleIcon } from "@patternfly/react-icons";
|
|
5
5
|
import { chartExportHideProps } from "./chartExport.js";
|
|
6
|
-
const upgradeRecommendationPopoverCloseButton = css `
|
|
7
|
-
.pf-v6-c-popover__close .pf-v6-c-button.pf-m-plain,
|
|
8
|
-
.pf-v6-c-popover__close .pf-v6-c-button.pf-m-plain:hover {
|
|
9
|
-
color: var(--pf-t--global--text--color--regular);
|
|
10
|
-
}
|
|
11
|
-
`;
|
|
12
6
|
const infoButtonStyle = css `
|
|
13
7
|
padding: 0;
|
|
14
8
|
vertical-align: middle;
|
|
15
9
|
`;
|
|
16
|
-
export const OsUpgradeRecommendationPopover = ({ upgradeRecommendation }) => (_jsx(Popover, {
|
|
10
|
+
export const OsUpgradeRecommendationPopover = ({ upgradeRecommendation }) => (_jsx(Popover, { position: "bottom", headerContent: "Upgrade to get support", bodyContent: _jsx("div", { children: upgradeRecommendation }), children: _jsx(Button, { type: "button", "aria-label": "Open operating system upgrade information", variant: "plain", className: infoButtonStyle, children: _jsx(InfoCircleIcon, { color: "var(--pf-t--global--icon--color--status--info--default)" }) }) }));
|
|
17
11
|
OsUpgradeRecommendationPopover.displayName = "OsUpgradeRecommendationPopover";
|
|
18
12
|
export const OsNameCell = ({ osName, upgradeRecommendation, }) => {
|
|
19
13
|
const hasUpgradeRecommendation = upgradeRecommendation && upgradeRecommendation.trim() !== "";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openshift-migration-advisor/shared-components",
|
|
3
|
-
"version": "0.28.0-
|
|
3
|
+
"version": "0.28.0-cc35dd2cf135",
|
|
4
4
|
"description": "Shared React UI components for Migration Advisor apps (report charts, forms, OS support tiers)",
|
|
5
5
|
"author": "Montse Ortega <mortegag@redhat.com>",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -4,13 +4,6 @@ import { InfoCircleIcon } from "@patternfly/react-icons";
|
|
|
4
4
|
import type { FC } from "react";
|
|
5
5
|
import { chartExportHideProps } from "./chartExport.js";
|
|
6
6
|
|
|
7
|
-
const upgradeRecommendationPopoverCloseButton = css`
|
|
8
|
-
.pf-v6-c-popover__close .pf-v6-c-button.pf-m-plain,
|
|
9
|
-
.pf-v6-c-popover__close .pf-v6-c-button.pf-m-plain:hover {
|
|
10
|
-
color: var(--pf-t--global--text--color--regular);
|
|
11
|
-
}
|
|
12
|
-
`;
|
|
13
|
-
|
|
14
7
|
const infoButtonStyle = css`
|
|
15
8
|
padding: 0;
|
|
16
9
|
vertical-align: middle;
|
|
@@ -24,7 +17,6 @@ export const OsUpgradeRecommendationPopover: FC<
|
|
|
24
17
|
OsUpgradeRecommendationPopoverProps
|
|
25
18
|
> = ({ upgradeRecommendation }) => (
|
|
26
19
|
<Popover
|
|
27
|
-
className={upgradeRecommendationPopoverCloseButton}
|
|
28
20
|
position="bottom"
|
|
29
21
|
headerContent="Upgrade to get support"
|
|
30
22
|
bodyContent={<div>{upgradeRecommendation}</div>}
|