gf-components 0.1.154 → 0.1.156

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.es.js CHANGED
@@ -37112,7 +37112,7 @@ const D2e = Zt.span`
37112
37112
  margin: { top: 20, right: 20, bottom: 60, left: 90, ...n },
37113
37113
  colors: r || { scheme: "nivo" },
37114
37114
  xScale: { type: "point" },
37115
- yScale: { type: "linear", min: "auto", max: "auto", reverse: !1 },
37115
+ yScale: { type: "linear", min: 0, max: "auto", reverse: !1 },
37116
37116
  axisTop: null,
37117
37117
  axisRight: null,
37118
37118
  axisBottom: {
@@ -41112,14 +41112,18 @@ const za = 12, d1 = 14, Rs = Zt.tspan`
41112
41112
  ] });
41113
41113
  }, nb = {
41114
41114
  goodsRenewable: "#36CFC9",
41115
- goodsOther: "#BDE7E3",
41115
+ goodsNotRenewable: "#BDE7E3",
41116
+ goodsMixed: "green",
41116
41117
  wasteRenewable: "#FFA940",
41117
- wasteOther: "#EEDBBB"
41118
+ wasteNotRenewable: "#EEDBBB",
41119
+ wasteMixed: "red"
41118
41120
  }, J2 = {
41119
41121
  goodsRenewable: "Goederen - Hernieuwbare materialen",
41120
- goodsOther: "Goederen - Overige materialen",
41122
+ goodsNotRenewable: "Goederen - Niet-hernieuwbare materialen",
41123
+ goodsMixed: "Goederen - Gemengde materialen",
41121
41124
  wasteRenewable: "Afval - Hernieuwbare materialen",
41122
- wasteOther: "Afval - Overige materialen"
41125
+ wasteNotRenewable: "Afval - Niet-hernieuwbare materialen",
41126
+ wasteMixed: "Afval - Gemengde materialen"
41123
41127
  }, uhe = ({
41124
41128
  data: e,
41125
41129
  height: t = 400,
@@ -41132,15 +41136,15 @@ const za = 12, d1 = 14, Rs = Zt.tspan`
41132
41136
  axisLeft: l = {}
41133
41137
  }) => {
41134
41138
  const c = (d) => d.bars.map((f, h) => {
41135
- const p = f.data.id, g = f.data.data, v = p == null ? void 0 : p.replace("Total", ""), b = g == null ? void 0 : g[`${v}Total`], y = (g == null ? void 0 : g[`${v}Renewable`]) || 0, x = (g == null ? void 0 : g[`${v}Other`]) || 0, S = b ? f.height * y / b : 0, w = b ? f.height * x / b : 0;
41139
+ const p = f.data.id, g = f.data.data, v = p == null ? void 0 : p.replace("Total", ""), b = g == null ? void 0 : g[`${v}Total`], y = (g == null ? void 0 : g[`${v}Renewable`]) || 0, x = (g == null ? void 0 : g[`${v}NotRenewable`]) || 0, S = (g == null ? void 0 : g[`${v}Mixed`]) || 0, w = b ? f.height * y / b : 0, $ = b ? f.height * x / b : 0, V = b ? f.height * S / b : 0;
41136
41140
  return /* @__PURE__ */ m.jsxs("g", { children: [
41137
41141
  /* @__PURE__ */ m.jsx(
41138
41142
  "rect",
41139
41143
  {
41140
41144
  x: f.x,
41141
- y: f.y + w,
41145
+ y: f.y + $ + V,
41142
41146
  width: f.width,
41143
- height: S,
41147
+ height: w,
41144
41148
  fill: n[`${v}Renewable`]
41145
41149
  }
41146
41150
  ),
@@ -41148,10 +41152,20 @@ const za = 12, d1 = 14, Rs = Zt.tspan`
41148
41152
  "rect",
41149
41153
  {
41150
41154
  x: f.x,
41151
- y: f.y - 1,
41155
+ y: f.y + V,
41152
41156
  width: f.width,
41153
- height: w,
41154
- fill: n[`${v}Other`]
41157
+ height: $,
41158
+ fill: n[`${v}NotRenewable`]
41159
+ }
41160
+ ),
41161
+ /* @__PURE__ */ m.jsx(
41162
+ "rect",
41163
+ {
41164
+ x: f.x,
41165
+ y: f.y,
41166
+ width: f.width,
41167
+ height: V,
41168
+ fill: n[`${v}Mixed`]
41155
41169
  }
41156
41170
  )
41157
41171
  ] }, h);
@@ -41184,7 +41198,7 @@ const za = 12, d1 = 14, Rs = Zt.tspan`
41184
41198
  ))
41185
41199
  }
41186
41200
  );
41187
- return /* @__PURE__ */ m.jsxs(un, { vertical: !0, gap: 8, children: [
41201
+ return console.log(e), /* @__PURE__ */ m.jsxs(un, { vertical: !0, gap: 8, children: [
41188
41202
  /* @__PURE__ */ m.jsx(
41189
41203
  "div",
41190
41204
  {