@bloom-housing/ui-components 4.0.1-alpha.32 → 4.0.1-alpha.36
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 +35 -0
- package/package.json +3 -3
- package/src/overlays/Modal.tsx +2 -0
- package/src/overlays/Overlay.scss +8 -0
- package/src/overlays/Overlay.tsx +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,41 @@
|
|
|
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
|
+
## [4.0.1-alpha.36](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@4.0.1-alpha.35...@bloom-housing/ui-components@4.0.1-alpha.36) (2022-02-01)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @bloom-housing/ui-components
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [4.0.1-alpha.35](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@4.0.1-alpha.34...@bloom-housing/ui-components@4.0.1-alpha.35) (2022-02-01)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* partners terms page ([#2440](https://github.com/bloom-housing/bloom/issues/2440)) ([63105bc](https://github.com/bloom-housing/bloom/commit/63105bcedfe371a4a9995e25b1e5aba67d06ad0c))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
## [4.0.1-alpha.34](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@4.0.1-alpha.33...@bloom-housing/ui-components@4.0.1-alpha.34) (2022-02-01)
|
|
26
|
+
|
|
27
|
+
**Note:** Version bump only for package @bloom-housing/ui-components
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
## [4.0.1-alpha.33](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@4.0.1-alpha.32...@bloom-housing/ui-components@4.0.1-alpha.33) (2022-02-01)
|
|
34
|
+
|
|
35
|
+
**Note:** Version bump only for package @bloom-housing/ui-components
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
6
41
|
## [4.0.1-alpha.32](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@4.0.1-alpha.31...@bloom-housing/ui-components@4.0.1-alpha.32) (2022-02-01)
|
|
7
42
|
|
|
8
43
|
**Note:** Version bump only for package @bloom-housing/ui-components
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bloom-housing/ui-components",
|
|
3
|
-
"version": "4.0.1-alpha.
|
|
3
|
+
"version": "4.0.1-alpha.36",
|
|
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",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"webpack": "^4.44.2"
|
|
70
70
|
},
|
|
71
71
|
"dependencies": {
|
|
72
|
-
"@bloom-housing/backend-core": "^3.0.2-alpha.
|
|
72
|
+
"@bloom-housing/backend-core": "^3.0.2-alpha.22",
|
|
73
73
|
"@mapbox/mapbox-sdk": "^0.13.0",
|
|
74
74
|
"@types/body-scroll-lock": "^2.6.1",
|
|
75
75
|
"@types/jwt-decode": "^2.2.1",
|
|
@@ -100,5 +100,5 @@
|
|
|
100
100
|
"tailwindcss": "2.2.10",
|
|
101
101
|
"typesafe-actions": "^5.1.0"
|
|
102
102
|
},
|
|
103
|
-
"gitHead": "
|
|
103
|
+
"gitHead": "da18d68dae4760655916ceba3a2d3bdd96159df1"
|
|
104
104
|
}
|
package/src/overlays/Modal.tsx
CHANGED
|
@@ -8,6 +8,7 @@ export interface ModalProps extends Omit<OverlayProps, "children"> {
|
|
|
8
8
|
actions?: React.ReactNode[]
|
|
9
9
|
hideCloseIcon?: boolean
|
|
10
10
|
children?: React.ReactNode
|
|
11
|
+
slim?: boolean
|
|
11
12
|
}
|
|
12
13
|
|
|
13
14
|
const ModalHeader = (props: { title: string }) => (
|
|
@@ -34,6 +35,7 @@ export const Modal = (props: ModalProps) => {
|
|
|
34
35
|
open={props.open}
|
|
35
36
|
onClose={props.onClose}
|
|
36
37
|
backdrop={props.backdrop}
|
|
38
|
+
slim={props.slim}
|
|
37
39
|
>
|
|
38
40
|
<div className="modal">
|
|
39
41
|
<ModalHeader title={props.title} />
|
package/src/overlays/Overlay.tsx
CHANGED
|
@@ -14,6 +14,7 @@ export type OverlayProps = {
|
|
|
14
14
|
backdrop?: boolean
|
|
15
15
|
onClose?: () => void
|
|
16
16
|
children: React.ReactNode
|
|
17
|
+
slim?: boolean
|
|
17
18
|
}
|
|
18
19
|
|
|
19
20
|
const OverlayInner = (props: OverlayProps) => {
|
|
@@ -37,7 +38,7 @@ const OverlayInner = (props: OverlayProps) => {
|
|
|
37
38
|
if (e.target === e.currentTarget) closeHandler()
|
|
38
39
|
}}
|
|
39
40
|
>
|
|
40
|
-
<div className="fixed-overlay__inner">
|
|
41
|
+
<div className={`fixed-overlay__inner ${props.slim ? "fixed-overlay__inner-slim" : ""}`}>
|
|
41
42
|
<FocusLock>{props.children}</FocusLock>
|
|
42
43
|
</div>
|
|
43
44
|
</div>
|