@chainberry/ui-components 1.0.42 → 1.0.43

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.mjs CHANGED
@@ -158862,7 +158862,7 @@ function D7({ label: e, children: t }) {
158862
158862
  });
158863
158863
  }
158864
158864
  function jHe({ assessment: e, actionButtons: t, actionRequired: n = !1, className: r }) {
158865
- let { riskAssessmentScore: i, riskAssessmentStatus: a, riskAssessmentActorName: o, provider: s, riskReason: c, modularRiskBucket: l, link: u } = e, d = a.toLowerCase(), f = OHe[d], p = o ? /* @__PURE__ */ v(D7, {
158865
+ let { riskAssessmentScore: i, riskAssessmentStatus: a, riskAssessmentActorName: o, provider: s, riskReason: c, modularRiskBucket: l, link: u } = e, d = a.toLowerCase(), f = OHe[d], p = l?.toLowerCase(), m = i === 0 && !!p && p !== "low", h = o ? /* @__PURE__ */ v(D7, {
158866
158866
  label: kHe[d] ?? "Reviewed by",
158867
158867
  children: o
158868
158868
  }) : null;
@@ -158889,11 +158889,14 @@ function jHe({ assessment: e, actionButtons: t, actionRequired: n = !1, classNam
158889
158889
  /* @__PURE__ */ y("div", {
158890
158890
  className: "flex items-center gap-3",
158891
158891
  children: [l && /* @__PURE__ */ v(C7, {
158892
- level: l.toLowerCase(),
158893
- score: i,
158892
+ level: p,
158893
+ score: m ? void 0 : i,
158894
158894
  colored: !0,
158895
158895
  className: "translate-y-[5px]"
158896
- }), /* @__PURE__ */ y("div", {
158896
+ }), m ? /* @__PURE__ */ v("span", {
158897
+ className: "text-sm text-muted-foreground",
158898
+ children: "Not scored"
158899
+ }) : /* @__PURE__ */ y("div", {
158897
158900
  className: "flex items-baseline gap-1",
158898
158901
  children: [/* @__PURE__ */ v("span", {
158899
158902
  className: M("text-3xl font-semibold tabular-nums", AHe(i)),
@@ -158923,7 +158926,7 @@ function jHe({ assessment: e, actionButtons: t, actionRequired: n = !1, classNam
158923
158926
  children: s
158924
158927
  })
158925
158928
  }),
158926
- p
158929
+ h
158927
158930
  ] }) : /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ y("div", {
158928
158931
  className: "grid grid-cols-2 gap-x-4 gap-y-3.5",
158929
158932
  children: [
@@ -158945,7 +158948,7 @@ function jHe({ assessment: e, actionButtons: t, actionRequired: n = !1, classNam
158945
158948
  children: s
158946
158949
  })
158947
158950
  }),
158948
- p
158951
+ h
158949
158952
  ]
158950
158953
  }), c && /* @__PURE__ */ v(D7, {
158951
158954
  label: "Reason",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@chainberry/ui-components",
3
- "version": "1.0.42",
4
- "description": "Chainberry navigation UI components React + Tailwind. Canonical source lives in ../../react-app/src/components; this package re-exports, builds, and publishes them.",
3
+ "version": "1.0.43",
4
+ "description": "Chainberry navigation UI components \u2014 React + Tailwind. Canonical source lives in ../../react-app/src/components; this package re-exports, builds, and publishes them.",
5
5
  "license": "ISC",
6
6
  "type": "module",
7
7
  "main": "./dist/index.cjs",