@gisce/react-ooui 1.1.37-rc.0 → 1.1.37

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.
@@ -18780,11 +18780,15 @@ function CommonIndicator({
18780
18780
  icon: s,
18781
18781
  suffix: u
18782
18782
  }) {
18783
- let l = r * fontGrowFactor < minFontSize ? minFontSize : r * fontGrowFactor, c = n ? `${a}/${n}` : `${a}`;
18784
- u && (c += " " + u);
18785
- let d = getTextWidth(c, `bold ${Math.floor(l * 1.03)}px sans-serif`);
18786
- s && (d = d * 2), d >= t * 0.85 && (l = t * 0.85 / d * l);
18787
- const f = s && iconMapper(s);
18783
+ let l = r * fontGrowFactor < minFontSize ? minFontSize : r * fontGrowFactor;
18784
+ const c = a == null ? void 0 : a.toLocaleString("es-ES", {
18785
+ useGrouping: !0
18786
+ });
18787
+ let d = n ? `${c}/${n}` : `${c}`;
18788
+ u && (d += " " + u);
18789
+ let f = getTextWidth(d, `bold ${Math.floor(l * 1.03)}px sans-serif`);
18790
+ s && (f = f * 2), f >= t * 0.85 && (l = t * 0.85 / f * l);
18791
+ const p = s && iconMapper(s);
18788
18792
  return /* @__PURE__ */ jsx("div", {
18789
18793
  ref: e,
18790
18794
  style: {
@@ -18801,11 +18805,11 @@ function CommonIndicator({
18801
18805
  margin: 0,
18802
18806
  color: o
18803
18807
  },
18804
- children: [f && /* @__PURE__ */ jsx(f, {
18808
+ children: [p && /* @__PURE__ */ jsx(p, {
18805
18809
  style: {
18806
18810
  fontSize: l * 0.7
18807
18811
  }
18808
- }), f ? ` ${c}` : c]
18812
+ }), p ? ` ${d}` : d]
18809
18813
  })
18810
18814
  });
18811
18815
  }
@@ -18821,13 +18825,21 @@ function PercentageIndicator({
18821
18825
  suffix: l
18822
18826
  }) {
18823
18827
  const c = t * 0.65;
18824
- let d = c * fontGrowFactor < minFontSize ? minFontSize : c * fontGrowFactor, f = a ? `${o}/${a}` : `${o}`;
18825
- l && (f += " " + l);
18826
- const p = `${n}%`;
18827
- let h = getTextWidth(p, `bold ${Math.floor(d * 1.03)}px sans-serif`);
18828
- u && (h = h * 1.5);
18829
- const m = u && iconMapper(u);
18830
- return (h >= r * 0.85 || d * 2 < c) && (d = r * 0.85 / h * d), /* @__PURE__ */ jsx("div", {
18828
+ let d = c * fontGrowFactor < minFontSize ? minFontSize : c * fontGrowFactor;
18829
+ const f = o == null ? void 0 : o.toLocaleString("es-ES", {
18830
+ useGrouping: !0
18831
+ });
18832
+ let p = a ? `${f}/${a == null ? void 0 : a.toLocaleString("es-ES", {
18833
+ useGrouping: !0
18834
+ })}` : `${f}`;
18835
+ l && (p += " " + l);
18836
+ const h = `${n == null ? void 0 : n.toLocaleString("es-ES", {
18837
+ useGrouping: !0
18838
+ })}%`;
18839
+ let m = getTextWidth(h, `bold ${Math.floor(d * 1.03)}px sans-serif`);
18840
+ u && (m = m * 1.5);
18841
+ const y = u && iconMapper(u);
18842
+ return (m >= r * 0.85 || d * 2 < c) && (d = r * 0.85 / m * d), /* @__PURE__ */ jsx("div", {
18831
18843
  ref: e,
18832
18844
  style: {
18833
18845
  width: "100%",
@@ -18841,8 +18853,8 @@ function PercentageIndicator({
18841
18853
  },
18842
18854
  children: /* @__PURE__ */ jsxs(Row, {
18843
18855
  align: "middle",
18844
- children: [m && /* @__PURE__ */ jsx(Col, {
18845
- children: /* @__PURE__ */ jsx(m, {
18856
+ children: [y && /* @__PURE__ */ jsx(Col, {
18857
+ children: /* @__PURE__ */ jsx(y, {
18846
18858
  style: {
18847
18859
  fontSize: d * 1,
18848
18860
  color: s,
@@ -18856,7 +18868,7 @@ function PercentageIndicator({
18856
18868
  margin: 0,
18857
18869
  color: s
18858
18870
  },
18859
- children: m ? ` ${n}%` : `${n}%`
18871
+ children: y ? ` ${n}%` : `${n}%`
18860
18872
  }), /* @__PURE__ */ jsx(Title$2, {
18861
18873
  style: {
18862
18874
  fontSize: d * 0.4,
@@ -18864,14 +18876,14 @@ function PercentageIndicator({
18864
18876
  color: s,
18865
18877
  textAlign: "center"
18866
18878
  },
18867
- children: f
18879
+ children: p
18868
18880
  })]
18869
18881
  })]
18870
18882
  })
18871
18883
  });
18872
18884
  }
18873
18885
  const formatter = (e) => (t) => {
18874
- const r = t.value.toLocaleString("en-US", {
18886
+ const r = t.value.toLocaleString("es-ES", {
18875
18887
  useGrouping: !0
18876
18888
  });
18877
18889
  return { name: e === "pie" ? t.x : t.type, value: r };