Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ltht-react/allergy-summary

Package Overview
Dependencies
Maintainers
2
Versions
366
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ltht-react/allergy-summary - npm Package Compare versions

Comparing version 0.0.11 to 0.1.0

8

CHANGELOG.md

@@ -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

lib/atoms/allergy-date.d.ts

@@ -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';

6

lib/atoms/allergy-icon.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc