@thecb/components 9.1.0-beta.0 → 9.1.0-beta.1

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.cjs.js CHANGED
@@ -26614,14 +26614,25 @@ var LineItem = function LineItem(_ref) {
26614
26614
  visibleFields = _ref$visibleFields === void 0 ? [] : _ref$visibleFields,
26615
26615
  _ref$displayQuantity = _ref.displayQuantity,
26616
26616
  displayQuantity = _ref$displayQuantity === void 0 ? null : _ref$displayQuantity;
26617
+
26618
+ var formatAttrKeys = function formatAttrKeys(key) {
26619
+ var keyWithoutUnderscores = key.replace(/_/g, " ");
26620
+ var capitalizedKey = keyWithoutUnderscores.split(" ").map(function (word) {
26621
+ return word.charAt(0).toUpperCase();
26622
+ }).join(" ");
26623
+ return capitalizedKey;
26624
+ };
26625
+
26617
26626
  var visibleCustomAttrs = customAttributes === null || customAttributes === void 0 ? void 0 : (_customAttributes$fil = customAttributes.filter(function (attr) {
26618
- return visibleFields.includes(attr.key);
26627
+ return visibleFields.includes(attr.key) && attr.key !== "description";
26619
26628
  })) === null || _customAttributes$fil === void 0 ? void 0 : _customAttributes$fil.map(function (attr) {
26620
26629
  return /*#__PURE__*/React__default.createElement(Paragraph$1, {
26621
26630
  variant: themeValues.paragraphVariant,
26622
26631
  weight: "400",
26623
26632
  key: attr.key
26624
- }, "".concat(attr.key, ": ").concat(attr.value));
26633
+ }, /*#__PURE__*/React__default.createElement(Text$1, {
26634
+ weight: FONT_WEIGHT_SEMIBOLD
26635
+ }, "".concat(formatAttrKeys(attr.key), ":")), /*#__PURE__*/React__default.createElement(Text$1, null, " ".concat(attr.value)));
26625
26636
  });
26626
26637
  return /*#__PURE__*/React__default.createElement(Cluster, {
26627
26638
  nowrap: true,