@bloom-housing/ui-components 7.0.1-alpha.2 → 7.0.1-alpha.3
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/CHANGELOG.md +8 -0
- package/package.json +2 -2
- package/src/text/Description.tsx +12 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [7.0.1-alpha.3](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@7.0.1-alpha.2...@bloom-housing/ui-components@7.0.1-alpha.3) (2022-10-24)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @bloom-housing/ui-components
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [7.0.1-alpha.2](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@7.0.1-alpha.1...@bloom-housing/ui-components@7.0.1-alpha.2) (2022-10-20)
|
|
7
15
|
|
|
8
16
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bloom-housing/ui-components",
|
|
3
|
-
"version": "7.0.1-alpha.
|
|
3
|
+
"version": "7.0.1-alpha.3",
|
|
4
4
|
"author": "Sean Albert <sean.albert@exygy.com>",
|
|
5
5
|
"description": "Shared user interface components for Bloom affordable housing system",
|
|
6
6
|
"homepage": "https://github.com/bloom-housing/bloom/tree/master/shared/ui-components",
|
|
@@ -113,5 +113,5 @@
|
|
|
113
113
|
"ts-jest": "^26.4.1",
|
|
114
114
|
"typesafe-actions": "^5.1.0"
|
|
115
115
|
},
|
|
116
|
-
"gitHead": "
|
|
116
|
+
"gitHead": "72fcc1b209786c14112f8c6256c9ca3e042eadb1"
|
|
117
117
|
}
|
package/src/text/Description.tsx
CHANGED
|
@@ -1,23 +1,31 @@
|
|
|
1
1
|
import * as React from "react"
|
|
2
2
|
import "./Description.scss"
|
|
3
|
-
import Markdown from "markdown-to-jsx"
|
|
3
|
+
import Markdown, { MarkdownOptions } from "markdown-to-jsx"
|
|
4
4
|
|
|
5
5
|
export interface DescriptionProps {
|
|
6
6
|
term: string
|
|
7
7
|
description: any
|
|
8
|
+
dtClassName?: string
|
|
8
9
|
markdown?: boolean
|
|
10
|
+
markdownProps?: MarkdownOptions
|
|
9
11
|
}
|
|
10
12
|
|
|
11
13
|
export const Description = (props: DescriptionProps) => {
|
|
14
|
+
const dtClasses = ["description__body"]
|
|
15
|
+
if (props.dtClassName) dtClasses.push(props.dtClassName)
|
|
16
|
+
|
|
12
17
|
return (
|
|
13
18
|
<>
|
|
14
19
|
<dd className="description__title">{props.term}</dd>
|
|
15
20
|
{props.markdown ? (
|
|
16
|
-
<dt className="
|
|
17
|
-
<Markdown
|
|
21
|
+
<dt className={dtClasses.join(" ")}>
|
|
22
|
+
<Markdown
|
|
23
|
+
options={{ disableParsingRawHTML: true, ...props.markdownProps }}
|
|
24
|
+
children={props.description}
|
|
25
|
+
/>
|
|
18
26
|
</dt>
|
|
19
27
|
) : (
|
|
20
|
-
<dt className="
|
|
28
|
+
<dt className={dtClasses.join(" ")}>{props.description}</dt>
|
|
21
29
|
)}
|
|
22
30
|
</>
|
|
23
31
|
)
|