@moderneinc/react-charts 1.5.2-next.e6e08d → 1.5.2-next.f2fa0c
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/index.cjs +2 -2
- package/dist/index.js +11 -11
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6114,9 +6114,9 @@ function sh(e, t, n, r) {
|
|
|
6114
6114
|
let d = s ? `parliament-label parliament-label-${s}` : "parliament-label";
|
|
6115
6115
|
if (e.select(`.${d.split(" ")[0]}`).empty()) {
|
|
6116
6116
|
let t = e.append("g").attr("class", d).attr("transform", `translate(${i},${a - c * .15})`).style("opacity", "0").style("pointer-events", "none");
|
|
6117
|
-
t.append("text").attr("class", "label-category").attr("text-anchor", "middle").attr("dy", "-15").style("font-size", "22px").style("fill", "#666").style("font-family", "system-ui, -apple-system, sans-serif"), t.append("text").attr("class", "label-value").attr("text-anchor", "middle").attr("dy", "35").style("font-size", "48px").style("font-weight", "bold").style("font-family", "system-ui, -apple-system, sans-serif");
|
|
6117
|
+
t.append("text").attr("class", "label-category").attr("text-anchor", "middle").attr("dy", "-15").style("font-size", "22px").style("fill", "var(--rc-muted-text, #666)").style("font-family", "system-ui, -apple-system, sans-serif"), t.append("text").attr("class", "label-value").attr("text-anchor", "middle").attr("dy", "35").style("font-size", "48px").style("font-weight", "bold").style("font-family", "system-ui, -apple-system, sans-serif");
|
|
6118
6118
|
let n = t.append("g").attr("class", "scale-indicator").attr("transform", "translate(0, 65)").style("opacity", "0");
|
|
6119
|
-
n.append("circle").attr("r", 4).attr("cx", -30).attr("cy", 0).style("fill", "#888"), n.append("text").attr("x", -20).attr("y", 0).attr("dy", "0.35em").attr("text-anchor", "start").style("font-size", "18px").style("fill", "#666").style("font-style", "italic").style("font-family", "system-ui, -apple-system, sans-serif");
|
|
6119
|
+
n.append("circle").attr("r", 4).attr("cx", -30).attr("cy", 0).style("fill", "var(--rc-muted-text, #888)"), n.append("text").attr("x", -20).attr("y", 0).attr("dy", "0.35em").attr("text-anchor", "start").style("font-size", "18px").style("fill", "var(--rc-muted-text, #666)").style("font-style", "italic").style("font-family", "system-ui, -apple-system, sans-serif");
|
|
6120
6120
|
}
|
|
6121
6121
|
}
|
|
6122
6122
|
//#endregion
|
|
@@ -7134,9 +7134,9 @@ function bh(e, t, n, r, i, a, o, s, c, l, u, d = !0, f = 14, p, m, h, g, _, v) {
|
|
|
7134
7134
|
let i = v ? `.parliament-label-${v}` : ".parliament-label";
|
|
7135
7135
|
if (e.select(i).empty()) {
|
|
7136
7136
|
let t = s / 2, n = r.radius + 10, i = c - r.radius * .3, a = Math.max(n, i), o = v ? `parliament-label parliament-label-${v}` : "parliament-label", l = e.append("g").attr("class", o).attr("transform", `translate(${t},${a - r.radius * .15})`).style("opacity", "0").style("pointer-events", "none");
|
|
7137
|
-
l.append("text").attr("class", "label-category").attr("text-anchor", "middle").attr("dy", "-15").style("font-size", "22px").style("fill", "#666").style("font-family", "system-ui, -apple-system, sans-serif"), l.append("text").attr("class", "label-value").attr("text-anchor", "middle").attr("dy", "35").style("font-size", "48px").style("font-weight", "bold").style("font-family", "system-ui, -apple-system, sans-serif");
|
|
7137
|
+
l.append("text").attr("class", "label-category").attr("text-anchor", "middle").attr("dy", "-15").style("font-size", "22px").style("fill", "var(--rc-muted-text, #666)").style("font-family", "system-ui, -apple-system, sans-serif"), l.append("text").attr("class", "label-value").attr("text-anchor", "middle").attr("dy", "35").style("font-size", "48px").style("font-weight", "bold").style("font-family", "system-ui, -apple-system, sans-serif");
|
|
7138
7138
|
let u = l.append("g").attr("class", "scale-indicator").attr("transform", "translate(0, 65)").style("opacity", "0");
|
|
7139
|
-
u.append("circle").attr("r", 4).attr("cx", -30).attr("cy", 0).style("fill", "#888"), u.append("text").attr("x", -20).attr("y", 0).attr("dy", "0.35em").attr("text-anchor", "start").style("font-size", "18px").style("fill", "#666").style("font-style", "italic").style("font-family", "system-ui, -apple-system, sans-serif");
|
|
7139
|
+
u.append("circle").attr("r", 4).attr("cx", -30).attr("cy", 0).style("fill", "var(--rc-muted-text, #888)"), u.append("text").attr("x", -20).attr("y", 0).attr("dy", "0.35em").attr("text-anchor", "start").style("font-size", "18px").style("fill", "var(--rc-muted-text, #666)").style("font-style", "italic").style("font-family", "system-ui, -apple-system, sans-serif");
|
|
7140
7140
|
}
|
|
7141
7141
|
Re();
|
|
7142
7142
|
}), E.play();
|
|
@@ -7154,7 +7154,7 @@ function xh(e, t, n, r, i, a) {
|
|
|
7154
7154
|
function Sh(e, t, n, r, i) {
|
|
7155
7155
|
let a = i ? `.parliament-label-${i}` : ".parliament-label", o = q(e).select(a);
|
|
7156
7156
|
if (!o.empty()) if (t) {
|
|
7157
|
-
o.style("opacity", "1"), o.select(".label-category").text(t.label).style("fill", "#666");
|
|
7157
|
+
o.style("opacity", "1"), o.select(".label-category").text(t.label).style("fill", "var(--rc-muted-text, #666)");
|
|
7158
7158
|
let e = t.value > 1 ? "repos" : "repo";
|
|
7159
7159
|
o.select(".label-value").text(`${t.value} ${e}`).style("fill", t.color);
|
|
7160
7160
|
let i = o.select(".scale-indicator");
|
|
@@ -7516,7 +7516,7 @@ var Th = ({ data: t, categories: n, mode: r, width: i = 900, height: a = 400, ma
|
|
|
7516
7516
|
"aria-label": "Categories summary",
|
|
7517
7517
|
className: "category-summary-table",
|
|
7518
7518
|
size: "small",
|
|
7519
|
-
sx: {
|
|
7519
|
+
sx: (e) => ({
|
|
7520
7520
|
maxWidth: {
|
|
7521
7521
|
xs: "clamp(360px, 90%, 400px)",
|
|
7522
7522
|
sm: "clamp(360px, 90%, 400px)",
|
|
@@ -7531,7 +7531,7 @@ var Th = ({ data: t, categories: n, mode: r, width: i = 900, height: a = 400, ma
|
|
|
7531
7531
|
paddingRight: "4px",
|
|
7532
7532
|
lineHeight: "normal",
|
|
7533
7533
|
borderBottom: "1px solid",
|
|
7534
|
-
borderColor:
|
|
7534
|
+
borderColor: `var(--rc-table-border, ${e.palette.divider})`,
|
|
7535
7535
|
fontSize: "clamp(10px, 1.8vw, 12px)"
|
|
7536
7536
|
},
|
|
7537
7537
|
"& thead .MuiTableCell-root": {
|
|
@@ -7546,7 +7546,7 @@ var Th = ({ data: t, categories: n, mode: r, width: i = 900, height: a = 400, ma
|
|
|
7546
7546
|
fontSize: "11px"
|
|
7547
7547
|
},
|
|
7548
7548
|
"& tbody tr:last-of-type .MuiTableCell-root": { borderBottom: "none" }
|
|
7549
|
-
},
|
|
7549
|
+
}),
|
|
7550
7550
|
children: [/* @__PURE__ */ _("thead", { children: /* @__PURE__ */ v(o, { children: [/* @__PURE__ */ _(a, {
|
|
7551
7551
|
colSpan: 2,
|
|
7552
7552
|
children: "Category"
|
|
@@ -12463,11 +12463,11 @@ var Rx = j, zx = {
|
|
|
12463
12463
|
"& tbody .MuiTableRow-root:first-of-type .MuiTableCell-root": { paddingTop: "2px" }
|
|
12464
12464
|
},
|
|
12465
12465
|
children: [/* @__PURE__ */ _("thead", { children: /* @__PURE__ */ v(o, {
|
|
12466
|
-
sx: { "& .MuiTableCell-root": {
|
|
12466
|
+
sx: (e) => ({ "& .MuiTableCell-root": {
|
|
12467
12467
|
borderBottom: "1px solid",
|
|
12468
|
-
borderColor:
|
|
12468
|
+
borderColor: `var(--rc-table-border, ${e.palette.divider})`,
|
|
12469
12469
|
pb: "2px"
|
|
12470
|
-
} },
|
|
12470
|
+
} }),
|
|
12471
12471
|
children: [
|
|
12472
12472
|
/* @__PURE__ */ _(a, {
|
|
12473
12473
|
colSpan: 2,
|