@sensiblestats/widget-react 0.127.0 → 0.128.1

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
@@ -2713,3 +2713,54 @@
2713
2713
  .ss-w-builder-tab { gap: 14px; }
2714
2714
  .ss-w-builder-tab > .ss-w-v8 { container-type: inline-size; }
2715
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-rline { stroke-dasharray: 2 3; opacity: 0.6; }
2726
+ .ss-w-tni-tick { font-size: 9px; fill: var(--ss-w-faint); }
2727
+ .ss-w-tni-axis { font-size: 9.5px; fill: var(--ss-w-faint); }
2728
+ .ss-w-tni-dot { fill: var(--ss-w-ink); opacity: 0.35; }
2729
+ .ss-w-tni-tour { stroke: var(--ss-w-faint); stroke-width: 1; stroke-dasharray: 4 3; }
2730
+ .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; }
2731
+ .ss-w-tni-lab-faint { font-size: 9.5px; font-weight: 500; fill: var(--ss-w-faint); }
2732
+ .ss-w-tni-mark { stroke: var(--ss-w-panel); stroke-width: 1.5px; }
2733
+ .ss-w-tni-mark-a, .ss-w-tni-swatch-a { fill: var(--ss-w-accent); background: var(--ss-w-accent); }
2734
+ .ss-w-tni-mark-b, .ss-w-tni-swatch-b { fill: var(--ss-w-home); background: var(--ss-w-home); }
2735
+ .ss-w-tni-ranks { list-style: none; display: flex; flex-direction: column; gap: 4px; }
2736
+ .ss-w-tni-rank { display: flex; align-items: baseline; gap: 6px; font-size: 12px; line-height: 1.35; min-width: 0; }
2737
+ .ss-w-tni-rank-text { min-width: 0; flex: 1; overflow-wrap: anywhere; color: var(--ss-w-ink); }
2738
+ .ss-w-tni-swatch { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; }
2739
+ .ss-w-tni-cc { flex: none; font-size: 10.5px; font-weight: 600; letter-spacing: 0.04em; color: var(--ss-w-faint); }
2740
+ .ss-w-tni-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
2741
+ @container (max-width: 480px) { .ss-w-tni-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
2742
+ .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; }
2743
+ .ss-w-tni-tile-v { font-size: 13px; font-weight: 700; color: var(--ss-w-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
2744
+ .ss-w-tni-tile-l { font-size: 10.5px; color: var(--ss-w-faint); line-height: 1.25; }
2745
+ .ss-w-tni-fbar-w { fill: var(--ss-w-accent); }
2746
+ .ss-w-tni-fbar-l { fill: var(--ss-w-tni-other); }
2747
+ .ss-w-tni-fbar { rx: 2px; }
2748
+ .ss-w-tni-xl { font-size: 9px; fill: var(--ss-w-faint); }
2749
+ .ss-w-tni-xl-w { fill: var(--ss-w-accent); font-weight: 700; }
2750
+ .ss-w-tni-xl-name { font-size: 8px; }
2751
+ .ss-w-tni-xl-l { fill: var(--ss-w-faint); font-weight: 700; }
2752
+ .ss-w-tni-bar { stroke: none; }
2753
+ .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); }
2754
+ .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; }
2755
+ .ss-w-tni-sw-cap { border: 1px dashed var(--ss-w-faint); }
2756
+ .ss-w-tni-sw-alive { border: 1.5px dashed var(--ss-w-ink); background: var(--ss-w-line); }
2757
+ .ss-w-tni-alive { stroke: var(--ss-w-ink); stroke-width: 1.5px; stroke-dasharray: 3 2; }
2758
+ .ss-w-tni-cap { fill: none; stroke: var(--ss-w-faint); stroke-width: 1px; stroke-dasharray: 3 2; }
2759
+ .ss-w-tni-titlemark { fill: var(--ss-w-cta); stroke: var(--ss-w-panel); stroke-width: 0.5px; }
2760
+ .ss-w-tni-record { font-size: 13px; font-weight: 700; color: var(--ss-w-ink); font-variant-numeric: tabular-nums; }
2761
+ .ss-w-tni-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
2762
+ .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; }
2763
+ .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; }
2764
+ .ss-w-tni-price-lab { color: var(--ss-w-faint); font-weight: 600; }
2765
+ .ss-w-tni-price-val { color: var(--ss-w-ink); font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
2766
+ .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.127.0",
3
+ "version": "0.128.1",
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.91.0",
42
+ "@sensiblestats/widget-sdk": "^0.92.0",
43
43
  "react-markdown": "^9.0.1",
44
44
  "remark-gfm": "^4.0.0"
45
45
  },