@sensiblestats/widget-react 0.145.2 → 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/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; }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sensiblestats/widget-react",
3
- "version": "0.145.2",
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.106.0",
42
+ "@sensiblestats/widget-sdk": "^0.107.0",
43
43
  "react-markdown": "^9.0.1",
44
44
  "remark-gfm": "^4.0.0"
45
45
  },