@sensiblestats/widget-react 0.37.0 → 0.37.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/CHANGELOG.md +6 -0
- package/dist/index.cjs +9 -4
- 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 +9 -4
- package/dist/index.js.map +1 -1
- package/dist/styles.css +8 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @sensiblestats/widget-react
|
|
2
2
|
|
|
3
|
+
## 0.37.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Match odds accordion polish: add a gap between the pinned-match card and the accordion; keep the "Add to slip" button on one line (long selection labels wrap instead); and render the expanded odds card bare inside the accordion so odds rows aren't double-bordered (the standalone market-odds card on the Odds/Chat tabs keeps its border).
|
|
8
|
+
|
|
3
9
|
## 0.37.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
package/dist/index.cjs
CHANGED
|
@@ -1807,7 +1807,7 @@ function MarketOddsCard({ vm, ui, slip, monitor, inSlipIds, hideHeader }) {
|
|
|
1807
1807
|
const hasNamedTeams = !!vm.homeTeamName && !!vm.awayTeamName;
|
|
1808
1808
|
const showPin = !!monitor && vm.pinEnabled;
|
|
1809
1809
|
const showHeader = !!vm.competition || vm.isLive || !!kickoff || showPin;
|
|
1810
|
-
return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "ss-w-mocard", children: [
|
|
1810
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: hideHeader ? "ss-w-mocard ss-w-mocard--bare" : "ss-w-mocard", children: [
|
|
1811
1811
|
!hideHeader && /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(import_jsx_runtime14.Fragment, { children: [
|
|
1812
1812
|
showHeader ? /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "ss-w-bi-header", children: [
|
|
1813
1813
|
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "ss-w-bi-header-left", children: vm.competition ? /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(import_jsx_runtime14.Fragment, { children: [
|
|
@@ -3513,6 +3513,9 @@ var WIDGET_CSS = `.ss-w-root { all: revert; }
|
|
|
3513
3513
|
/* market odds card */
|
|
3514
3514
|
.ss-w-mocards { display: flex; flex-direction: column; gap: 7px; }
|
|
3515
3515
|
.ss-w-mocard { 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; }
|
|
3516
|
+
/* Embedded inside the market accordion, which already provides the card frame + accent rail --
|
|
3517
|
+
drop the inner frame so odds rows aren't double-bordered. */
|
|
3518
|
+
.ss-w-mocard--bare { border: none; border-radius: 0; padding: 0; background: none; }
|
|
3516
3519
|
.ss-w-mo-sub { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
|
|
3517
3520
|
.ss-w-mo-teams { font-size: 13px; font-weight: 650; color: var(--ss-w-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
3518
3521
|
.ss-w-mo-market { font-size: 11.5px; font-weight: 600; color: var(--ss-w-faint); }
|
|
@@ -3523,7 +3526,7 @@ var WIDGET_CSS = `.ss-w-root { all: revert; }
|
|
|
3523
3526
|
.ss-w-mo-rows { display: flex; flex-direction: column; gap: 4px; }
|
|
3524
3527
|
.ss-w-mo-row { display: flex; align-items: center; gap: 10px; padding: 4px 0; border-bottom: 1px dashed var(--ss-w-line); }
|
|
3525
3528
|
.ss-w-mo-row:last-child { border-bottom: none; }
|
|
3526
|
-
.ss-w-mo-sel { font-size: 12.5px; font-weight: 600; color: var(--ss-w-ink); }
|
|
3529
|
+
.ss-w-mo-sel { font-size: 12.5px; font-weight: 600; color: var(--ss-w-ink); flex: 1; min-width: 0; }
|
|
3527
3530
|
.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); }
|
|
3528
3531
|
/* Movement: BOTH directions share --ss-w-faint on purpose. Green-good/red-bad would frame a
|
|
3529
3532
|
shortening price as a discount, which inverts what it actually means for the bettor. */
|
|
@@ -3534,7 +3537,7 @@ var WIDGET_CSS = `.ss-w-root { all: revert; }
|
|
|
3534
3537
|
a flex row, and must NOT follow the badge into the insight card's odds column. */
|
|
3535
3538
|
.ss-w-mo-row .ss-w-move { margin-left: auto; }
|
|
3536
3539
|
.ss-w-mo-row .ss-w-move + .ss-w-mo-price { margin-left: 0; }
|
|
3537
|
-
.ss-w-mo-row .ss-w-slip { margin: 0; }
|
|
3540
|
+
.ss-w-mo-row .ss-w-slip { margin: 0; flex: none; }
|
|
3538
3541
|
.ss-w-mo-foot { display: flex; align-items: center; gap: 8px; font-size: 10.5px; color: var(--ss-w-faint); }
|
|
3539
3542
|
|
|
3540
3543
|
/* odds movement card */
|
|
@@ -3586,7 +3589,7 @@ var WIDGET_CSS = `.ss-w-root { all: revert; }
|
|
|
3586
3589
|
|
|
3587
3590
|
/* add to slip */
|
|
3588
3591
|
.ss-w-slip { position: relative; display: flex; }
|
|
3589
|
-
.ss-w-slip-btn { font-size: 11.5px; font-weight: 620; color: var(--ss-w-cta-ink); background: var(--ss-w-cta); border: 1px solid var(--ss-w-cta); border-radius: 14px; padding: 5px 12px; cursor: pointer; }
|
|
3592
|
+
.ss-w-slip-btn { font-size: 11.5px; font-weight: 620; color: var(--ss-w-cta-ink); background: var(--ss-w-cta); border: 1px solid var(--ss-w-cta); border-radius: 14px; padding: 5px 12px; cursor: pointer; white-space: nowrap; }
|
|
3590
3593
|
.ss-w-slip-btn:disabled { opacity: .6; cursor: default; background: var(--ss-w-bubble); color: var(--ss-w-faint); border-color: var(--ss-w-line); }
|
|
3591
3594
|
/* Anchored to the RIGHT of its (narrow) button wrapper and sized by content, growing leftward
|
|
3592
3595
|
into the card -- inheriting the wrapper's width squeezes the text to one character per line.
|
|
@@ -4051,6 +4054,8 @@ var WIDGET_CSS = `.ss-w-root { all: revert; }
|
|
|
4051
4054
|
|
|
4052
4055
|
/* market accordion (Task 9): one collapsed row per available market, expanding into a reused
|
|
4053
4056
|
MarketOddsCardList ladder (hideHeader -- the row header already carries the market label). */
|
|
4057
|
+
/* Pinned-match tile: the match card + its odds accordion, spaced apart. */
|
|
4058
|
+
.ss-w-mon-item { display: flex; flex-direction: column; gap: 10px; }
|
|
4054
4059
|
.ss-w-acc { display: flex; flex-direction: column; gap: 6px; }
|
|
4055
4060
|
.ss-w-acc-row { background: var(--ss-w-panel); border: 1px solid var(--ss-w-line); border-radius: 12px; border-left: 3px solid var(--ss-w-accent); overflow: hidden; }
|
|
4056
4061
|
.ss-w-acc-head { display: flex; align-items: center; gap: 8px; width: 100%; padding: 9px 11px; background: none; border: none; cursor: pointer; text-align: left; font: inherit; color: var(--ss-w-ink); }
|