@sensiblestats/widget-react 0.86.1 → 0.88.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
@@ -1108,6 +1108,41 @@
1108
1108
  .ss-w-mon-scorers-home { text-align: right; }
1109
1109
  .ss-w-mon-scorers-away { text-align: left; }
1110
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
+
1111
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); }
1112
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); }
1113
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.1",
3
+ "version": "0.88.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.58.0",
41
41
  "react-markdown": "^9.0.1",
42
42
  "remark-gfm": "^4.0.0"
43
43
  },