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

@ltht-react/detail

Package Overview
Dependencies
Maintainers
2
Versions
66
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ltht-react/detail - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

CHANGELOG.md

0

lib/index.d.ts
export * from './molecules';

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import React from 'react';

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import React from 'react';

@@ -0,0 +0,0 @@ "use strict";

export { default as CodeableConceptDetail } from './codeable-concept-detail';
export { default as CodeableConceptListDetail } from './codeable-concept-list-detail';
export { default as DatetimeDetail } from './datetime-detail';

@@ -6,2 +7,4 @@ export { default as NarrativeDetail } from './narrative-detail';

export { default as ResourceReferenceDetail } from './resource-reference-detail';
export { default as ResourceReferenceListDetail } from './resource-reference-list-detail';
export { default as StringDetail } from './string-detail';
export { default as NestedListDetail } from './nested-list-detail';

@@ -5,2 +5,4 @@ "use strict";

exports.CodeableConceptDetail = codeable_concept_detail_1.default;
var codeable_concept_list_detail_1 = require("./codeable-concept-list-detail");
exports.CodeableConceptListDetail = codeable_concept_list_detail_1.default;
var datetime_detail_1 = require("./datetime-detail");

@@ -14,4 +16,8 @@ exports.DatetimeDetail = datetime_detail_1.default;

exports.ResourceReferenceDetail = resource_reference_detail_1.default;
var resource_reference_list_detail_1 = require("./resource-reference-list-detail");
exports.ResourceReferenceListDetail = resource_reference_list_detail_1.default;
var string_detail_1 = require("./string-detail");
exports.StringDetail = string_detail_1.default;
var nested_list_detail_1 = require("./nested-list-detail");
exports.NestedListDetail = nested_list_detail_1.default;
//# sourceMappingURL=index.js.map

@@ -0,0 +0,0 @@ import React from 'react';

@@ -11,5 +11,15 @@ "use strict";

if (narrative) {
return (react_1.default.createElement(description_list_1.DescriptionList, null,
react_1.default.createElement(description_list_1.DescriptionListTerm, null, "Text"),
react_1.default.createElement(description_list_1.DescriptionListDescription, null, narrative.text)));
if (narrative.text.length > 0) {
return (react_1.default.createElement(description_list_1.DescriptionList, null,
react_1.default.createElement(description_list_1.DescriptionListTerm, null, "Text"),
react_1.default.createElement(description_list_1.DescriptionListDescription, null, narrative.text)));
}
// return (
// <DescriptionList>
// <DescriptionListTerm>Text</DescriptionListTerm>
// <DescriptionListDescription>
// <div dangerouslySetInnerHTML={{ __html: narrative.div }} />
// </DescriptionListDescription>
// </DescriptionList>
// )
}

@@ -16,0 +26,0 @@ return react_1.default.createElement(react_1.default.Fragment, null);

@@ -0,0 +0,0 @@ import React from 'react';

@@ -0,0 +0,0 @@ "use strict";

2

lib/molecules/resource-reference-detail.d.ts

@@ -5,5 +5,5 @@ import React from 'react';

interface Props {
term: string;
term?: string | null;
resourceReference?: ResourceReference | null;
}
export default ResourceReferenceDetail;

@@ -10,7 +10,12 @@ "use strict";

var term = _a.term, resourceReference = _a.resourceReference;
var _b;
var _b, _c, _d;
if (resourceReference) {
if (term) {
return (react_1.default.createElement(description_list_1.DescriptionList, null,
react_1.default.createElement(description_list_1.DescriptionListTerm, null, term),
react_1.default.createElement(description_list_1.DescriptionListDescription, null, (_b = resourceReference) === null || _b === void 0 ? void 0 : _b.display)));
}
return (react_1.default.createElement(description_list_1.DescriptionList, null,
react_1.default.createElement(description_list_1.DescriptionListTerm, null, term),
react_1.default.createElement(description_list_1.DescriptionListDescription, null, (_b = resourceReference) === null || _b === void 0 ? void 0 : _b.display)));
react_1.default.createElement(description_list_1.DescriptionListTerm, null, (_c = resourceReference) === null || _c === void 0 ? void 0 : _c.typeName),
react_1.default.createElement(description_list_1.DescriptionListDescription, null, (_d = resourceReference) === null || _d === void 0 ? void 0 : _d.display)));
}

@@ -17,0 +22,0 @@ return react_1.default.createElement(react_1.default.Fragment, null);

@@ -0,0 +0,0 @@ import React from 'react';

@@ -0,0 +0,0 @@ "use strict";

{
"name": "@ltht-react/detail",
"version": "0.1.0",
"version": "0.1.1",
"description": "ltht-react molecules Detail component.",

@@ -30,10 +30,11 @@ "author": "LTHT",

"@emotion/styled": "^10.0.27",
"@ltht-react/description-list": "^0.1.0",
"@ltht-react/description-list": "^0.1.1",
"@ltht-react/list": "^0.1.1",
"@ltht-react/styles": "^0.1.0",
"@ltht-react/types": "^0.0.7",
"@ltht-react/utils": "^0.1.0",
"@ltht-react/types": "^0.0.8",
"@ltht-react/utils": "^0.1.1",
"emotion": "^10.0.27",
"react": "^16.12.0"
},
"gitHead": "10d555eef209eba015aa27a45b6d9e5603546663"
"gitHead": "6ca142b6738f38866a50bae24074ee7adb3665d9"
}

@@ -0,0 +0,0 @@

Sorry, the diff of this file is not supported yet

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