@kashifd/jwero-components 0.5.78 → 0.5.79

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
@@ -58726,7 +58726,16 @@ const MV = ({ name: e, labels: t, data: n }) => {
58726
58726
  data: n == null ? void 0 : n.map((c, d) => (d + 1) * 20).reverse()
58727
58727
  }
58728
58728
  ];
58729
- return /* @__PURE__ */ k.jsx(jo, { options: a, series: s, type: "bar" });
58729
+ return /* @__PURE__ */ k.jsx(
58730
+ jo,
58731
+ {
58732
+ options: a,
58733
+ series: s,
58734
+ type: "bar",
58735
+ height: "100%",
58736
+ width: "100%"
58737
+ }
58738
+ );
58730
58739
  }, RV = ({ name: e, data: t, labels: n }) => {
58731
58740
  const a = {
58732
58741
  chart: {
@@ -58953,7 +58962,7 @@ const NV = ({
58953
58962
  };
58954
58963
  }, jV = ({
58955
58964
  completionRate: e,
58956
- size: t,
58965
+ size: t = 70,
58957
58966
  labelOptions: n
58958
58967
  }) => {
58959
58968
  const a = typeof e == "number" && e >= 0 && e <= 100 ? e : 0, c = { ...{
@@ -58965,7 +58974,7 @@ const NV = ({
58965
58974
  color: ut.colors.text_tertiary
58966
58975
  },
58967
58976
  valueSx: {
58968
- fontSize: "2rem",
58977
+ fontSize: t > 60 ? "2rem" : t > 50 ? "1.5rem" : "1rem",
58969
58978
  fontWeight: 600,
58970
58979
  fontFamily: "Inter, sans-serif",
58971
58980
  color: ut.colors.positive
@@ -58973,14 +58982,16 @@ const NV = ({
58973
58982
  }, ...n }, d = bm(c.nameSx), g = bm(c.valueSx), m = {
58974
58983
  chart: {
58975
58984
  type: "radialBar",
58976
- offsetY: 0
58985
+ offsetY: 0,
58986
+ height: "100%",
58987
+ width: "100%"
58977
58988
  },
58978
58989
  plotOptions: {
58979
58990
  radialBar: {
58980
58991
  startAngle: 0,
58981
58992
  endAngle: 360,
58982
58993
  hollow: {
58983
- size: `${t}%` || "70%"
58994
+ size: `${t}%`
58984
58995
  },
58985
58996
  dataLabels: {
58986
58997
  name: {
@@ -58989,7 +59000,7 @@ const NV = ({
58989
59000
  ...d
58990
59001
  },
58991
59002
  value: {
58992
- offsetY: -18,
59003
+ offsetY: -7,
58993
59004
  formatter: function(w) {
58994
59005
  return `${w}%`;
58995
59006
  },
@@ -59006,7 +59017,16 @@ const NV = ({
59006
59017
  },
59007
59018
  labels: [c.name]
59008
59019
  }, b = [a];
59009
- return /* @__PURE__ */ k.jsx(jo, { options: m, series: b, type: "radialBar" });
59020
+ return /* @__PURE__ */ k.jsx(
59021
+ jo,
59022
+ {
59023
+ options: m,
59024
+ series: b,
59025
+ type: "radialBar",
59026
+ height: "100%",
59027
+ width: "100%"
59028
+ }
59029
+ );
59010
59030
  }, FV = ({
59011
59031
  series: e,
59012
59032
  label: t