@ltht-react/summary
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -5,2 +5,3 @@ import React from 'react'; | ||
interface Props { | ||
type: string; | ||
missingData?: Maybe<Array<string>>; | ||
@@ -7,0 +8,0 @@ partialData?: Maybe<Array<string>>; |
@@ -10,3 +10,3 @@ "use strict"; | ||
var MissingDataSummary = function (_a) { | ||
var noData = _a.noData, partialData = _a.partialData, completeData = _a.completeData, missingData = _a.missingData; | ||
var type = _a.type, noData = _a.noData, partialData = _a.partialData, completeData = _a.completeData, missingData = _a.missingData; | ||
var missingDataSection = missingData != null && missingData.length > 0 ? (react_1.default.createElement(react_1.default.Fragment, null, | ||
@@ -16,3 +16,3 @@ react_1.default.createElement(card_1.default.Banner, { status: "warning" }, | ||
" Missing Data"), | ||
react_1.default.createElement(card_1.default.List, null, missingData.map(function (data) { return (react_1.default.createElement(card_1.default.ListItem, null, data)); })))) : (react_1.default.createElement(react_1.default.Fragment, null)); | ||
react_1.default.createElement(card_1.default.List, null, missingData.map(function (data, index) { return (react_1.default.createElement(card_1.default.ListItem, { key: type + "-missing-data-" + index }, data)); })))) : (react_1.default.createElement(react_1.default.Fragment, null)); | ||
var partialDataSection = partialData != null && partialData.length > 0 ? (react_1.default.createElement(react_1.default.Fragment, null, | ||
@@ -22,3 +22,3 @@ react_1.default.createElement(card_1.default.Banner, { status: "warning" }, | ||
" Partial Data"), | ||
react_1.default.createElement(card_1.default.List, null, partialData.map(function (data) { return (react_1.default.createElement(card_1.default.ListItem, null, data)); })))) : (react_1.default.createElement(react_1.default.Fragment, null)); | ||
react_1.default.createElement(card_1.default.List, null, partialData.map(function (data, index) { return (react_1.default.createElement(card_1.default.ListItem, { key: type + "-partial-data-" + index }, data)); })))) : (react_1.default.createElement(react_1.default.Fragment, null)); | ||
var completeDataSection = completeData != null && completeData.length > 0 ? (react_1.default.createElement(react_1.default.Fragment, null, | ||
@@ -28,3 +28,3 @@ react_1.default.createElement(card_1.default.Banner, { status: "info" }, | ||
" Complete Data"), | ||
react_1.default.createElement(card_1.default.List, null, completeData.map(function (data) { return (react_1.default.createElement(card_1.default.ListItem, null, data)); })))) : (react_1.default.createElement(react_1.default.Fragment, null)); | ||
react_1.default.createElement(card_1.default.List, null, completeData.map(function (data, index) { return (react_1.default.createElement(card_1.default.ListItem, { key: type + "-complete-data-" + index }, data)); })))) : (react_1.default.createElement(react_1.default.Fragment, null)); | ||
var noDataSection = noData != null && noData.length > 0 ? (react_1.default.createElement(react_1.default.Fragment, null, | ||
@@ -34,3 +34,3 @@ react_1.default.createElement(card_1.default.Banner, { status: "info" }, | ||
" No Data"), | ||
react_1.default.createElement(card_1.default.List, null, noData.map(function (data) { return (react_1.default.createElement(card_1.default.ListItem, null, data)); })))) : (react_1.default.createElement(react_1.default.Fragment, null)); | ||
react_1.default.createElement(card_1.default.List, null, noData.map(function (data, index) { return (react_1.default.createElement(card_1.default.ListItem, { key: type + "-no-data-" + index }, data)); })))) : (react_1.default.createElement(react_1.default.Fragment, null)); | ||
return (react_1.default.createElement(react_1.default.Fragment, null, | ||
@@ -37,0 +37,0 @@ missingDataSection, |
{ | ||
"name": "@ltht-react/summary", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "ltht-react clinical Summary component.", | ||
@@ -30,3 +30,3 @@ "author": "LTHT", | ||
"@emotion/styled": "^10.0.27", | ||
"@ltht-react/card": "^1.0.2", | ||
"@ltht-react/card": "^1.0.3", | ||
"@ltht-react/icon": "^1.0.1", | ||
@@ -40,3 +40,3 @@ "@ltht-react/list": "^1.0.1", | ||
}, | ||
"gitHead": "eec6002f7fc3d696b1299fd3a98a857773429028" | ||
"gitHead": "e7b99ce24b07bd9c0c58943499bc97feb6875435" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
31965
385
Updated@ltht-react/card@^1.0.3