@desynova-digital/components 9.2.27 → 9.2.28

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.
@@ -225,11 +225,11 @@ var getDisplayTimecode = function getDisplayTimecode(value, frameRate) {
225
225
  return Number.isNaN(numericValue) ? "00:00:00:00" : (0, _utils.secondsToTime)(numericValue, frameRate);
226
226
  };
227
227
  var normalizeStatusCode = function normalizeStatusCode(status) {
228
- return String(status || "").trim().toLowerCase().split(" ").join("_");
228
+ return String(status !== null && status !== void 0 ? status : "").trim().toLowerCase().split(" ").join("_");
229
229
  };
230
230
  var getStatusHexColor = function getStatusHexColor(status) {
231
231
  var _matched$hex;
232
- var normalized = normalizeStatusCode(status || "archived");
232
+ var normalized = normalizeStatusCode(status);
233
233
  var matched = _statusV["default"].find(function (group) {
234
234
  return group.code.includes(normalized);
235
235
  });
@@ -241,7 +241,7 @@ var getStatusLabel = function getStatusLabel(status) {
241
241
  if (normalized === "3") return "In Progress";
242
242
  if (normalized === "2") return "Error";
243
243
  if (normalized === "1") return "Archive";
244
- return status || "Archive";
244
+ return null;
245
245
  };
246
246
  var ThumbnailV2 = function ThumbnailV2(props) {
247
247
  var theme = props.theme,
@@ -395,11 +395,11 @@ var ThumbnailV2 = function ThumbnailV2(props) {
395
395
  onClick: handleThumbnailClick,
396
396
  theme: props.theme,
397
397
  data_type: data_type
398
- }, /*#__PURE__*/_react["default"].createElement(ThumbnailStatusPill, {
398
+ }, getStatusLabel(archived_status) ? /*#__PURE__*/_react["default"].createElement(ThumbnailStatusPill, {
399
399
  bgColor: getStatusHexColor(archived_status)
400
400
  }, /*#__PURE__*/_react["default"].createElement("span", {
401
401
  className: "status-dot"
402
- }), getStatusLabel(archived_status)), hasSegmentTimeline && /*#__PURE__*/_react["default"].createElement(SegmentTimeline, null, /*#__PURE__*/_react["default"].createElement(SegmentRangeMarker, {
402
+ }), getStatusLabel(archived_status)) : null, hasSegmentTimeline && /*#__PURE__*/_react["default"].createElement(SegmentTimeline, null, /*#__PURE__*/_react["default"].createElement(SegmentRangeMarker, {
403
403
  left: "".concat(segmentLeftPercent, "%"),
404
404
  width: "".concat(segmentWidthPercent, "%"),
405
405
  theme: theme
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@desynova-digital/components",
3
- "version": "9.2.27",
3
+ "version": "9.2.28",
4
4
  "description": "Components for Desynova Digital",
5
5
  "main": "index.js",
6
6
  "author": "desynova-digital",
7
7
  "license": "MIT",
8
8
  "repository": "desynova-digital",
9
9
  "dependencies": {
10
- "@desynova-digital/tokens": "9.2.27",
10
+ "@desynova-digital/tokens": "9.2.28",
11
11
  "prop-types": "^15.7.2",
12
12
  "styled-components": "^4.3.2"
13
13
  },