@ltht-react/involved-team-summary 2.0.192 → 2.0.194

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,21 +1,21 @@
1
- # Involved Team Summary
2
-
3
- ### Import
4
-
5
- ```js
6
- import InvolvedTeamSummary from '@ltht-react/involved-team-summary'
7
- ```
8
-
9
- ### Usage
10
-
11
- ```jsx
12
- <InvolvedTeamSummary title="Involved Teams" episodeOfCares={episodeOfCares} clickHandler={handleClick} />
13
- ```
14
-
15
- ### Properties
16
-
17
- | Prop | Required | Default | Type | Description |
18
- | :--------------- | :------- | :------------- | :--------------- | :------------------------------------------------------------------ |
19
- | `title` | No | Involved Teams | string | Header text |
20
- | `episodeOfCares` | Yes | | EpisodeOfCares[] | Array of episode of care to display |
21
- | `clickHandler` | No | undefined | Function | Callback click handler containing the selected episode of care item |
1
+ # Involved Team Summary
2
+
3
+ ### Import
4
+
5
+ ```js
6
+ import InvolvedTeamSummary from '@ltht-react/involved-team-summary'
7
+ ```
8
+
9
+ ### Usage
10
+
11
+ ```jsx
12
+ <InvolvedTeamSummary title="Involved Teams" episodeOfCares={episodeOfCares} clickHandler={handleClick} />
13
+ ```
14
+
15
+ ### Properties
16
+
17
+ | Prop | Required | Default | Type | Description |
18
+ | :--------------- | :------- | :------------- | :--------------- | :------------------------------------------------------------------ |
19
+ | `title` | No | Involved Teams | string | Header text |
20
+ | `episodeOfCares` | Yes | | EpisodeOfCares[] | Array of episode of care to display |
21
+ | `clickHandler` | No | undefined | Function | Callback click handler containing the selected episode of care item |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ltht-react/involved-team-summary",
3
- "version": "2.0.192",
3
+ "version": "2.0.194",
4
4
  "description": "ltht-react clinical InvolvedTeamSummary component.",
5
5
  "author": "LTHT",
6
6
  "homepage": "",
@@ -24,12 +24,12 @@
24
24
  "dependencies": {
25
25
  "@emotion/react": "^11.0.0",
26
26
  "@emotion/styled": "^11.0.0",
27
- "@ltht-react/list": "^2.0.192",
28
- "@ltht-react/styles": "^2.0.192",
29
- "@ltht-react/type-summary": "^2.0.192",
30
- "@ltht-react/types": "^2.0.192",
31
- "@ltht-react/utils": "^2.0.192",
27
+ "@ltht-react/list": "^2.0.194",
28
+ "@ltht-react/styles": "^2.0.194",
29
+ "@ltht-react/type-summary": "^2.0.194",
30
+ "@ltht-react/types": "^2.0.194",
31
+ "@ltht-react/utils": "^2.0.194",
32
32
  "react": "^18.2.0"
33
33
  },
34
- "gitHead": "d97c241ba79c5e28edb4dec124e156cda6e9af66"
34
+ "gitHead": "2eb4b88fa2bc19baa1be9433dbe29fe1a947dc62"
35
35
  }
@@ -1,22 +1,22 @@
1
- import { HTMLAttributes, FC } from 'react'
2
- import styled from '@emotion/styled'
3
-
4
- import { TEXT_COLOURS } from '@ltht-react/styles'
5
- import { EpisodeOfCare } from '@ltht-react/types'
6
-
7
- const StyledInvolvedTeamDescription = styled.div`
8
- color: ${TEXT_COLOURS.SECONDARY.VALUE};
9
- text-align: left;
10
- font-size: smaller;
11
- padding-top: 0.25rem;
12
- `
13
-
14
- const InvolvedTeamDescription: FC<Props> = ({ episodeOfCare, ...rest }) => (
15
- <StyledInvolvedTeamDescription {...rest}>{episodeOfCare.careManager?.display}</StyledInvolvedTeamDescription>
16
- )
17
-
18
- interface Props extends HTMLAttributes<HTMLDivElement> {
19
- episodeOfCare: EpisodeOfCare
20
- }
21
-
22
- export default InvolvedTeamDescription
1
+ import { HTMLAttributes, FC } from 'react'
2
+ import styled from '@emotion/styled'
3
+
4
+ import { TEXT_COLOURS } from '@ltht-react/styles'
5
+ import { EpisodeOfCare } from '@ltht-react/types'
6
+
7
+ const StyledInvolvedTeamDescription = styled.div`
8
+ color: ${TEXT_COLOURS.SECONDARY.VALUE};
9
+ text-align: left;
10
+ font-size: smaller;
11
+ padding-top: 0.25rem;
12
+ `
13
+
14
+ const InvolvedTeamDescription: FC<Props> = ({ episodeOfCare, ...rest }) => (
15
+ <StyledInvolvedTeamDescription {...rest}>{episodeOfCare.careManager?.display}</StyledInvolvedTeamDescription>
16
+ )
17
+
18
+ interface Props extends HTMLAttributes<HTMLDivElement> {
19
+ episodeOfCare: EpisodeOfCare
20
+ }
21
+
22
+ export default InvolvedTeamDescription
@@ -1,23 +1,23 @@
1
- import { HTMLAttributes, FC } from 'react'
2
- import styled from '@emotion/styled'
3
-
4
- import { TEXT_COLOURS } from '@ltht-react/styles'
5
- import { EpisodeOfCare } from '@ltht-react/types'
6
- import { resourceReferenceDisplaySummary } from '@ltht-react/utils'
7
-
8
- const StyledInvolvedTeamTitle = styled.div`
9
- color: ${TEXT_COLOURS.PRIMARY};
10
- text-align: left;
11
- `
12
-
13
- const InvolvedTeamTitle: FC<Props> = ({ episodeOfCare, ...rest }) => (
14
- <StyledInvolvedTeamTitle {...rest}>
15
- {episodeOfCare.team && resourceReferenceDisplaySummary(episodeOfCare.team)}
16
- </StyledInvolvedTeamTitle>
17
- )
18
-
19
- interface Props extends HTMLAttributes<HTMLDivElement> {
20
- episodeOfCare: EpisodeOfCare
21
- }
22
-
23
- export default InvolvedTeamTitle
1
+ import { HTMLAttributes, FC } from 'react'
2
+ import styled from '@emotion/styled'
3
+
4
+ import { TEXT_COLOURS } from '@ltht-react/styles'
5
+ import { EpisodeOfCare } from '@ltht-react/types'
6
+ import { resourceReferenceDisplaySummary } from '@ltht-react/utils'
7
+
8
+ const StyledInvolvedTeamTitle = styled.div`
9
+ color: ${TEXT_COLOURS.PRIMARY};
10
+ text-align: left;
11
+ `
12
+
13
+ const InvolvedTeamTitle: FC<Props> = ({ episodeOfCare, ...rest }) => (
14
+ <StyledInvolvedTeamTitle {...rest}>
15
+ {episodeOfCare.team && resourceReferenceDisplaySummary(episodeOfCare.team)}
16
+ </StyledInvolvedTeamTitle>
17
+ )
18
+
19
+ interface Props extends HTMLAttributes<HTMLDivElement> {
20
+ episodeOfCare: EpisodeOfCare
21
+ }
22
+
23
+ export default InvolvedTeamTitle
@@ -1,23 +1,23 @@
1
- import { HTMLAttributes, FC } from 'react'
2
- import styled from '@emotion/styled'
3
-
4
- import { TEXT_COLOURS } from '@ltht-react/styles'
5
- import { EpisodeOfCare } from '@ltht-react/types'
6
- import { titleCase } from '@ltht-react/utils'
7
-
8
- const StyledInvolvedTeamType = styled.div`
9
- color: ${TEXT_COLOURS.SECONDARY.VALUE};
10
- text-align: right;
11
- font-size: smaller;
12
- padding-top: 0.25rem;
13
- `
14
-
15
- const InvolvedTeamType: FC<Props> = ({ episodeOfCare, ...rest }) => (
16
- <StyledInvolvedTeamType {...rest}>{titleCase(episodeOfCare.status)}</StyledInvolvedTeamType>
17
- )
18
-
19
- interface Props extends HTMLAttributes<HTMLDivElement> {
20
- episodeOfCare: EpisodeOfCare
21
- }
22
-
23
- export default InvolvedTeamType
1
+ import { HTMLAttributes, FC } from 'react'
2
+ import styled from '@emotion/styled'
3
+
4
+ import { TEXT_COLOURS } from '@ltht-react/styles'
5
+ import { EpisodeOfCare } from '@ltht-react/types'
6
+ import { titleCase } from '@ltht-react/utils'
7
+
8
+ const StyledInvolvedTeamType = styled.div`
9
+ color: ${TEXT_COLOURS.SECONDARY.VALUE};
10
+ text-align: right;
11
+ font-size: smaller;
12
+ padding-top: 0.25rem;
13
+ `
14
+
15
+ const InvolvedTeamType: FC<Props> = ({ episodeOfCare, ...rest }) => (
16
+ <StyledInvolvedTeamType {...rest}>{titleCase(episodeOfCare.status)}</StyledInvolvedTeamType>
17
+ )
18
+
19
+ interface Props extends HTMLAttributes<HTMLDivElement> {
20
+ episodeOfCare: EpisodeOfCare
21
+ }
22
+
23
+ export default InvolvedTeamType
package/src/index.tsx CHANGED
@@ -1,3 +1,3 @@
1
- import InvolvedTeamSummary from './organisms/involved-team-summary'
2
-
3
- export default InvolvedTeamSummary
1
+ import InvolvedTeamSummary from './organisms/involved-team-summary'
2
+
3
+ export default InvolvedTeamSummary
@@ -1,33 +1,33 @@
1
- import { HTMLAttributes, FC } from 'react'
2
- import styled from '@emotion/styled'
3
-
4
- import { EpisodeOfCare } from '@ltht-react/types'
5
- import { RedactedDescription, PeriodSummary } from '@ltht-react/type-summary'
6
-
7
- const StyledRedacted = styled.div`
8
- display: flex;
9
- `
10
- const StyledDescription = styled.div`
11
- flex: 1;
12
- `
13
- const StyledDate = styled.div`
14
- flex: 1;
15
- text-align: right;
16
- `
17
-
18
- const InvolvedTeamRedacted: FC<Props> = ({ episodeOfCare, ...rest }) => (
19
- <StyledRedacted {...rest}>
20
- <StyledDescription>
21
- <RedactedDescription />
22
- </StyledDescription>
23
- <StyledDate>
24
- <PeriodSummary period={episodeOfCare.period} />
25
- </StyledDate>
26
- </StyledRedacted>
27
- )
28
-
29
- interface Props extends HTMLAttributes<HTMLDivElement> {
30
- episodeOfCare: EpisodeOfCare
31
- }
32
-
33
- export default InvolvedTeamRedacted
1
+ import { HTMLAttributes, FC } from 'react'
2
+ import styled from '@emotion/styled'
3
+
4
+ import { EpisodeOfCare } from '@ltht-react/types'
5
+ import { RedactedDescription, PeriodSummary } from '@ltht-react/type-summary'
6
+
7
+ const StyledRedacted = styled.div`
8
+ display: flex;
9
+ `
10
+ const StyledDescription = styled.div`
11
+ flex: 1;
12
+ `
13
+ const StyledDate = styled.div`
14
+ flex: 1;
15
+ text-align: right;
16
+ `
17
+
18
+ const InvolvedTeamRedacted: FC<Props> = ({ episodeOfCare, ...rest }) => (
19
+ <StyledRedacted {...rest}>
20
+ <StyledDescription>
21
+ <RedactedDescription />
22
+ </StyledDescription>
23
+ <StyledDate>
24
+ <PeriodSummary period={episodeOfCare.period} />
25
+ </StyledDate>
26
+ </StyledRedacted>
27
+ )
28
+
29
+ interface Props extends HTMLAttributes<HTMLDivElement> {
30
+ episodeOfCare: EpisodeOfCare
31
+ }
32
+
33
+ export default InvolvedTeamRedacted
@@ -1,46 +1,46 @@
1
- import { FC } from 'react'
2
- import styled from '@emotion/styled'
3
-
4
- import { EpisodeOfCare } from '@ltht-react/types'
5
- import { PeriodSummary } from '@ltht-react/type-summary'
6
-
7
- import Description from '../atoms/involved-team-description'
8
- import Type from '../atoms/involved-team-type'
9
- import Title from '../atoms/involved-team-title'
10
- import Redacted from '../molecules/involved-team-redacted'
11
-
12
- const StyledSummary = styled.div`
13
- display: flex;
14
- `
15
- const StyledDescription = styled.div`
16
- flex: 1;
17
- `
18
- const StyledDate = styled.div`
19
- flex: 1;
20
- text-align: right;
21
- `
22
-
23
- const InvolvedTeamSummary: FC<Props> = ({ episodeOfCare }) => {
24
- if (episodeOfCare.metadata.isRedacted) {
25
- return <Redacted episodeOfCare={episodeOfCare} />
26
- }
27
-
28
- return (
29
- <StyledSummary>
30
- <StyledDescription>
31
- <Title episodeOfCare={episodeOfCare} />
32
- <Description episodeOfCare={episodeOfCare} />
33
- </StyledDescription>
34
- <StyledDate>
35
- <PeriodSummary period={episodeOfCare.period} />
36
- <Type episodeOfCare={episodeOfCare} />
37
- </StyledDate>
38
- </StyledSummary>
39
- )
40
- }
41
-
42
- interface Props {
43
- episodeOfCare: EpisodeOfCare
44
- }
45
-
46
- export default InvolvedTeamSummary
1
+ import { FC } from 'react'
2
+ import styled from '@emotion/styled'
3
+
4
+ import { EpisodeOfCare } from '@ltht-react/types'
5
+ import { PeriodSummary } from '@ltht-react/type-summary'
6
+
7
+ import Description from '../atoms/involved-team-description'
8
+ import Type from '../atoms/involved-team-type'
9
+ import Title from '../atoms/involved-team-title'
10
+ import Redacted from '../molecules/involved-team-redacted'
11
+
12
+ const StyledSummary = styled.div`
13
+ display: flex;
14
+ `
15
+ const StyledDescription = styled.div`
16
+ flex: 1;
17
+ `
18
+ const StyledDate = styled.div`
19
+ flex: 1;
20
+ text-align: right;
21
+ `
22
+
23
+ const InvolvedTeamSummary: FC<Props> = ({ episodeOfCare }) => {
24
+ if (episodeOfCare.metadata.isRedacted) {
25
+ return <Redacted episodeOfCare={episodeOfCare} />
26
+ }
27
+
28
+ return (
29
+ <StyledSummary>
30
+ <StyledDescription>
31
+ <Title episodeOfCare={episodeOfCare} />
32
+ <Description episodeOfCare={episodeOfCare} />
33
+ </StyledDescription>
34
+ <StyledDate>
35
+ <PeriodSummary period={episodeOfCare.period} />
36
+ <Type episodeOfCare={episodeOfCare} />
37
+ </StyledDate>
38
+ </StyledSummary>
39
+ )
40
+ }
41
+
42
+ interface Props {
43
+ episodeOfCare: EpisodeOfCare
44
+ }
45
+
46
+ export default InvolvedTeamSummary
@@ -1,7 +0,0 @@
1
- import { HTMLAttributes, FC } from 'react';
2
- import { EpisodeOfCare } from '@ltht-react/types';
3
- declare const InvolvedTeamDescription: FC<Props>;
4
- interface Props extends HTMLAttributes<HTMLDivElement> {
5
- episodeOfCare: EpisodeOfCare;
6
- }
7
- export default InvolvedTeamDescription;
@@ -1,43 +0,0 @@
1
- "use strict";
2
- var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
3
- if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
4
- return cooked;
5
- };
6
- var __assign = (this && this.__assign) || function () {
7
- __assign = Object.assign || function(t) {
8
- for (var s, i = 1, n = arguments.length; i < n; i++) {
9
- s = arguments[i];
10
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
11
- t[p] = s[p];
12
- }
13
- return t;
14
- };
15
- return __assign.apply(this, arguments);
16
- };
17
- var __rest = (this && this.__rest) || function (s, e) {
18
- var t = {};
19
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
20
- t[p] = s[p];
21
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
22
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
23
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
24
- t[p[i]] = s[p[i]];
25
- }
26
- return t;
27
- };
28
- var __importDefault = (this && this.__importDefault) || function (mod) {
29
- return (mod && mod.__esModule) ? mod : { "default": mod };
30
- };
31
- Object.defineProperty(exports, "__esModule", { value: true });
32
- var jsx_runtime_1 = require("react/jsx-runtime");
33
- var styled_1 = __importDefault(require("@emotion/styled"));
34
- var styles_1 = require("@ltht-react/styles");
35
- var StyledInvolvedTeamDescription = styled_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n color: ", ";\n text-align: left;\n font-size: smaller;\n padding-top: 0.25rem;\n"], ["\n color: ", ";\n text-align: left;\n font-size: smaller;\n padding-top: 0.25rem;\n"])), styles_1.TEXT_COLOURS.SECONDARY.VALUE);
36
- var InvolvedTeamDescription = function (_a) {
37
- var _b;
38
- var episodeOfCare = _a.episodeOfCare, rest = __rest(_a, ["episodeOfCare"]);
39
- return ((0, jsx_runtime_1.jsx)(StyledInvolvedTeamDescription, __assign({}, rest, { children: (_b = episodeOfCare.careManager) === null || _b === void 0 ? void 0 : _b.display })));
40
- };
41
- exports.default = InvolvedTeamDescription;
42
- var templateObject_1;
43
- //# sourceMappingURL=involved-team-description.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"involved-team-description.js","sourceRoot":"","sources":["../../src/atoms/involved-team-description.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,2DAAoC;AAEpC,6CAAiD;AAGjD,IAAM,6BAA6B,GAAG,gBAAM,CAAC,GAAG,4JAAA,aACrC,EAA4B,0EAItC,KAJU,qBAAY,CAAC,SAAS,CAAC,KAAK,CAItC,CAAA;AAED,IAAM,uBAAuB,GAAc,UAAC,EAA0B;;IAAxB,IAAA,aAAa,mBAAA,EAAK,IAAI,cAAxB,iBAA0B,CAAF;IAAO,OAAA,CACzE,uBAAC,6BAA6B,eAAK,IAAI,cAAG,MAAA,aAAa,CAAC,WAAW,0CAAE,OAAO,IAAiC,CAC9G,CAAA;CAAA,CAAA;AAMD,kBAAe,uBAAuB,CAAA"}
@@ -1,7 +0,0 @@
1
- import { HTMLAttributes, FC } from 'react';
2
- import { EpisodeOfCare } from '@ltht-react/types';
3
- declare const InvolvedTeamTitle: FC<Props>;
4
- interface Props extends HTMLAttributes<HTMLDivElement> {
5
- episodeOfCare: EpisodeOfCare;
6
- }
7
- export default InvolvedTeamTitle;
@@ -1,43 +0,0 @@
1
- "use strict";
2
- var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
3
- if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
4
- return cooked;
5
- };
6
- var __assign = (this && this.__assign) || function () {
7
- __assign = Object.assign || function(t) {
8
- for (var s, i = 1, n = arguments.length; i < n; i++) {
9
- s = arguments[i];
10
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
11
- t[p] = s[p];
12
- }
13
- return t;
14
- };
15
- return __assign.apply(this, arguments);
16
- };
17
- var __rest = (this && this.__rest) || function (s, e) {
18
- var t = {};
19
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
20
- t[p] = s[p];
21
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
22
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
23
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
24
- t[p[i]] = s[p[i]];
25
- }
26
- return t;
27
- };
28
- var __importDefault = (this && this.__importDefault) || function (mod) {
29
- return (mod && mod.__esModule) ? mod : { "default": mod };
30
- };
31
- Object.defineProperty(exports, "__esModule", { value: true });
32
- var jsx_runtime_1 = require("react/jsx-runtime");
33
- var styled_1 = __importDefault(require("@emotion/styled"));
34
- var styles_1 = require("@ltht-react/styles");
35
- var utils_1 = require("@ltht-react/utils");
36
- var StyledInvolvedTeamTitle = styled_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n color: ", ";\n text-align: left;\n"], ["\n color: ", ";\n text-align: left;\n"])), styles_1.TEXT_COLOURS.PRIMARY);
37
- var InvolvedTeamTitle = function (_a) {
38
- var episodeOfCare = _a.episodeOfCare, rest = __rest(_a, ["episodeOfCare"]);
39
- return ((0, jsx_runtime_1.jsx)(StyledInvolvedTeamTitle, __assign({}, rest, { children: episodeOfCare.team && (0, utils_1.resourceReferenceDisplaySummary)(episodeOfCare.team) })));
40
- };
41
- exports.default = InvolvedTeamTitle;
42
- var templateObject_1;
43
- //# sourceMappingURL=involved-team-title.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"involved-team-title.js","sourceRoot":"","sources":["../../src/atoms/involved-team-title.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,2DAAoC;AAEpC,6CAAiD;AAEjD,2CAAmE;AAEnE,IAAM,uBAAuB,GAAG,gBAAM,CAAC,GAAG,4GAAA,aAC/B,EAAoB,0BAE9B,KAFU,qBAAY,CAAC,OAAO,CAE9B,CAAA;AAED,IAAM,iBAAiB,GAAc,UAAC,EAA0B;IAAxB,IAAA,aAAa,mBAAA,EAAK,IAAI,cAAxB,iBAA0B,CAAF;IAAO,OAAA,CACnE,uBAAC,uBAAuB,eAAK,IAAI,cAC9B,aAAa,CAAC,IAAI,IAAI,IAAA,uCAA+B,EAAC,aAAa,CAAC,IAAI,CAAC,IAClD,CAC3B,CAAA;CAAA,CAAA;AAMD,kBAAe,iBAAiB,CAAA"}
@@ -1,7 +0,0 @@
1
- import { HTMLAttributes, FC } from 'react';
2
- import { EpisodeOfCare } from '@ltht-react/types';
3
- declare const InvolvedTeamType: FC<Props>;
4
- interface Props extends HTMLAttributes<HTMLDivElement> {
5
- episodeOfCare: EpisodeOfCare;
6
- }
7
- export default InvolvedTeamType;
@@ -1,43 +0,0 @@
1
- "use strict";
2
- var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
3
- if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
4
- return cooked;
5
- };
6
- var __assign = (this && this.__assign) || function () {
7
- __assign = Object.assign || function(t) {
8
- for (var s, i = 1, n = arguments.length; i < n; i++) {
9
- s = arguments[i];
10
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
11
- t[p] = s[p];
12
- }
13
- return t;
14
- };
15
- return __assign.apply(this, arguments);
16
- };
17
- var __rest = (this && this.__rest) || function (s, e) {
18
- var t = {};
19
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
20
- t[p] = s[p];
21
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
22
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
23
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
24
- t[p[i]] = s[p[i]];
25
- }
26
- return t;
27
- };
28
- var __importDefault = (this && this.__importDefault) || function (mod) {
29
- return (mod && mod.__esModule) ? mod : { "default": mod };
30
- };
31
- Object.defineProperty(exports, "__esModule", { value: true });
32
- var jsx_runtime_1 = require("react/jsx-runtime");
33
- var styled_1 = __importDefault(require("@emotion/styled"));
34
- var styles_1 = require("@ltht-react/styles");
35
- var utils_1 = require("@ltht-react/utils");
36
- var StyledInvolvedTeamType = styled_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n color: ", ";\n text-align: right;\n font-size: smaller;\n padding-top: 0.25rem;\n"], ["\n color: ", ";\n text-align: right;\n font-size: smaller;\n padding-top: 0.25rem;\n"])), styles_1.TEXT_COLOURS.SECONDARY.VALUE);
37
- var InvolvedTeamType = function (_a) {
38
- var episodeOfCare = _a.episodeOfCare, rest = __rest(_a, ["episodeOfCare"]);
39
- return ((0, jsx_runtime_1.jsx)(StyledInvolvedTeamType, __assign({}, rest, { children: (0, utils_1.titleCase)(episodeOfCare.status) })));
40
- };
41
- exports.default = InvolvedTeamType;
42
- var templateObject_1;
43
- //# sourceMappingURL=involved-team-type.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"involved-team-type.js","sourceRoot":"","sources":["../../src/atoms/involved-team-type.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,2DAAoC;AAEpC,6CAAiD;AAEjD,2CAA6C;AAE7C,IAAM,sBAAsB,GAAG,gBAAM,CAAC,GAAG,6JAAA,aAC9B,EAA4B,2EAItC,KAJU,qBAAY,CAAC,SAAS,CAAC,KAAK,CAItC,CAAA;AAED,IAAM,gBAAgB,GAAc,UAAC,EAA0B;IAAxB,IAAA,aAAa,mBAAA,EAAK,IAAI,cAAxB,iBAA0B,CAAF;IAAO,OAAA,CAClE,uBAAC,sBAAsB,eAAK,IAAI,cAAG,IAAA,iBAAS,EAAC,aAAa,CAAC,MAAM,CAAC,IAA0B,CAC7F,CAAA;CAAA,CAAA;AAMD,kBAAe,gBAAgB,CAAA"}
package/lib/index.d.ts DELETED
@@ -1,2 +0,0 @@
1
- import InvolvedTeamSummary from './organisms/involved-team-summary';
2
- export default InvolvedTeamSummary;
package/lib/index.js DELETED
@@ -1,8 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- var involved_team_summary_1 = __importDefault(require("./organisms/involved-team-summary"));
7
- exports.default = involved_team_summary_1.default;
8
- //# sourceMappingURL=index.js.map
package/lib/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":";;;;;AAAA,4FAAmE;AAEnE,kBAAe,+BAAmB,CAAA"}
@@ -1,7 +0,0 @@
1
- import { HTMLAttributes, FC } from 'react';
2
- import { EpisodeOfCare } from '@ltht-react/types';
3
- declare const InvolvedTeamRedacted: FC<Props>;
4
- interface Props extends HTMLAttributes<HTMLDivElement> {
5
- episodeOfCare: EpisodeOfCare;
6
- }
7
- export default InvolvedTeamRedacted;
@@ -1,44 +0,0 @@
1
- "use strict";
2
- var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
3
- if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
4
- return cooked;
5
- };
6
- var __assign = (this && this.__assign) || function () {
7
- __assign = Object.assign || function(t) {
8
- for (var s, i = 1, n = arguments.length; i < n; i++) {
9
- s = arguments[i];
10
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
11
- t[p] = s[p];
12
- }
13
- return t;
14
- };
15
- return __assign.apply(this, arguments);
16
- };
17
- var __rest = (this && this.__rest) || function (s, e) {
18
- var t = {};
19
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
20
- t[p] = s[p];
21
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
22
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
23
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
24
- t[p[i]] = s[p[i]];
25
- }
26
- return t;
27
- };
28
- var __importDefault = (this && this.__importDefault) || function (mod) {
29
- return (mod && mod.__esModule) ? mod : { "default": mod };
30
- };
31
- Object.defineProperty(exports, "__esModule", { value: true });
32
- var jsx_runtime_1 = require("react/jsx-runtime");
33
- var styled_1 = __importDefault(require("@emotion/styled"));
34
- var type_summary_1 = require("@ltht-react/type-summary");
35
- var StyledRedacted = styled_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n"], ["\n display: flex;\n"])));
36
- var StyledDescription = styled_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n flex: 1;\n"], ["\n flex: 1;\n"])));
37
- var StyledDate = styled_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n flex: 1;\n text-align: right;\n"], ["\n flex: 1;\n text-align: right;\n"])));
38
- var InvolvedTeamRedacted = function (_a) {
39
- var episodeOfCare = _a.episodeOfCare, rest = __rest(_a, ["episodeOfCare"]);
40
- return ((0, jsx_runtime_1.jsxs)(StyledRedacted, __assign({}, rest, { children: [(0, jsx_runtime_1.jsx)(StyledDescription, { children: (0, jsx_runtime_1.jsx)(type_summary_1.RedactedDescription, {}) }), (0, jsx_runtime_1.jsx)(StyledDate, { children: (0, jsx_runtime_1.jsx)(type_summary_1.PeriodSummary, { period: episodeOfCare.period }) })] })));
41
- };
42
- exports.default = InvolvedTeamRedacted;
43
- var templateObject_1, templateObject_2, templateObject_3;
44
- //# sourceMappingURL=involved-team-redacted.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"involved-team-redacted.js","sourceRoot":"","sources":["../../src/molecules/involved-team-redacted.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,2DAAoC;AAGpC,yDAA6E;AAE7E,IAAM,cAAc,GAAG,gBAAM,CAAC,GAAG,yFAAA,sBAEhC,IAAA,CAAA;AACD,IAAM,iBAAiB,GAAG,gBAAM,CAAC,GAAG,mFAAA,gBAEnC,IAAA,CAAA;AACD,IAAM,UAAU,GAAG,gBAAM,CAAC,GAAG,yGAAA,sCAG5B,IAAA,CAAA;AAED,IAAM,oBAAoB,GAAc,UAAC,EAA0B;IAAxB,IAAA,aAAa,mBAAA,EAAK,IAAI,cAAxB,iBAA0B,CAAF;IAAO,OAAA,CACtE,wBAAC,cAAc,eAAK,IAAI,eACtB,uBAAC,iBAAiB,cAChB,uBAAC,kCAAmB,KAAG,GACL,EACpB,uBAAC,UAAU,cACT,uBAAC,4BAAa,IAAC,MAAM,EAAE,aAAa,CAAC,MAAM,GAAI,GACpC,KACE,CAClB,CAAA;CAAA,CAAA;AAMD,kBAAe,oBAAoB,CAAA"}
@@ -1,7 +0,0 @@
1
- import { FC } from 'react';
2
- import { EpisodeOfCare } from '@ltht-react/types';
3
- declare const InvolvedTeamSummary: FC<Props>;
4
- interface Props {
5
- episodeOfCare: EpisodeOfCare;
6
- }
7
- export default InvolvedTeamSummary;
@@ -1,29 +0,0 @@
1
- "use strict";
2
- var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
3
- if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
4
- return cooked;
5
- };
6
- var __importDefault = (this && this.__importDefault) || function (mod) {
7
- return (mod && mod.__esModule) ? mod : { "default": mod };
8
- };
9
- Object.defineProperty(exports, "__esModule", { value: true });
10
- var jsx_runtime_1 = require("react/jsx-runtime");
11
- var styled_1 = __importDefault(require("@emotion/styled"));
12
- var type_summary_1 = require("@ltht-react/type-summary");
13
- var involved_team_description_1 = __importDefault(require("../atoms/involved-team-description"));
14
- var involved_team_type_1 = __importDefault(require("../atoms/involved-team-type"));
15
- var involved_team_title_1 = __importDefault(require("../atoms/involved-team-title"));
16
- var involved_team_redacted_1 = __importDefault(require("../molecules/involved-team-redacted"));
17
- var StyledSummary = styled_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n"], ["\n display: flex;\n"])));
18
- var StyledDescription = styled_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n flex: 1;\n"], ["\n flex: 1;\n"])));
19
- var StyledDate = styled_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n flex: 1;\n text-align: right;\n"], ["\n flex: 1;\n text-align: right;\n"])));
20
- var InvolvedTeamSummary = function (_a) {
21
- var episodeOfCare = _a.episodeOfCare;
22
- if (episodeOfCare.metadata.isRedacted) {
23
- return (0, jsx_runtime_1.jsx)(involved_team_redacted_1.default, { episodeOfCare: episodeOfCare });
24
- }
25
- return ((0, jsx_runtime_1.jsxs)(StyledSummary, { children: [(0, jsx_runtime_1.jsxs)(StyledDescription, { children: [(0, jsx_runtime_1.jsx)(involved_team_title_1.default, { episodeOfCare: episodeOfCare }), (0, jsx_runtime_1.jsx)(involved_team_description_1.default, { episodeOfCare: episodeOfCare })] }), (0, jsx_runtime_1.jsxs)(StyledDate, { children: [(0, jsx_runtime_1.jsx)(type_summary_1.PeriodSummary, { period: episodeOfCare.period }), (0, jsx_runtime_1.jsx)(involved_team_type_1.default, { episodeOfCare: episodeOfCare })] })] }));
26
- };
27
- exports.default = InvolvedTeamSummary;
28
- var templateObject_1, templateObject_2, templateObject_3;
29
- //# sourceMappingURL=involved-team-summary.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"involved-team-summary.js","sourceRoot":"","sources":["../../src/organisms/involved-team-summary.tsx"],"names":[],"mappings":";;;;;;;;;;AACA,2DAAoC;AAGpC,yDAAwD;AAExD,iGAA4D;AAC5D,mFAA8C;AAC9C,qFAAgD;AAChD,+FAA0D;AAE1D,IAAM,aAAa,GAAG,gBAAM,CAAC,GAAG,yFAAA,sBAE/B,IAAA,CAAA;AACD,IAAM,iBAAiB,GAAG,gBAAM,CAAC,GAAG,mFAAA,gBAEnC,IAAA,CAAA;AACD,IAAM,UAAU,GAAG,gBAAM,CAAC,GAAG,yGAAA,sCAG5B,IAAA,CAAA;AAED,IAAM,mBAAmB,GAAc,UAAC,EAAiB;QAAf,aAAa,mBAAA;IACrD,IAAI,aAAa,CAAC,QAAQ,CAAC,UAAU,EAAE,CAAC;QACtC,OAAO,uBAAC,gCAAQ,IAAC,aAAa,EAAE,aAAa,GAAI,CAAA;IACnD,CAAC;IAED,OAAO,CACL,wBAAC,aAAa,eACZ,wBAAC,iBAAiB,eAChB,uBAAC,6BAAK,IAAC,aAAa,EAAE,aAAa,GAAI,EACvC,uBAAC,mCAAW,IAAC,aAAa,EAAE,aAAa,GAAI,IAC3B,EACpB,wBAAC,UAAU,eACT,uBAAC,4BAAa,IAAC,MAAM,EAAE,aAAa,CAAC,MAAM,GAAI,EAC/C,uBAAC,4BAAI,IAAC,aAAa,EAAE,aAAa,GAAI,IAC3B,IACC,CACjB,CAAA;AACH,CAAC,CAAA;AAMD,kBAAe,mBAAmB,CAAA"}