@sensiblestats/widget-react 0.145.1 → 0.146.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 +17 -0
- package/dist/index.cjs +2639 -2543
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2641 -2545
- package/dist/index.js.map +1 -1
- package/dist/styles.css +24 -2
- package/package.json +2 -2
package/dist/styles.css
CHANGED
|
@@ -321,6 +321,27 @@
|
|
|
321
321
|
.ss-w-cards-more:hover:not(:disabled) { text-decoration: underline; }
|
|
322
322
|
.ss-w-cards-more:disabled { opacity: .5; cursor: default; }
|
|
323
323
|
|
|
324
|
+
/* compare card: two columns, one stat per row pair (label line over the two values) */
|
|
325
|
+
.ss-w-cmps { display: flex; flex-direction: column; gap: 8px; }
|
|
326
|
+
.ss-w-cmp { display: flex; flex-direction: column; width: 100%; min-width: 0; background: var(--ss-w-panel); border: 1px solid var(--ss-w-line); border-radius: 12px; overflow: hidden; text-align: left; }
|
|
327
|
+
.ss-w-cmp-hd { display: flex; align-items: center; gap: 8px; padding: 10px 13px; min-width: 0; }
|
|
328
|
+
.ss-w-cmp-hdtext { display: flex; flex-direction: column; gap: 2px; flex: 1 1 0; min-width: 0; }
|
|
329
|
+
.ss-w-cmp-title { font-weight: 680; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
330
|
+
.ss-w-cmp-scope { display: flex; align-items: center; gap: 5px; min-width: 0; font-size: 11px; color: var(--ss-w-faint); }
|
|
331
|
+
.ss-w-cmp-scopelab { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
|
|
332
|
+
.ss-w-cmp-hd .ss-w-ecard-season { margin: 0; }
|
|
333
|
+
.ss-w-cmp-table { width: 100%; table-layout: fixed; border-collapse: collapse; border-top: 1px solid var(--ss-w-line); }
|
|
334
|
+
.ss-w-cmp-col { width: 50%; padding: 8px 8px 6px; font-size: 12px; font-weight: 680; text-align: center; background: color-mix(in srgb, var(--ss-w-ink) 3%, var(--ss-w-panel)); }
|
|
335
|
+
.ss-w-cmp-colname { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
336
|
+
.ss-w-cmp-row { border-top: 1px solid var(--ss-w-line); }
|
|
337
|
+
.ss-w-cmp-rowlab { padding: 7px 8px 0; font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--ss-w-faint); text-align: center; line-height: 1.3; overflow-wrap: anywhere; }
|
|
338
|
+
.ss-w-cmp-cell { padding: 3px 8px 9px; text-align: center; vertical-align: top; min-width: 0; overflow-wrap: anywhere; }
|
|
339
|
+
.ss-w-cmp-val { display: block; font-size: 17px; font-weight: 720; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
|
|
340
|
+
.ss-w-cmp-note { display: block; margin-top: 2px; font-size: 9.5px; color: var(--ss-w-faint); font-style: italic; }
|
|
341
|
+
.ss-w-cmp-missing .ss-w-cmp-val { color: var(--ss-w-faint); font-weight: 560; }
|
|
342
|
+
.ss-w-cmp-lead { background: color-mix(in srgb, var(--ss-w-pos) 12%, var(--ss-w-panel)); }
|
|
343
|
+
.ss-w-cmp-lead .ss-w-cmp-val { color: var(--ss-w-pos); }
|
|
344
|
+
|
|
324
345
|
/* betting insights */
|
|
325
346
|
.ss-w-binsights { display: flex; flex-direction: column; gap: 7px; }
|
|
326
347
|
.ss-w-binsight { 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: 8px; }
|
|
@@ -634,12 +655,13 @@
|
|
|
634
655
|
.ss-w-combo-leg-what { flex: 1 1 7rem; min-width: min(100%, 7rem); display: flex; flex-direction: column; gap: 1px; }
|
|
635
656
|
.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; }
|
|
636
657
|
.ss-w-combo-leg-sel { font-size: 13px; font-weight: 700; line-height: 1.2; color: var(--ss-w-ink); overflow-wrap: break-word; }
|
|
658
|
+
.ss-w-combo-leg-act { flex: 0 0 auto; max-width: 100%; margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px 9px; }
|
|
637
659
|
.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); }
|
|
638
660
|
.ss-w-combo-leg-pick .ss-w-slip { display: contents; }
|
|
639
661
|
.ss-w-combo-leg-pick .ss-w-slip-btn { flex: none; }
|
|
640
662
|
.ss-w-combo-leg .ss-w-bi-team { white-space: normal; text-overflow: clip; overflow-wrap: break-word; line-height: 1.25; }
|
|
641
|
-
.ss-w-combo-leg-pick .ss-w-toast { position: static; flex-basis: 100%; width:
|
|
642
|
-
.ss-w-combo-leg-swap { flex: none; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; width: 32px; height: 32px;
|
|
663
|
+
.ss-w-combo-leg-pick .ss-w-toast { position: static; order: 1; flex-basis: 100%; width: 0; max-width: none; box-shadow: none; }
|
|
664
|
+
.ss-w-combo-leg-swap { flex: none; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; width: 32px; height: 32px; padding: 0; border: 1px solid var(--ss-w-line); border-radius: 50%; background: transparent; color: var(--ss-w-ink); cursor: pointer; }
|
|
643
665
|
.ss-w-combo-leg-swap:hover:not(:disabled) { border-color: var(--ss-w-accent); }
|
|
644
666
|
.ss-w-combo-leg-swap:disabled { cursor: default; opacity: .4; }
|
|
645
667
|
.ss-w-combo-leg-swapnone { margin: 0; font-size: 12px; line-height: 1.4; color: var(--ss-w-faint); }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sensiblestats/widget-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.146.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.
|
|
42
|
+
"@sensiblestats/widget-sdk": "^0.107.0",
|
|
43
43
|
"react-markdown": "^9.0.1",
|
|
44
44
|
"remark-gfm": "^4.0.0"
|
|
45
45
|
},
|