@ltht-react/flag-summary
Advanced tools
Comparing version 0.0.7 to 0.0.8
@@ -6,2 +6,10 @@ # Change Log | ||
## [0.0.8](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/flag-summary@0.0.7...@ltht-react/flag-summary@0.0.8) (2020-01-17) | ||
**Note:** Version bump only for package @ltht-react/flag-summary | ||
## [0.0.6](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/flag-summary@0.0.5...@ltht-react/flag-summary@0.0.6) (2020-01-07) | ||
@@ -8,0 +16,0 @@ |
@@ -17,3 +17,3 @@ "use strict"; | ||
reference: 'https://phoenixqa.careworks.ie/Services/api/fhir/v3/practitioner/9c1ad2c0-ec34-e911-a2c5-005056926fe4|systemuser', | ||
type: 'Practitioner', | ||
typeName: 'Practitioner', | ||
identifier: undefined, | ||
@@ -39,3 +39,3 @@ }, | ||
reference: 'https://phoenixqa.careworks.ie/Services/api/fhir/v3/practitioner/9c1ad2c0-ec34-e911-a2c5-005056926fe4|systemuser', | ||
type: 'Practitioner', | ||
typeName: 'Practitioner', | ||
identifier: undefined, | ||
@@ -42,0 +42,0 @@ }, |
/// <reference types="react" /> | ||
import { Flag } from '@ltht-react/types'; | ||
import { Flag, Maybe } from '@ltht-react/types'; | ||
declare const FlagSummary: ({ title, flags, clickHandler }: Props) => JSX.Element; | ||
interface Props { | ||
title?: string; | ||
flags: Flag[]; | ||
flags: Maybe<Flag[]>; | ||
clickHandler?(flag: Flag): void; | ||
} | ||
export default FlagSummary; |
@@ -11,9 +11,10 @@ "use strict"; | ||
var title = _a.title, flags = _a.flags, clickHandler = _a.clickHandler; | ||
var _b; | ||
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 }, flags.map(function (flag, index) { return (react_1.default.createElement(widget_1.WidgetListItem, { key: index }, | ||
react_1.default.createElement(flag_summary_item_1.default, { key: index, flag: flag, clickHandler: clickHandler }))); })))); | ||
react_1.default.createElement(widget_1.WidgetList, { clickable: clickHandler ? true : false }, (_b = flags) === null || _b === void 0 ? void 0 : _b.map(function (flag, index) { return (react_1.default.createElement(widget_1.WidgetListItem, { key: index }, | ||
react_1.default.createElement(flag_summary_item_1.default, { flag: flag, clickHandler: clickHandler }))); })))); | ||
}; | ||
exports.default = FlagSummary; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@ltht-react/flag-summary", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"description": "> TODO: description", | ||
@@ -32,7 +32,7 @@ "author": "Jonny Smith <jonny.asmith@gmail.com>", | ||
"@emotion/styled": "^10.0.27", | ||
"@ltht-react/exclamation-icon": "^0.0.3", | ||
"@ltht-react/exclamation-icon": "^0.0.4", | ||
"@ltht-react/styles": "^0.0.2", | ||
"@ltht-react/types": "^0.0.5", | ||
"@ltht-react/utils": "^0.0.5", | ||
"@ltht-react/widget": "^0.0.1", | ||
"@ltht-react/types": "^0.0.6", | ||
"@ltht-react/utils": "^0.0.6", | ||
"@ltht-react/widget": "^0.0.2", | ||
"emotion": "^10.0.27", | ||
@@ -61,3 +61,3 @@ "react": "^16.12.0" | ||
}, | ||
"gitHead": "5fd8016ae3d0996170492f82a2e0d60df41e4229" | ||
"gitHead": "2e7dd5fc7844c09a1d8d6a748744802b3d117ca6" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
22765
284
+ Added@ltht-react/exclamation-icon@0.0.4(transitive)
+ Added@ltht-react/types@0.0.6(transitive)
+ Added@ltht-react/utils@0.0.6(transitive)
+ Added@ltht-react/widget@0.0.2(transitive)
- Removed@ltht-react/exclamation-icon@0.0.3(transitive)
- Removed@ltht-react/types@0.0.5(transitive)
- Removed@ltht-react/utils@0.0.5(transitive)
- Removed@ltht-react/widget@0.0.1(transitive)
Updated@ltht-react/types@^0.0.6
Updated@ltht-react/utils@^0.0.6
Updated@ltht-react/widget@^0.0.2