@telia/teddy 0.7.65 → 0.7.66
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.
|
@@ -9,16 +9,22 @@ const components_progressBar_progressBar = require("../progress-bar/progress-bar
|
|
|
9
9
|
const components_shoppingCart_shoppingCartContext = require("./shopping-cart-context.cjs");
|
|
10
10
|
const shoppingCart_module = require("../../shopping-cart.module-C9EOksct.cjs");
|
|
11
11
|
const components_box_box = require("../box/box.cjs");
|
|
12
|
-
const HighlightedLine = ({ icon, heading, price, description }) =>
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
/* @__PURE__ */ jsxRuntime.
|
|
12
|
+
const HighlightedLine = ({ icon, heading, price, description }) => {
|
|
13
|
+
const hasHeading = heading || price;
|
|
14
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: shoppingCart_module.styles.highlightedLine, children: [
|
|
15
|
+
hasHeading && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: shoppingCart_module.styles.highlightedLineTop, children: [
|
|
16
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: shoppingCart_module.styles.highlightedLineLeft, children: [
|
|
17
|
+
icon && /* @__PURE__ */ jsxRuntime.jsx(components_icon_icon.Icon, { name: icon, className: shoppingCart_module.styles.highlightedLineIcon }),
|
|
18
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: shoppingCart_module.styles.highlightedLineHeading, children: heading })
|
|
19
|
+
] }),
|
|
20
|
+
price && /* @__PURE__ */ jsxRuntime.jsx("span", { className: shoppingCart_module.styles.highlightedLinePrice, children: price })
|
|
17
21
|
] }),
|
|
18
|
-
/* @__PURE__ */ jsxRuntime.
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
] })
|
|
22
|
+
description && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: shoppingCart_module.styles.highlightedLineLeft, children: [
|
|
23
|
+
!hasHeading && icon && /* @__PURE__ */ jsxRuntime.jsx(components_icon_icon.Icon, { name: icon, className: shoppingCart_module.styles.highlightedLineIcon }),
|
|
24
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: shoppingCart_module.styles.highlightedLineDescription, children: description })
|
|
25
|
+
] })
|
|
26
|
+
] });
|
|
27
|
+
};
|
|
22
28
|
const MonthlyPriceDetailsDisplay = ({
|
|
23
29
|
monthlyPriceDetails,
|
|
24
30
|
totalPriceMonthly,
|
|
@@ -7,16 +7,22 @@ import { ProgressBar } from "../progress-bar/progress-bar.js";
|
|
|
7
7
|
import { useShoppingCart } from "./shopping-cart-context.js";
|
|
8
8
|
import { s as styles } from "../../shopping-cart.module-ClaAAxQV.js";
|
|
9
9
|
import { Box } from "../box/box.js";
|
|
10
|
-
const HighlightedLine = ({ icon, heading, price, description }) =>
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
/* @__PURE__ */
|
|
10
|
+
const HighlightedLine = ({ icon, heading, price, description }) => {
|
|
11
|
+
const hasHeading = heading || price;
|
|
12
|
+
return /* @__PURE__ */ jsxs("div", { className: styles.highlightedLine, children: [
|
|
13
|
+
hasHeading && /* @__PURE__ */ jsxs("div", { className: styles.highlightedLineTop, children: [
|
|
14
|
+
/* @__PURE__ */ jsxs("div", { className: styles.highlightedLineLeft, children: [
|
|
15
|
+
icon && /* @__PURE__ */ jsx(Icon, { name: icon, className: styles.highlightedLineIcon }),
|
|
16
|
+
/* @__PURE__ */ jsx("span", { className: styles.highlightedLineHeading, children: heading })
|
|
17
|
+
] }),
|
|
18
|
+
price && /* @__PURE__ */ jsx("span", { className: styles.highlightedLinePrice, children: price })
|
|
15
19
|
] }),
|
|
16
|
-
/* @__PURE__ */
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
] })
|
|
20
|
+
description && /* @__PURE__ */ jsxs("div", { className: styles.highlightedLineLeft, children: [
|
|
21
|
+
!hasHeading && icon && /* @__PURE__ */ jsx(Icon, { name: icon, className: styles.highlightedLineIcon }),
|
|
22
|
+
/* @__PURE__ */ jsx("p", { className: styles.highlightedLineDescription, children: description })
|
|
23
|
+
] })
|
|
24
|
+
] });
|
|
25
|
+
};
|
|
20
26
|
const MonthlyPriceDetailsDisplay = ({
|
|
21
27
|
monthlyPriceDetails,
|
|
22
28
|
totalPriceMonthly,
|