@sensiblestats/widget-react 0.61.2 → 0.62.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 +305 -177
- 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 +220 -92
- package/dist/index.js.map +1 -1
- package/dist/styles.css +55 -0
- package/package.json +2 -2
package/dist/styles.css
CHANGED
|
@@ -541,6 +541,59 @@
|
|
|
541
541
|
.ss-w-dash--discovery .ss-w-dash-tile:nth-child(2) { background: color-mix(in srgb, #3a82f6 10%, var(--ss-w-panel)); }
|
|
542
542
|
.ss-w-dash--discovery .ss-w-dash-tile:nth-child(3) { background: color-mix(in srgb, #f5a623 10%, var(--ss-w-panel)); }
|
|
543
543
|
.ss-w-dash--discovery .ss-w-dash-tile:nth-child(4) { background: color-mix(in srgb, #a855f7 10%, var(--ss-w-panel)); }
|
|
544
|
+
/* A hero tile would take the first tint position; count only regular tiles where `of S` parses. */
|
|
545
|
+
.ss-w-dash--discovery .ss-w-dash-tile:nth-child(1 of :not(.ss-w-dash-hero)) { background: color-mix(in srgb, #34c759 10%, var(--ss-w-panel)); }
|
|
546
|
+
.ss-w-dash--discovery .ss-w-dash-tile:nth-child(2 of :not(.ss-w-dash-hero)) { background: color-mix(in srgb, #3a82f6 10%, var(--ss-w-panel)); }
|
|
547
|
+
.ss-w-dash--discovery .ss-w-dash-tile:nth-child(3 of :not(.ss-w-dash-hero)) { background: color-mix(in srgb, #f5a623 10%, var(--ss-w-panel)); }
|
|
548
|
+
.ss-w-dash--discovery .ss-w-dash-tile:nth-child(4 of :not(.ss-w-dash-hero)) { background: color-mix(in srgb, #a855f7 10%, var(--ss-w-panel)); }
|
|
549
|
+
|
|
550
|
+
/* Hero: the personalized lead tile. Declared after the layout rules and at three-class
|
|
551
|
+
specificity so it keeps one look in every layout -- no market rail, no goal pill, no
|
|
552
|
+
discovery tint or stacking. Colours derive from accent/panel/ink so an operator surface
|
|
553
|
+
and dark mode both work without their own rules. */
|
|
554
|
+
.ss-w-dash .ss-w-dash-grid .ss-w-dash-hero {
|
|
555
|
+
display: flex; flex-direction: column; align-items: stretch; gap: 10px;
|
|
556
|
+
padding: 12px 14px 14px; border-radius: 16px;
|
|
557
|
+
border: 1px solid color-mix(in srgb, var(--ss-w-accent) 38%, var(--ss-w-line));
|
|
558
|
+
background:
|
|
559
|
+
radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--ss-w-accent) 18%, transparent) 0%, transparent 60%),
|
|
560
|
+
var(--ss-w-panel);
|
|
561
|
+
box-shadow: 0 10px 24px -18px color-mix(in srgb, var(--ss-w-accent) 80%, transparent);
|
|
562
|
+
}
|
|
563
|
+
.ss-w-dash .ss-w-dash-grid .ss-w-dash-hero:hover { border-color: var(--ss-w-accent); }
|
|
564
|
+
.ss-w-dash .ss-w-dash-grid .ss-w-dash-hero:focus-visible { outline: 2px solid var(--ss-w-accent); outline-offset: 2px; }
|
|
565
|
+
.ss-w-dash-hero-top { display: flex; align-items: center; gap: 8px; min-height: 20px; }
|
|
566
|
+
.ss-w-dash-hero-badge {
|
|
567
|
+
font-size: 10.5px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase;
|
|
568
|
+
color: var(--ss-w-panel); background: color-mix(in srgb, var(--ss-w-accent) 45%, var(--ss-w-ink)); border-radius: 999px; padding: 3px 10px;
|
|
569
|
+
white-space: nowrap;
|
|
570
|
+
}
|
|
571
|
+
.ss-w-dash-hero-chevron { flex: none; width: 14px; height: 14px; color: var(--ss-w-faint); }
|
|
572
|
+
.ss-w-dash-hero-badge { margin-right: auto; }
|
|
573
|
+
.ss-w-dash-hero-chevron:only-child { margin-left: auto; }
|
|
574
|
+
.ss-w-dash-hero-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
|
|
575
|
+
.ss-w-dash-hero-visual { flex: none; display: flex; align-items: center; }
|
|
576
|
+
.ss-w-dash-hero-crest {
|
|
577
|
+
width: 40px; height: 40px; border-radius: 50%;
|
|
578
|
+
background-color: color-mix(in srgb, var(--ss-w-ink) 4%, var(--ss-w-panel));
|
|
579
|
+
background-size: 72%; background-position: center; background-repeat: no-repeat;
|
|
580
|
+
box-shadow: 0 0 0 2px var(--ss-w-panel), 0 0 0 3px color-mix(in srgb, var(--ss-w-ink) 10%, var(--ss-w-panel));
|
|
581
|
+
}
|
|
582
|
+
.ss-w-dash-hero-crest + .ss-w-dash-hero-crest { margin-left: -8px; }
|
|
583
|
+
.ss-w-dash-hero-icon {
|
|
584
|
+
display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font-size: 22px;
|
|
585
|
+
background: color-mix(in srgb, var(--ss-w-accent) 14%, var(--ss-w-panel));
|
|
586
|
+
}
|
|
587
|
+
.ss-w-dash-hero-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
|
|
588
|
+
.ss-w-dash-hero-title { font-size: 15.5px; font-weight: 700; line-height: 1.25; color: var(--ss-w-ink); overflow-wrap: anywhere; }
|
|
589
|
+
.ss-w-dash-hero-subtitle { font-size: 12px; color: var(--ss-w-faint); overflow-wrap: anywhere; }
|
|
590
|
+
.ss-w-dash-hero-price {
|
|
591
|
+
flex: none; margin-left: auto;
|
|
592
|
+
font-family: ui-monospace, monospace; font-variant-numeric: tabular-nums; font-size: 15px; font-weight: 750; line-height: 1;
|
|
593
|
+
color: color-mix(in srgb, var(--ss-w-accent) 45%, var(--ss-w-ink)); padding: 5px 9px; border-radius: 8px;
|
|
594
|
+
background: color-mix(in srgb, var(--ss-w-accent) 12%, var(--ss-w-panel));
|
|
595
|
+
border: 1px solid color-mix(in srgb, var(--ss-w-accent) 30%, var(--ss-w-panel));
|
|
596
|
+
}
|
|
544
597
|
|
|
545
598
|
/* club fan pre-match dashboard */
|
|
546
599
|
.ss-w-fandash { display: flex; flex-direction: column; gap: 10px; padding: 4px 0; }
|
|
@@ -1045,6 +1098,8 @@
|
|
|
1045
1098
|
.ss-g-mt-portrait .ss-g-sil { font-size: 46px; }
|
|
1046
1099
|
.ss-g-mt-photo { width: 132px; height: 132px; margin-bottom: 30px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--ss-g-accent-tint); color: var(--ss-w-accent); font: 800 40px var(--ss-g-font-display); }
|
|
1047
1100
|
.ss-g-mt-photo img { width: 100%; height: 100%; object-fit: cover; }
|
|
1101
|
+
.ss-g-cp-photo { width: 64px; height: 64px; flex: none; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--ss-g-accent-tint); color: var(--ss-w-accent); font: 800 22px var(--ss-g-font-display); }
|
|
1102
|
+
.ss-g-cp-photo img { width: 100%; height: 100%; object-fit: cover; }
|
|
1048
1103
|
.ss-g-mt-reveal-name { position: absolute; bottom: 6px; left: 12px; right: 12px; text-align: center; font: 800 20px var(--ss-g-font-display); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
1049
1104
|
.ss-g-mt-known { display: grid; gap: 6px; padding: 12px; }
|
|
1050
1105
|
.ss-g-mt-known-cell { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sensiblestats/widget-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.62.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.37.0",
|
|
41
41
|
"react-markdown": "^9.0.1",
|
|
42
42
|
"remark-gfm": "^4.0.0"
|
|
43
43
|
},
|