@ltht-react/flag-summary
Advanced tools
Comparing version 1.0.4 to 1.1.0
181
CHANGELOG.md
@@ -10,6 +10,2 @@ # Change Log | ||
## [0.1.30](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/flag-summary@0.1.29...@ltht-react/flag-summary@0.1.30) (2020-10-29) | ||
@@ -19,6 +15,2 @@ | ||
## [0.1.29](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/flag-summary@0.1.28...@ltht-react/flag-summary@0.1.29) (2020-09-10) | ||
@@ -28,7 +20,2 @@ | ||
## [0.1.28](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/flag-summary@0.1.27...@ltht-react/flag-summary@0.1.28) (2020-09-01) | ||
@@ -38,6 +25,2 @@ | ||
## [0.1.27](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/flag-summary@0.1.26...@ltht-react/flag-summary@0.1.27) (2020-08-21) | ||
@@ -47,6 +30,2 @@ | ||
## [0.1.26](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/flag-summary@0.1.25...@ltht-react/flag-summary@0.1.26) (2020-08-19) | ||
@@ -56,6 +35,2 @@ | ||
## [0.1.25](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/flag-summary@0.1.24...@ltht-react/flag-summary@0.1.25) (2020-08-19) | ||
@@ -65,6 +40,2 @@ | ||
## [0.1.24](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/flag-summary@0.1.23...@ltht-react/flag-summary@0.1.24) (2020-08-18) | ||
@@ -74,6 +45,2 @@ | ||
## [0.1.23](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/flag-summary@0.1.22...@ltht-react/flag-summary@0.1.23) (2020-08-11) | ||
@@ -83,6 +50,2 @@ | ||
## [0.1.22](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/flag-summary@0.1.21...@ltht-react/flag-summary@0.1.22) (2020-08-10) | ||
@@ -92,6 +55,2 @@ | ||
## [0.1.21](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/flag-summary@0.1.20...@ltht-react/flag-summary@0.1.21) (2020-08-05) | ||
@@ -101,6 +60,2 @@ | ||
## [0.1.20](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/flag-summary@0.1.19...@ltht-react/flag-summary@0.1.20) (2020-08-05) | ||
@@ -110,6 +65,2 @@ | ||
## [0.1.19](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/flag-summary@0.1.18...@ltht-react/flag-summary@0.1.19) (2020-08-05) | ||
@@ -119,6 +70,2 @@ | ||
## [0.1.17](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/flag-summary@0.1.16...@ltht-react/flag-summary@0.1.17) (2020-08-04) | ||
@@ -128,7 +75,2 @@ | ||
## [0.1.16](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/flag-summary@0.1.15...@ltht-react/flag-summary@0.1.16) (2020-05-06) | ||
@@ -138,6 +80,2 @@ | ||
## [0.1.15](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/flag-summary@0.1.14...@ltht-react/flag-summary@0.1.15) (2020-05-01) | ||
@@ -147,6 +85,2 @@ | ||
## [0.1.14](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/flag-summary@0.1.13...@ltht-react/flag-summary@0.1.14) (2020-05-01) | ||
@@ -156,6 +90,2 @@ | ||
## [0.1.13](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/flag-summary@0.1.12...@ltht-react/flag-summary@0.1.13) (2020-04-29) | ||
@@ -165,6 +95,2 @@ | ||
## [0.1.12](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/flag-summary@0.1.11...@ltht-react/flag-summary@0.1.12) (2020-04-28) | ||
@@ -174,6 +100,2 @@ | ||
## [0.1.11](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/flag-summary@0.1.10...@ltht-react/flag-summary@0.1.11) (2020-04-21) | ||
@@ -183,6 +105,2 @@ | ||
## [0.1.10](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/flag-summary@0.1.9...@ltht-react/flag-summary@0.1.10) (2020-04-14) | ||
@@ -192,6 +110,2 @@ | ||
## [0.1.9](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/flag-summary@0.1.8...@ltht-react/flag-summary@0.1.9) (2020-04-09) | ||
@@ -201,6 +115,2 @@ | ||
## [0.1.8](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/flag-summary@0.1.7...@ltht-react/flag-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/flag-summary@0.1.6...@ltht-react/flag-summary@0.1.7) (2020-04-03) | ||
@@ -220,6 +125,2 @@ | ||
## [0.1.6](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/flag-summary@0.1.5...@ltht-react/flag-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/flag-summary@0.1.4...@ltht-react/flag-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/flag-summary@0.1.3...@ltht-react/flag-summary@0.1.4) (2020-03-06) | ||
@@ -248,6 +140,2 @@ | ||
## [0.1.3](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/flag-summary@0.1.2...@ltht-react/flag-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/flag-summary@0.1.1...@ltht-react/flag-summary@0.1.2) (2020-02-27) | ||
@@ -267,6 +150,2 @@ | ||
## [0.1.1](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/flag-summary@0.1.0...@ltht-react/flag-summary@0.1.1) (2020-02-26) | ||
@@ -276,6 +155,2 @@ | ||
## [0.0.16](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/flag-summary@0.0.15...@ltht-react/flag-summary@0.0.16) (2020-02-07) | ||
@@ -285,6 +160,2 @@ | ||
## [0.0.15](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/flag-summary@0.0.14...@ltht-react/flag-summary@0.0.15) (2020-02-07) | ||
@@ -294,6 +165,2 @@ | ||
## [0.0.14](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/flag-summary@0.0.13...@ltht-react/flag-summary@0.0.14) (2020-01-30) | ||
@@ -303,6 +170,2 @@ | ||
## [0.0.13](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/flag-summary@0.0.12...@ltht-react/flag-summary@0.0.13) (2020-01-23) | ||
@@ -312,6 +175,2 @@ | ||
## [0.0.12](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/flag-summary@0.0.11...@ltht-react/flag-summary@0.0.12) (2020-01-21) | ||
@@ -321,6 +180,2 @@ | ||
## [0.0.11](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/flag-summary@0.0.10...@ltht-react/flag-summary@0.0.11) (2020-01-21) | ||
@@ -330,6 +185,2 @@ | ||
## [0.0.10](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/flag-summary@0.0.9...@ltht-react/flag-summary@0.0.10) (2020-01-20) | ||
@@ -339,6 +190,2 @@ | ||
## [0.0.9](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/flag-summary@0.0.8...@ltht-react/flag-summary@0.0.9) (2020-01-17) | ||
@@ -348,6 +195,2 @@ | ||
## [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) | ||
@@ -357,6 +200,2 @@ | ||
## [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) | ||
@@ -366,6 +205,2 @@ | ||
## [0.0.5](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/flag-summary@0.0.4...@ltht-react/flag-summary@0.0.5) (2020-01-07) | ||
@@ -375,6 +210,2 @@ | ||
## [0.0.4](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/flag-summary@0.0.3...@ltht-react/flag-summary@0.0.4) (2020-01-07) | ||
@@ -384,6 +215,2 @@ | ||
## [0.0.3](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/flag-summary@0.0.2...@ltht-react/flag-summary@0.0.3) (2020-01-07) | ||
@@ -393,6 +220,2 @@ | ||
## [0.0.2](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/flag-summary@0.0.1...@ltht-react/flag-summary@0.0.2) (2020-01-06) | ||
@@ -402,8 +225,4 @@ | ||
## 0.0.1 (2020-01-03) | ||
**Note:** Version bump only for package @ltht-react/flag-summary |
@@ -1,4 +0,4 @@ | ||
import React, { HTMLAttributes } from 'react'; | ||
import { HTMLAttributes, FC } from 'react'; | ||
import { Flag } from '@ltht-react/types'; | ||
declare const FlagDescription: React.FC<Props>; | ||
declare const FlagDescription: FC<Props>; | ||
interface Props extends HTMLAttributes<HTMLDivElement> { | ||
@@ -5,0 +5,0 @@ flag: Flag; |
@@ -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")); | ||
@@ -47,3 +47,3 @@ var styles_1 = require("@ltht-react/styles"); | ||
values.push(categorySummary); | ||
return react_1.default.createElement(StyledFlagDescription, __assign({}, rest), values.join(' - ')); | ||
return jsx_runtime_1.jsx(StyledFlagDescription, __assign({}, rest, { children: values.join(' - ') }), void 0); | ||
}; | ||
@@ -50,0 +50,0 @@ exports.default = FlagDescription; |
@@ -1,4 +0,4 @@ | ||
import React from 'react'; | ||
import { FC } from 'react'; | ||
import { Flag } from '@ltht-react/types'; | ||
declare const FlagIcon: React.FC<Props>; | ||
declare const FlagIcon: FC<Props>; | ||
interface Props { | ||
@@ -5,0 +5,0 @@ flag: Flag; |
"use strict"; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var react_1 = __importDefault(require("react")); | ||
var jsx_runtime_1 = require("react/jsx-runtime"); | ||
var icon_1 = require("@ltht-react/icon"); | ||
@@ -11,5 +8,5 @@ var types_1 = require("@ltht-react/types"); | ||
var flag = _a.flag; | ||
return (react_1.default.createElement(icon_1.ExclamationIcon, { status: flag.status === types_1.FlagStatusCode.Active ? 'red' : 'amber', size: "medium" })); | ||
return (jsx_runtime_1.jsx(icon_1.ExclamationIcon, { status: flag.status === types_1.FlagStatusCode.Active ? 'red' : 'amber', size: "medium" }, void 0)); | ||
}; | ||
exports.default = FlagIcon; | ||
//# sourceMappingURL=flag-icon.js.map |
@@ -1,4 +0,4 @@ | ||
import React, { HTMLAttributes } from 'react'; | ||
import { HTMLAttributes, FC } from 'react'; | ||
import { Flag } from '@ltht-react/types'; | ||
declare const FlagSource: React.FC<Props>; | ||
declare const FlagSource: FC<Props>; | ||
interface Props extends HTMLAttributes<HTMLDivElement> { | ||
@@ -5,0 +5,0 @@ flag: Flag; |
@@ -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 metadata = _a.flag.metadata, rest = __rest(_a, ["flag"]); | ||
return (react_1.default.createElement(StyledFlagSource, __assign({}, rest), utils_1.metadataSourceSummaryText(metadata))); | ||
return (jsx_runtime_1.jsx(StyledFlagSource, __assign({}, rest, { children: utils_1.metadataSourceSummaryText(metadata) }), void 0)); | ||
}; | ||
@@ -43,0 +43,0 @@ exports.default = FlagSource; |
@@ -1,4 +0,4 @@ | ||
import React, { HTMLAttributes } from 'react'; | ||
import { HTMLAttributes, FC } from 'react'; | ||
import { Flag } from '@ltht-react/types'; | ||
declare const FlagStatus: React.FC<Props>; | ||
declare const FlagStatus: FC<Props>; | ||
interface Props extends HTMLAttributes<HTMLDivElement> { | ||
@@ -5,0 +5,0 @@ flag: Flag; |
@@ -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 status = _a.flag.status, rest = __rest(_a, ["flag"]); | ||
return (react_1.default.createElement(StyledFlagStatus, __assign({}, rest), utils_1.titleCase(status))); | ||
return (jsx_runtime_1.jsx(StyledFlagStatus, __assign({}, rest, { children: utils_1.titleCase(status) }), void 0)); | ||
}; | ||
@@ -43,0 +43,0 @@ exports.default = FlagStatus; |
@@ -1,4 +0,4 @@ | ||
import React, { HTMLAttributes } from 'react'; | ||
import { HTMLAttributes, FC } from 'react'; | ||
import { Flag } from '@ltht-react/types'; | ||
declare const FlagTitle: React.FC<Props>; | ||
declare const FlagTitle: FC<Props>; | ||
interface Props extends HTMLAttributes<HTMLDivElement> { | ||
@@ -5,0 +5,0 @@ flag: Flag; |
@@ -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 code = _a.flag.code, rest = __rest(_a, ["flag"]); | ||
return (react_1.default.createElement(StyledFlagTitle, __assign({}, rest), utils_1.codeableConceptDisplaySummary(code))); | ||
return (jsx_runtime_1.jsx(StyledFlagTitle, __assign({}, rest, { children: utils_1.codeableConceptDisplaySummary(code) }), void 0)); | ||
}; | ||
@@ -43,0 +43,0 @@ exports.default = FlagTitle; |
@@ -1,4 +0,4 @@ | ||
import React from 'react'; | ||
import { FC } from 'react'; | ||
import { Flag } from '@ltht-react/types'; | ||
declare const FlagRedacted: React.FC<Props>; | ||
declare const FlagRedacted: FC<Props>; | ||
interface Props { | ||
@@ -5,0 +5,0 @@ flag: Flag; |
@@ -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")); | ||
@@ -18,7 +18,4 @@ var summary_1 = require("@ltht-react/summary"); | ||
var period = _a.flag.period; | ||
return (react_1.default.createElement(react_1.default.Fragment, null, | ||
react_1.default.createElement(StyledRedactedDescription, null, | ||
react_1.default.createElement(summary_1.RedactedDescription, null)), | ||
react_1.default.createElement(StyledPeriodSummary, null, | ||
react_1.default.createElement(summary_1.PeriodSummary, { period: period })))); | ||
return (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: [jsx_runtime_1.jsx(StyledRedactedDescription, { children: jsx_runtime_1.jsx(summary_1.RedactedDescription, {}, void 0) }, void 0), | ||
jsx_runtime_1.jsx(StyledPeriodSummary, { children: jsx_runtime_1.jsx(summary_1.PeriodSummary, { period: period }, void 0) }, void 0)] }, void 0)); | ||
}; | ||
@@ -25,0 +22,0 @@ exports.default = FlagRedacted; |
/** @jsx jsx */ | ||
import React from 'react'; | ||
import { Flag } from '@ltht-react/types'; | ||
declare const FlagSummaryItem: React.FC<Props>; | ||
import React from 'react' | ||
import { Flag } from '@ltht-react/types' | ||
declare const FlagSummaryItem: React.FC<Props> | ||
interface Props { | ||
flag: Flag; | ||
clickHandler?(flag: Flag): void; | ||
flag: Flag | ||
clickHandler?(flag: Flag): void | ||
} | ||
export default FlagSummaryItem; | ||
export default FlagSummaryItem |
@@ -1,40 +0,74 @@ | ||
"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 flag_title_1 = __importDefault(require("../atoms/flag-title")); | ||
var flag_description_1 = __importDefault(require("../atoms/flag-description")); | ||
var flag_status_1 = __importDefault(require("../atoms/flag-status")); | ||
var flag_redacted_1 = __importDefault(require("../molecules/flag-redacted")); | ||
var react_1 = __importDefault(require('react')) | ||
var core_1 = require('@emotion/core') | ||
var summary_1 = require('@ltht-react/summary') | ||
var flag_title_1 = __importDefault(require('../atoms/flag-title')) | ||
var flag_description_1 = __importDefault(require('../atoms/flag-description')) | ||
var flag_status_1 = __importDefault(require('../atoms/flag-status')) | ||
var flag_redacted_1 = __importDefault(require('../molecules/flag-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-grow: 1;\n "], ["\n flex-grow: 1;\n "]))), | ||
date: core_1.css(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n text-align: right;\n "], ["\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-grow: 1;\n '], ['\n flex-grow: 1;\n '])) | ||
), | ||
date: core_1.css( | ||
templateObject_3 || | ||
(templateObject_3 = __makeTemplateObject(['\n text-align: right;\n '], ['\n text-align: right;\n '])) | ||
), | ||
} | ||
var FlagSummaryItem = function (_a) { | ||
var flag = _a.flag, clickHandler = _a.clickHandler; | ||
var handleClick = function (e) { | ||
e.preventDefault(); | ||
clickHandler && clickHandler(flag); | ||
}; | ||
var summaryMarkup = (core_1.jsx(react_1.default.Fragment, null, | ||
core_1.jsx("div", { css: styles.description }, | ||
core_1.jsx(flag_title_1.default, { flag: flag }), | ||
core_1.jsx(flag_description_1.default, { flag: flag })), | ||
core_1.jsx("div", { css: styles.date }, | ||
core_1.jsx(summary_1.PeriodSummary, { period: flag.period }), | ||
core_1.jsx(flag_status_1.default, { flag: flag })))); | ||
return (core_1.jsx("div", { css: styles.root, role: "link", onClick: clickHandler && handleClick }, flag.metadata.isRedacted ? core_1.jsx(flag_redacted_1.default, { flag: flag }) : summaryMarkup)); | ||
}; | ||
exports.default = FlagSummaryItem; | ||
var templateObject_1, templateObject_2, templateObject_3; | ||
//# sourceMappingURL=flag-summary-item.js.map | ||
var flag = _a.flag, | ||
clickHandler = _a.clickHandler | ||
var handleClick = function (e) { | ||
e.preventDefault() | ||
clickHandler && clickHandler(flag) | ||
} | ||
var summaryMarkup = core_1.jsx( | ||
react_1.default.Fragment, | ||
null, | ||
core_1.jsx( | ||
'div', | ||
{ css: styles.description }, | ||
core_1.jsx(flag_title_1.default, { flag: flag }), | ||
core_1.jsx(flag_description_1.default, { flag: flag }) | ||
), | ||
core_1.jsx( | ||
'div', | ||
{ css: styles.date }, | ||
core_1.jsx(summary_1.PeriodSummary, { period: flag.period }), | ||
core_1.jsx(flag_status_1.default, { flag: flag }) | ||
) | ||
) | ||
return core_1.jsx( | ||
'div', | ||
{ css: styles.root, role: 'link', onClick: clickHandler && handleClick }, | ||
flag.metadata.isRedacted ? core_1.jsx(flag_redacted_1.default, { flag: flag }) : summaryMarkup | ||
) | ||
} | ||
exports.default = FlagSummaryItem | ||
var templateObject_1, templateObject_2, templateObject_3 | ||
//# sourceMappingURL=flag-summary-item.js.map |
@@ -1,4 +0,4 @@ | ||
import React, { HTMLAttributes } from 'react'; | ||
import { HTMLAttributes, FC } from 'react'; | ||
import { Flag } from '@ltht-react/types'; | ||
declare const FlagSummary: React.FC<Props>; | ||
declare const FlagSummary: FC<Props>; | ||
interface Props extends HTMLAttributes<HTMLDivElement> { | ||
@@ -5,0 +5,0 @@ flag: Flag; |
@@ -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")); | ||
@@ -46,12 +46,8 @@ var summary_1 = require("@ltht-react/summary"); | ||
if (flag.metadata.isRedacted) { | ||
return (react_1.default.createElement(StyledSummary, __assign({}, rest), | ||
react_1.default.createElement(flag_redacted_1.default, { flag: flag }))); | ||
return (jsx_runtime_1.jsx(StyledSummary, __assign({}, rest, { children: jsx_runtime_1.jsx(flag_redacted_1.default, { flag: flag }, void 0) }), void 0)); | ||
} | ||
return (react_1.default.createElement(StyledSummary, __assign({}, rest), | ||
react_1.default.createElement(StyledDescription, null, | ||
react_1.default.createElement(flag_title_1.default, { flag: flag }), | ||
react_1.default.createElement(flag_description_1.default, { flag: flag })), | ||
react_1.default.createElement(StyledDate, null, | ||
react_1.default.createElement(summary_1.PeriodSummary, { period: flag.period }), | ||
react_1.default.createElement(flag_status_1.default, { flag: flag })))); | ||
return (jsx_runtime_1.jsxs(StyledSummary, __assign({}, rest, { children: [jsx_runtime_1.jsxs(StyledDescription, { children: [jsx_runtime_1.jsx(flag_title_1.default, { flag: flag }, void 0), | ||
jsx_runtime_1.jsx(flag_description_1.default, { flag: flag }, void 0)] }, void 0), | ||
jsx_runtime_1.jsxs(StyledDate, { children: [jsx_runtime_1.jsx(summary_1.PeriodSummary, { period: flag.period }, void 0), | ||
jsx_runtime_1.jsx(flag_status_1.default, { flag: flag }, void 0)] }, void 0)] }), void 0)); | ||
}; | ||
@@ -58,0 +54,0 @@ exports.default = FlagSummary; |
{ | ||
"name": "@ltht-react/flag-summary", | ||
"version": "1.0.4", | ||
"version": "1.1.0", | ||
"description": "> TODO: description", | ||
@@ -25,14 +25,13 @@ "author": "Jonny Smith <jonny.asmith@gmail.com>", | ||
"dependencies": { | ||
"@emotion/core": "^10.0.27", | ||
"@emotion/styled": "^10.0.27", | ||
"@ltht-react/icon": "^1.0.2", | ||
"@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/icon": "^1.1.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
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
9
402
35148
+ 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/icon@^1.1.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