@ltht-react/summary
Advanced tools
Comparing version
@@ -6,18 +6,2 @@ # Change Log | ||
## [0.0.24](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/summary@0.0.22...@ltht-react/summary@0.0.24) (2020-11-19) | ||
**Note:** Version bump only for package @ltht-react/summary | ||
## [0.0.23](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/summary@0.0.22...@ltht-react/summary@0.0.23) (2020-10-29) | ||
**Note:** Version bump only for package @ltht-react/summary | ||
## [0.0.22](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/summary@0.0.21...@ltht-react/summary@0.0.22) (2020-09-10) | ||
@@ -24,0 +8,0 @@ |
export { default as MissingDataSummary } from './missing-data-summary'; | ||
export { default as MissingDataWarning } from './missing-data-warning'; | ||
export { default as ErrorSummary } from './error-summary'; | ||
export { default as InfoSummary } from './info-summary'; | ||
export { default as WarningSummary } from './warning-summary'; |
@@ -7,8 +7,2 @@ "use strict"; | ||
Object.defineProperty(exports, "MissingDataWarning", { enumerable: true, get: function () { return missing_data_warning_1.default; } }); | ||
var error_summary_1 = require("./error-summary"); | ||
Object.defineProperty(exports, "ErrorSummary", { enumerable: true, get: function () { return error_summary_1.default; } }); | ||
var info_summary_1 = require("./info-summary"); | ||
Object.defineProperty(exports, "InfoSummary", { enumerable: true, get: function () { return info_summary_1.default; } }); | ||
var warning_summary_1 = require("./warning-summary"); | ||
Object.defineProperty(exports, "WarningSummary", { enumerable: true, get: function () { return warning_summary_1.default; } }); | ||
//# sourceMappingURL=index.js.map |
@@ -6,7 +6,6 @@ /** @jsx jsx */ | ||
interface Props { | ||
missingData?: Maybe<Array<string>>; | ||
noData?: Maybe<Array<string>>; | ||
partialData?: Maybe<Array<string>>; | ||
completeData?: Maybe<Array<string>>; | ||
noData?: Maybe<Array<string>>; | ||
allData?: Maybe<Array<string>>; | ||
} | ||
export default MissingDataSummary; |
@@ -18,8 +18,8 @@ "use strict"; | ||
var MissingDataSummary = function (_a) { | ||
var noData = _a.noData, partialData = _a.partialData, completeData = _a.completeData, missingData = _a.missingData; | ||
var missingDataSection = missingData != null ? (core_1.jsx(react_1.default.Fragment, null, | ||
var noData = _a.noData, partialData = _a.partialData, allData = _a.allData; | ||
var noDataSection = noData != null ? (core_1.jsx(react_1.default.Fragment, null, | ||
core_1.jsx(banner_1.WarningBanner, null, | ||
core_1.jsx(icon_1.CounterIcon, { size: "large", status: "amber", value: missingData.length }), | ||
core_1.jsx("div", { css: styles }, "Missing Data")), | ||
missingData.map(function (data) { return (core_1.jsx(list_1.ListItem, null, data)); }))) : (core_1.jsx(react_1.default.Fragment, null)); | ||
core_1.jsx(icon_1.CounterIcon, { size: "large", status: "amber", value: noData.length }), | ||
core_1.jsx("div", { css: styles }, "No Data")), | ||
noData.map(function (data) { return (core_1.jsx(list_1.ListItem, null, data)); }))) : (core_1.jsx(react_1.default.Fragment, null)); | ||
var partialDataSection = partialData != null ? (core_1.jsx(react_1.default.Fragment, null, | ||
@@ -30,17 +30,11 @@ core_1.jsx(banner_1.WarningBanner, null, | ||
partialData.map(function (data) { return (core_1.jsx(list_1.ListItem, null, data)); }))) : (core_1.jsx(react_1.default.Fragment, null)); | ||
var completeDataSection = completeData != null ? (core_1.jsx(react_1.default.Fragment, null, | ||
var allDataSection = allData != null ? (core_1.jsx(react_1.default.Fragment, null, | ||
core_1.jsx(banner_1.InfoBanner, null, | ||
core_1.jsx(icon_1.CounterIcon, { size: "large", status: "info", value: completeData.length }), | ||
core_1.jsx("div", { css: styles }, "Complete Data")), | ||
completeData.map(function (data) { return (core_1.jsx(list_1.ListItem, null, data)); }))) : (core_1.jsx(react_1.default.Fragment, null)); | ||
var noDataSection = noData != null ? (core_1.jsx(react_1.default.Fragment, null, | ||
core_1.jsx(banner_1.InfoBanner, null, | ||
core_1.jsx(icon_1.CounterIcon, { size: "large", status: "info", value: noData.length }), | ||
core_1.jsx("div", { css: styles }, "No Data")), | ||
noData.map(function (data) { return (core_1.jsx(list_1.ListItem, null, data)); }))) : (core_1.jsx(react_1.default.Fragment, null)); | ||
core_1.jsx(icon_1.CounterIcon, { size: "large", status: "info", value: allData.length }), | ||
core_1.jsx("div", { css: styles }, "All Data")), | ||
allData.map(function (data) { return (core_1.jsx(list_1.ListItem, null, data)); }))) : (core_1.jsx(react_1.default.Fragment, null)); | ||
return (core_1.jsx(react_1.default.Fragment, null, | ||
missingDataSection, | ||
noDataSection, | ||
partialDataSection, | ||
completeDataSection, | ||
noDataSection)); | ||
allDataSection)); | ||
}; | ||
@@ -47,0 +41,0 @@ exports.default = MissingDataSummary; |
{ | ||
"name": "@ltht-react/summary", | ||
"version": "0.0.24", | ||
"version": "0.1.0", | ||
"description": "ltht-react clinical Summary component.", | ||
@@ -30,12 +30,12 @@ "author": "LTHT", | ||
"@emotion/styled": "^10.0.27", | ||
"@ltht-react/banner": "^0.0.18", | ||
"@ltht-react/icon": "^0.1.28", | ||
"@ltht-react/list": "^0.1.26", | ||
"@ltht-react/styles": "^0.1.20", | ||
"@ltht-react/types": "^0.0.27", | ||
"@ltht-react/utils": "^0.1.20", | ||
"@ltht-react/banner": "^0.1.0", | ||
"@ltht-react/icon": "^0.2.0", | ||
"@ltht-react/list": "^0.2.0", | ||
"@ltht-react/styles": "^0.2.0", | ||
"@ltht-react/types": "^0.1.0", | ||
"@ltht-react/utils": "^0.2.0", | ||
"emotion": "^10.0.27", | ||
"react": "^16.12.0" | ||
}, | ||
"gitHead": "bed644100b6acf8597d480e640131a2ebb74f7ba" | ||
"gitHead": "130d29ad7089f9d9f0f48cdfa217205a2a1b9c0d" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
25267
-24.98%36
-20%276
-28.87%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
Updated
Updated
Updated
Updated
Updated
Updated