@sensiblestats/widget-react 0.124.3 → 0.126.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
@@ -609,10 +609,10 @@
609
609
  .ss-w-combo-leg { display: flex; flex-direction: column; gap: 5px; padding: 8px 0; border-bottom: 1px dashed var(--ss-w-line); }
610
610
  .ss-w-combo-leg:last-child { border-bottom: none; padding-bottom: 2px; }
611
611
  .ss-w-combo-leg-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
612
- .ss-w-combo-leg-pick { display: flex; align-items: center; gap: 9px; min-width: 0; }
613
- .ss-w-combo-leg-what { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
614
- .ss-w-combo-leg-market { font-size: 11.5px; font-weight: 600; line-height: 1.25; color: var(--ss-w-faint); overflow-wrap: anywhere; }
615
- .ss-w-combo-leg-sel { font-size: 13px; font-weight: 700; line-height: 1.2; color: var(--ss-w-ink); overflow-wrap: anywhere; }
612
+ .ss-w-combo-leg-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 9px; min-width: 0; }
613
+ .ss-w-combo-leg-what { flex: 1 1 7rem; min-width: min(100%, 7rem); display: flex; flex-direction: column; gap: 1px; }
614
+ .ss-w-combo-leg-market { font-size: 11.5px; font-weight: 600; line-height: 1.25; color: var(--ss-w-faint); overflow-wrap: break-word; }
615
+ .ss-w-combo-leg-sel { font-size: 13px; font-weight: 700; line-height: 1.2; color: var(--ss-w-ink); overflow-wrap: break-word; }
616
616
  .ss-w-combo-leg-price { flex: none; font-family: ui-monospace, monospace; font-variant-numeric: tabular-nums; font-size: 17px; font-weight: 800; line-height: 1.05; color: var(--ss-w-accent); }
617
617
  .ss-w-combo-leg-pick .ss-w-slip { flex: none; }
618
618
  .ss-w-combo-leg-stat { font-size: 12px; line-height: 1.45; color: var(--ss-w-ink); background: var(--ss-w-bubble); border-radius: 8px; padding: 6px 9px; }
@@ -766,6 +766,7 @@
766
766
  .ss-w-limit:focus { outline: none; }
767
767
  .ss-w-limit:not(:empty) + .ss-w-input { border-top: none; }
768
768
  .ss-w-textarea { flex: 1; resize: none; border: 1px solid var(--ss-w-line); border-radius: 12px; padding: 8px 10px; font: inherit; color: inherit; background: var(--ss-w-panel); max-height: 96px; }
769
+ .ss-w-textarea::placeholder { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
769
770
  .ss-w-textarea:disabled { opacity: .55; cursor: not-allowed; }
770
771
  /* iOS Safari zooms the page when a focused field's font-size is < 16px. Bump it
771
772
  on touch devices only, so the desktop 13px design is unchanged. */
@@ -1374,6 +1375,7 @@
1374
1375
  .ss-w-trow-when { min-width: 0; font-size: 11px; font-weight: 700; color: var(--ss-w-faint); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
1375
1376
  .ss-w-trow-when--tba { font-size: 10px; font-weight: 600; line-height: 1.15; }
1376
1377
  .ss-w-trow-live { color: var(--ss-w-neg); }
1378
+ .ss-w-trow-when--end { font-size: 9.5px; font-weight: 700; line-height: 1.15; overflow-wrap: normal; margin-right: -4px; }
1377
1379
  .ss-w-trow--live { background: color-mix(in srgb, var(--ss-w-neg) 5%, transparent); border-radius: 8px; padding: 7px 6px; margin: 0 -6px; border-bottom: none; }
1378
1380
  .ss-w-trow-players { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
1379
1381
  .ss-w-trow-pl { display: flex; align-items: center; gap: 5px; min-width: 0; }
@@ -1433,6 +1435,77 @@
1433
1435
  .ss-w-tn-ask { align-self: stretch; min-height: 40px; border: 1px solid var(--ss-w-line); border-radius: 20px; background: var(--ss-w-bubble); font: inherit; font-size: 13px; font-weight: 650; color: var(--ss-w-ink); cursor: pointer; padding: 8px 14px; }
1434
1436
  .ss-w-tn-ask:hover { border-color: var(--ss-w-accent); }
1435
1437
  .ss-w-tn-ask:focus-visible { outline: 2px solid var(--ss-w-accent); outline-offset: 2px; }
1438
+
1439
+ /* tennis live: Live tab row */
1440
+ .ss-w-trow-set { display: block; margin-top: 2px; font-size: 10px; font-weight: 700; letter-spacing: 0; color: var(--ss-w-faint); overflow-wrap: anywhere; }
1441
+ .ss-w-trow-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
1442
+ .ss-w-trow-line .ss-w-trow-pl { flex: 1 1 auto; min-width: 0; }
1443
+ .ss-w-trow-games { display: inline-flex; flex: none; gap: 7px; font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ss-w-faint); }
1444
+ .ss-w-trow-g { min-width: 10px; text-align: center; }
1445
+ .ss-w-trow-g--now { color: var(--ss-w-ink); font-weight: 800; }
1446
+ .ss-w-trow-tb { font-size: 8px; font-weight: 700; margin-left: 1px; }
1447
+ .ss-w-trow-srv { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--ss-w-pos); }
1448
+ .ss-w-trow-game { font-weight: 700; color: var(--ss-w-ink); font-variant-numeric: tabular-nums; }
1449
+ .ss-w-lp-foot { padding: 8px 2px 2px; font-size: 11px; font-weight: 600; line-height: 1.35; color: var(--ss-w-faint); overflow-wrap: anywhere; }
1450
+
1451
+ /* tennis live: pinned card */
1452
+ .ss-w-tn-status { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; font-size: 12px; font-weight: 700; color: var(--ss-w-ink); }
1453
+ .ss-w-tn-status > span { min-width: 0; overflow-wrap: anywhere; }
1454
+ .ss-w-tn-elapsed { color: var(--ss-w-faint); font-variant-numeric: tabular-nums; }
1455
+ .ss-w-tn-endscore { font-variant-numeric: tabular-nums; }
1456
+ .ss-w-tn-end { color: var(--ss-w-faint); }
1457
+ .ss-w-tn-live { width: 100%; table-layout: fixed; border-collapse: collapse; font-variant-numeric: tabular-nums; }
1458
+ .ss-w-tn-live th, .ss-w-tn-live td { padding: 6px 2px; border-bottom: 1px solid var(--ss-w-line); font-size: 14px; font-weight: 700; color: var(--ss-w-ink); text-align: center; }
1459
+ .ss-w-tn-live tr:last-child th, .ss-w-tn-live tr:last-child td { border-bottom: none; }
1460
+ .ss-w-tn-live thead th { padding: 0 2px 4px; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ss-w-faint); }
1461
+ .ss-w-tn-live thead th:first-child, .ss-w-tn-live tbody th { width: auto; text-align: left; }
1462
+ .ss-w-tn-live tbody th { display: table-cell; font-size: 13px; font-weight: 750; overflow-wrap: anywhere; }
1463
+ .ss-w-tn-live th.ss-w-tn-sc, .ss-w-tn-live td.ss-w-tn-sc { width: 30px; }
1464
+ .ss-w-tn-live th.ss-w-tn-gc, .ss-w-tn-live td.ss-w-tn-gc { width: 40px; }
1465
+ .ss-w-tn-live td.ss-w-tn-game { font-weight: 800; background: color-mix(in srgb, var(--ss-w-accent) 10%, transparent); border-radius: 6px; }
1466
+ .ss-w-tn-live td.ss-w-tn-now { font-weight: 800; }
1467
+ .ss-w-tn-live td.ss-w-tn-done { color: var(--ss-w-faint); }
1468
+ .ss-w-tn-live td.ss-w-tn-won { color: var(--ss-w-ink); font-weight: 800; }
1469
+ .ss-w-tn-tb { font-size: 8px; font-weight: 700; vertical-align: super; }
1470
+ .ss-w-tn-cc { display: inline-block; margin-right: 5px; padding: 1px 3px; font-size: 8px; font-weight: 800; line-height: 14px; color: var(--ss-w-faint); background: var(--ss-w-bubble); border: 1px solid var(--ss-w-line); border-radius: 4px; vertical-align: middle; }
1471
+ .ss-w-tn-srv { display: inline-block; width: 6px; height: 6px; margin-left: 6px; border-radius: 50%; background: var(--ss-w-pos); vertical-align: middle; }
1472
+ .ss-w-tn-serving { margin: 0; font-size: 10.5px; font-weight: 600; line-height: 1.35; color: var(--ss-w-faint); overflow-wrap: anywhere; }
1473
+ .ss-w-tn-paused .ss-w-trow-price, .ss-w-tn-paused .ss-w-tn-pv { opacity: .45; }
1474
+ .ss-w-tn-paused-label { margin: 0; font-size: 12px; font-weight: 750; color: var(--ss-w-warn); overflow-wrap: anywhere; }
1475
+ .ss-w-tn-setline { margin: 0; font-size: 12px; font-weight: 600; line-height: 1.35; color: var(--ss-w-ink); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
1476
+
1477
+ /* tennis live: serve and return tables */
1478
+ .ss-w-ts { container-type: inline-size; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
1479
+ .ss-w-ts-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
1480
+ .ss-w-ts-tab { min-height: 28px; padding: 3px 12px; font: inherit; font-size: 12px; font-weight: 700; color: var(--ss-w-ink); background: var(--ss-w-panel); border: 1px solid var(--ss-w-line); border-radius: 999px; cursor: pointer; }
1481
+ .ss-w-ts-tab[aria-selected="true"] { color: #fff; background: var(--ss-w-accent); border-color: var(--ss-w-accent); }
1482
+ .ss-w-ts-tab:focus-visible { outline: 2px solid var(--ss-w-accent); outline-offset: 2px; }
1483
+ .ss-w-ts-block { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
1484
+ .ss-w-ts-cap { display: flex; justify-content: space-between; gap: 8px; margin: 0; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ss-w-faint); }
1485
+ .ss-w-ts-cap > span { min-width: 0; overflow-wrap: anywhere; }
1486
+ .ss-w-ts-row { display: grid; grid-template-columns: 44px minmax(0,1fr) minmax(0,1fr) 44px; align-items: center; gap: 2px 6px; min-width: 0; }
1487
+ .ss-w-ts-l { grid-column: 1 / -1; min-width: 0; text-align: center; font-size: 11px; font-weight: 600; line-height: 1.25; color: var(--ss-w-faint); }
1488
+ .ss-w-ts-l-short { display: none; }
1489
+ .ss-w-ts-v { font-size: 13px; font-weight: 750; font-variant-numeric: tabular-nums; color: var(--ss-w-ink); }
1490
+ .ss-w-ts-v--a { text-align: left; }
1491
+ .ss-w-ts-v--b { text-align: right; }
1492
+ .ss-w-ts-bar { height: 6px; border-radius: 3px; background: var(--ss-w-line); overflow: hidden; display: flex; }
1493
+ .ss-w-ts-bar--a { justify-content: flex-end; }
1494
+ .ss-w-ts-fill { display: block; height: 100%; border-radius: 3px; background: var(--ss-w-accent); }
1495
+ .ss-w-ts-bar--b .ss-w-ts-fill { background: var(--ss-w-faint); }
1496
+ .ss-w-ts-note { margin: 0; font-size: 10.5px; font-weight: 600; line-height: 1.35; color: var(--ss-w-faint); overflow-wrap: anywhere; }
1497
+ .ss-w-ts-today { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,auto) minmax(0,1fr); gap: 0 8px; align-items: baseline; }
1498
+ .ss-w-ts-today-v { font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ss-w-ink); }
1499
+ .ss-w-ts-today-h { font-size: 10px; font-weight: 600; letter-spacing: .02em; color: var(--ss-w-faint); }
1500
+ .ss-w-ts-today-h--a { grid-column: 1; text-align: left; }
1501
+ .ss-w-ts-today-h--b { grid-column: 3; text-align: right; }
1502
+ .ss-w-ts-today-v--a { text-align: left; }
1503
+ .ss-w-ts-today-v--b { grid-column: 3; text-align: right; }
1504
+ @container (max-width: 340px) {
1505
+ .ss-w-ts-l-full { display: none; }
1506
+ .ss-w-ts-l-short { display: inline; }
1507
+ .ss-w-ts-row { grid-template-columns: 38px minmax(0,1fr) minmax(0,1fr) 38px; }
1508
+ }
1436
1509
  .ss-w-lg-showall { align-self: flex-start; min-height: 28px; background: none; border: none; font: inherit; font-size: 11px; font-weight: 700; color: var(--ss-w-faint); cursor: pointer; padding: 4px 2px 0; }
1437
1510
  .ss-w-lg-showall:focus-visible { outline: 2px solid var(--ss-w-accent); outline-offset: -2px; }
1438
1511
  .ss-w-fav { gap: 14px; }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sensiblestats/widget-react",
3
- "version": "0.124.3",
3
+ "version": "0.126.0",
4
4
  "description": "Embeddable SensibleStats chat widget for React.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -39,7 +39,7 @@
39
39
  "prepublishOnly": "yarn build"
40
40
  },
41
41
  "dependencies": {
42
- "@sensiblestats/widget-sdk": "^0.89.0",
42
+ "@sensiblestats/widget-sdk": "^0.90.0",
43
43
  "react-markdown": "^9.0.1",
44
44
  "remark-gfm": "^4.0.0"
45
45
  },