@sensiblestats/widget-react 0.60.3 → 0.60.4

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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @sensiblestats/widget-react
2
2
 
3
+ ## 0.60.4
4
+
5
+ ### Patch Changes
6
+
7
+ - Games: Higher/Lower labels stay on one line (Turkish "Daha fazla" wrapped), and the Beat the Grid board shrinks its rows so the whole grid and the search field fit on screen while the search sheet is open.
8
+
3
9
  ## 0.60.3
4
10
 
5
11
  ### Patch Changes
package/dist/index.cjs CHANGED
@@ -5692,8 +5692,11 @@ function BeatTheGridGame({
5692
5692
  /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
5693
5693
  "div",
5694
5694
  {
5695
- className: "ss-g-btg-grid",
5696
- style: { gridTemplateColumns: `64px repeat(${cols.length}, minmax(0, 1fr))` },
5695
+ className: activeCell !== null ? "ss-g-btg-grid ss-g-btg-grid--fit" : "ss-g-btg-grid",
5696
+ style: {
5697
+ gridTemplateColumns: `64px repeat(${cols.length}, minmax(0, 1fr))`,
5698
+ gridTemplateRows: `minmax(44px, 60px) repeat(${rows.length}, minmax(44px, 98px))`
5699
+ },
5697
5700
  role: "grid",
5698
5701
  children: [
5699
5702
  /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("div", { className: "ss-g-btg-corner" }),
@@ -8376,8 +8379,10 @@ var WIDGET_CSS = `.ss-w-root { all: revert; }
8376
8379
  .ss-g-hl-value { font: 800 56px var(--ss-g-font-display); line-height: .95; color: var(--ss-w-accent); margin-top: 6px; }
8377
8380
  .ss-g-hl-stat { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ss-g-muted); }
8378
8381
  .ss-g-hl-btns { display: flex; flex-direction: row; gap: 8px; margin-top: 12px; }
8379
- .ss-g-hl-btns .ss-g-btn { flex: 1 1 0; min-width: 0; min-height: 44px; padding: 0 8px; }
8380
- .ss-g-hl-btns .ss-g-btn { font-weight: 800; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
8382
+ .ss-g-hl-btns .ss-g-btn { flex: 1 1 0; min-width: 0; min-height: 44px; padding: 0 6px; gap: 4px; }
8383
+ /* Labels stay on one line: Turkish "DAHA FAZLA" wrapped to two in a ~115px button. */
8384
+ .ss-g-hl-btns .ss-g-btn { font-weight: 800; font-size: 13px; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; }
8385
+ .ss-g-hl-btns .ss-g-btn svg { flex: none; }
8381
8386
  .ss-g-hl-vs { position: relative; z-index: 1; flex: none; align-self: center; width: 44px; height: 44px; margin: -28px 0; border-radius: 50%; display: grid; place-items: center; background: var(--ss-g-ground); border: 2px solid var(--ss-g-line-warm); color: var(--ss-w-accent); font: 800 18px var(--ss-g-font-display); }
8382
8387
  /* Clear the VS badge that straddles the seam between the two cards. */
8383
8388
  .ss-g-hl-pair > .ss-g-hl-card:first-child .ss-g-hl-info { padding-bottom: 24px; }
@@ -8516,10 +8521,13 @@ var WIDGET_CSS = `.ss-w-root { all: revert; }
8516
8521
 
8517
8522
  /* ---- Beat the Grid (u393) ---- */
8518
8523
  .ss-g-btg-grid { display: grid; gap: 6px; }
8519
- .ss-g-btg-colhdr { height: 60px; border-radius: 12px; background: var(--ss-g-surface); border: 1px solid var(--ss-g-line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; padding: 0 4px; font-size: 12px; font-weight: 700; line-height: 1.1; min-width: 0; overflow-wrap: anywhere; }
8524
+ /* While the search sheet is pinned below, the grid shrinks its rows to share the body with it
8525
+ instead of pushing the bottom row under the sheet. */
8526
+ .ss-g-btg-grid--fit { flex: 0 1 auto; min-height: 0; }
8527
+ .ss-g-btg-colhdr { min-height: 0; border-radius: 12px; background: var(--ss-g-surface); border: 1px solid var(--ss-g-line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; padding: 0 4px; font-size: 12px; font-weight: 700; line-height: 1.1; min-width: 0; overflow-wrap: anywhere; }
8520
8528
  .ss-g-btg-colhdr svg { color: var(--ss-w-accent); flex: none; }
8521
8529
  .ss-g-btg-rowhdr { border-radius: 12px; background: var(--ss-g-surface); border: 1px solid var(--ss-g-line); display: grid; place-items: center; font-family: var(--ss-g-font-display); font-weight: 800; font-size: 18px; letter-spacing: .04em; text-transform: uppercase; overflow-wrap: anywhere; text-align: center; }
8522
- .ss-g-btg-cell { position: relative; height: 98px; min-width: 0; border-radius: 12px; border: 1.5px dashed var(--ss-g-strong-line); background: transparent; color: var(--ss-g-muted); display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; cursor: pointer; font: inherit; padding: 0; }
8530
+ .ss-g-btg-cell { position: relative; min-height: 0; min-width: 0; border-radius: 12px; border: 1.5px dashed var(--ss-g-strong-line); background: transparent; color: var(--ss-g-muted); display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; cursor: pointer; font: inherit; padding: 0; }
8523
8531
  .ss-g-btg-cell:disabled { cursor: default; }
8524
8532
  .ss-g-btg-cell[data-state="active"] { border: 2px solid var(--ss-w-accent); background: var(--ss-g-warm); color: var(--ss-w-accent); }
8525
8533
  .ss-g-btg-cell[data-state="correct"], .ss-g-btg-cell[data-state="wrong"] { justify-content: flex-end; background: var(--ss-g-surface); border-style: solid; }
@@ -8543,6 +8551,7 @@ var WIDGET_CSS = `.ss-w-root { all: revert; }
8543
8551
  .ss-g-btg-sheet .ss-g-search-box { height: 48px; border-radius: 12px; background: var(--ss-g-ground); }
8544
8552
  .ss-g-btg-sheet-empty { font-size: 13px; color: var(--ss-g-muted); }
8545
8553
  .ss-g-btg-sheet .ss-g-opt { background: var(--ss-g-raised); }
8554
+ .ss-g-btg-sheet .ss-g-opts { max-height: 160px; }
8546
8555
  .ss-g-btg-result-name { flex: 1; min-width: 0; font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
8547
8556
  .ss-g-btg-result-plus { color: var(--ss-w-accent); display: flex; }
8548
8557