@sensiblestats/widget-react 0.62.0 → 0.64.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 +22 -0
- package/README.md +57 -0
- package/dist/index.cjs +4271 -3714
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +33 -2
- package/dist/index.d.ts +33 -2
- package/dist/index.js +6592 -6036
- package/dist/index.js.map +1 -1
- package/dist/styles.css +26 -0
- package/package.json +2 -2
package/dist/styles.css
CHANGED
|
@@ -74,6 +74,17 @@
|
|
|
74
74
|
--ss-g-font-body: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
+
/* ── match link (u443) ── a card's team names as a button that opens the operator's match page.
|
|
78
|
+
The button keeps the wrapped element's own class for its layout. Every one of those classes is
|
|
79
|
+
declared further down this file, so on equal specificity it wins over this reset: keep this
|
|
80
|
+
block above them. */
|
|
81
|
+
.ss-w-matchlink { appearance: none; position: relative; width: 100%; padding-right: 16px; background: none; border: 0; border-radius: 6px; font: inherit; color: inherit; text-align: inherit; cursor: pointer; }
|
|
82
|
+
.ss-w-matchlink::after { content: ''; position: absolute; right: 3px; top: 50%; width: 7px; height: 7px; margin-top: -4px; border-top: 1.5px solid var(--ss-w-faint); border-right: 1.5px solid var(--ss-w-faint); transform: rotate(45deg); }
|
|
83
|
+
.ss-w-matchlink:hover::after { border-color: var(--ss-w-accent); }
|
|
84
|
+
.ss-w-matchlink:focus-visible { outline: 2px solid var(--ss-w-accent); outline-offset: 2px; }
|
|
85
|
+
/* The pinned match card centres its score in the card, so it pads both edges alike. */
|
|
86
|
+
.ss-w-mon-main.ss-w-matchlink { padding-left: 16px; }
|
|
87
|
+
|
|
77
88
|
/* ── games ui kit (u393) ── */
|
|
78
89
|
.ss-g-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
|
|
79
90
|
.ss-g-head { display: flex; align-items: center; gap: 6px; padding: 8px 16px 8px 6px; font-family: var(--ss-g-font-body); }
|
|
@@ -934,6 +945,21 @@
|
|
|
934
945
|
.ss-w-mon-scorers-home { text-align: right; }
|
|
935
946
|
.ss-w-mon-scorers-away { text-align: left; }
|
|
936
947
|
.ss-w-mon-scorers-ball { flex: none; align-self: start; line-height: 1.35; }
|
|
948
|
+
.ss-w-fact { display: flex; flex-direction: column; gap: 7px; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--ss-w-accent) 9%, transparent); border: 1px solid color-mix(in srgb, var(--ss-w-accent) 22%, transparent); }
|
|
949
|
+
.ss-w-fact-k { display: flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--ss-w-accent); }
|
|
950
|
+
.ss-w-fact-min { color: var(--ss-w-ink); letter-spacing: 0; }
|
|
951
|
+
.ss-w-fact-subj { margin-left: auto; text-transform: none; letter-spacing: 0; font-weight: 650; color: var(--ss-w-faint); }
|
|
952
|
+
.ss-w-fact-text { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--ss-w-ink); }
|
|
953
|
+
.ss-w-fact-basis { font-size: 10.5px; color: var(--ss-w-faint); }
|
|
954
|
+
.ss-w-fact-mkt { display: flex; align-items: center; gap: 8px; font-size: 11.5px; border: 1px solid var(--ss-w-line); border-radius: 8px; padding: 6px 8px; }
|
|
955
|
+
.ss-w-fact-foot { display: flex; align-items: center; gap: 14px; }
|
|
956
|
+
.ss-w-fact-link { font: inherit; font-size: 11.5px; font-weight: 700; color: var(--ss-w-accent); background: none; border: none; padding: 4px 0; min-height: 32px; cursor: pointer; }
|
|
957
|
+
.ss-w-fact-link--muted { color: var(--ss-w-faint); margin-left: auto; }
|
|
958
|
+
.ss-w-fact-hist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ss-w-line); }
|
|
959
|
+
.ss-w-fact-hist li { display: grid; grid-template-columns: 34px 1fr; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--ss-w-line); }
|
|
960
|
+
.ss-w-fact-hist li:last-child { border-bottom: none; }
|
|
961
|
+
.ss-w-fact-hmin { font-size: 11px; font-weight: 800; color: var(--ss-w-faint); font-variant-numeric: tabular-nums; }
|
|
962
|
+
.ss-w-fact-htext { margin: 0; font-size: 12.5px; line-height: 1.4; color: var(--ss-w-ink); }
|
|
937
963
|
.ss-w-mon-stats { display: flex; flex-direction: column; gap: 10px; }
|
|
938
964
|
.ss-w-mon-stat { display: flex; flex-direction: column; gap: 5px; }
|
|
939
965
|
.ss-w-mon-pstrip { padding: 6px 8px; border-radius: 8px; background: color-mix(in srgb, var(--ss-w-accent) 8%, transparent); }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sensiblestats/widget-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.64.0",
|
|
4
4
|
"description": "Embeddable SensibleStats chat widget for React.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"prepublishOnly": "yarn build"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@sensiblestats/widget-sdk": "^0.
|
|
40
|
+
"@sensiblestats/widget-sdk": "^0.39.0",
|
|
41
41
|
"react-markdown": "^9.0.1",
|
|
42
42
|
"remark-gfm": "^4.0.0"
|
|
43
43
|
},
|