@sensiblestats/widget-react 0.40.0 → 0.42.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
@@ -185,10 +185,18 @@
185
185
  .ss-w-binsights { display: flex; flex-direction: column; gap: 7px; }
186
186
  .ss-w-binsight { background: var(--ss-w-panel); border: 1px solid var(--ss-w-line); border-radius: 12px; border-left: 3px solid var(--ss-w-accent); padding: 9px 11px; display: flex; flex-direction: column; gap: 8px; }
187
187
 
188
- /* row 1: competition logo + name on the left, live badge + kickoff on the right */
188
+ /* header, competition-hero fallback: comp on the left, live badge + kickoff + pin on the right,
189
+ all on one line (used when there is no fixture, and by MarketOddsCardList) */
189
190
  .ss-w-bi-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; padding-bottom: 7px; border-bottom: 1px solid var(--ss-w-line); }
190
191
  .ss-w-bi-header-left { display: inline-flex; align-items: center; gap: 6px; min-width: 0; flex: 1; font-size: 12.5px; font-weight: 650; color: var(--ss-w-ink); }
191
192
  .ss-w-bi-header-right { display: inline-flex; align-items: center; gap: 8px; flex: none; }
193
+ /* two-tier header: a quiet meta line (competition + kickoff + match pin) stacked above the
194
+ fixture, so long club names get the whole width to themselves and stop truncating (u350) */
195
+ .ss-w-bi-head { display: flex; flex-direction: column; gap: 6px; padding-bottom: 7px; border-bottom: 1px solid var(--ss-w-line); }
196
+ .ss-w-bi-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
197
+ .ss-w-bi-meta-left { display: inline-flex; align-items: center; gap: 5px; min-width: 0; flex: 1; }
198
+ .ss-w-bi-meta-right { display: inline-flex; align-items: center; gap: 8px; flex: none; }
199
+ .ss-w-bi-fixture-line { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 13px; font-weight: 700; color: var(--ss-w-ink); }
192
200
  .ss-w-bi-comp { font-size: 10.5px; color: var(--ss-w-faint); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
193
201
  .ss-w-bi-kick { font-size: 10.5px; font-weight: 600; color: var(--ss-w-faint); white-space: nowrap; flex: none; }
194
202
  .ss-w-bi-live { font-size: 8.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: #c0392b; border-radius: 4px; padding: 1px 5px; display: inline-flex; align-items: center; gap: 4px; flex: none; }
@@ -200,24 +208,24 @@
200
208
  .ss-w-bi-crest { width: 24px; height: 24px; flex: none; display: block; border-radius: 50%; object-fit: contain; }
201
209
  .ss-w-bi-crest-mono { display: grid; place-items: center; font-size: 10px; font-weight: 700; color: var(--ss-w-accent); background: color-mix(in srgb, var(--ss-w-accent) 16%, var(--ss-w-panel)); }
202
210
 
203
- /* header fixture atoms (team hero lives in .ss-w-bi-header-left; comp demotes to the meta) */
211
+ /* fixture atoms -- crest-flanked team pair; shared by the insight fixture line and MarketOddsCardList */
204
212
  .ss-w-bi-team { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
205
213
  .ss-w-bi-vs { font-size: 10px; font-weight: 600; color: var(--ss-w-faint); flex: none; }
206
214
  .ss-w-bi-fixture-txt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
207
- .ss-w-bi-comp-meta { display: inline-flex; align-items: center; gap: 5px; flex: none; min-width: 0; }
208
- /* shared crest-flanked team row, still consumed by MarketOddsCardList */
209
- .ss-w-bi-fixture { display: flex; align-items: center; gap: 6px; min-width: 0; flex: 1; font-size: 12px; font-weight: 650; color: var(--ss-w-ink); }
210
-
211
- /* row 2: one action line -- market · selection (left, market ellipsises first), odds, slip button */
212
- .ss-w-bi-action-row { display: flex; align-items: center; gap: 9px; }
213
- .ss-w-bi-pick { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 6px; }
214
- .ss-w-bi-market { font-size: 12px; font-weight: 600; line-height: 1.2; color: var(--ss-w-faint); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
215
- .ss-w-bi-pick-dot { flex: none; color: var(--ss-w-faint); font-weight: 700; }
216
- .ss-w-bi-sel { flex: none; font-size: 12.5px; font-weight: 700; line-height: 1.2; color: var(--ss-w-ink); white-space: nowrap; }
217
- .ss-w-bi-odds { flex: none; display: flex; align-items: baseline; justify-content: flex-end; gap: 5px; }
215
+ /* shared crest-flanked team row (MarketOddsCardList); matches .ss-w-bi-fixture-line's hero weight
216
+ so the fixture reads the same on both card types (u350) */
217
+ .ss-w-bi-fixture { display: flex; align-items: center; gap: 6px; min-width: 0; flex: 1; font-size: 13px; font-weight: 700; color: var(--ss-w-ink); }
218
+
219
+ /* row 2, two-tier: the market label owns a full-width line above the pick row (selection grows
220
+ left, odds + slip + pin sit right), so neither the market name nor the fixture clips (u350) */
221
+ .ss-w-bi-action { display: flex; flex-direction: column; gap: 6px; }
222
+ .ss-w-bi-market { font-size: 12px; font-weight: 600; line-height: 1.25; color: var(--ss-w-faint); min-width: 0; }
223
+ .ss-w-bi-pick-row { display: flex; align-items: center; gap: 9px; }
224
+ .ss-w-bi-sel { flex: 1; min-width: 0; font-size: 13px; font-weight: 700; line-height: 1.2; color: var(--ss-w-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
225
+ .ss-w-bi-odds { flex: none; margin-left: auto; display: flex; align-items: baseline; justify-content: flex-end; gap: 5px; }
218
226
  .ss-w-bi-odds b { font-size: 20px; font-family: ui-monospace, monospace; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ss-w-accent); line-height: 1.05; }
219
227
  .ss-w-bi-book { font-size: 9.5px; color: var(--ss-w-faint); }
220
- .ss-w-bi-action-row .ss-w-slip { flex: none; }
228
+ .ss-w-bi-pick-row .ss-w-slip { flex: none; }
221
229
 
222
230
  /* row 3: bar-chart glyph + reasoning prose + stats-expander chevron, in a subtle strip */
223
231
  .ss-w-bi-reason { display: flex; align-items: flex-start; gap: 8px; background: var(--ss-w-bubble); border-radius: 10px; padding: 8px 10px; }
@@ -254,7 +262,8 @@
254
262
  .ss-w-mocard--bare { border: none; border-radius: 0; padding: 0; background: none; }
255
263
  .ss-w-mo-sub { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
256
264
  .ss-w-mo-teams { font-size: 13px; font-weight: 650; color: var(--ss-w-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
257
- .ss-w-mo-market { font-size: 11.5px; font-weight: 600; color: var(--ss-w-faint); }
265
+ .ss-w-mo-market-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
266
+ .ss-w-mo-market { font-size: 11.5px; font-weight: 600; color: var(--ss-w-faint); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
258
267
  .ss-w-mo-more { align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; background: none; border: none; color: var(--ss-w-accent); font: inherit; font-size: 11.5px; font-weight: 600; padding: 2px 0; cursor: pointer; }
259
268
  .ss-w-mo-more:hover { text-decoration: underline; }
260
269
  .ss-w-mo-more-chev { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .15s ease; }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sensiblestats/widget-react",
3
- "version": "0.40.0",
3
+ "version": "0.42.0",
4
4
  "description": "Embeddable SensibleStats chat widget for React.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",