@sensiblestats/widget-react 0.48.5 → 0.48.7

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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # @sensiblestats/widget-react
2
2
 
3
+ ## 0.48.7
4
+
5
+ ### Patch Changes
6
+
7
+ - df7d101: Greeting discovery tiles now tint the live panel color instead of hardcoding light pastels, so an operator with a dark custom `surface` (or a dark theme) gets readable tinted-dark cards rather than near-white text on fixed light pastel backgrounds.
8
+
9
+ ## 0.48.6
10
+
11
+ ### Patch Changes
12
+
13
+ - Today tab: mirror the away team around the score — crest on the outer (right) edge, name right-aligned — so each fixture row reads symmetrically like a scoreboard. Applies to both the live band and the competition accordions.
14
+
3
15
  ## 0.48.5
4
16
 
5
17
  ### Patch Changes
package/dist/index.cjs CHANGED
@@ -3736,8 +3736,8 @@ function kickoffLabel(kickoffUnix) {
3736
3736
  const d = new Date(kickoffUnix * 1e3);
3737
3737
  return `${`${d.getHours()}`.padStart(2, "0")}:${`${d.getMinutes()}`.padStart(2, "0")}`;
3738
3738
  }
3739
- function Side({ name, crest }) {
3740
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("span", { className: "ss-w-drow-side", children: [
3739
+ function Side({ name, crest, away = false }) {
3740
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("span", { className: away ? "ss-w-drow-side ss-w-drow-side--away" : "ss-w-drow-side", children: [
3741
3741
  crest ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("img", { className: "ss-w-drow-crest", src: crest, alt: "" }) : null,
3742
3742
  /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("span", { className: "ss-w-drow-nm", children: name })
3743
3743
  ] });
@@ -3752,7 +3752,7 @@ function FixtureRow({ match, state, stale, ui, monitor }) {
3752
3752
  /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("span", { className: "ss-w-drow-fx", children: [
3753
3753
  /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Side, { name: match.homeTeamName, crest: match.homeTeamImagePath }),
3754
3754
  /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("span", { className: hasScore ? "ss-w-drow-sc" : "ss-w-drow-sc ss-w-drow-sc--idle", children: hasScore ? `${state.homeScore}\u2013${state.awayScore}` : "\u2013" }),
3755
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Side, { name: match.awayTeamName, crest: match.awayTeamImagePath })
3755
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Side, { name: match.awayTeamName, crest: match.awayTeamImagePath, away: true })
3756
3756
  ] }),
3757
3757
  /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(PinToggle, { ui, monitor, pin: { kind: "match", matchId: match.matchId } })
3758
3758
  ] });
@@ -4335,10 +4335,13 @@ var WIDGET_CSS = `.ss-w-root { all: revert; }
4335
4335
  .ss-w-dash--discovery .ss-w-dash-tile--full .ss-w-dash-tile-icon { align-self: center; }
4336
4336
  .ss-w-dash--discovery .ss-w-dash-tile-meta { flex-wrap: nowrap; }
4337
4337
  .ss-w-dash--discovery .ss-w-dash-tile-crest { width: 22px; height: 22px; }
4338
- .ss-w-dash--discovery .ss-w-dash-tile:nth-child(1) { background: #eef8f1; }
4339
- .ss-w-dash--discovery .ss-w-dash-tile:nth-child(2) { background: #eef3fb; }
4340
- .ss-w-dash--discovery .ss-w-dash-tile:nth-child(3) { background: #fdf6ec; }
4341
- .ss-w-dash--discovery .ss-w-dash-tile:nth-child(4) { background: #f5eefb; }
4338
+ /* Tints mix a hue into the live panel rather than hardcoding a light pastel, so a dark
4339
+ operator surface (e.g. --ss-w-panel set from a navy \`surface\` brand color) yields a
4340
+ readable tinted-dark card instead of near-white ink on a fixed light pastel. */
4341
+ .ss-w-dash--discovery .ss-w-dash-tile:nth-child(1) { background: color-mix(in srgb, #34c759 10%, var(--ss-w-panel)); }
4342
+ .ss-w-dash--discovery .ss-w-dash-tile:nth-child(2) { background: color-mix(in srgb, #3a82f6 10%, var(--ss-w-panel)); }
4343
+ .ss-w-dash--discovery .ss-w-dash-tile:nth-child(3) { background: color-mix(in srgb, #f5a623 10%, var(--ss-w-panel)); }
4344
+ .ss-w-dash--discovery .ss-w-dash-tile:nth-child(4) { background: color-mix(in srgb, #a855f7 10%, var(--ss-w-panel)); }
4342
4345
 
4343
4346
  /* club fan pre-match dashboard */
4344
4347
  .ss-w-fandash { display: flex; flex-direction: column; gap: 10px; padding: 4px 0; }
@@ -4762,6 +4765,8 @@ var WIDGET_CSS = `.ss-w-root { all: revert; }
4762
4765
  which is the u350 betting-card truncation one layer down. */
4763
4766
  .ss-w-drow-fx { display: flex; align-items: center; gap: 6px; min-width: 0; }
4764
4767
  .ss-w-drow-side { display: flex; align-items: center; gap: 5px; min-width: 0; flex: 1 1 0; }
4768
+ /* Away side mirrors home around the score: crest to the far edge, name aligned inward. */
4769
+ .ss-w-drow-side--away { flex-direction: row-reverse; text-align: right; }
4765
4770
  .ss-w-drow-nm { font-size: 12.5px; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
4766
4771
  /* Centre slot of .ss-w-drow-fx, between the two sides: flex:none so a widening score never
4767
4772
  steals width the team names need to avoid ellipsis. min-width holds the slot at the width of a