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

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