@sensiblestats/widget-react 0.33.1 → 0.33.3
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 +12 -0
- package/dist/index.cjs +3 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -5
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @sensiblestats/widget-react
|
|
2
2
|
|
|
3
|
+
## 0.33.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Club match-preview tap: render the voiced lead at regular weight (not semibold) via a greetingIsLead flag, so it reads as a sentence rather than a heading.
|
|
8
|
+
|
|
9
|
+
## 0.33.2
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 2d55861: Betting cards: drop the league name from the header when a team pair fills it. The demoted competition now shows as its crest only, with the name kept in the meta title tooltip so it stays discoverable. Frees space in the tight header; the competition-as-hero case (no team pair) still shows the name.
|
|
14
|
+
|
|
3
15
|
## 0.33.1
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/index.cjs
CHANGED
|
@@ -1603,10 +1603,7 @@ function InsightCard({ it, ui, slip, monitor }) {
|
|
|
1603
1603
|
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: "ss-w-bi-live-dot", "aria-hidden": "true" }),
|
|
1604
1604
|
ui?.liveLabel ?? "Live"
|
|
1605
1605
|
] }) : null,
|
|
1606
|
-
compInMeta ? /* @__PURE__ */ (0, import_jsx_runtime12.
|
|
1607
|
-
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Crest2, { kind: "comp", url: it.competitionCrest, name: it.competition }),
|
|
1608
|
-
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: "ss-w-bi-comp", children: it.competition })
|
|
1609
|
-
] }) : null,
|
|
1606
|
+
compInMeta ? /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: "ss-w-bi-comp-meta", title: it.competition, children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Crest2, { kind: "comp", url: it.competitionCrest, name: it.competition }) }) : null,
|
|
1610
1607
|
kickoff ? /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("span", { className: "ss-w-bi-kick", children: [
|
|
1611
1608
|
kickoff.dayLabel,
|
|
1612
1609
|
" ",
|
|
@@ -2623,7 +2620,7 @@ function ClubFanDashboard({ dashboard, onTap, ui }) {
|
|
|
2623
2620
|
);
|
|
2624
2621
|
const goalEvents = timelineCard?.data.events.filter((e) => e.type === "goal");
|
|
2625
2622
|
return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: "ss-w-fandash", children: [
|
|
2626
|
-
dashboard.greeting ? /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("span", { className: "ss-w-fandash-greeting", children: dashboard.greeting }) : null,
|
|
2623
|
+
dashboard.greeting ? /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("span", { className: dashboard.greetingIsLead ? "ss-w-fandash-greeting ss-w-fandash-greeting--lead" : "ss-w-fandash-greeting", children: dashboard.greeting }) : null,
|
|
2627
2624
|
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "ss-w-fandash-cards", children: orderedCards.map((card, i) => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(FanDashboardCard, { card, onTap, ui, goalEvents }, `${card.cardType}-${i}`)) })
|
|
2628
2625
|
] });
|
|
2629
2626
|
}
|
|
@@ -3459,6 +3456,7 @@ var WIDGET_CSS = `.ss-w-root { all: revert; }
|
|
|
3459
3456
|
/* club fan pre-match dashboard */
|
|
3460
3457
|
.ss-w-fandash { display: flex; flex-direction: column; gap: 10px; padding: 4px 0; }
|
|
3461
3458
|
.ss-w-fandash-greeting { font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--ss-w-ink); }
|
|
3459
|
+
.ss-w-fandash-greeting--lead { font-weight: 400; }
|
|
3462
3460
|
.ss-w-fandash-cards { display: flex; flex-direction: column; gap: 8px; }
|
|
3463
3461
|
|
|
3464
3462
|
/* Shared card chrome -- a plain <div> for [data] cards, a <button> for [prefill] cards. Both
|