@sensiblestats/widget-react 0.145.1 → 0.145.2
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 +26 -23
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +26 -23
- package/dist/index.js.map +1 -1
- package/dist/styles.css +3 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1339,7 +1339,7 @@ function parseCustomTotal(text2, format2) {
|
|
|
1339
1339
|
}
|
|
1340
1340
|
|
|
1341
1341
|
// src/version.generated.ts
|
|
1342
|
-
var WIDGET_REACT_VERSION = "0.145.
|
|
1342
|
+
var WIDGET_REACT_VERSION = "0.145.2";
|
|
1343
1343
|
|
|
1344
1344
|
// src/config.ts
|
|
1345
1345
|
function hostTag(cfg) {
|
|
@@ -8439,26 +8439,28 @@ function ComboLegRow({ leg, addToSlipEnabled, ui, slip, monitor, hold, closed, s
|
|
|
8439
8439
|
/* @__PURE__ */ jsx37("span", { className: "ss-w-combo-leg-market", children: leg.market }),
|
|
8440
8440
|
/* @__PURE__ */ jsx37("span", { className: "ss-w-combo-leg-sel", children: leg.selection })
|
|
8441
8441
|
] }),
|
|
8442
|
-
closed ? null : /* @__PURE__ */
|
|
8443
|
-
|
|
8444
|
-
|
|
8445
|
-
|
|
8446
|
-
|
|
8447
|
-
|
|
8448
|
-
|
|
8449
|
-
|
|
8450
|
-
|
|
8451
|
-
|
|
8452
|
-
|
|
8453
|
-
|
|
8454
|
-
|
|
8455
|
-
|
|
8456
|
-
|
|
8457
|
-
/* @__PURE__ */ jsx37("
|
|
8458
|
-
|
|
8459
|
-
|
|
8460
|
-
|
|
8461
|
-
|
|
8442
|
+
closed && !swap ? null : /* @__PURE__ */ jsxs32("span", { className: "ss-w-combo-leg-act", children: [
|
|
8443
|
+
closed ? null : /* @__PURE__ */ jsx37("span", { className: "ss-w-combo-leg-price", children: odds }),
|
|
8444
|
+
closed ? null : /* @__PURE__ */ jsx37(
|
|
8445
|
+
SlipButton,
|
|
8446
|
+
{
|
|
8447
|
+
selection,
|
|
8448
|
+
marketDeveloperName: leg.marketDeveloperName || void 0,
|
|
8449
|
+
selectionLabel: leg.selectionLabel,
|
|
8450
|
+
line: leg.line,
|
|
8451
|
+
slip,
|
|
8452
|
+
ui,
|
|
8453
|
+
ariaLabel: `${leg.homeTeamName} ${leg.awayTeamName}, ${leg.selection} ${odds}`,
|
|
8454
|
+
hold
|
|
8455
|
+
}
|
|
8456
|
+
),
|
|
8457
|
+
swap ? /* @__PURE__ */ jsx37("button", { type: "button", className: "ss-w-combo-leg-swap", "aria-label": swap.label, "aria-describedby": noteId, "data-focus": swap.focusKey, disabled: swap.disabled, onClick: swap.onSwap, children: /* @__PURE__ */ jsxs32("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", focusable: "false", children: [
|
|
8458
|
+
/* @__PURE__ */ jsx37("path", { d: "M17 3l4 4-4 4" }),
|
|
8459
|
+
/* @__PURE__ */ jsx37("path", { d: "M3 7h18" }),
|
|
8460
|
+
/* @__PURE__ */ jsx37("path", { d: "M7 21l-4-4 4-4" }),
|
|
8461
|
+
/* @__PURE__ */ jsx37("path", { d: "M21 17H3" })
|
|
8462
|
+
] }) }) : null
|
|
8463
|
+
] })
|
|
8462
8464
|
] }),
|
|
8463
8465
|
swap ? /* @__PURE__ */ jsx37("p", { id: noteId, className: "ss-w-combo-leg-swapnone", "data-kind": "swap-none", role: "status", children: swap.note ?? "" }) : null,
|
|
8464
8466
|
line ? /* @__PURE__ */ jsx37("p", { className: "ss-w-combo-leg-stat", children: line }) : null
|
|
@@ -19295,12 +19297,13 @@ var WIDGET_CSS = `.ss-w-root { all: revert; }
|
|
|
19295
19297
|
.ss-w-combo-leg-what { flex: 1 1 7rem; min-width: min(100%, 7rem); display: flex; flex-direction: column; gap: 1px; }
|
|
19296
19298
|
.ss-w-combo-leg-market { font-size: 11.5px; font-weight: 600; line-height: 1.25; color: var(--ss-w-faint); overflow-wrap: break-word; }
|
|
19297
19299
|
.ss-w-combo-leg-sel { font-size: 13px; font-weight: 700; line-height: 1.2; color: var(--ss-w-ink); overflow-wrap: break-word; }
|
|
19300
|
+
.ss-w-combo-leg-act { flex: 0 0 auto; max-width: 100%; margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px 9px; }
|
|
19298
19301
|
.ss-w-combo-leg-price { flex: none; font-family: ui-monospace, monospace; font-variant-numeric: tabular-nums; font-size: 17px; font-weight: 800; line-height: 1.05; color: var(--ss-w-accent); }
|
|
19299
19302
|
.ss-w-combo-leg-pick .ss-w-slip { display: contents; }
|
|
19300
19303
|
.ss-w-combo-leg-pick .ss-w-slip-btn { flex: none; }
|
|
19301
19304
|
.ss-w-combo-leg .ss-w-bi-team { white-space: normal; text-overflow: clip; overflow-wrap: break-word; line-height: 1.25; }
|
|
19302
|
-
.ss-w-combo-leg-pick .ss-w-toast { position: static; flex-basis: 100%; width:
|
|
19303
|
-
.ss-w-combo-leg-swap { flex: none; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; width: 32px; height: 32px;
|
|
19305
|
+
.ss-w-combo-leg-pick .ss-w-toast { position: static; order: 1; flex-basis: 100%; width: 0; max-width: none; box-shadow: none; }
|
|
19306
|
+
.ss-w-combo-leg-swap { flex: none; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; width: 32px; height: 32px; padding: 0; border: 1px solid var(--ss-w-line); border-radius: 50%; background: transparent; color: var(--ss-w-ink); cursor: pointer; }
|
|
19304
19307
|
.ss-w-combo-leg-swap:hover:not(:disabled) { border-color: var(--ss-w-accent); }
|
|
19305
19308
|
.ss-w-combo-leg-swap:disabled { cursor: default; opacity: .4; }
|
|
19306
19309
|
.ss-w-combo-leg-swapnone { margin: 0; font-size: 12px; line-height: 1.4; color: var(--ss-w-faint); }
|