@sensiblestats/widget-react 0.119.0 → 0.120.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 +12 -0
- package/dist/index.cjs +1359 -1177
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1359 -1177
- package/dist/index.js.map +1 -1
- package/dist/styles.css +30 -0
- package/package.json +2 -2
package/dist/styles.css
CHANGED
|
@@ -1603,6 +1603,36 @@
|
|
|
1603
1603
|
.ss-w-nbamon-ls td.ss-w-nbamon-cur { color: var(--ss-w-neg); font-weight: 800; }
|
|
1604
1604
|
.ss-w-nbamon-dash { color: var(--ss-w-faint); }
|
|
1605
1605
|
.ss-w-nbamon-tos { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; color: var(--ss-w-faint); }
|
|
1606
|
+
.ss-w-nflmon-sit { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 6px 8px; border-radius: 8px; background: var(--ss-w-bubble); border: 1px solid var(--ss-w-line); }
|
|
1607
|
+
.ss-w-nflmon-pos { flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 2px 6px; border-radius: 6px; font-size: 11px; font-weight: 800; letter-spacing: .03em; color: #fff; }
|
|
1608
|
+
.ss-w-nflmon-pos--home { background: var(--ss-w-home); }
|
|
1609
|
+
.ss-w-nflmon-pos--away { background: var(--ss-w-away); }
|
|
1610
|
+
/* white on the lighter dark-theme team colours is under 4.5:1 */
|
|
1611
|
+
@media (prefers-color-scheme: dark) { .ss-w-root[data-ss-w-theme="auto"] .ss-w-nflmon-pos { color: var(--ss-w-nav); } }
|
|
1612
|
+
.ss-w-root[data-ss-w-theme="dark"] .ss-w-nflmon-pos { color: var(--ss-w-nav); }
|
|
1613
|
+
.ss-w-nflmon-ball { flex: none; width: 10px; height: 6px; border-radius: 50%; background: currentColor; }
|
|
1614
|
+
.ss-w-nflmon-dd { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; font-weight: 750; font-variant-numeric: tabular-nums; color: var(--ss-w-ink); }
|
|
1615
|
+
.ss-w-nflmon-last, .ss-w-nflmon-feed { min-width: 0; }
|
|
1616
|
+
.ss-w-nflmon-label { display: block; margin-bottom: 3px; font-size: 10.5px; font-weight: 600; color: var(--ss-w-faint); }
|
|
1617
|
+
.ss-w-nflmon-last-text { font-size: 12px; line-height: 1.4; color: var(--ss-w-ink); overflow-wrap: anywhere; }
|
|
1618
|
+
/* subgrid lines the team, text and time columns up across rows */
|
|
1619
|
+
.ss-w-nflmon-plays { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: auto 1fr auto; row-gap: 4px; }
|
|
1620
|
+
.ss-w-nflmon-play { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto; grid-template-columns: subgrid; align-items: baseline; column-gap: 6px; padding-left: 7px; border-left: 3px solid var(--ss-w-line); font-size: 11.5px; line-height: 1.35; }
|
|
1621
|
+
.ss-w-nflmon-play--home { border-left-color: var(--ss-w-home); }
|
|
1622
|
+
.ss-w-nflmon-play--away { border-left-color: var(--ss-w-away); }
|
|
1623
|
+
.ss-w-nflmon-tag { margin-right: 2px; font-size: 9.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--ss-w-ink); }
|
|
1624
|
+
.ss-w-nflmon-tag--turnover { color: var(--ss-w-faint); }
|
|
1625
|
+
.ss-w-nflmon-tag--td, .ss-w-nflmon-tag--fg, .ss-w-nflmon-tag--safety { color: var(--ss-w-accent); }
|
|
1626
|
+
.ss-w-nflmon-abbr { font-weight: 800; color: var(--ss-w-ink); }
|
|
1627
|
+
.ss-w-nflmon-text { min-width: 0; color: var(--ss-w-faint); overflow-wrap: anywhere; }
|
|
1628
|
+
.ss-w-nflmon-when { font-size: 10.5px; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ss-w-faint); }
|
|
1629
|
+
.ss-w-nflmon-wp { padding-top: 10px; border-top: 1px solid var(--ss-w-line); }
|
|
1630
|
+
.ss-w-nflmon-wp .ss-w-fandash-live-mom { margin-top: 0; padding-top: 0; border-top: none; }
|
|
1631
|
+
.ss-w-nflmon-wp-key { display: flex; justify-content: center; gap: 14px; margin-top: 6px; font-size: 10.5px; font-weight: 800; color: var(--ss-w-faint); }
|
|
1632
|
+
.ss-w-nflmon-wp-team { display: inline-flex; align-items: center; gap: 5px; }
|
|
1633
|
+
.ss-w-nflmon-wp-team::before { content: ""; width: 8px; height: 8px; border-radius: 2px; }
|
|
1634
|
+
.ss-w-nflmon-wp-team--home::before { background: var(--ss-w-home); }
|
|
1635
|
+
.ss-w-nflmon-wp-team--away::before { background: var(--ss-w-away); }
|
|
1606
1636
|
/* Scoreboard strip: one 122px tile per followed game, scrolling sideways inside its own box so the
|
|
1607
1637
|
panel never gains a horizontal scroll. */
|
|
1608
1638
|
.ss-w-strip { position: relative; flex: none; display: flex; gap: 8px; padding: 8px 12px; background: var(--ss-w-bubble); overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sensiblestats/widget-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.120.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.84.0",
|
|
42
42
|
"react-markdown": "^9.0.1",
|
|
43
43
|
"remark-gfm": "^4.0.0"
|
|
44
44
|
},
|