@sensiblestats/widget-react 0.11.0 → 0.13.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
@@ -182,13 +182,40 @@
182
182
  .ss-w-mo-price { margin-left: auto; font-family: ui-monospace, monospace; font-variant-numeric: tabular-nums; font-size: 14px; font-weight: 700; color: var(--ss-w-accent); }
183
183
  /* Movement: BOTH directions share --ss-w-faint on purpose. Green-good/red-bad would frame a
184
184
  shortening price as a discount, which inverts what it actually means for the bettor. */
185
- .ss-w-mo-move { margin-left: auto; display: inline-flex; align-items: baseline; gap: 4px; color: var(--ss-w-faint); }
186
- .ss-w-mo-prev { font-family: ui-monospace, monospace; font-variant-numeric: tabular-nums; font-size: 12px; text-decoration: line-through; }
187
- .ss-w-mo-arrow { font-size: 9px; line-height: 1; }
188
- .ss-w-mo-move + .ss-w-mo-price { margin-left: 0; }
185
+ .ss-w-move { display: inline-flex; align-items: baseline; gap: 4px; color: var(--ss-w-faint); }
186
+ .ss-w-move-prev { font-family: ui-monospace, monospace; font-variant-numeric: tabular-nums; font-size: 12px; text-decoration: line-through; }
187
+ .ss-w-move-arrow { font-size: 9px; line-height: 1; }
188
+ /* margin-left:auto is row layout, not badge styling -- it belongs to the market-odds row, which is
189
+ a flex row, and must NOT follow the badge into the insight card's odds column. */
190
+ .ss-w-mo-row .ss-w-move { margin-left: auto; }
191
+ .ss-w-mo-row .ss-w-move + .ss-w-mo-price { margin-left: 0; }
189
192
  .ss-w-mo-row .ss-w-slip { margin: 0; }
190
193
  .ss-w-mo-foot { display: flex; align-items: center; gap: 8px; font-size: 10.5px; color: var(--ss-w-faint); }
191
194
 
195
+ /* odds movement card */
196
+ .ss-w-omcards { display: flex; flex-direction: column; gap: 7px; }
197
+ .ss-w-omcard { 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: 6px; }
198
+ .ss-w-om-head { display: flex; align-items: center; gap: 8px; }
199
+ .ss-w-om-market { font-size: 13px; font-weight: 700; color: var(--ss-w-ink); }
200
+ .ss-w-om-tag { margin-left: auto; flex: none; font-size: 9px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--ss-w-faint); border: 1px solid var(--ss-w-line); border-radius: 8px; padding: 2px 7px; }
201
+ .ss-w-om-fixture { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ss-w-faint); min-width: 0; }
202
+ .ss-w-om-comp { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
203
+ .ss-w-om-sel { font-size: 12.5px; font-weight: 600; color: var(--ss-w-ink); }
204
+ .ss-w-om-chart { display: block; width: 100%; height: auto; }
205
+ /* Single neutral accent in BOTH directions, deliberately. Colouring a shortening price green
206
+ frames it as a discount, which inverts what it means for the bettor -- the same reason
207
+ .ss-w-move keeps both directions on --ss-w-faint. */
208
+ .ss-w-om-line { stroke: var(--ss-w-accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
209
+ .ss-w-om-dot { fill: var(--ss-w-accent); }
210
+ .ss-w-om-grid { stroke: var(--ss-w-line); stroke-width: 1; }
211
+ .ss-w-om-ylab, .ss-w-om-xlab { fill: var(--ss-w-faint); font-size: 9px; font-family: ui-monospace, monospace; }
212
+ .ss-w-om-empty { font-size: 11.5px; color: var(--ss-w-faint); padding: 6px 0; }
213
+ .ss-w-om-foot { display: flex; align-items: center; gap: 14px; font-size: 11.5px; color: var(--ss-w-faint); }
214
+ .ss-w-om-foot b { font-family: ui-monospace, monospace; font-variant-numeric: tabular-nums; font-size: 13px; color: var(--ss-w-ink); }
215
+ .ss-w-om-excl { font-size: 10.5px; color: var(--ss-w-faint); }
216
+ .ss-w-om-susp { font-size: 11px; font-weight: 600; color: #c0392b; }
217
+ .ss-w-om-disc { font-size: 10px; font-style: italic; color: var(--ss-w-faint); }
218
+
192
219
  /* action buttons */
193
220
  .ss-w-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
194
221
  .ss-w-abtn { font-size: 12px; font-weight: 560; color: var(--ss-w-accent); background: var(--ss-w-panel); border: 1px solid var(--ss-w-accent); border-radius: 16px; padding: 6px 12px; cursor: pointer; }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sensiblestats/widget-react",
3
- "version": "0.11.0",
3
+ "version": "0.13.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.9.0",
40
+ "@sensiblestats/widget-sdk": "^0.11.0",
41
41
  "react-markdown": "^9.0.1",
42
42
  "remark-gfm": "^4.0.0"
43
43
  },