@rojaostudio/ds 2.0.0-next.4 → 2.0.0-next.6
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/dist/components/chart.js
CHANGED
|
@@ -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
|
-
] }) :
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
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
|
+
"version": "2.0.0-next.6",
|
|
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",
|
|
@@ -190,7 +190,7 @@
|
|
|
190
190
|
"@radix-ui/react-toggle": "^1.1.18",
|
|
191
191
|
"@radix-ui/react-toggle-group": "^1.1.19",
|
|
192
192
|
"@radix-ui/react-tooltip": "^1.2.16",
|
|
193
|
-
"@rojaostudio/ds-core": "1.1.0-next.
|
|
193
|
+
"@rojaostudio/ds-core": "1.1.0-next.2"
|
|
194
194
|
},
|
|
195
195
|
"scripts": {
|
|
196
196
|
"build": "pnpm run build:tokens && pnpm run build:themes && pnpm run build:rds && pnpm run build:native && tsup",
|
|
@@ -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);
|