@sensiblestats/widget-react 0.48.7 → 0.48.8
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 +6 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6 -4
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @sensiblestats/widget-react
|
|
2
2
|
|
|
3
|
+
## 0.48.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 324f7eb: Injuries card: order columns by home/away (home left, away right).
|
|
8
|
+
- Updated dependencies [324f7eb]
|
|
9
|
+
- @sensiblestats/widget-sdk@0.35.2
|
|
10
|
+
|
|
3
11
|
## 0.48.7
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
package/dist/index.cjs
CHANGED
|
@@ -2687,17 +2687,19 @@ function InjuriesCard({ card, ui }) {
|
|
|
2687
2687
|
const limit = expanded ? void 0 : SHOWN;
|
|
2688
2688
|
const showMore = ui?.showMore ?? ((n) => `Show ${n} more`);
|
|
2689
2689
|
const showLess = ui?.showLess ?? "Show less";
|
|
2690
|
+
const homeCol = data.oursIsHome ? { name: data.oursName, crest: data.oursCrestUrl, rows: data.ours } : { name: data.theirsName, crest: data.theirsCrestUrl, rows: data.theirs };
|
|
2691
|
+
const awayCol = data.oursIsHome ? { name: data.theirsName, crest: data.theirsCrestUrl, rows: data.theirs } : { name: data.oursName, crest: data.oursCrestUrl, rows: data.ours };
|
|
2690
2692
|
return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "ss-w-fandash-card ss-w-fandash-injuries", children: [
|
|
2691
2693
|
card.title ? /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: "ss-w-fandash-eyebrow", children: card.title }) : null,
|
|
2692
2694
|
/* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "ss-w-fandash-injuries-cols", children: [
|
|
2693
2695
|
/* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "ss-w-fandash-injuries-col", children: [
|
|
2694
|
-
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(ColHead, { name:
|
|
2695
|
-
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(InjuryList, { rows:
|
|
2696
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(ColHead, { name: homeCol.name, crestUrl: homeCol.crest }),
|
|
2697
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(InjuryList, { rows: homeCol.rows, emptyLabel: data.emptyLabel, limit })
|
|
2696
2698
|
] }),
|
|
2697
2699
|
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: "ss-w-fandash-injuries-divider" }),
|
|
2698
2700
|
/* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "ss-w-fandash-injuries-col", children: [
|
|
2699
|
-
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(ColHead, { name:
|
|
2700
|
-
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(InjuryList, { rows:
|
|
2701
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(ColHead, { name: awayCol.name, crestUrl: awayCol.crest }),
|
|
2702
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(InjuryList, { rows: awayCol.rows, emptyLabel: data.emptyLabel, limit })
|
|
2701
2703
|
] })
|
|
2702
2704
|
] }),
|
|
2703
2705
|
hidden > 0 ? /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|