@sensiblestats/widget-react 0.29.1 → 0.29.2
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/CHANGELOG.md +8 -0
- package/dist/index.cjs +9 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +9 -5
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1690,11 +1690,15 @@ import { jsx as jsx27, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
|
1690
1690
|
function PostMatchStatsCard({ card, onTap }) {
|
|
1691
1691
|
return /* @__PURE__ */ jsxs23("button", { type: "button", className: "ss-w-fandash-card ss-w-fandash-card--tap ss-w-fandash-postmatch-stats", onClick: () => onTap(card), children: [
|
|
1692
1692
|
card.title ? /* @__PURE__ */ jsx27("span", { className: "ss-w-fandash-eyebrow", children: card.title }) : null,
|
|
1693
|
-
/* @__PURE__ */ jsx27("div", { className: "ss-w-fandash-postmatch-stat-rows", children: card.data.rows.map((r, i) =>
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
/* @__PURE__ */
|
|
1697
|
-
|
|
1693
|
+
/* @__PURE__ */ jsx27("div", { className: "ss-w-fandash-postmatch-stat-rows", children: card.data.rows.map((r, i) => {
|
|
1694
|
+
const leftValue = card.data.clubIsHome ? r.clubValue : r.oppValue;
|
|
1695
|
+
const rightValue = card.data.clubIsHome ? r.oppValue : r.clubValue;
|
|
1696
|
+
return /* @__PURE__ */ jsxs23("div", { className: "ss-w-fandash-postmatch-stat-row", children: [
|
|
1697
|
+
/* @__PURE__ */ jsx27("span", { className: "ss-w-fandash-postmatch-stat-value", children: leftValue }),
|
|
1698
|
+
/* @__PURE__ */ jsx27("span", { className: "ss-w-fandash-postmatch-stat-label", children: r.label }),
|
|
1699
|
+
/* @__PURE__ */ jsx27("span", { className: "ss-w-fandash-postmatch-stat-value", children: rightValue })
|
|
1700
|
+
] }, `${r.label}-${i}`);
|
|
1701
|
+
}) }),
|
|
1698
1702
|
/* @__PURE__ */ jsx27("span", { className: "ss-w-fandash-card-cta", children: card.actionLabel })
|
|
1699
1703
|
] });
|
|
1700
1704
|
}
|