@bloom-housing/ui-components 4.1.1-alpha.2 → 4.1.1-alpha.5
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 +30 -0
- package/package.json +3 -3
- package/src/locales/es.json +3 -0
- package/src/locales/general.json +3 -0
- package/src/locales/vi.json +3 -0
- package/src/locales/zh.json +3 -0
- package/src/notifications/ApplicationStatus.tsx +22 -15
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,36 @@
|
|
|
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.1.1-alpha.5](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@4.1.1-alpha.4...@bloom-housing/ui-components@4.1.1-alpha.5) (2022-03-28)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* veteran preference option translation strings ([6b25906](https://github.com/bloom-housing/bloom/commit/6b25906a9cc71532c67da3c546ba06f896bb3232))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [4.1.1-alpha.4](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@4.1.1-alpha.3...@bloom-housing/ui-components@4.1.1-alpha.4) (2022-03-25)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @bloom-housing/ui-components
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
## [4.1.1-alpha.3](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@4.1.1-alpha.2...@bloom-housing/ui-components@4.1.1-alpha.3) (2022-03-22)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### Features
|
|
29
|
+
|
|
30
|
+
* allow application status bar to have custom icon color ([#2572](https://github.com/bloom-housing/bloom/issues/2572)) ([2d7c0c5](https://github.com/bloom-housing/bloom/commit/2d7c0c508b938bc58bb0efe1f5e407e7124738f4))
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
6
36
|
## [4.1.1-alpha.2](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@4.1.1-alpha.1...@bloom-housing/ui-components@4.1.1-alpha.2) (2022-03-16)
|
|
7
37
|
|
|
8
38
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bloom-housing/ui-components",
|
|
3
|
-
"version": "4.1.1-alpha.
|
|
3
|
+
"version": "4.1.1-alpha.5",
|
|
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.1.1-alpha.
|
|
72
|
+
"@bloom-housing/backend-core": "^4.1.1-alpha.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": "00ae6e61a4888e70887cddf6c076428585862e34"
|
|
104
104
|
}
|
package/src/locales/es.json
CHANGED
|
@@ -289,6 +289,9 @@
|
|
|
289
289
|
},
|
|
290
290
|
"senior": {
|
|
291
291
|
"label": "Al menos un miembro de mi hogar es una persona mayor, definida como de 62 años o más (1 punto)"
|
|
292
|
+
},
|
|
293
|
+
"veteran": {
|
|
294
|
+
"label": "Alguien en mi hogar ha servido en el ejército de los Estados Unidos (1 punto)"
|
|
292
295
|
}
|
|
293
296
|
},
|
|
294
297
|
"terminationOfAffordability": {
|
package/src/locales/general.json
CHANGED
|
@@ -694,6 +694,9 @@
|
|
|
694
694
|
},
|
|
695
695
|
"senior": {
|
|
696
696
|
"label": "At least one member of my household is a senior, defined as age 62 and older (1 point)"
|
|
697
|
+
},
|
|
698
|
+
"veteran": {
|
|
699
|
+
"label": "Someone in my household has served in the U.S. military (1 point)"
|
|
697
700
|
}
|
|
698
701
|
},
|
|
699
702
|
"terminationOfAffordability": {
|
package/src/locales/vi.json
CHANGED
|
@@ -286,6 +286,9 @@
|
|
|
286
286
|
},
|
|
287
287
|
"senior": {
|
|
288
288
|
"label": "Ít nhất một thành viên trong gia đình tôi là người cao tuổi, được xác định là từ 62 tuổi trở lên (1 điểm)"
|
|
289
|
+
},
|
|
290
|
+
"veteran": {
|
|
291
|
+
"label": "Một người nào đó trong gia đình tôi đã phục vụ trong quân đội Hoa Kỳ (1 điểm)"
|
|
289
292
|
}
|
|
290
293
|
},
|
|
291
294
|
"terminationOfAffordability": {
|
package/src/locales/zh.json
CHANGED
|
@@ -5,30 +5,37 @@ import "./ApplicationStatus.scss"
|
|
|
5
5
|
|
|
6
6
|
export interface ApplicationStatusProps {
|
|
7
7
|
content: string
|
|
8
|
-
|
|
8
|
+
iconColor?: string
|
|
9
|
+
iconType?: IconTypes
|
|
9
10
|
status?: ApplicationStatusType
|
|
11
|
+
subContent?: string
|
|
10
12
|
vivid?: boolean
|
|
11
13
|
withIcon?: boolean
|
|
12
|
-
iconType?: IconTypes
|
|
13
14
|
}
|
|
14
15
|
|
|
15
16
|
const ApplicationStatus = (props: ApplicationStatusProps) => {
|
|
16
17
|
let bgColor = ""
|
|
18
|
+
const {
|
|
19
|
+
content,
|
|
20
|
+
iconColor,
|
|
21
|
+
iconType = "clock",
|
|
22
|
+
status = ApplicationStatusType.Open,
|
|
23
|
+
subContent,
|
|
24
|
+
vivid,
|
|
25
|
+
withIcon = true,
|
|
26
|
+
} = props
|
|
27
|
+
|
|
17
28
|
// determine styling
|
|
18
|
-
const vivid = props.vivid || false
|
|
19
29
|
let textColor = vivid ? "text-white" : "text-gray-800"
|
|
20
30
|
const textSize = vivid ? "text-xs" : "text-sm"
|
|
21
31
|
|
|
22
|
-
const
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
if (withIcon) {
|
|
30
|
-
icon = <Icon size="medium" symbol={iconType} fill={vivid ? IconFillColors.white : undefined} />
|
|
31
|
-
}
|
|
32
|
+
const icon = withIcon && (
|
|
33
|
+
<Icon
|
|
34
|
+
size="medium"
|
|
35
|
+
symbol={iconType}
|
|
36
|
+
fill={iconColor || (vivid ? IconFillColors.white : undefined)}
|
|
37
|
+
/>
|
|
38
|
+
)
|
|
32
39
|
|
|
33
40
|
switch (status) {
|
|
34
41
|
case ApplicationStatusType.Open:
|
|
@@ -54,10 +61,10 @@ const ApplicationStatus = (props: ApplicationStatusProps) => {
|
|
|
54
61
|
{icon}
|
|
55
62
|
<span>
|
|
56
63
|
{content}
|
|
57
|
-
{
|
|
64
|
+
{subContent && (
|
|
58
65
|
<>
|
|
59
66
|
<br />
|
|
60
|
-
{
|
|
67
|
+
{subContent}
|
|
61
68
|
</>
|
|
62
69
|
)}
|
|
63
70
|
</span>
|