@ltht-react/appointment-summary
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -6,2 +6,10 @@ # Change Log | ||
## [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) | ||
**Note:** Version bump only for package @ltht-react/appointment-summary | ||
## [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) | ||
@@ -8,0 +16,0 @@ |
/// <reference types="react" /> | ||
import { Encounter, Maybe } from '@ltht-react/types'; | ||
import { Encounter } from '@ltht-react/types'; | ||
declare const AppointmentSummary: ({ title, appointments, clickHandler }: Props) => JSX.Element; | ||
interface Props { | ||
title?: string; | ||
appointments: Maybe<Encounter[]>; | ||
appointments: Encounter[] | undefined; | ||
clickHandler?(appointment: Encounter): void; | ||
} | ||
export default AppointmentSummary; |
@@ -10,8 +10,7 @@ "use strict"; | ||
var AppointmentSummary = function (_a) { | ||
var _b = _a.title, title = _b === void 0 ? 'Appointments' : _b, appointments = _a.appointments, clickHandler = _a.clickHandler; | ||
var _c; | ||
var _b = _a.title, title = _b === void 0 ? 'Appointments' : _b, _c = _a.appointments, appointments = _c === void 0 ? [] : _c, clickHandler = _a.clickHandler; | ||
return (react_1.default.createElement(widget_1.Widget, null, | ||
react_1.default.createElement(widget_1.WidgetHeader, null, | ||
react_1.default.createElement("h3", null, title)), | ||
react_1.default.createElement(widget_1.WidgetList, { clickable: clickHandler ? true : false }, (_c = appointments) === null || _c === void 0 ? void 0 : _c.map(function (appointment, index) { return (react_1.default.createElement(widget_1.WidgetListItem, { key: index }, | ||
react_1.default.createElement(widget_1.WidgetList, { clickable: clickHandler ? true : false }, appointments.map(function (appointment, index) { return (react_1.default.createElement(widget_1.WidgetListItem, { key: index }, | ||
react_1.default.createElement(appointment_summary_item_1.default, { key: index, appointment: appointment, clickHandler: clickHandler }))); })))); | ||
@@ -18,0 +17,0 @@ }; |
{ | ||
"name": "@ltht-react/appointment-summary", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "ltht-react AppointmentSummary component.", | ||
@@ -30,10 +30,10 @@ "author": "LTHT", | ||
"@emotion/styled": "^10.0.27", | ||
"@ltht-react/styles": "^0.0.2", | ||
"@ltht-react/styles": "^0.0.3", | ||
"@ltht-react/types": "^0.0.6", | ||
"@ltht-react/utils": "^0.0.7", | ||
"@ltht-react/widget": "^0.0.3", | ||
"@ltht-react/widget": "^0.0.4", | ||
"emotion": "^10.0.27", | ||
"react": "^16.12.0" | ||
}, | ||
"gitHead": "663ce78c5a9d38757e42bb7b214b94516e6e40c3" | ||
"gitHead": "19893cfe90b7d8ce2364187526e8694f822ed1d7" | ||
} |
Sorry, the diff of this file is not supported yet
19041
235
+ Added@ltht-react/styles@0.0.3(transitive)
+ Added@ltht-react/widget@0.0.4(transitive)
- Removed@ltht-react/styles@0.0.2(transitive)
- Removed@ltht-react/widget@0.0.3(transitive)
Updated@ltht-react/styles@^0.0.3
Updated@ltht-react/widget@^0.0.4