@citygross/components 0.8.70 → 0.8.72

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.
@@ -9,22 +9,22 @@ var EProductHeader;
9
9
  EProductHeader["DETAIL_PAGE"] = "detailPage";
10
10
  })(EProductHeader || (EProductHeader = {}));
11
11
  var ProductHeader = function (_a) {
12
- var _b, _c, _d;
12
+ var _b, _c, _d, _e, _f, _g;
13
13
  var location = _a.location, title = _a.title, subTitle = _a.subTitle;
14
14
  var subTitleUpperCase = subTitle === null || subTitle === void 0 ? void 0 : subTitle.toUpperCase();
15
15
  switch (location) {
16
16
  case EProductHeader.DETAIL_PAGE:
17
17
  return (React.createElement("div", null,
18
18
  React.createElement(H1, { color: (_b = theme.palette) === null || _b === void 0 ? void 0 : _b.darkest }, title),
19
- React.createElement(BodyText, null, subTitleUpperCase)));
19
+ React.createElement(BodyText, { color: (_c = theme.palette) === null || _c === void 0 ? void 0 : _c.darkest }, subTitleUpperCase)));
20
20
  case EProductHeader.CARD:
21
21
  return (React.createElement("div", null,
22
- React.createElement(H3, { color: (_c = theme.palette) === null || _c === void 0 ? void 0 : _c.darkest }, title),
23
- React.createElement(BodyText, { size: TextTypes.TextSize.EXTRASMALL, textAlign: "center" }, subTitleUpperCase)));
22
+ React.createElement(H3, { color: (_d = theme.palette) === null || _d === void 0 ? void 0 : _d.darkest }, title),
23
+ React.createElement(BodyText, { color: (_e = theme.palette) === null || _e === void 0 ? void 0 : _e.darkest, size: TextTypes.TextSize.EXTRASMALL, textAlign: "center" }, subTitleUpperCase)));
24
24
  case EProductHeader.LIST_ITEM:
25
25
  return (React.createElement("div", null,
26
- React.createElement(BodyText, { color: (_d = theme.palette) === null || _d === void 0 ? void 0 : _d.darkest, fontWeight: "medium", size: TextTypes.TextSize.REGULAR }, title),
27
- React.createElement(BodyText, { size: TextTypes.TextSize.EXTRASMALL }, subTitleUpperCase)));
26
+ React.createElement(BodyText, { color: (_f = theme.palette) === null || _f === void 0 ? void 0 : _f.darkest, fontWeight: "medium", size: TextTypes.TextSize.REGULAR }, title),
27
+ React.createElement(BodyText, { color: (_g = theme.palette) === null || _g === void 0 ? void 0 : _g.darkest, size: TextTypes.TextSize.EXTRASMALL }, subTitleUpperCase)));
28
28
  default:
29
29
  return null;
30
30
  }
@@ -387,6 +387,9 @@ var useFixedModalScroll = function (active, querySelector) {
387
387
  };
388
388
 
389
389
  function comparisonTypes(type) {
390
+ if (!type) {
391
+ return '';
392
+ }
390
393
  switch (type) {
391
394
  case 'KGM':
392
395
  return 'kg';