@sensiblestats/widget-react 0.86.0 → 0.87.0

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/dist/styles.css CHANGED
@@ -1003,8 +1003,13 @@
1003
1003
  .ss-w-fandash-live-team-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 700; line-height: 1.15; color: var(--ss-w-ink); }
1004
1004
  .ss-w-fandash-live-score-main { display: flex; align-items: baseline; justify-content: center; font-size: 36px; font-weight: 850; font-variant-numeric: tabular-nums; line-height: 1; white-space: nowrap; color: var(--ss-w-ink); }
1005
1005
  .ss-w-fandash-live-score-sep { color: var(--ss-w-faint); font-weight: 500; margin: 0 5px; }
1006
- .ss-w-fandash-live-scorers { margin-top: 12px; display: flex; justify-content: flex-end; gap: 7px; align-items: center; font-size: 12.5px; color: var(--ss-w-faint); overflow-wrap: anywhere; }
1007
- .ss-w-fandash-live-scorers-icon { flex: none; color: var(--ss-w-away); }
1006
+ .ss-w-fandash-live-scorers-row { margin-top: 12px; display: flex; justify-content: space-between; gap: 10px; }
1007
+ .ss-w-fandash-live-scorers { display: flex; align-items: center; gap: 7px; min-width: 0; font-size: 12.5px; color: var(--ss-w-faint); overflow-wrap: anywhere; }
1008
+ .ss-w-fandash-live-scorers--home { justify-content: flex-start; }
1009
+ .ss-w-fandash-live-scorers--away { justify-content: flex-end; }
1010
+ .ss-w-fandash-live-scorers--home .ss-w-fandash-live-scorers-icon { color: var(--ss-w-home); }
1011
+ .ss-w-fandash-live-scorers--away .ss-w-fandash-live-scorers-icon { color: var(--ss-w-away); }
1012
+ .ss-w-fandash-live-scorers-icon { flex: none; }
1008
1013
 
1009
1014
  /* live timeline: a compact two-sided event list down a centre spine -- each club's events sit on
1010
1015
  its own side (home left, away right), most-recent 3 shown with a "See more" toggle for the
@@ -1103,6 +1108,41 @@
1103
1108
  .ss-w-mon-scorers-home { text-align: right; }
1104
1109
  .ss-w-mon-scorers-away { text-align: left; }
1105
1110
  .ss-w-mon-scorers-ball { flex: none; align-self: start; line-height: 1.35; }
1111
+
1112
+ /* Pinned pre-match form + head-to-head (MonitorFormH2H): collapsed by default, a real <button>
1113
+ header toggles it. W/D/L dots and the H2H bar/legend keep fixed, theme-independent colors
1114
+ (same convention as the dashboard tile accents above) since they're self-contained badges
1115
+ carrying their own ink color, not page-background-dependent text. */
1116
+ .ss-w-h2h { border-left: 3px solid #16A34A; padding-left: 12px; }
1117
+ .ss-w-h2h-head { display: flex; align-items: center; justify-content: space-between; width: 100%; background: none; border: none; cursor: pointer; text-align: left; font: inherit; color: inherit; padding: 0; }
1118
+ .ss-w-h2h-head-l { display: flex; align-items: center; gap: 6px; }
1119
+ .ss-w-h2h-dot { width: 4px; height: 4px; border-radius: 999px; background: var(--ss-w-faint); flex: none; }
1120
+ .ss-w-h2h-title { font-size: 13px; font-weight: 700; color: var(--ss-w-ink); }
1121
+ .ss-w-h2h-chevron { flex: none; color: var(--ss-w-faint); transition: transform .15s ease; }
1122
+ .ss-w-h2h-chevron--open { transform: rotate(180deg); }
1123
+ .ss-w-h2h-body { padding-top: 12px; display: flex; flex-direction: column; gap: 12px; }
1124
+ .ss-w-h2h-forms { display: flex; align-items: flex-start; justify-content: space-between; }
1125
+ .ss-w-h2h-form-col { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
1126
+ .ss-w-h2h-form-col--away { align-items: flex-end; }
1127
+ .ss-w-h2h-form-team { font-size: 11px; color: var(--ss-w-faint); }
1128
+ .ss-w-h2h-dots { display: flex; gap: 4px; }
1129
+ .ss-w-h2h-result { width: 20px; height: 20px; border-radius: 999px; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex: none; }
1130
+ .ss-w-h2h-result--win { background: #16A34A; color: #FFFFFF; }
1131
+ .ss-w-h2h-result--draw { background: #E5E7EB; color: #4B5563; }
1132
+ .ss-w-h2h-result--loss { background: #F5A623; color: #1F2937; }
1133
+ .ss-w-h2h-record { display: flex; flex-direction: column; gap: 6px; }
1134
+ .ss-w-h2h-meta { font-size: 11px; color: var(--ss-w-faint); }
1135
+ .ss-w-h2h-bar { display: flex; width: 100%; height: 8px; border-radius: 999px; overflow: hidden; }
1136
+ .ss-w-h2h-bar-seg--win { background: #16A34A; }
1137
+ .ss-w-h2h-bar-seg--draw { background: #D1D5DB; }
1138
+ .ss-w-h2h-bar-seg--loss { background: #2563EB; }
1139
+ .ss-w-h2h-legend { display: flex; align-items: center; justify-content: space-between; margin-top: 2px; }
1140
+ .ss-w-h2h-legend-item { font-size: 11px; color: var(--ss-w-ink); display: flex; align-items: center; gap: 5px; }
1141
+ .ss-w-h2h-legend-dot { width: 7px; height: 7px; border-radius: 999px; display: inline-block; flex: none; }
1142
+ .ss-w-h2h-legend-dot--win { background: #16A34A; }
1143
+ .ss-w-h2h-legend-dot--draw { background: #D1D5DB; }
1144
+ .ss-w-h2h-legend-dot--loss { background: #2563EB; }
1145
+
1106
1146
  .ss-w-fact { display: flex; flex-direction: column; gap: 7px; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--ss-w-accent) 9%, transparent); border: 1px solid color-mix(in srgb, var(--ss-w-accent) 22%, transparent); }
1107
1147
  .ss-w-fact-k { display: flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--ss-w-accent); }
1108
1148
  .ss-w-fact-min { color: var(--ss-w-ink); letter-spacing: 0; }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sensiblestats/widget-react",
3
- "version": "0.86.0",
3
+ "version": "0.87.0",
4
4
  "description": "Embeddable SensibleStats chat widget for React.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -37,7 +37,7 @@
37
37
  "prepublishOnly": "yarn build"
38
38
  },
39
39
  "dependencies": {
40
- "@sensiblestats/widget-sdk": "^0.56.0",
40
+ "@sensiblestats/widget-sdk": "^0.57.0",
41
41
  "react-markdown": "^9.0.1",
42
42
  "remark-gfm": "^4.0.0"
43
43
  },