@ltht-react/detail
Advanced tools
Comparing version 0.1.0 to 0.1.1
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"; |
@@ -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
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
21306
36
291
0
9
+ Added@ltht-react/list@^0.1.1
+ Added@ltht-react/list@0.1.26(transitive)
+ Added@ltht-react/types@0.0.8(transitive)
- Removed@ltht-react/types@0.0.7(transitive)
Updated@ltht-react/types@^0.0.8
Updated@ltht-react/utils@^0.1.1