@sensiblestats/widget-react 0.89.0 → 0.90.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/CHANGELOG.md +14 -0
- package/README.md +22 -3
- package/dist/index.cjs +2250 -1622
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -2
- package/dist/index.d.ts +6 -2
- package/dist/index.js +2252 -1624
- package/dist/index.js.map +1 -1
- package/dist/styles.css +83 -0
- package/package.json +2 -2
package/dist/styles.css
CHANGED
|
@@ -366,6 +366,89 @@
|
|
|
366
366
|
.ss-w-bi-text { flex: 1; min-width: 0; font-size: 12px; line-height: 1.45; color: var(--ss-w-ink); }
|
|
367
367
|
.ss-w-bi-disc { font-size: 10px; font-style: italic; color: var(--ss-w-faint); }
|
|
368
368
|
|
|
369
|
+
/* NBA insight cards (u555 B5). No bookmaker, pin, live block or odds history: prices and stats only. */
|
|
370
|
+
.ss-w-nba-cards { display: flex; flex-direction: column; gap: 8px; }
|
|
371
|
+
.ss-w-nba-card{border:1px solid var(--ss-w-line);border-radius:16px;background:var(--ss-w-panel);padding:14px;display:flex;flex-direction:column;gap:12px}
|
|
372
|
+
.ss-w-nba-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
|
|
373
|
+
.ss-w-nba-head-l { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 3px; }
|
|
374
|
+
.ss-w-nba-meta { margin: 0; font-size: 11px; color: var(--ss-w-faint); line-height: 1.3; }
|
|
375
|
+
.ss-w-nba-title { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--ss-w-ink); overflow-wrap: anywhere; }
|
|
376
|
+
.ss-w-nba-chip{font-size:11px;font-weight:600;white-space:nowrap;border-radius:999px;padding:3px 8px;border:1px solid var(--ss-w-line)}
|
|
377
|
+
.ss-w-nba-chip { flex: none; color: var(--ss-w-warn); border-color: var(--ss-w-warn); }
|
|
378
|
+
.ss-w-nba-split,.ss-w-nba-ladder{display:grid;align-items:center;gap:6px;font-size:13px;font-variant-numeric:tabular-nums}
|
|
379
|
+
.ss-w-nba-split{grid-template-columns:minmax(0,1fr) 56px 46px 40px auto}
|
|
380
|
+
.ss-w-nba-ladder{grid-template-columns:52px minmax(0,1fr) 34px 34px 74px}
|
|
381
|
+
.ss-w-nba-row { display: contents; }
|
|
382
|
+
.ss-w-nba-hd{font-size:10.5px;font-weight:600;color:var(--ss-w-faint);white-space:nowrap}
|
|
383
|
+
.ss-w-nba-split .ss-w-nba-n,.ss-w-nba-ladder .ss-w-nba-n{text-align:right}
|
|
384
|
+
.ss-w-nba-n { font-variant-numeric: tabular-nums; color: var(--ss-w-ink); }
|
|
385
|
+
.ss-w-nba-who { min-width: 0; font-weight: 600; color: var(--ss-w-ink); overflow-wrap: anywhere; }
|
|
386
|
+
.ss-w-nba-at { font-weight: 700; color: var(--ss-w-ink); }
|
|
387
|
+
.ss-w-nba-meter { height: 6px; border-radius: 3px; background: var(--ss-w-bubble); overflow: hidden; }
|
|
388
|
+
.ss-w-nba-meter > span { display: block; height: 100%; border-radius: 3px; background: var(--ss-w-accent); }
|
|
389
|
+
.ss-w-nba-pcell { display: flex; justify-content: flex-end; min-width: 0; }
|
|
390
|
+
.ss-w-nba-price{font-size:11.5px;font-weight:600;border:1px solid var(--ss-w-line);border-radius:9px;padding:5px 8px;white-space:nowrap}
|
|
391
|
+
.ss-w-nba-price { display: inline-flex; align-items: baseline; gap: 5px; color: var(--ss-w-ink); font-variant-numeric: tabular-nums; }
|
|
392
|
+
.ss-w-nba-price-lab { color: var(--ss-w-faint); font-weight: 600; }
|
|
393
|
+
.ss-w-nba-pcell .ss-w-slip { flex: none; }
|
|
394
|
+
.ss-w-nba-pcell .ss-w-slip-btn.ss-w-slip-btn--price { width: auto; flex-direction: row; align-items: baseline; gap: 5px; padding: 5px 8px; border-radius: 9px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
|
|
395
|
+
.ss-w-nba-pcell .ss-w-slip-btn--price .ss-w-mol-lab, .ss-w-nba-pcell .ss-w-slip-btn--price .ss-w-mol-tick { font-size: 11.5px; }
|
|
396
|
+
.ss-w-nba-games { display: flex; gap: 4px; }
|
|
397
|
+
.ss-w-nba-game { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; }
|
|
398
|
+
.ss-w-nba-gv { font-size: 11.5px; font-weight: 700; color: var(--ss-w-ink); font-variant-numeric: tabular-nums; }
|
|
399
|
+
.ss-w-nba-track { position: relative; width: 100%; height: 56px; }
|
|
400
|
+
.ss-w-nba-bar { position: absolute; bottom: 0; left: 22%; right: 22%; box-sizing: border-box; border: 1.5px solid var(--ss-w-accent); border-radius: 3px 3px 0 0; background: transparent; }
|
|
401
|
+
.ss-w-nba-bar[data-hit] { background: var(--ss-w-accent); }
|
|
402
|
+
.ss-w-nba-mark { position: absolute; left: 0; right: 0; border-top: 1px dashed var(--ss-w-faint); }
|
|
403
|
+
.ss-w-nba-gd { font-size: 10px; color: var(--ss-w-faint); white-space: nowrap; }
|
|
404
|
+
.ss-w-nba-figs { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
|
|
405
|
+
.ss-w-nba-fig { display: flex; flex-direction: column; gap: 1px; }
|
|
406
|
+
.ss-w-nba-fig b { font-size: 16px; font-weight: 700; color: var(--ss-w-ink); font-variant-numeric: tabular-nums; }
|
|
407
|
+
.ss-w-nba-figl { font-size: 10.5px; font-weight: 600; color: var(--ss-w-faint); }
|
|
408
|
+
.ss-w-nba-figs .ss-w-nba-pcell { margin-left: auto; }
|
|
409
|
+
.ss-w-nba-mates { margin: 0; font-size: 12px; line-height: 1.4; color: var(--ss-w-ink); }
|
|
410
|
+
.ss-w-nba-note { margin: 0; font-size: 11px; line-height: 1.4; color: var(--ss-w-faint); }
|
|
411
|
+
.ss-w-nba-stat { display: flex; flex-direction: column; gap: 8px; }
|
|
412
|
+
.ss-w-nba-stathd { display: flex; align-items: baseline; gap: 4px 10px; flex-wrap: wrap; font-size: 11px; color: var(--ss-w-faint); }
|
|
413
|
+
.ss-w-nba-stathd b { font-size: 13px; color: var(--ss-w-ink); }
|
|
414
|
+
.ss-w-nba-move{display:grid;grid-template-columns:14px minmax(0,1fr);gap:8px;font-size:12px;line-height:1.4}
|
|
415
|
+
.ss-w-nba-move { color: var(--ss-w-ink); }
|
|
416
|
+
.ss-w-nba-dot { width: 8px; height: 8px; margin-top: 4px; box-sizing: border-box; border: 2px solid var(--ss-w-warn); border-radius: 50%; }
|
|
417
|
+
.ss-w-nba-sq { width: 7px; height: 7px; margin-top: 5px; border-radius: 1.5px; background: var(--ss-w-ink); }
|
|
418
|
+
.ss-w-nba-legs { display: flex; flex-direction: column; gap: 8px; }
|
|
419
|
+
.ss-w-nba-leg { display: grid; grid-template-columns: minmax(0,1fr) auto 34px auto; align-items: center; gap: 8px; font-size: 13px; }
|
|
420
|
+
.ss-w-nba-legstat { color: var(--ss-w-faint); font-size: 12px; white-space: nowrap; }
|
|
421
|
+
.ss-w-nba-leg .ss-w-nba-n { text-align: right; }
|
|
422
|
+
.ss-w-nba-joint{display:grid;grid-template-columns:62px repeat(7,minmax(0,1fr));gap:4px;font-size:12px;font-variant-numeric:tabular-nums}
|
|
423
|
+
.ss-w-nba-jl { min-width: 0; font-size: 11px; font-weight: 600; color: var(--ss-w-faint); overflow-wrap: anywhere; line-height: 1.25; }
|
|
424
|
+
.ss-w-nba-jc { text-align: center; color: var(--ss-w-faint); }
|
|
425
|
+
.ss-w-nba-jc[data-hit] { color: var(--ss-w-ink); font-weight: 700; }
|
|
426
|
+
.ss-w-nba-joint .ss-w-nba-hd { font-size: 10px; }
|
|
427
|
+
.ss-w-nba-tick { color: var(--ss-w-accent); font-weight: 700; }
|
|
428
|
+
.ss-w-nba-combined { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--ss-w-faint); }
|
|
429
|
+
.ss-w-nba-combined b { font-size: 16px; color: var(--ss-w-ink); font-variant-numeric: tabular-nums; }
|
|
430
|
+
.ss-w-nba-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11px; color: var(--ss-w-faint); }
|
|
431
|
+
.ss-w-nba-legkey { display: inline-flex; align-items: center; gap: 5px; }
|
|
432
|
+
.ss-w-nba-swatch { width: 12px; height: 2px; border-radius: 1px; }
|
|
433
|
+
.ss-w-nba-swatch--spread { background: var(--ss-w-accent); }
|
|
434
|
+
.ss-w-nba-swatch--total { background: var(--ss-w-ink); }
|
|
435
|
+
.ss-w-nba-svg { display: block; width: 100%; height: auto; overflow: visible; }
|
|
436
|
+
.ss-w-nba-lane path { fill: none; stroke-width: 2; stroke-linejoin: round; }
|
|
437
|
+
.ss-w-nba-lane--spread path { stroke: var(--ss-w-accent); }
|
|
438
|
+
.ss-w-nba-lane--spread circle { fill: var(--ss-w-accent); }
|
|
439
|
+
.ss-w-nba-lane--total path { stroke: var(--ss-w-ink); }
|
|
440
|
+
.ss-w-nba-lane--total circle { fill: var(--ss-w-ink); }
|
|
441
|
+
.ss-w-nba-axis { font-size: 9.5px; fill: var(--ss-w-faint); font-variant-numeric: tabular-nums; }
|
|
442
|
+
.ss-w-nba-inj { stroke: var(--ss-w-warn); stroke-width: 1; stroke-dasharray: 3 3; }
|
|
443
|
+
.ss-w-nba-evs { display: flex; flex-direction: column; }
|
|
444
|
+
.ss-w-nba-ev{display:grid;grid-template-columns:44px 14px minmax(0,1fr);gap:8px;align-items:start;padding:6px 0;font-size:12.5px;line-height:1.35}
|
|
445
|
+
.ss-w-nba-ev { color: var(--ss-w-ink); }
|
|
446
|
+
.ss-w-nba-ev + .ss-w-nba-ev { border-top: 1px solid var(--ss-w-line); }
|
|
447
|
+
.ss-w-nba-evt { font-size: 11.5px; color: var(--ss-w-faint); font-variant-numeric: tabular-nums; white-space: nowrap; }
|
|
448
|
+
.ss-w-nba-nowrow { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 10px; font-size: 13px; }
|
|
449
|
+
.ss-w-nba-foot{font-size:11px;color:var(--ss-w-faint);line-height:1.4;border-top:1px solid var(--ss-w-line);padding-top:10px}
|
|
450
|
+
.ss-w-nba-card .ss-w-combo-addall { align-self: stretch; }
|
|
451
|
+
|
|
369
452
|
/* market odds card */
|
|
370
453
|
.ss-w-mocards { display: flex; flex-direction: column; gap: 7px; }
|
|
371
454
|
.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; }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sensiblestats/widget-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.90.0",
|
|
4
4
|
"description": "Embeddable SensibleStats chat widget for React.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"prepublishOnly": "yarn build"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@sensiblestats/widget-sdk": "^0.
|
|
41
|
+
"@sensiblestats/widget-sdk": "^0.60.0",
|
|
42
42
|
"react-markdown": "^9.0.1",
|
|
43
43
|
"remark-gfm": "^4.0.0"
|
|
44
44
|
},
|