@ltht-react/allergy-summary
Advanced tools
Comparing version 0.0.11 to 0.1.0
@@ -6,10 +6,2 @@ # Change Log | ||
## [0.0.11](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/allergy-summary@0.0.10...@ltht-react/allergy-summary@0.0.11) (2020-02-10) | ||
**Note:** Version bump only for package @ltht-react/allergy-summary | ||
## [0.0.10](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/allergy-summary@0.0.9...@ltht-react/allergy-summary@0.0.10) (2020-02-07) | ||
@@ -16,0 +8,0 @@ |
@@ -0,0 +0,0 @@ /** @jsx jsx */ |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ /** @jsx jsx */ |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import React from 'react'; |
@@ -7,3 +7,3 @@ "use strict"; | ||
var react_1 = __importDefault(require("react")); | ||
var exclamation_icon_1 = __importDefault(require("@ltht-react/exclamation-icon")); | ||
var icon_1 = require("@ltht-react/icon"); | ||
var types_1 = require("@ltht-react/types"); | ||
@@ -13,7 +13,7 @@ var AllergyIcon = function (_a) { | ||
if (allergy.criticality && allergy.criticality === types_1.AllergyIntoleranceCriticalityCode.High) { | ||
return react_1.default.createElement(exclamation_icon_1.default, { status: "red", size: "medium" }); | ||
return react_1.default.createElement(icon_1.ExclamationIcon, { status: "red", size: "medium" }); | ||
} | ||
return react_1.default.createElement(exclamation_icon_1.default, { status: "default", size: "medium" }); | ||
return react_1.default.createElement(icon_1.ExclamationIcon, { status: "default", size: "medium" }); | ||
}; | ||
exports.default = AllergyIcon; | ||
//# sourceMappingURL=allergy-icon.js.map |
@@ -0,0 +0,0 @@ /** @jsx jsx */ |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ /** @jsx jsx */ |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import React from 'react'; |
@@ -7,10 +7,11 @@ "use strict"; | ||
var react_1 = __importDefault(require("react")); | ||
var widget_1 = require("@ltht-react/widget"); | ||
var list_1 = require("@ltht-react/list"); | ||
var card_1 = require("@ltht-react/card"); | ||
var allergy_summary_item_1 = __importDefault(require("./molecules/allergy-summary-item")); | ||
var AllergySummary = function (_a) { | ||
var _b = _a.title, title = _b === void 0 ? 'Allergies' : _b, _c = _a.allergies, allergies = _c === void 0 ? [] : _c, clickHandler = _a.clickHandler; | ||
return (react_1.default.createElement(widget_1.Widget, { noData: allergies.length === 0 }, | ||
react_1.default.createElement(widget_1.WidgetHeader, null, | ||
return (react_1.default.createElement(card_1.Card, { noData: allergies.length === 0 }, | ||
react_1.default.createElement(card_1.CardHeader, null, | ||
react_1.default.createElement("h3", null, title)), | ||
react_1.default.createElement(widget_1.WidgetList, { clickable: !!clickHandler }, allergies.map(function (allergy) { return (react_1.default.createElement(widget_1.WidgetListItem, { key: allergy.id }, | ||
react_1.default.createElement(card_1.CardList, { clickable: !!clickHandler }, allergies.map(function (allergy) { return (react_1.default.createElement(list_1.ListItem, { key: allergy.id }, | ||
react_1.default.createElement(allergy_summary_item_1.default, { allergy: allergy, clickHandler: clickHandler }))); })))); | ||
@@ -17,0 +18,0 @@ }; |
@@ -0,0 +0,0 @@ /** @jsx jsx */ |
@@ -0,0 +0,0 @@ "use strict"; |
{ | ||
"name": "@ltht-react/allergy-summary", | ||
"version": "0.0.11", | ||
"version": "0.1.0", | ||
"description": "> TODO: description", | ||
@@ -27,11 +27,12 @@ "author": "Jonny Smith <jonny.asmith@gmail.com>", | ||
"@emotion/styled": "^10.0.27", | ||
"@ltht-react/exclamation-icon": "^0.0.9", | ||
"@ltht-react/styles": "^0.0.7", | ||
"@ltht-react/card": "^0.1.0", | ||
"@ltht-react/icon": "^0.1.0", | ||
"@ltht-react/list": "^0.1.0", | ||
"@ltht-react/styles": "^0.1.0", | ||
"@ltht-react/types": "^0.0.7", | ||
"@ltht-react/utils": "^0.0.11", | ||
"@ltht-react/widget": "^0.0.11", | ||
"@ltht-react/utils": "^0.1.0", | ||
"emotion": "^10.0.27", | ||
"react": "^16.12.0" | ||
}, | ||
"gitHead": "509c83bfa121653141e3c141688d4062613cae4c" | ||
"gitHead": "10d555eef209eba015aa27a45b6d9e5603546663" | ||
} |
@@ -0,0 +0,0 @@ # Allergy Summary |
Sorry, the diff of this file is not supported yet
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
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
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
19009
207
10
1
+ Added@ltht-react/card@^0.1.0
+ Added@ltht-react/icon@^0.1.0
+ Added@ltht-react/list@^0.1.0
+ Added@emotion/core@10.0.35(transitive)
+ Added@ltht-react/card@0.1.35(transitive)
+ Added@ltht-react/icon@0.1.28(transitive)
+ Added@ltht-react/list@0.1.26(transitive)
+ Added@ltht-react/styles@0.1.20(transitive)
+ Added@ltht-react/types@0.0.27(transitive)
+ Added@ltht-react/utils@0.1.20(transitive)
+ Addedclassnames@2.5.1(transitive)
- Removed@ltht-react/exclamation-icon@^0.0.9
- Removed@ltht-react/widget@^0.0.11
- Removed@ltht-react/chevron-icon@0.0.1(transitive)
- Removed@ltht-react/exclamation-icon@0.0.9(transitive)
- Removed@ltht-react/styles@0.0.7(transitive)
- Removed@ltht-react/utils@0.0.11(transitive)
- Removed@ltht-react/widget@0.0.11(transitive)
Updated@ltht-react/styles@^0.1.0
Updated@ltht-react/utils@^0.1.0