@sensiblestats/widget-react 0.126.0 → 0.128.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
@@ -467,6 +467,11 @@
467
467
  .ss-w-nba-mu-pos { margin: 0; font-size: 12px; line-height: 1.45; color: var(--ss-w-ink); }
468
468
  .ss-w-nba-small { display: inline-block; font-size: 10px; font-weight: 600; line-height: 1.3; color: var(--ss-w-warn); border: 1px solid var(--ss-w-warn); border-radius: 999px; padding: 0 6px; white-space: nowrap; }
469
469
  .ss-w-nba-mu-pos .ss-w-nba-small { margin-left: 6px; }
470
+ .ss-w-nba-vs, .ss-w-nba-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
471
+ .ss-w-nba-vs > *, .ss-w-nba-mu-price > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
472
+ .ss-w-nba-vs .ss-w-nba-figl { white-space: normal; overflow-wrap: anywhere; }
473
+ .ss-w-nba-pair .ss-w-nba-pcell { justify-content: flex-start; }
474
+ .ss-w-nba-mu-price { display: grid; gap: 4px; margin-top: 6px; }
470
475
  .ss-w-nba-sr-player { display: flex; flex-direction: column; gap: 6px; }
471
476
  .ss-w-nba-sr{grid-template-columns:minmax(0,1fr) 44px 44px 54px;align-items:center}
472
477
  .ss-w-nba-sr-line { display: contents; }
@@ -2708,3 +2713,53 @@
2708
2713
  .ss-w-builder-tab { gap: 14px; }
2709
2714
  .ss-w-builder-tab > .ss-w-v8 { container-type: inline-size; }
2710
2715
  .ss-w-builder-tab .ss-w-dash-sport { min-height: 36px; }
2716
+
2717
+ /* Tennis insight cards (u641): serve/return scatter, serve form bars, season path. Every word comes from the payload. */
2718
+ .ss-w-tni { container-type: inline-size; --ss-w-tni-hard: #3a63a8; --ss-w-tni-clay: #c2623a; --ss-w-tni-grass: #3f9a4a; --ss-w-tni-other: #7d8793; min-width: 0; }
2719
+ @media (prefers-color-scheme: dark) {
2720
+ .ss-w-root[data-ss-w-theme="auto"] .ss-w-tni { --ss-w-tni-hard: #5b83c8; --ss-w-tni-clay: #e0835a; --ss-w-tni-grass: #5cc069; --ss-w-tni-other: #8b95a1; }
2721
+ }
2722
+ .ss-w-root[data-ss-w-theme="dark"] .ss-w-tni { --ss-w-tni-hard: #5b83c8; --ss-w-tni-clay: #e0835a; --ss-w-tni-grass: #5cc069; --ss-w-tni-other: #8b95a1; }
2723
+ .ss-w-tni-svg { display: block; width: 100%; height: auto; max-width: 100%; overflow: hidden; font-variant-numeric: tabular-nums; }
2724
+ .ss-w-tni-grid { stroke: var(--ss-w-line); stroke-width: 1; }
2725
+ .ss-w-tni-tick { font-size: 9px; fill: var(--ss-w-faint); }
2726
+ .ss-w-tni-axis { font-size: 9.5px; fill: var(--ss-w-faint); }
2727
+ .ss-w-tni-dot { fill: var(--ss-w-ink); opacity: 0.35; }
2728
+ .ss-w-tni-tour { stroke: var(--ss-w-faint); stroke-width: 1; stroke-dasharray: 4 3; }
2729
+ .ss-w-tni-lab { font-size: 11px; font-weight: 700; fill: var(--ss-w-ink); stroke: var(--ss-w-panel); stroke-width: 3px; paint-order: stroke; stroke-linejoin: round; }
2730
+ .ss-w-tni-lab-faint { font-size: 9.5px; font-weight: 500; fill: var(--ss-w-faint); }
2731
+ .ss-w-tni-mark { stroke: var(--ss-w-panel); stroke-width: 1.5px; }
2732
+ .ss-w-tni-mark-a, .ss-w-tni-swatch-a { fill: var(--ss-w-accent); background: var(--ss-w-accent); }
2733
+ .ss-w-tni-mark-b, .ss-w-tni-swatch-b { fill: var(--ss-w-home); background: var(--ss-w-home); }
2734
+ .ss-w-tni-ranks { list-style: none; display: flex; flex-direction: column; gap: 4px; }
2735
+ .ss-w-tni-rank { display: flex; align-items: baseline; gap: 6px; font-size: 12px; line-height: 1.35; min-width: 0; }
2736
+ .ss-w-tni-rank-text { min-width: 0; flex: 1; overflow-wrap: anywhere; color: var(--ss-w-ink); }
2737
+ .ss-w-tni-swatch { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; }
2738
+ .ss-w-tni-cc { flex: none; font-size: 10.5px; font-weight: 600; letter-spacing: 0.04em; color: var(--ss-w-faint); }
2739
+ .ss-w-tni-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
2740
+ @container (max-width: 480px) { .ss-w-tni-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
2741
+ .ss-w-tni-tile { display: flex; flex-direction: column; gap: 1px; padding: 7px 8px; border-radius: 10px; background: var(--ss-w-bubble); min-width: 0; }
2742
+ .ss-w-tni-tile-v { font-size: 13px; font-weight: 700; color: var(--ss-w-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
2743
+ .ss-w-tni-tile-l { font-size: 10.5px; color: var(--ss-w-faint); line-height: 1.25; }
2744
+ .ss-w-tni-fbar-w { fill: var(--ss-w-accent); }
2745
+ .ss-w-tni-fbar-l { fill: var(--ss-w-tni-other); }
2746
+ .ss-w-tni-fbar { rx: 2px; }
2747
+ .ss-w-tni-xl { font-size: 9px; fill: var(--ss-w-faint); }
2748
+ .ss-w-tni-xl-w { fill: var(--ss-w-accent); font-weight: 700; }
2749
+ .ss-w-tni-xl-name { font-size: 8px; }
2750
+ .ss-w-tni-xl-l { fill: var(--ss-w-faint); font-weight: 700; }
2751
+ .ss-w-tni-bar { stroke: none; }
2752
+ .ss-w-tni-sw-title { display: inline-block; flex: none; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-bottom: 7px solid var(--ss-w-cta); }
2753
+ .ss-w-tni-sw-cap, .ss-w-tni-sw-alive { display: inline-block; flex: none; width: 9px; height: 9px; border-radius: 2px; box-sizing: border-box; }
2754
+ .ss-w-tni-sw-cap { border: 1px dashed var(--ss-w-faint); }
2755
+ .ss-w-tni-sw-alive { border: 1.5px dashed var(--ss-w-ink); background: var(--ss-w-line); }
2756
+ .ss-w-tni-alive { stroke: var(--ss-w-ink); stroke-width: 1.5px; stroke-dasharray: 3 2; }
2757
+ .ss-w-tni-cap { fill: none; stroke: var(--ss-w-faint); stroke-width: 1px; stroke-dasharray: 3 2; }
2758
+ .ss-w-tni-titlemark { fill: var(--ss-w-cta); stroke: var(--ss-w-panel); stroke-width: 0.5px; }
2759
+ .ss-w-tni-record { font-size: 13px; font-weight: 700; color: var(--ss-w-ink); font-variant-numeric: tabular-nums; }
2760
+ .ss-w-tni-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
2761
+ .ss-w-tni-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--ss-w-faint); border: 1px solid var(--ss-w-line); border-radius: 999px; padding: 2px 8px; }
2762
+ .ss-w-tni-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; padding-top: 10px; border-top: 1px solid var(--ss-w-line); font-size: 12.5px; font-variant-numeric: tabular-nums; }
2763
+ .ss-w-tni-price-lab { color: var(--ss-w-faint); font-weight: 600; }
2764
+ .ss-w-tni-price-val { color: var(--ss-w-ink); font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
2765
+ .ss-w-tni-price-sep { color: var(--ss-w-faint); font-weight: 400; }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sensiblestats/widget-react",
3
- "version": "0.126.0",
3
+ "version": "0.128.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.90.0",
42
+ "@sensiblestats/widget-sdk": "^0.92.0",
43
43
  "react-markdown": "^9.0.1",
44
44
  "remark-gfm": "^4.0.0"
45
45
  },