@sensiblestats/widget-react 0.61.0 → 0.61.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 +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -5674,7 +5674,7 @@ function CriterionIcon({ kind }) {
|
|
|
5674
5674
|
return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(IconFlag, {});
|
|
5675
5675
|
}
|
|
5676
5676
|
}
|
|
5677
|
-
function HeaderVisual({ label,
|
|
5677
|
+
function HeaderVisual({ label, textKey: iKey, meta }) {
|
|
5678
5678
|
if (!meta) {
|
|
5679
5679
|
return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(CriterionIcon, { kind: criterionIconKind(label, iKey) });
|
|
5680
5680
|
}
|
|
@@ -5851,7 +5851,7 @@ function BeatTheGridGame({
|
|
|
5851
5851
|
cols.map((col, colIdx) => {
|
|
5852
5852
|
const colMeta = config.colsMeta?.[colIdx];
|
|
5853
5853
|
return /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { className: "ss-g-btg-colhdr", "data-meta": colMeta ? "true" : void 0, children: [
|
|
5854
|
-
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(HeaderVisual, { label: col,
|
|
5854
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(HeaderVisual, { label: col, textKey: config.colsI18n?.[colIdx]?.key, meta: colMeta }),
|
|
5855
5855
|
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)("span", { children: col })
|
|
5856
5856
|
] }, col);
|
|
5857
5857
|
}),
|
|
@@ -5859,7 +5859,7 @@ function BeatTheGridGame({
|
|
|
5859
5859
|
const rowMeta = config.rowsMeta?.[rowIdx];
|
|
5860
5860
|
const abbr = rowAbbrev(rowLabel, s.rowAbbrev, config.rowsI18n?.[rowIdx]?.key);
|
|
5861
5861
|
const rowHeaderContent = rowMeta ? /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(import_jsx_runtime71.Fragment, { children: [
|
|
5862
|
-
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(HeaderVisual, { label: rowLabel,
|
|
5862
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(HeaderVisual, { label: rowLabel, textKey: config.rowsI18n?.[rowIdx]?.key, meta: rowMeta }),
|
|
5863
5863
|
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)("span", { children: rowLabel })
|
|
5864
5864
|
] }) : abbr === rowLabel ? /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("span", { children: rowLabel }) : /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(import_jsx_runtime71.Fragment, { children: [
|
|
5865
5865
|
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)("span", { "aria-hidden": "true", children: abbr }),
|