@bloom-housing/ui-components 4.0.1-alpha.21 → 4.0.1-alpha.25

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,44 @@
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.25](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@4.0.1-alpha.24...@bloom-housing/ui-components@4.0.1-alpha.25) (2022-01-24)
7
+
8
+ **Note:** Version bump only for package @bloom-housing/ui-components
9
+
10
+
11
+
12
+
13
+
14
+ ## [4.0.1-alpha.24](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@4.0.1-alpha.23...@bloom-housing/ui-components@4.0.1-alpha.24) (2022-01-20)
15
+
16
+
17
+ ### Features
18
+
19
+ * listing card takes optional children ([#2407](https://github.com/bloom-housing/bloom/issues/2407)) ([3c73a11](https://github.com/bloom-housing/bloom/commit/3c73a1144748fca6d50e5e0b220230eb8bf48dc6))
20
+
21
+
22
+
23
+
24
+
25
+ ## [4.0.1-alpha.23](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@4.0.1-alpha.22...@bloom-housing/ui-components@4.0.1-alpha.23) (2022-01-14)
26
+
27
+
28
+ ### Bug Fixes
29
+
30
+ * patches translations for preferences ([#2410](https://github.com/bloom-housing/bloom/issues/2410)) ([7906e6b](https://github.com/bloom-housing/bloom/commit/7906e6bc035fab4deea79ea51833a0ef29926d45))
31
+
32
+
33
+
34
+
35
+
36
+ ## [4.0.1-alpha.22](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@4.0.1-alpha.21...@bloom-housing/ui-components@4.0.1-alpha.22) (2022-01-13)
37
+
38
+ **Note:** Version bump only for package @bloom-housing/ui-components
39
+
40
+
41
+
42
+
43
+
6
44
  ## [4.0.1-alpha.21](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@4.0.1-alpha.20...@bloom-housing/ui-components@4.0.1-alpha.21) (2022-01-13)
7
45
 
8
46
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bloom-housing/ui-components",
3
- "version": "4.0.1-alpha.21",
3
+ "version": "4.0.1-alpha.25",
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.13",
72
+ "@bloom-housing/backend-core": "^3.0.2-alpha.16",
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": "dc4453ed2aa86948b8a91e4806ba83d020e10a49"
103
+ "gitHead": "98c3102ae24bce856b8873e15ea88d20140b6db0"
104
104
  }
@@ -252,6 +252,20 @@
252
252
  "general": {
253
253
  "title": "En base a la información que usted ingresó, su hogar no ha solicitado ninguna preferencia de vivienda.",
254
254
  "preamble": "Estará en el grupo general de solicitantes."
255
+ },
256
+ "rosefieldLive": {
257
+ "title": "Anterior Residentes de Rosefield Village reubicados fuera de la ciudad de Alameda",
258
+ "yes": {
259
+ "label": "Al menos un miembro de mi hogar fue residente anterior de Rosefield Village",
260
+ "description": "Al menos un miembro de mi hogar fue residente anterior de Rosefield Village"
261
+ }
262
+ },
263
+ "rosefieldAUSD": {
264
+ "title": "Empleado(a) del Distrito Escolar Unificado Alameda (AUSD)",
265
+ "yes": {
266
+ "label": "Al menos un miembro de mi hogar es empleado del Distrito Escolar Unificado de Alameda",
267
+ "description": "Al menos un miembro de mi hogar es empleado del Distrito Escolar Unificado de Alameda"
268
+ }
255
269
  }
256
270
  },
257
271
  "review": {
@@ -249,6 +249,20 @@
249
249
  "general": {
250
250
  "title": "Dựa trên thông tin quý vị đã nhập, hộ gia đình của quý vị chưa yêu cầu bất kỳ lựa chọn ưu tiên nhà ở nào.",
251
251
  "preamble": "Quý vị sẽ thuộc nhóm các ứng viên chung."
252
+ },
253
+ "rosefieldLive": {
254
+ "title": "Cư dân trước đây của Làng Rosefield đã tái định cư bên ngoài Thành phố Alameda",
255
+ "yes": {
256
+ "label": "Ít nhất một thành viên trong gia đình tôi là cư dân trước đây của Làng Rosefield",
257
+ "description": "Ít nhất một thành viên trong gia đình tôi là cư dân trước đây của Làng Rosefield"
258
+ }
259
+ },
260
+ "rosefieldAUSD": {
261
+ "title": "Nhân viên của Học khu Thống nhất Alameda (AUSD)",
262
+ "yes": {
263
+ "label": "Ít nhất một thành viên trong gia đình tôi là nhân viên của Học khu Thống nhất Alameda",
264
+ "description": "Ít nhất một thành viên trong gia đình tôi là nhân viên của Học khu Thống nhất Alameda"
265
+ }
252
266
  }
253
267
  },
254
268
  "review": {
@@ -249,6 +249,20 @@
249
249
  "general": {
250
250
  "title": "根據您填寫的資料,您的家庭沒有要求任何住房優先權。",
251
251
  "preamble": "您將被分配到一般申請人組別。"
252
+ },
253
+ "rosefieldLive": {
254
+ "title": "罗斯菲尔德村以前的居民搬迁到阿拉米达市外",
255
+ "yes": {
256
+ "label": "我的至少一名家庭成员曾是罗斯菲尔德村的居民",
257
+ "description": "我的至少一名家庭成员曾是罗斯菲尔德村的居民"
258
+ }
259
+ },
260
+ "rosefieldAUSD": {
261
+ "title": "阿拉米达联合学区 (AUSD) 员工",
262
+ "yes": {
263
+ "label": "我的至少一名家庭成员是阿拉米达联合学区的雇员",
264
+ "description": "我的至少一名家庭成员是阿拉米达联合学区的雇员"
265
+ }
252
266
  }
253
267
  },
254
268
  "review": {
@@ -18,14 +18,39 @@ export interface ListingCardHeaderProps {
18
18
  }
19
19
  export interface ListingCardProps {
20
20
  imageCardProps: ImageCardProps
21
+ children?: React.ReactElement
21
22
  seeDetailsLink?: string
22
23
  tableHeaderProps?: ListingCardHeaderProps
23
- tableProps: ListingCardTableProps
24
+ tableProps?: ListingCardTableProps
24
25
  detailsLinkClass?: string
25
26
  }
26
27
 
27
28
  const ListingCard = (props: ListingCardProps) => {
28
- const { imageCardProps, tableProps, detailsLinkClass, tableHeaderProps } = props
29
+ const { imageCardProps, tableProps, detailsLinkClass, tableHeaderProps, children } = props
30
+
31
+ const tableHeader = () => {
32
+ return (
33
+ <h3
34
+ className={`listings-row_title ${
35
+ tableHeaderProps?.tableHeaderClass && tableHeaderProps?.tableHeaderClass
36
+ }`}
37
+ >
38
+ {tableHeaderProps?.tableHeader}
39
+ </h3>
40
+ )
41
+ }
42
+
43
+ const tableSubHeader = () => {
44
+ return (
45
+ <h4
46
+ className={`listings-row_subtitle ${
47
+ tableHeaderProps?.tableSubHeaderClass && tableHeaderProps?.tableSubHeaderClass
48
+ }`}
49
+ >
50
+ {tableHeaderProps?.tableSubHeader}
51
+ </h4>
52
+ )
53
+ }
29
54
 
30
55
  return (
31
56
  <article className="listings-row" data-test-id={"listing-card-component"}>
@@ -33,26 +58,11 @@ const ListingCard = (props: ListingCardProps) => {
33
58
  <ImageCard {...imageCardProps} />
34
59
  </div>
35
60
  <div className="listings-row_content">
36
- {tableHeaderProps?.tableHeader && (
37
- <h3
38
- className={`listings-row_title ${
39
- tableHeaderProps.tableHeaderClass && tableHeaderProps.tableHeaderClass
40
- }`}
41
- >
42
- {tableHeaderProps?.tableHeader}
43
- </h3>
44
- )}
45
- {tableHeaderProps?.tableSubHeader && (
46
- <h4
47
- className={`listings-row_subtitle ${
48
- tableHeaderProps.tableSubHeaderClass && tableHeaderProps.tableSubHeaderClass
49
- }`}
50
- >
51
- {tableHeaderProps?.tableSubHeader}
52
- </h4>
53
- )}
61
+ {tableHeaderProps?.tableHeader && tableHeader()}
62
+ {tableHeaderProps?.tableSubHeader && tableSubHeader()}
54
63
  <div className="listings-row_table">
55
- {(tableProps.data || tableProps.stackedData) && (
64
+ {children && children}
65
+ {tableProps && (tableProps.data || tableProps.stackedData) && (
56
66
  <>
57
67
  {tableHeaderProps?.stackedTable ? (
58
68
  <StackedTable {...(tableProps as StackedTableProps)} />