@ltht-react/appointment-summary
Advanced tools
Comparing version 1.0.4 to 1.1.0
157
CHANGELOG.md
@@ -10,6 +10,2 @@ # Change Log | ||
## [0.1.30](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/appointment-summary@0.1.29...@ltht-react/appointment-summary@0.1.30) (2020-10-29) | ||
@@ -19,6 +15,2 @@ | ||
## [0.1.29](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/appointment-summary@0.1.28...@ltht-react/appointment-summary@0.1.29) (2020-09-10) | ||
@@ -28,7 +20,2 @@ | ||
## [0.1.28](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/appointment-summary@0.1.27...@ltht-react/appointment-summary@0.1.28) (2020-09-01) | ||
@@ -38,6 +25,2 @@ | ||
## [0.1.27](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/appointment-summary@0.1.26...@ltht-react/appointment-summary@0.1.27) (2020-08-21) | ||
@@ -47,6 +30,2 @@ | ||
## [0.1.26](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/appointment-summary@0.1.25...@ltht-react/appointment-summary@0.1.26) (2020-08-19) | ||
@@ -56,6 +35,2 @@ | ||
## [0.1.25](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/appointment-summary@0.1.24...@ltht-react/appointment-summary@0.1.25) (2020-08-19) | ||
@@ -65,6 +40,2 @@ | ||
## [0.1.24](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/appointment-summary@0.1.23...@ltht-react/appointment-summary@0.1.24) (2020-08-18) | ||
@@ -74,6 +45,2 @@ | ||
## [0.1.23](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/appointment-summary@0.1.22...@ltht-react/appointment-summary@0.1.23) (2020-08-11) | ||
@@ -83,6 +50,2 @@ | ||
## [0.1.22](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/appointment-summary@0.1.21...@ltht-react/appointment-summary@0.1.22) (2020-08-10) | ||
@@ -92,6 +55,2 @@ | ||
## [0.1.21](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/appointment-summary@0.1.20...@ltht-react/appointment-summary@0.1.21) (2020-08-05) | ||
@@ -101,6 +60,2 @@ | ||
## [0.1.20](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/appointment-summary@0.1.19...@ltht-react/appointment-summary@0.1.20) (2020-08-05) | ||
@@ -110,6 +65,2 @@ | ||
## [0.1.19](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/appointment-summary@0.1.18...@ltht-react/appointment-summary@0.1.19) (2020-08-05) | ||
@@ -119,6 +70,2 @@ | ||
## [0.1.17](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/appointment-summary@0.1.16...@ltht-react/appointment-summary@0.1.17) (2020-08-04) | ||
@@ -128,7 +75,2 @@ | ||
## [0.1.16](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/appointment-summary@0.1.15...@ltht-react/appointment-summary@0.1.16) (2020-05-06) | ||
@@ -138,6 +80,2 @@ | ||
## [0.1.15](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/appointment-summary@0.1.14...@ltht-react/appointment-summary@0.1.15) (2020-05-01) | ||
@@ -147,6 +85,2 @@ | ||
## [0.1.14](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/appointment-summary@0.1.13...@ltht-react/appointment-summary@0.1.14) (2020-05-01) | ||
@@ -156,6 +90,2 @@ | ||
## [0.1.13](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/appointment-summary@0.1.12...@ltht-react/appointment-summary@0.1.13) (2020-05-01) | ||
@@ -165,6 +95,2 @@ | ||
## [0.1.12](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/appointment-summary@0.1.11...@ltht-react/appointment-summary@0.1.12) (2020-04-29) | ||
@@ -174,6 +100,2 @@ | ||
## [0.1.11](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/appointment-summary@0.1.10...@ltht-react/appointment-summary@0.1.11) (2020-04-28) | ||
@@ -183,6 +105,2 @@ | ||
## [0.1.10](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/appointment-summary@0.1.9...@ltht-react/appointment-summary@0.1.10) (2020-04-14) | ||
@@ -192,6 +110,2 @@ | ||
## [0.1.9](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/appointment-summary@0.1.8...@ltht-react/appointment-summary@0.1.9) (2020-04-09) | ||
@@ -201,6 +115,2 @@ | ||
## [0.1.8](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/appointment-summary@0.1.7...@ltht-react/appointment-summary@0.1.8) (2020-04-08) | ||
@@ -210,7 +120,2 @@ | ||
## [0.1.7](https://ssh.github.com/ltht-epr/ltht-react/compare/@ltht-react/appointment-summary@0.1.6...@ltht-react/appointment-summary@0.1.7) (2020-04-03) | ||
@@ -220,6 +125,2 @@ | ||
## [0.1.6](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/appointment-summary@0.1.5...@ltht-react/appointment-summary@0.1.6) (2020-03-16) | ||
@@ -229,7 +130,2 @@ | ||
## [0.1.5](https://ssh.github.com/ltht-epr/ltht-react/compare/@ltht-react/appointment-summary@0.1.4...@ltht-react/appointment-summary@0.1.5) (2020-03-12) | ||
@@ -239,6 +135,2 @@ | ||
## [0.1.4](https://ssh.github.com/ltht-epr/ltht-react/compare/@ltht-react/appointment-summary@0.1.3...@ltht-react/appointment-summary@0.1.4) (2020-03-06) | ||
@@ -248,6 +140,2 @@ | ||
## [0.1.3](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/appointment-summary@0.1.2...@ltht-react/appointment-summary@0.1.3) (2020-03-02) | ||
@@ -257,7 +145,2 @@ | ||
## [0.1.2](https://ssh.github.com/ltht-epr/ltht-react/compare/@ltht-react/appointment-summary@0.1.1...@ltht-react/appointment-summary@0.1.2) (2020-02-27) | ||
@@ -267,6 +150,2 @@ | ||
## [0.1.1](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/appointment-summary@0.1.0...@ltht-react/appointment-summary@0.1.1) (2020-02-26) | ||
@@ -276,6 +155,2 @@ | ||
## [0.0.9](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/appointment-summary@0.0.8...@ltht-react/appointment-summary@0.0.9) (2020-02-07) | ||
@@ -285,6 +160,2 @@ | ||
## [0.0.8](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/appointment-summary@0.0.7...@ltht-react/appointment-summary@0.0.8) (2020-02-07) | ||
@@ -294,6 +165,2 @@ | ||
## [0.0.7](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/appointment-summary@0.0.6...@ltht-react/appointment-summary@0.0.7) (2020-01-30) | ||
@@ -303,6 +170,2 @@ | ||
## [0.0.6](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/appointment-summary@0.0.5...@ltht-react/appointment-summary@0.0.6) (2020-01-23) | ||
@@ -312,6 +175,2 @@ | ||
## [0.0.5](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/appointment-summary@0.0.4...@ltht-react/appointment-summary@0.0.5) (2020-01-21) | ||
@@ -321,6 +180,2 @@ | ||
## [0.0.4](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/appointment-summary@0.0.3...@ltht-react/appointment-summary@0.0.4) (2020-01-21) | ||
@@ -330,6 +185,2 @@ | ||
## [0.0.3](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/appointment-summary@0.0.2...@ltht-react/appointment-summary@0.0.3) (2020-01-20) | ||
@@ -339,6 +190,2 @@ | ||
## [0.0.2](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/appointment-summary@0.0.1...@ltht-react/appointment-summary@0.0.2) (2020-01-17) | ||
@@ -348,8 +195,4 @@ | ||
## 0.0.1 (2020-01-17) | ||
**Note:** Version bump only for package @ltht-react/appointment-summary |
@@ -1,4 +0,4 @@ | ||
import React, { HTMLAttributes } from 'react'; | ||
import { FC, HTMLAttributes } from 'react'; | ||
import { Encounter } from '@ltht-react/types'; | ||
declare const AppointmentDescription: React.FC<Props>; | ||
declare const AppointmentDescription: FC<Props>; | ||
interface Props extends HTMLAttributes<HTMLDivElement> { | ||
@@ -5,0 +5,0 @@ encounter: Encounter; |
@@ -32,3 +32,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var react_1 = __importDefault(require("react")); | ||
var jsx_runtime_1 = require("react/jsx-runtime"); | ||
var styled_1 = __importDefault(require("@emotion/styled")); | ||
@@ -39,3 +39,3 @@ var styles_1 = require("@ltht-react/styles"); | ||
var encounter = _a.encounter, rest = __rest(_a, ["encounter"]); | ||
return (react_1.default.createElement(StyledAppointmentDescription, __assign({}, rest), encounter.text && encounter.text.text)); | ||
return (jsx_runtime_1.jsx(StyledAppointmentDescription, __assign({}, rest, { children: encounter.text && encounter.text.text }), void 0)); | ||
}; | ||
@@ -42,0 +42,0 @@ exports.default = AppointmentDescription; |
@@ -1,4 +0,4 @@ | ||
import React, { HTMLAttributes } from 'react'; | ||
import { FC, HTMLAttributes } from 'react'; | ||
import { Encounter } from '@ltht-react/types'; | ||
declare const AppointmentServiceProvider: React.FC<Props>; | ||
declare const AppointmentServiceProvider: FC<Props>; | ||
interface Props extends HTMLAttributes<HTMLDivElement> { | ||
@@ -5,0 +5,0 @@ encounter: Encounter; |
@@ -32,3 +32,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var react_1 = __importDefault(require("react")); | ||
var jsx_runtime_1 = require("react/jsx-runtime"); | ||
var styled_1 = __importDefault(require("@emotion/styled")); | ||
@@ -44,3 +44,3 @@ var styles_1 = require("@ltht-react/styles"); | ||
} | ||
return react_1.default.createElement(StyledAppointmentServiceProvider, __assign({}, rest), provider); | ||
return jsx_runtime_1.jsx(StyledAppointmentServiceProvider, __assign({}, rest, { children: provider }), void 0); | ||
}; | ||
@@ -47,0 +47,0 @@ exports.default = AppointmentServiceProvider; |
@@ -1,4 +0,4 @@ | ||
import React, { HTMLAttributes } from 'react'; | ||
import { FC, HTMLAttributes } from 'react'; | ||
import { Encounter } from '@ltht-react/types'; | ||
declare const AppointmentStatus: React.FC<Props>; | ||
declare const AppointmentStatus: FC<Props>; | ||
interface Props extends HTMLAttributes<HTMLDivElement> { | ||
@@ -5,0 +5,0 @@ encounter: Encounter; |
@@ -32,3 +32,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var react_1 = __importDefault(require("react")); | ||
var jsx_runtime_1 = require("react/jsx-runtime"); | ||
var styled_1 = __importDefault(require("@emotion/styled")); | ||
@@ -40,3 +40,3 @@ var styles_1 = require("@ltht-react/styles"); | ||
var encounter = _a.encounter, rest = __rest(_a, ["encounter"]); | ||
return (react_1.default.createElement(StyledAppointmentStatus, __assign({}, rest), encounter.status && utils_1.titleCase(encounter.status))); | ||
return (jsx_runtime_1.jsx(StyledAppointmentStatus, __assign({}, rest, { children: encounter.status && utils_1.titleCase(encounter.status) }), void 0)); | ||
}; | ||
@@ -43,0 +43,0 @@ exports.default = AppointmentStatus; |
@@ -1,4 +0,4 @@ | ||
import React from 'react'; | ||
import { FC } from 'react'; | ||
import { Encounter } from '@ltht-react/types'; | ||
declare const AppointmentRedacted: React.FC<Props>; | ||
declare const AppointmentRedacted: FC<Props>; | ||
interface Props { | ||
@@ -5,0 +5,0 @@ appointment?: Encounter | null; |
@@ -10,3 +10,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var react_1 = __importDefault(require("react")); | ||
var jsx_runtime_1 = require("react/jsx-runtime"); | ||
var styled_1 = __importDefault(require("@emotion/styled")); | ||
@@ -19,7 +19,4 @@ var summary_1 = require("@ltht-react/summary"); | ||
var appointment = _a.appointment; | ||
return (react_1.default.createElement(react_1.default.Fragment, null, | ||
react_1.default.createElement(StyledDateSummary, null, | ||
react_1.default.createElement(summary_1.DateSummary, { datetime: (_b = appointment === null || appointment === void 0 ? void 0 : appointment.period) === null || _b === void 0 ? void 0 : _b.start })), | ||
react_1.default.createElement(StyledRedactedDescription, null, | ||
react_1.default.createElement(summary_1.RedactedDescription, null)))); | ||
return (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: [jsx_runtime_1.jsx(StyledDateSummary, { children: jsx_runtime_1.jsx(summary_1.DateSummary, { datetime: (_b = appointment === null || appointment === void 0 ? void 0 : appointment.period) === null || _b === void 0 ? void 0 : _b.start }, void 0) }, void 0), | ||
jsx_runtime_1.jsx(StyledRedactedDescription, { children: jsx_runtime_1.jsx(summary_1.RedactedDescription, {}, void 0) }, void 0)] }, void 0)); | ||
}; | ||
@@ -26,0 +23,0 @@ exports.default = AppointmentRedacted; |
/** @jsx jsx */ | ||
import React from 'react'; | ||
import { Encounter } from '@ltht-react/types'; | ||
declare const AppointmentSummaryItem: React.FC<Props>; | ||
import React from 'react' | ||
import { Encounter } from '@ltht-react/types' | ||
declare const AppointmentSummaryItem: React.FC<Props> | ||
interface Props { | ||
encounter: Encounter; | ||
clickHandler?(appointment: Encounter): void; | ||
encounter: Encounter | ||
clickHandler?(appointment: Encounter): void | ||
} | ||
export default AppointmentSummaryItem; | ||
export default AppointmentSummaryItem |
@@ -1,43 +0,95 @@ | ||
"use strict"; | ||
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) { | ||
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } | ||
return cooked; | ||
}; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
'use strict' | ||
var __makeTemplateObject = | ||
(this && this.__makeTemplateObject) || | ||
function (cooked, raw) { | ||
if (Object.defineProperty) { | ||
Object.defineProperty(cooked, 'raw', { value: raw }) | ||
} else { | ||
cooked.raw = raw | ||
} | ||
return cooked | ||
} | ||
var __importDefault = | ||
(this && this.__importDefault) || | ||
function (mod) { | ||
return mod && mod.__esModule ? mod : { default: mod } | ||
} | ||
Object.defineProperty(exports, '__esModule', { value: true }) | ||
/** @jsx jsx */ | ||
var react_1 = __importDefault(require("react")); | ||
var core_1 = require("@emotion/core"); | ||
var summary_1 = require("@ltht-react/summary"); | ||
var appointment_service_provider_1 = __importDefault(require("../atoms/appointment-service-provider")); | ||
var appointment_description_1 = __importDefault(require("../atoms/appointment-description")); | ||
var appointment_status_1 = __importDefault(require("../atoms/appointment-status")); | ||
var appointment_redacted_1 = __importDefault(require("../molecules/appointment-redacted")); | ||
var react_1 = __importDefault(require('react')) | ||
var core_1 = require('@emotion/core') | ||
var summary_1 = require('@ltht-react/summary') | ||
var appointment_service_provider_1 = __importDefault(require('../atoms/appointment-service-provider')) | ||
var appointment_description_1 = __importDefault(require('../atoms/appointment-description')) | ||
var appointment_status_1 = __importDefault(require('../atoms/appointment-status')) | ||
var appointment_redacted_1 = __importDefault(require('../molecules/appointment-redacted')) | ||
var styles = { | ||
root: core_1.css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n justify-content: center;\n "], ["\n display: flex;\n justify-content: center;\n "]))), | ||
description: core_1.css(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n flex: 1;\n "], ["\n flex: 1;\n "]))), | ||
date: core_1.css(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n flex: 1;\n text-align: left;\n "], ["\n flex: 1;\n text-align: left;\n "]))), | ||
service: core_1.css(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n flex: 1;\n text-align: right;\n "], ["\n flex: 1;\n text-align: right;\n "]))), | ||
}; | ||
root: core_1.css( | ||
templateObject_1 || | ||
(templateObject_1 = __makeTemplateObject( | ||
['\n display: flex;\n justify-content: center;\n '], | ||
['\n display: flex;\n justify-content: center;\n '] | ||
)) | ||
), | ||
description: core_1.css( | ||
templateObject_2 || (templateObject_2 = __makeTemplateObject(['\n flex: 1;\n '], ['\n flex: 1;\n '])) | ||
), | ||
date: core_1.css( | ||
templateObject_3 || | ||
(templateObject_3 = __makeTemplateObject( | ||
['\n flex: 1;\n text-align: left;\n '], | ||
['\n flex: 1;\n text-align: left;\n '] | ||
)) | ||
), | ||
service: core_1.css( | ||
templateObject_4 || | ||
(templateObject_4 = __makeTemplateObject( | ||
['\n flex: 1;\n text-align: right;\n '], | ||
['\n flex: 1;\n text-align: right;\n '] | ||
)) | ||
), | ||
} | ||
var AppointmentSummaryItem = function (_a) { | ||
var _b; | ||
var encounter = _a.encounter, clickHandler = _a.clickHandler; | ||
var handleClick = function (e) { | ||
e.preventDefault(); | ||
clickHandler && clickHandler(encounter); | ||
}; | ||
var summaryMarkup = (core_1.jsx(react_1.default.Fragment, null, | ||
core_1.jsx("div", { css: styles.date }, | ||
core_1.jsx(summary_1.DateSummary, { datetime: (_b = encounter === null || encounter === void 0 ? void 0 : encounter.period) === null || _b === void 0 ? void 0 : _b.start })), | ||
core_1.jsx("div", { css: styles.description }, | ||
core_1.jsx(appointment_description_1.default, { encounter: encounter })), | ||
core_1.jsx("div", { css: styles.service }, | ||
core_1.jsx(appointment_service_provider_1.default, { encounter: encounter }), | ||
core_1.jsx(appointment_status_1.default, { encounter: encounter })))); | ||
return (core_1.jsx("div", { role: "link", css: styles.root, onClick: clickHandler && handleClick }, encounter.metadata.isRedacted ? core_1.jsx(appointment_redacted_1.default, { appointment: encounter }) : summaryMarkup)); | ||
}; | ||
exports.default = AppointmentSummaryItem; | ||
var templateObject_1, templateObject_2, templateObject_3, templateObject_4; | ||
//# sourceMappingURL=appointment-summary-item.js.map | ||
var _b | ||
var encounter = _a.encounter, | ||
clickHandler = _a.clickHandler | ||
var handleClick = function (e) { | ||
e.preventDefault() | ||
clickHandler && clickHandler(encounter) | ||
} | ||
var summaryMarkup = core_1.jsx( | ||
react_1.default.Fragment, | ||
null, | ||
core_1.jsx( | ||
'div', | ||
{ css: styles.date }, | ||
core_1.jsx(summary_1.DateSummary, { | ||
datetime: | ||
(_b = encounter === null || encounter === void 0 ? void 0 : encounter.period) === null || _b === void 0 | ||
? void 0 | ||
: _b.start, | ||
}) | ||
), | ||
core_1.jsx( | ||
'div', | ||
{ css: styles.description }, | ||
core_1.jsx(appointment_description_1.default, { encounter: encounter }) | ||
), | ||
core_1.jsx( | ||
'div', | ||
{ css: styles.service }, | ||
core_1.jsx(appointment_service_provider_1.default, { encounter: encounter }), | ||
core_1.jsx(appointment_status_1.default, { encounter: encounter }) | ||
) | ||
) | ||
return core_1.jsx( | ||
'div', | ||
{ role: 'link', css: styles.root, onClick: clickHandler && handleClick }, | ||
encounter.metadata.isRedacted | ||
? core_1.jsx(appointment_redacted_1.default, { appointment: encounter }) | ||
: summaryMarkup | ||
) | ||
} | ||
exports.default = AppointmentSummaryItem | ||
var templateObject_1, templateObject_2, templateObject_3, templateObject_4 | ||
//# sourceMappingURL=appointment-summary-item.js.map |
@@ -1,4 +0,4 @@ | ||
import React, { HTMLAttributes } from 'react'; | ||
import { FC, HTMLAttributes } from 'react'; | ||
import { Encounter } from '@ltht-react/types'; | ||
declare const AppointmentSummary: React.FC<Props>; | ||
declare const AppointmentSummary: FC<Props>; | ||
interface Props extends HTMLAttributes<HTMLDivElement> { | ||
@@ -5,0 +5,0 @@ encounter: Encounter; |
@@ -32,3 +32,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var react_1 = __importDefault(require("react")); | ||
var jsx_runtime_1 = require("react/jsx-runtime"); | ||
var styled_1 = __importDefault(require("@emotion/styled")); | ||
@@ -48,13 +48,8 @@ var summary_1 = require("@ltht-react/summary"); | ||
if (encounter.metadata.isRedacted) { | ||
return (react_1.default.createElement(StyledSummary, __assign({}, rest), | ||
react_1.default.createElement(appointment_redacted_1.default, { appointment: encounter }))); | ||
return (jsx_runtime_1.jsx(StyledSummary, __assign({}, rest, { children: jsx_runtime_1.jsx(appointment_redacted_1.default, { appointment: encounter }, void 0) }), void 0)); | ||
} | ||
return (react_1.default.createElement(StyledSummary, __assign({}, rest), | ||
react_1.default.createElement(StyledDate, null, | ||
react_1.default.createElement(summary_1.DateSummary, { datetime: (_b = encounter === null || encounter === void 0 ? void 0 : encounter.period) === null || _b === void 0 ? void 0 : _b.start })), | ||
react_1.default.createElement(StyledDescription, null, | ||
react_1.default.createElement(appointment_description_1.default, { encounter: encounter })), | ||
react_1.default.createElement(StyledService, null, | ||
react_1.default.createElement(appointment_service_provider_1.default, { encounter: encounter }), | ||
react_1.default.createElement(appointment_status_1.default, { encounter: encounter })))); | ||
return (jsx_runtime_1.jsxs(StyledSummary, __assign({}, rest, { children: [jsx_runtime_1.jsx(StyledDate, { children: jsx_runtime_1.jsx(summary_1.DateSummary, { datetime: (_b = encounter === null || encounter === void 0 ? void 0 : encounter.period) === null || _b === void 0 ? void 0 : _b.start }, void 0) }, void 0), | ||
jsx_runtime_1.jsx(StyledDescription, { children: jsx_runtime_1.jsx(appointment_description_1.default, { encounter: encounter }, void 0) }, void 0), | ||
jsx_runtime_1.jsxs(StyledService, { children: [jsx_runtime_1.jsx(appointment_service_provider_1.default, { encounter: encounter }, void 0), | ||
jsx_runtime_1.jsx(appointment_status_1.default, { encounter: encounter }, void 0)] }, void 0)] }), void 0)); | ||
}; | ||
@@ -61,0 +56,0 @@ exports.default = AppointmentSummary; |
{ | ||
"name": "@ltht-react/appointment-summary", | ||
"version": "1.0.4", | ||
"version": "1.1.0", | ||
"description": "ltht-react clinical AppointmentSummary component.", | ||
@@ -24,13 +24,12 @@ "author": "LTHT", | ||
"dependencies": { | ||
"@emotion/core": "^10.0.27", | ||
"@emotion/styled": "^10.0.27", | ||
"@ltht-react/list": "^1.0.2", | ||
"@ltht-react/styles": "^1.0.1", | ||
"@ltht-react/summary": "^1.0.4", | ||
"@ltht-react/types": "^0.0.28", | ||
"@ltht-react/utils": "^1.0.1", | ||
"emotion": "^10.0.27", | ||
"react": "^16.12.0" | ||
"@emotion/react": "^11.0.0", | ||
"@emotion/styled": "^11.0.0", | ||
"@ltht-react/list": "^1.1.0", | ||
"@ltht-react/styles": "^1.1.0", | ||
"@ltht-react/summary": "^1.1.0", | ||
"@ltht-react/types": "^0.1.0", | ||
"@ltht-react/utils": "^1.1.0", | ||
"react": "^17.0.0" | ||
}, | ||
"gitHead": "da0928603d144cb226b524b4864c1613944e75ae" | ||
"gitHead": "4f7dfa52f4994f98c1bc6059c3b732d713e2d2c0" | ||
} |
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
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
8
358
32942
+ Added@emotion/react@^11.0.0
+ Added@ltht-react/types@0.1.1(transitive)
- Removed@emotion/core@^10.0.27
- Removedemotion@^10.0.27
- Removed@emotion/core@10.0.35(transitive)
- Removed@ltht-react/types@0.0.28(transitive)
- Removedcreate-emotion@10.0.27(transitive)
- Removedemotion@10.0.27(transitive)
- Removedreact@16.14.0(transitive)
Updated@emotion/styled@^11.0.0
Updated@ltht-react/list@^1.1.0
Updated@ltht-react/styles@^1.1.0
Updated@ltht-react/summary@^1.1.0
Updated@ltht-react/types@^0.1.0
Updated@ltht-react/utils@^1.1.0
Updatedreact@^17.0.0