@kashifd/jwero-components 0.5.28 → 0.5.30

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
@@ -39596,11 +39596,12 @@ const iI = /* @__PURE__ */ Gn(sI), hd = U(Dt)(({}) => ({
39596
39596
  ] });
39597
39597
  }, jI = ({
39598
39598
  info: e,
39599
- showStatusChip: t = !0,
39600
- showBackgroundImage: o = !0,
39601
- showSubData: r = !0,
39599
+ showStatusChip: t = !1,
39600
+ showBackgroundImage: o = !1,
39601
+ showSubData: r = !1,
39602
39602
  labelProps: s,
39603
- dataProps: i
39603
+ dataProps: i,
39604
+ boxSx: a
39604
39605
  }) => /* @__PURE__ */ p.jsx(
39605
39606
  Dt,
39606
39607
  {
@@ -39611,58 +39612,59 @@ const iI = /* @__PURE__ */ Gn(sI), hd = U(Dt)(({}) => ({
39611
39612
  backgroundColor: "#fff",
39612
39613
  borderRadius: "1rem",
39613
39614
  backgroundImage: o && (e != null && e.backgroundImage) ? `url(${e.backgroundImage})` : "",
39614
- backgroundSize: "cover"
39615
+ backgroundSize: "cover",
39616
+ ...a
39615
39617
  },
39616
- children: /* @__PURE__ */ p.jsxs(Ne, { sx: { gap: "1rem" }, children: [
39618
+ children: /* @__PURE__ */ p.jsxs(Ne, { sx: { gap: "0.5rem" }, children: [
39617
39619
  /* @__PURE__ */ p.jsx(rt, { variant: "xlMedium", ...s, children: e == null ? void 0 : e.label }),
39618
39620
  /* @__PURE__ */ p.jsxs(
39619
39621
  Ne,
39620
39622
  {
39621
39623
  sx: {
39622
39624
  gap: "0.5rem",
39623
- paddingBottom: "0.5rem",
39624
39625
  alignItems: "flex-start"
39625
39626
  },
39626
39627
  children: [
39627
39628
  /* @__PURE__ */ p.jsx(rt, { variant: "xxlSemibold", ...i, children: e == null ? void 0 : e.total_number }),
39628
- t && /* @__PURE__ */ p.jsx(
39629
- Ne,
39630
- {
39631
- sx: {
39632
- gap: "0.5rem",
39633
- paddingBottom: "0.5rem",
39634
- alignItems: "flex-start"
39635
- },
39636
- children: /* @__PURE__ */ p.jsx(
39637
- XM,
39638
- {
39639
- type: (e == null ? void 0 : e.chipType) || "custom",
39640
- customProps: e == null ? void 0 : e.customChipProps,
39641
- textSx: {
39642
- textAlign: "center",
39643
- fontFamily: "Inter,sans-serif",
39644
- fontSize: "0.75rem",
39645
- fontStyle: "normal",
39646
- fontWeight: 600,
39647
- lineHeight: "1.25rem",
39648
- letterSpacing: "-0.015rem"
39629
+ (t || r && (e == null ? void 0 : e.subData)) && /* @__PURE__ */ p.jsxs(Ne, { sx: { gap: "0.75rem" }, children: [
39630
+ t && /* @__PURE__ */ p.jsx(
39631
+ Ne,
39632
+ {
39633
+ sx: {
39634
+ gap: "0.5rem",
39635
+ alignItems: "flex-start"
39636
+ },
39637
+ children: /* @__PURE__ */ p.jsx(
39638
+ XM,
39639
+ {
39640
+ type: (e == null ? void 0 : e.chipType) || "custom",
39641
+ customProps: e == null ? void 0 : e.customChipProps,
39642
+ textSx: {
39643
+ textAlign: "center",
39644
+ fontFamily: "Inter,sans-serif",
39645
+ fontSize: "0.75rem",
39646
+ fontStyle: "normal",
39647
+ fontWeight: 600,
39648
+ lineHeight: "1.25rem",
39649
+ letterSpacing: "-0.015rem"
39650
+ }
39649
39651
  }
39650
- }
39651
- )
39652
- }
39653
- ),
39654
- r && (e == null ? void 0 : e.subData) && /* @__PURE__ */ p.jsx(
39655
- Ne,
39656
- {
39657
- direction: "row",
39658
- spacing: 2,
39659
- sx: { width: "100%", justifyContent: "space-between" },
39660
- children: e.subData.map((a) => /* @__PURE__ */ p.jsxs(Dt, { textAlign: "center", children: [
39661
- /* @__PURE__ */ p.jsx(rt, { variant: "lRegular", children: a.label }),
39662
- /* @__PURE__ */ p.jsx(rt, { variant: "xlSemibold", children: a.value })
39663
- ] }, a.label))
39664
- }
39665
- )
39652
+ )
39653
+ }
39654
+ ),
39655
+ r && (e == null ? void 0 : e.subData) && /* @__PURE__ */ p.jsx(
39656
+ Ne,
39657
+ {
39658
+ direction: "row",
39659
+ spacing: 2,
39660
+ sx: { width: "100%", justifyContent: "space-between" },
39661
+ children: e.subData.map((l) => /* @__PURE__ */ p.jsxs(Dt, { textAlign: "center", children: [
39662
+ /* @__PURE__ */ p.jsx(rt, { variant: "lRegular", children: l.label }),
39663
+ /* @__PURE__ */ p.jsx(rt, { variant: "xlSemibold", children: l.value })
39664
+ ] }, l.label))
39665
+ }
39666
+ )
39667
+ ] })
39666
39668
  ]
39667
39669
  }
39668
39670
  )