@rojaostudio/ds 2.0.0-next.3 → 2.0.0-next.5

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.
@@ -235,20 +235,24 @@ function Chart(_a) {
235
235
  return /* @__PURE__ */ jsx(TableCell, { align: "end", children: formatFor(s)((_a3 = s.data[i]) != null ? _a3 : 0) }, s.name);
236
236
  })
237
237
  ] }, name)) })
238
- ] }) : /* @__PURE__ */ jsxs("table", { className: "rds-visually-hidden", children: [
239
- /* @__PURE__ */ jsx("caption", { children: label }),
240
- /* @__PURE__ */ jsx("thead", { children: /* @__PURE__ */ jsxs("tr", { children: [
241
- /* @__PURE__ */ jsx("th", { scope: "col", children: firstColumn }),
242
- shown.map((s) => /* @__PURE__ */ jsx("th", { scope: "col", children: legendName(s) }, s.name))
243
- ] }) }),
244
- /* @__PURE__ */ jsx("tbody", { children: labels.map((name, i) => /* @__PURE__ */ jsxs("tr", { children: [
245
- /* @__PURE__ */ jsx("th", { scope: "row", children: name }),
246
- shown.map((s) => {
247
- var _a3;
248
- return /* @__PURE__ */ jsx("td", { children: formatFor(s)((_a3 = s.data[i]) != null ? _a3 : 0) }, s.name);
249
- })
250
- ] }, name)) })
251
- ] })
238
+ ] }) : (
239
+ // The clip goes on a wrapper: a <table> ignores the 1px box and overflow of .rds-visually-hidden, so it
240
+ // kept its full size, anchored to the page and stretched the page scroll.
241
+ /* @__PURE__ */ jsx("div", { className: "rds-visually-hidden", children: /* @__PURE__ */ jsxs("table", { children: [
242
+ /* @__PURE__ */ jsx("caption", { children: label }),
243
+ /* @__PURE__ */ jsx("thead", { children: /* @__PURE__ */ jsxs("tr", { children: [
244
+ /* @__PURE__ */ jsx("th", { scope: "col", children: firstColumn }),
245
+ shown.map((s) => /* @__PURE__ */ jsx("th", { scope: "col", children: legendName(s) }, s.name))
246
+ ] }) }),
247
+ /* @__PURE__ */ jsx("tbody", { children: labels.map((name, i) => /* @__PURE__ */ jsxs("tr", { children: [
248
+ /* @__PURE__ */ jsx("th", { scope: "row", children: name }),
249
+ shown.map((s) => {
250
+ var _a3;
251
+ return /* @__PURE__ */ jsx("td", { children: formatFor(s)((_a3 = s.data[i]) != null ? _a3 : 0) }, s.name);
252
+ })
253
+ ] }, name)) })
254
+ ] }) })
255
+ )
252
256
  ]
253
257
  })
254
258
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rojaostudio/ds",
3
- "version": "2.0.0-next.3",
3
+ "version": "2.0.0-next.5",
4
4
  "type": "module",
5
5
  "description": "Rojão Design System — componentes React, estilos e alvo React Native. O motor vive em @rojaostudio/ds-core.",
6
6
  "license": "MIT",
@@ -1992,6 +1992,8 @@ button.rds-breadcrumb__link:focus-visible {
1992
1992
  * in --_series: chart.tsx picks one of the --_series-N locals below, each one a chart/series-color/N token.
1993
1993
  */
1994
1994
  .rds-chart {
1995
+ /* Anchors the hidden alternative table (and any absolute part) to the chart, not to the page. */
1996
+ position: relative;
1995
1997
  --_series-1: var(--chart-series-color-1);
1996
1998
  --_series-2: var(--chart-series-color-2);
1997
1999
  --_series-3: var(--chart-series-color-3);
@@ -8789,9 +8791,12 @@ input:focus-visible + .rds-radio__circle {
8789
8791
  cursor: pointer;
8790
8792
  }
8791
8793
 
8794
+ /* Figma .sidebar/section: label in caps with 6% tracking; the count keeps its own case and no tracking. */
8792
8795
  .rds-sidebar__section-label {
8793
8796
  flex: 1;
8794
8797
  min-width: 0;
8798
+ text-transform: uppercase;
8799
+ letter-spacing: 0.06em;
8795
8800
  }
8796
8801
 
8797
8802
  .rds-sidebar__section-count {