@bloom-housing/ui-components 4.2.1-alpha.1 → 4.2.1
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
CHANGED
|
@@ -3,6 +3,59 @@
|
|
|
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.2.1](https://github.com/seanmalbert/bloom/compare/@bloom-housing/ui-components@4.2.0...@bloom-housing/ui-components@4.2.1) (2022-04-11)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
* 2022-04-08 release (#2646) ([aa9de52](https://github.com/seanmalbert/bloom/commit/aa9de524d5e849ffded475070abf529de77c9a92)), closes [#2646](https://github.com/seanmalbert/bloom/issues/2646) [#2356](https://github.com/seanmalbert/bloom/issues/2356) [#2353](https://github.com/seanmalbert/bloom/issues/2353) [#2338](https://github.com/seanmalbert/bloom/issues/2338) [#2377](https://github.com/seanmalbert/bloom/issues/2377) [#2320](https://github.com/seanmalbert/bloom/issues/2320) [#2386](https://github.com/seanmalbert/bloom/issues/2386) [#2362](https://github.com/seanmalbert/bloom/issues/2362) [#2395](https://github.com/seanmalbert/bloom/issues/2395) [#2410](https://github.com/seanmalbert/bloom/issues/2410) [#2407](https://github.com/seanmalbert/bloom/issues/2407) [#2430](https://github.com/seanmalbert/bloom/issues/2430) [#2418](https://github.com/seanmalbert/bloom/issues/2418) [#2434](https://github.com/seanmalbert/bloom/issues/2434) [#2374](https://github.com/seanmalbert/bloom/issues/2374) [#2435](https://github.com/seanmalbert/bloom/issues/2435) [#2420](https://github.com/seanmalbert/bloom/issues/2420) [#2412](https://github.com/seanmalbert/bloom/issues/2412) [#2438](https://github.com/seanmalbert/bloom/issues/2438) [#2429](https://github.com/seanmalbert/bloom/issues/2429) [#2452](https://github.com/seanmalbert/bloom/issues/2452) [#2458](https://github.com/seanmalbert/bloom/issues/2458) [#2423](https://github.com/seanmalbert/bloom/issues/2423) [#2432](https://github.com/seanmalbert/bloom/issues/2432) [#2437](https://github.com/seanmalbert/bloom/issues/2437) [#2440](https://github.com/seanmalbert/bloom/issues/2440) [#2441](https://github.com/seanmalbert/bloom/issues/2441) [#2460](https://github.com/seanmalbert/bloom/issues/2460) [#2459](https://github.com/seanmalbert/bloom/issues/2459) [#2464](https://github.com/seanmalbert/bloom/issues/2464) [#2465](https://github.com/seanmalbert/bloom/issues/2465) [#2466](https://github.com/seanmalbert/bloom/issues/2466) [#2436](https://github.com/seanmalbert/bloom/issues/2436) [#2451](https://github.com/seanmalbert/bloom/issues/2451) [#2415](https://github.com/seanmalbert/bloom/issues/2415) [#2354](https://github.com/seanmalbert/bloom/issues/2354) [#2455](https://github.com/seanmalbert/bloom/issues/2455) [#2484](https://github.com/seanmalbert/bloom/issues/2484) [#2482](https://github.com/seanmalbert/bloom/issues/2482) [#2483](https://github.com/seanmalbert/bloom/issues/2483) [#2476](https://github.com/seanmalbert/bloom/issues/2476) [#2485](https://github.com/seanmalbert/bloom/issues/2485) [#2470](https://github.com/seanmalbert/bloom/issues/2470) [#2488](https://github.com/seanmalbert/bloom/issues/2488) [#2487](https://github.com/seanmalbert/bloom/issues/2487) [#2496](https://github.com/seanmalbert/bloom/issues/2496) [#2498](https://github.com/seanmalbert/bloom/issues/2498) [#2499](https://github.com/seanmalbert/bloom/issues/2499) [#2291](https://github.com/seanmalbert/bloom/issues/2291) [#2461](https://github.com/seanmalbert/bloom/issues/2461) [#2485](https://github.com/seanmalbert/bloom/issues/2485) [#2494](https://github.com/seanmalbert/bloom/issues/2494) [#2503](https://github.com/seanmalbert/bloom/issues/2503) [#2495](https://github.com/seanmalbert/bloom/issues/2495) [#2477](https://github.com/seanmalbert/bloom/issues/2477) [#2505](https://github.com/seanmalbert/bloom/issues/2505) [#2372](https://github.com/seanmalbert/bloom/issues/2372) [#2489](https://github.com/seanmalbert/bloom/issues/2489) [#2497](https://github.com/seanmalbert/bloom/issues/2497) [#2506](https://github.com/seanmalbert/bloom/issues/2506) [#2486](https://github.com/seanmalbert/bloom/issues/2486)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### BREAKING CHANGES
|
|
13
|
+
|
|
14
|
+
* remove applicationDueTime field and consolidated into applicationDueDate
|
|
15
|
+
|
|
16
|
+
* chore(release): version
|
|
17
|
+
|
|
18
|
+
- @bloom-housing/backend-core@3.0.2-alpha.13
|
|
19
|
+
- @bloom-housing/shared-helpers@4.0.1-alpha.21
|
|
20
|
+
- @bloom-housing/partners@4.0.1-alpha.23
|
|
21
|
+
- @bloom-housing/public@4.0.1-alpha.22
|
|
22
|
+
- @bloom-housing/ui-components@4.0.1-alpha.21
|
|
23
|
+
* consolidated all event section components in one new component, uptake will require removing the deprecated components and uptaking EventSection
|
|
24
|
+
|
|
25
|
+
* chore(release): version
|
|
26
|
+
|
|
27
|
+
- @bloom-housing/backend-core@3.0.2-alpha.38
|
|
28
|
+
- @bloom-housing/shared-helpers@4.0.1-alpha.63
|
|
29
|
+
- @bloom-housing/partners@4.0.1-alpha.67
|
|
30
|
+
- @bloom-housing/public@4.0.1-alpha.66
|
|
31
|
+
- @bloom-housing/ui-components@4.0.1-alpha.62
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
## [4.2.1-alpha.3](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@4.2.1-alpha.2...@bloom-housing/ui-components@4.2.1-alpha.3) (2022-04-08)
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
### Features
|
|
41
|
+
|
|
42
|
+
* new Envelope icon ([#2642](https://github.com/bloom-housing/bloom/issues/2642)) ([e2dbe06](https://github.com/bloom-housing/bloom/commit/e2dbe0688e389c8196665495cdde7edcada0cf9b))
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
## [4.2.1-alpha.2](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@4.2.1-alpha.1...@bloom-housing/ui-components@4.2.1-alpha.2) (2022-04-07)
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
### Bug Fixes
|
|
52
|
+
|
|
53
|
+
* a11y issues on homepage components ([#2624](https://github.com/bloom-housing/bloom/issues/2624)) ([bf443d5](https://github.com/bloom-housing/bloom/commit/bf443d55d12d624b057666933bdd06feaf7d79be))
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
|
|
6
59
|
## [4.2.1-alpha.1](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@4.2.1-alpha.0...@bloom-housing/ui-components@4.2.1-alpha.1) (2022-04-07)
|
|
7
60
|
|
|
8
61
|
**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.2.1
|
|
3
|
+
"version": "4.2.1",
|
|
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": "^4.2.1
|
|
72
|
+
"@bloom-housing/backend-core": "^4.2.1",
|
|
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": "fa3159f0ff61bbb325528861888eb0d1c4cfa504"
|
|
104
104
|
}
|
|
@@ -41,7 +41,7 @@ const ActionBlock = ({
|
|
|
41
41
|
<div className={actionBlockClasses.join(" ")}>
|
|
42
42
|
<div className="action-block__head">
|
|
43
43
|
{icon && <div className="action-block__icon">{icon}</div>}
|
|
44
|
-
<
|
|
44
|
+
<h2 className="action-block__header">{header}</h2>
|
|
45
45
|
{subheader && layout === ActionBlockLayout.block && (
|
|
46
46
|
<p className="action-block__subheader">{subheader}</p>
|
|
47
47
|
)}
|
|
@@ -422,7 +422,7 @@ const SiteHeader = (props: SiteHeaderProps) => {
|
|
|
422
422
|
}
|
|
423
423
|
|
|
424
424
|
return (
|
|
425
|
-
<
|
|
425
|
+
<header className={"site-header"}>
|
|
426
426
|
{props.languages && <LanguageNav languages={props.languages} />}
|
|
427
427
|
|
|
428
428
|
<div className={`navbar-notice ${!props.noticeMobile && `navbar-notice-hide`}`}>
|
|
@@ -441,7 +441,7 @@ const SiteHeader = (props: SiteHeaderProps) => {
|
|
|
441
441
|
</nav>
|
|
442
442
|
{!isDesktop && mobileMenu && getMobileDropdown()}
|
|
443
443
|
{getMobileDrawer()}
|
|
444
|
-
</
|
|
444
|
+
</header>
|
|
445
445
|
)
|
|
446
446
|
}
|
|
447
447
|
|
package/src/icons/Icon.tsx
CHANGED
|
@@ -24,6 +24,7 @@ import {
|
|
|
24
24
|
Draggable,
|
|
25
25
|
Edit,
|
|
26
26
|
Eligibility,
|
|
27
|
+
Envelope,
|
|
27
28
|
Eye,
|
|
28
29
|
Favorite,
|
|
29
30
|
File,
|
|
@@ -87,6 +88,7 @@ const IconMap = {
|
|
|
87
88
|
draggable: Draggable,
|
|
88
89
|
edit: Edit,
|
|
89
90
|
eligibility: Eligibility,
|
|
91
|
+
envelope: Envelope,
|
|
90
92
|
eye: Eye,
|
|
91
93
|
favorite: Favorite,
|
|
92
94
|
file: File,
|
package/src/icons/Icons.tsx
CHANGED
|
@@ -339,6 +339,14 @@ export const Eligibility = (props: IconProps) => {
|
|
|
339
339
|
)
|
|
340
340
|
}
|
|
341
341
|
|
|
342
|
+
export const Envelope = (props: IconProps) => {
|
|
343
|
+
return (
|
|
344
|
+
<svg viewBox="0 0 51 39" fill={props.fill ?? "currentColor"}>
|
|
345
|
+
<path d="M44.6431 0.564941H7.14307C3.69092 0.564941 0.893066 3.36279 0.893066 6.81494V31.8149C0.893066 35.2671 3.69092 38.0649 7.14307 38.0649H44.6431C48.0952 38.0649 50.8931 35.2671 50.8931 31.8149V6.81494C50.8931 3.36279 48.0903 0.564941 44.6431 0.564941ZM7.14307 3.68994H44.6431C46.3657 3.68994 47.7681 5.09229 47.7681 6.81494V10.3315L28.7056 24.6284C27.0454 25.8706 24.7378 25.8706 23.0776 24.6284L4.01807 10.3306V6.81494C4.01807 5.09619 5.42041 3.68994 7.14307 3.68994ZM47.7681 31.8149C47.7681 33.5376 46.3657 34.9399 44.6431 34.9399H7.14307C5.42041 34.9399 4.01807 33.5376 4.01807 31.8149V14.1489L21.2056 27.1274C22.5845 28.1636 24.2388 28.6919 25.8931 28.6919C27.5474 28.6919 29.2036 28.1626 30.5806 27.1274L47.7681 14.1489V31.8149Z"></path>
|
|
346
|
+
</svg>
|
|
347
|
+
)
|
|
348
|
+
}
|
|
349
|
+
|
|
342
350
|
export const Eye = (props: IconProps) => {
|
|
343
351
|
return (
|
|
344
352
|
<svg viewBox={"0 0 32 32"} fill={props.fill ?? "currentColor"}>
|
|
@@ -8,14 +8,15 @@ export type LangItem = {
|
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
export interface LanguageNavProps {
|
|
11
|
+
ariaLabel?: string
|
|
11
12
|
languages: LangItem[]
|
|
12
13
|
}
|
|
13
14
|
|
|
14
|
-
const LanguageNav = ({ languages }: LanguageNavProps) => {
|
|
15
|
+
const LanguageNav = ({ ariaLabel, languages }: LanguageNavProps) => {
|
|
15
16
|
return (
|
|
16
17
|
<div className="language-bar">
|
|
17
18
|
<div className="language-bar__inner">
|
|
18
|
-
<nav className="language-nav">
|
|
19
|
+
<nav {...(ariaLabel ? { "aria-label": ariaLabel } : {})} className="language-nav">
|
|
19
20
|
<ul className="language-nav__list">
|
|
20
21
|
{languages.map((item) => (
|
|
21
22
|
<li key={item.label}>
|