@ltht-react/flag-detail 2.0.77 → 2.0.78
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 +15 -15
- package/package.json +6 -6
- package/src/index.tsx +35 -35
package/README.md
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
# FlagDetail
|
|
2
|
-
|
|
3
|
-
<!-- STORY -->
|
|
4
|
-
|
|
5
|
-
### Import
|
|
6
|
-
|
|
7
|
-
```js
|
|
8
|
-
import FlagDetail from '@ltht-react/flag-detail'
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
### Usage
|
|
12
|
-
|
|
13
|
-
```jsx
|
|
14
|
-
<FlagDetail />
|
|
15
|
-
```
|
|
1
|
+
# FlagDetail
|
|
2
|
+
|
|
3
|
+
<!-- STORY -->
|
|
4
|
+
|
|
5
|
+
### Import
|
|
6
|
+
|
|
7
|
+
```js
|
|
8
|
+
import FlagDetail from '@ltht-react/flag-detail'
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
### Usage
|
|
12
|
+
|
|
13
|
+
```jsx
|
|
14
|
+
<FlagDetail />
|
|
15
|
+
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ltht-react/flag-detail",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.78",
|
|
4
4
|
"description": "ltht-react clinical FlagDetail component.",
|
|
5
5
|
"author": "LTHT",
|
|
6
6
|
"homepage": "",
|
|
@@ -28,11 +28,11 @@
|
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@emotion/react": "^11.0.0",
|
|
30
30
|
"@emotion/styled": "^11.0.0",
|
|
31
|
-
"@ltht-react/styles": "^2.0.
|
|
32
|
-
"@ltht-react/type-detail": "^2.0.
|
|
33
|
-
"@ltht-react/types": "^2.0.
|
|
34
|
-
"@ltht-react/utils": "^2.0.
|
|
31
|
+
"@ltht-react/styles": "^2.0.78",
|
|
32
|
+
"@ltht-react/type-detail": "^2.0.78",
|
|
33
|
+
"@ltht-react/types": "^2.0.78",
|
|
34
|
+
"@ltht-react/utils": "^2.0.78",
|
|
35
35
|
"react": "^18.2.0"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "eb187547d7810f968ecee6b30cf41afeb3d0cc7b"
|
|
38
38
|
}
|
package/src/index.tsx
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import { FC } from 'react'
|
|
2
|
-
import { DetailViewType, Flag } from '@ltht-react/types'
|
|
3
|
-
import { getStringExtension } from '@ltht-react/utils'
|
|
4
|
-
|
|
5
|
-
import {
|
|
6
|
-
CodeableConceptDetail,
|
|
7
|
-
StringDetail,
|
|
8
|
-
PeriodDetail,
|
|
9
|
-
NarrativeDetail,
|
|
10
|
-
ResourceReferenceDetail,
|
|
11
|
-
CollapsibleDetailCollectionProps,
|
|
12
|
-
CollapsibleDetailCollection,
|
|
13
|
-
} from '@ltht-react/type-detail'
|
|
14
|
-
|
|
15
|
-
const FlagDetail: FC<Props> = ({ flag, viewType = DetailViewType.Compact }) => (
|
|
16
|
-
<CollapsibleDetailCollection viewType={viewType}>
|
|
17
|
-
<CodeableConceptDetail term="Code" concept={flag?.code} />
|
|
18
|
-
<StringDetail term="Status" description={flag.status.toString()} />
|
|
19
|
-
<CodeableConceptDetail term="Category" concept={flag?.category} />
|
|
20
|
-
<PeriodDetail period={flag?.period} />
|
|
21
|
-
<NarrativeDetail narrative={flag?.text} />
|
|
22
|
-
<StringDetail
|
|
23
|
-
term="Advice"
|
|
24
|
-
description={getStringExtension(flag?.extension, 'https://leedsth.nhs.uk/alert/advice')}
|
|
25
|
-
parse={false}
|
|
26
|
-
/>
|
|
27
|
-
<ResourceReferenceDetail term="Author" resourceReference={flag?.author} />
|
|
28
|
-
</CollapsibleDetailCollection>
|
|
29
|
-
)
|
|
30
|
-
|
|
31
|
-
interface Props extends CollapsibleDetailCollectionProps {
|
|
32
|
-
flag: Flag
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
export default FlagDetail
|
|
1
|
+
import { FC } from 'react'
|
|
2
|
+
import { DetailViewType, Flag } from '@ltht-react/types'
|
|
3
|
+
import { getStringExtension } from '@ltht-react/utils'
|
|
4
|
+
|
|
5
|
+
import {
|
|
6
|
+
CodeableConceptDetail,
|
|
7
|
+
StringDetail,
|
|
8
|
+
PeriodDetail,
|
|
9
|
+
NarrativeDetail,
|
|
10
|
+
ResourceReferenceDetail,
|
|
11
|
+
CollapsibleDetailCollectionProps,
|
|
12
|
+
CollapsibleDetailCollection,
|
|
13
|
+
} from '@ltht-react/type-detail'
|
|
14
|
+
|
|
15
|
+
const FlagDetail: FC<Props> = ({ flag, viewType = DetailViewType.Compact }) => (
|
|
16
|
+
<CollapsibleDetailCollection viewType={viewType}>
|
|
17
|
+
<CodeableConceptDetail term="Code" concept={flag?.code} />
|
|
18
|
+
<StringDetail term="Status" description={flag.status.toString()} />
|
|
19
|
+
<CodeableConceptDetail term="Category" concept={flag?.category} />
|
|
20
|
+
<PeriodDetail period={flag?.period} />
|
|
21
|
+
<NarrativeDetail narrative={flag?.text} />
|
|
22
|
+
<StringDetail
|
|
23
|
+
term="Advice"
|
|
24
|
+
description={getStringExtension(flag?.extension, 'https://leedsth.nhs.uk/alert/advice')}
|
|
25
|
+
parse={false}
|
|
26
|
+
/>
|
|
27
|
+
<ResourceReferenceDetail term="Author" resourceReference={flag?.author} />
|
|
28
|
+
</CollapsibleDetailCollection>
|
|
29
|
+
)
|
|
30
|
+
|
|
31
|
+
interface Props extends CollapsibleDetailCollectionProps {
|
|
32
|
+
flag: Flag
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export default FlagDetail
|