@sensiblestats/widget-react 0.37.0 → 0.37.2

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
@@ -243,6 +243,9 @@
243
243
  /* market odds card */
244
244
  .ss-w-mocards { display: flex; flex-direction: column; gap: 7px; }
245
245
  .ss-w-mocard { 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: 6px; }
246
+ /* Embedded inside the market accordion, which already provides the card frame + accent rail --
247
+ drop the inner frame so odds rows aren't double-bordered. */
248
+ .ss-w-mocard--bare { border: none; border-radius: 0; padding: 0; background: none; }
246
249
  .ss-w-mo-sub { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
247
250
  .ss-w-mo-teams { font-size: 13px; font-weight: 650; color: var(--ss-w-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
248
251
  .ss-w-mo-market { font-size: 11.5px; font-weight: 600; color: var(--ss-w-faint); }
@@ -253,7 +256,7 @@
253
256
  .ss-w-mo-rows { display: flex; flex-direction: column; gap: 4px; }
254
257
  .ss-w-mo-row { display: flex; align-items: center; gap: 10px; padding: 4px 0; border-bottom: 1px dashed var(--ss-w-line); }
255
258
  .ss-w-mo-row:last-child { border-bottom: none; }
256
- .ss-w-mo-sel { font-size: 12.5px; font-weight: 600; color: var(--ss-w-ink); }
259
+ .ss-w-mo-sel { font-size: 12.5px; font-weight: 600; color: var(--ss-w-ink); flex: 1; min-width: 0; }
257
260
  .ss-w-mo-price { margin-left: auto; font-family: ui-monospace, monospace; font-variant-numeric: tabular-nums; font-size: 14px; font-weight: 700; color: var(--ss-w-accent); }
258
261
  /* Movement: BOTH directions share --ss-w-faint on purpose. Green-good/red-bad would frame a
259
262
  shortening price as a discount, which inverts what it actually means for the bettor. */
@@ -264,7 +267,7 @@
264
267
  a flex row, and must NOT follow the badge into the insight card's odds column. */
265
268
  .ss-w-mo-row .ss-w-move { margin-left: auto; }
266
269
  .ss-w-mo-row .ss-w-move + .ss-w-mo-price { margin-left: 0; }
267
- .ss-w-mo-row .ss-w-slip { margin: 0; }
270
+ .ss-w-mo-row .ss-w-slip { margin: 0; flex: none; }
268
271
  .ss-w-mo-foot { display: flex; align-items: center; gap: 8px; font-size: 10.5px; color: var(--ss-w-faint); }
269
272
 
270
273
  /* odds movement card */
@@ -316,7 +319,7 @@
316
319
 
317
320
  /* add to slip */
318
321
  .ss-w-slip { position: relative; display: flex; }
319
- .ss-w-slip-btn { font-size: 11.5px; font-weight: 620; color: var(--ss-w-cta-ink); background: var(--ss-w-cta); border: 1px solid var(--ss-w-cta); border-radius: 14px; padding: 5px 12px; cursor: pointer; }
322
+ .ss-w-slip-btn { font-size: 11.5px; font-weight: 620; color: var(--ss-w-cta-ink); background: var(--ss-w-cta); border: 1px solid var(--ss-w-cta); border-radius: 14px; padding: 5px 12px; cursor: pointer; white-space: nowrap; }
320
323
  .ss-w-slip-btn:disabled { opacity: .6; cursor: default; background: var(--ss-w-bubble); color: var(--ss-w-faint); border-color: var(--ss-w-line); }
321
324
  /* Anchored to the RIGHT of its (narrow) button wrapper and sized by content, growing leftward
322
325
  into the card -- inheriting the wrapper's width squeezes the text to one character per line.
@@ -781,13 +784,17 @@
781
784
 
782
785
  /* market accordion (Task 9): one collapsed row per available market, expanding into a reused
783
786
  MarketOddsCardList ladder (hideHeader -- the row header already carries the market label). */
787
+ /* Pinned-match tile: the match card + its odds accordion, spaced apart. */
788
+ .ss-w-mon-item { display: flex; flex-direction: column; gap: 10px; }
784
789
  .ss-w-acc { display: flex; flex-direction: column; gap: 6px; }
785
790
  .ss-w-acc-row { background: var(--ss-w-panel); border: 1px solid var(--ss-w-line); border-radius: 12px; border-left: 3px solid var(--ss-w-accent); overflow: hidden; }
786
- .ss-w-acc-head { display: flex; align-items: center; gap: 8px; width: 100%; padding: 9px 11px; background: none; border: none; cursor: pointer; text-align: left; font: inherit; color: var(--ss-w-ink); }
787
- .ss-w-acc-chevron { color: var(--ss-w-faint); font-size: 11px; }
788
- .ss-w-acc-label { font-size: 12.5px; font-weight: 600; }
789
- .ss-w-acc-badge { font-size: 10.5px; font-weight: 700; color: var(--ss-w-accent); }
790
- .ss-w-acc-susp { margin-left: auto; font-size: 10.5px; color: var(--ss-w-faint); }
791
+ /* Row header: expand toggle (flex:1) + the market PinToggle as a sibling (no nested buttons). */
792
+ .ss-w-acc-head { display: flex; align-items: center; gap: 8px; padding: 6px 9px 6px 11px; }
793
+ .ss-w-acc-toggle { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; background: none; border: none; cursor: pointer; text-align: left; font: inherit; color: var(--ss-w-ink); padding: 5px 0; }
794
+ .ss-w-acc-chevron { color: var(--ss-w-faint); font-size: 11px; flex: none; }
795
+ .ss-w-acc-label { font-size: 12.5px; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
796
+ .ss-w-acc-badge { font-size: 10.5px; font-weight: 700; color: var(--ss-w-accent); flex: none; }
797
+ .ss-w-acc-susp { margin-left: auto; font-size: 10.5px; color: var(--ss-w-faint); flex: none; }
791
798
  .ss-w-acc-panel { padding: 0 11px 10px; display: flex; flex-direction: column; gap: 8px; }
792
799
  .ss-w-acc-insight { font-size: 12px; color: var(--ss-w-ink); background: color-mix(in srgb, var(--ss-w-accent) 9%, var(--ss-w-panel)); border-radius: 8px; padding: 7px 9px; }
793
800
  .ss-w-acc-retry { font-size: 12px; color: var(--ss-w-neg); cursor: pointer; padding: 6px 0; }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sensiblestats/widget-react",
3
- "version": "0.37.0",
3
+ "version": "0.37.2",
4
4
  "description": "Embeddable SensibleStats chat widget for React.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",