@ambuj.bhaskar/react-component-library 0.29.2 → 0.29.3

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.d.ts CHANGED
@@ -669,6 +669,8 @@ declare type ChartData = {
669
669
  data: number[];
670
670
  color?: Color;
671
671
  colors?: Color[];
672
+ barPercentage?: number;
673
+ categoryPercentage?: number;
672
674
  }[];
673
675
  };
674
676
 
@@ -1124,7 +1126,7 @@ declare type MapItem = {
1124
1126
  position: TCoordinateType;
1125
1127
  element: React.ReactNode;
1126
1128
  icon?: string;
1127
- count?: number;
1129
+ count?: string;
1128
1130
  };
1129
1131
 
1130
1132
  declare type MapItem_2 = {
package/dist/index.js CHANGED
@@ -72884,6 +72884,7 @@ function qwe({
72884
72884
  (u, d) => {
72885
72885
  var h;
72886
72886
  return c ? {
72887
+ ...u,
72887
72888
  label: u.label,
72888
72889
  data: u.data,
72889
72890
  backgroundColor: u.colors && u.colors.length === u.data.length ? (h = u.colors) == null ? void 0 : h.map((C) => Os(C, o)) : u.data.map(
@@ -72897,6 +72898,7 @@ function qwe({
72897
72898
  ),
72898
72899
  borderWidth: 2
72899
72900
  } : {
72901
+ ...u,
72900
72902
  label: u.label,
72901
72903
  data: u.data,
72902
72904
  backgroundColor: Os(
@@ -72906,7 +72908,9 @@ function qwe({
72906
72908
  borderColor: u.color || s[d % s.length],
72907
72909
  borderWidth: t === "line" ? i : 1,
72908
72910
  fill: n == "fill",
72909
- tension: r ?? 0.4
72911
+ tension: r ?? 0.4,
72912
+ barPercentage: (u == null ? void 0 : u.barPercentage) ?? 1,
72913
+ categoryPercentage: (u == null ? void 0 : u.categoryPercentage) ?? 0.7
72910
72914
  };
72911
72915
  }
72912
72916
  )
@@ -82594,6 +82598,10 @@ const MP = /* @__PURE__ */ Me(ike), HP = _P(function({ position: t, ...n }, r) {
82594
82598
  // Draw functionality props
82595
82599
  enableDrawing: w = !1,
82596
82600
  onShapeSave: x,
82601
+ /*
82602
+ * TODO:
82603
+ * Normalize coordinates using the origin while saving shapes
82604
+ */
82597
82605
  drawOptions: E,
82598
82606
  origin: S = "top-left"
82599
82607
  }) => {
@@ -82734,7 +82742,7 @@ const MP = /* @__PURE__ */ Me(ike), HP = _P(function({ position: t, ...n }, r) {
82734
82742
  R && p ? p(null) : k(null), se && v && v();
82735
82743
  }
82736
82744
  },
82737
- children: se && a && (J != null && J.element) ? J == null ? void 0 : J.element : s ? /* @__PURE__ */ z.jsx("p", { onClick: d, children: (J == null ? void 0 : J.count) || 0 }) : null
82745
+ children: se && a && (J != null && J.element) ? J == null ? void 0 : J.element : s ? /* @__PURE__ */ z.jsx("p", { onClick: d, children: (J == null ? void 0 : J.count) ?? "N/A" }) : null
82738
82746
  },
82739
82747
  se ? `focused-${oe}` : `count-${oe}`
82740
82748
  ) : /* @__PURE__ */ z.jsx(z.Fragment, {})