@bloom-housing/ui-components 3.0.1-alpha.9 → 4.0.1-alpha.6

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.
Files changed (60) hide show
  1. package/.jest/setup-tests.js +3 -0
  2. package/CHANGELOG.md +468 -0
  3. package/index.ts +2 -8
  4. package/jest.config.js +0 -1
  5. package/package.json +4 -6
  6. package/src/actions/Button.tsx +6 -0
  7. package/src/actions/LinkButton.tsx +7 -2
  8. package/src/blocks/DashBlock.tsx +6 -1
  9. package/src/blocks/ImageCard.tsx +3 -0
  10. package/src/blocks/ViewItem.tsx +2 -1
  11. package/src/forms/DOBField.tsx +3 -0
  12. package/src/forms/DateField.tsx +4 -0
  13. package/src/forms/Field.tsx +3 -0
  14. package/src/forms/FieldGroup.tsx +100 -16
  15. package/src/forms/HouseholdMemberForm.tsx +2 -1
  16. package/src/forms/PhoneField.tsx +2 -1
  17. package/src/forms/Select.tsx +4 -0
  18. package/src/forms/TimeField.tsx +6 -0
  19. package/src/global/ApplicationStatusType.ts +1 -0
  20. package/src/global/forms.scss +1 -0
  21. package/src/global/lists.scss +1 -1
  22. package/src/global/mixins.scss +4 -4
  23. package/src/headers/Hero.scss +7 -0
  24. package/src/headers/Hero.tsx +3 -3
  25. package/src/headers/PageHeader.tsx +2 -2
  26. package/src/headers/SiteHeader.scss +6 -5
  27. package/src/icons/Icon.tsx +2 -1
  28. package/src/icons/Icons.tsx +7 -2
  29. package/src/locales/es.json +53 -6
  30. package/src/locales/general.json +198 -19
  31. package/src/locales/general_OLD.json +1 -1
  32. package/src/locales/missing-translations.ts +2 -0
  33. package/src/locales/tl.json +5 -0
  34. package/src/locales/vi.json +51 -5
  35. package/src/locales/zh.json +53 -7
  36. package/src/navigation/ProgressNav.tsx +5 -3
  37. package/src/notifications/AlertBox.scss +9 -0
  38. package/src/notifications/AlertBox.tsx +24 -19
  39. package/src/notifications/AlertNotice.tsx +6 -4
  40. package/src/notifications/ApplicationStatus.tsx +9 -2
  41. package/src/notifications/ErrorMessage.tsx +6 -1
  42. package/src/overlays/Modal.scss +4 -1
  43. package/src/overlays/Modal.tsx +5 -6
  44. package/src/page_components/listing/AdditionalFees.tsx +2 -1
  45. package/src/page_components/listing/ListingCard.tsx +1 -1
  46. package/src/page_components/listing/listing_sidebar/GetApplication.tsx +8 -1
  47. package/src/page_components/listing/listing_sidebar/SubmitApplication.tsx +13 -3
  48. package/src/page_components/listing/listing_sidebar/Waitlist.tsx +31 -62
  49. package/src/page_components/listing/listing_sidebar/events/DownloadLotteryResults.tsx +4 -7
  50. package/src/page_components/sign-in/FormSignIn.tsx +128 -0
  51. package/src/tables/MinimalTable.tsx +2 -0
  52. package/src/tables/StandardTable.tsx +2 -1
  53. package/tsconfig.json +0 -1
  54. package/src/helpers/blankApplication.ts +0 -111
  55. package/src/helpers/localeRoute.tsx +0 -13
  56. package/src/helpers/nextjs.ts +0 -7
  57. package/src/helpers/occupancyFormatting.tsx +0 -46
  58. package/src/helpers/pdfs.ts +0 -19
  59. package/src/helpers/photos.ts +0 -19
  60. package/src/helpers/unitTypes.ts +0 -42
@@ -1,4 +1,5 @@
1
1
  import "@testing-library/jest-dom/extend-expect"
2
+ import { configure } from "@testing-library/dom"
2
3
 
3
4
  import { addTranslation } from "../src/helpers/translator"
4
5
  import general from "../src/locales/general.json"
@@ -18,3 +19,5 @@ window.matchMedia = jest.fn().mockImplementation((query) => {
18
19
  })
19
20
 
20
21
  addTranslation(general)
22
+
23
+ configure({ testIdAttribute: "data-test-id" })
package/CHANGELOG.md CHANGED
@@ -3,6 +3,474 @@
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.6](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@4.0.0...@bloom-housing/ui-components@4.0.1-alpha.6) (2022-01-03)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * bump version ([#2349](https://github.com/bloom-housing/bloom/issues/2349)) ([b9e3ba1](https://github.com/bloom-housing/bloom/commit/b9e3ba10aebd6534090f8be231a9ea77b3c929b6))
12
+ * bump version ([#2350](https://github.com/bloom-housing/bloom/issues/2350)) ([05863f5](https://github.com/bloom-housing/bloom/commit/05863f55f3939bea4387bd7cf4eb1f34df106124))
13
+ * make numbered list breakpoint match config ([326df54](https://github.com/bloom-housing/bloom/commit/326df5404d2a967f1a36f8ba7635d4cb92d37742))
14
+ * make primary buttons primary background ([1b44435](https://github.com/bloom-housing/bloom/commit/1b44435aef22d814a0b511d7d63129d73a7b78ac))
15
+ * propagate custom icon type to ImageCard prop ([afb045d](https://github.com/bloom-housing/bloom/commit/afb045dfea0937c89bdc90886d161f0e4e27d880))
16
+ * Update hardcoded translations ([c58bf25](https://github.com/bloom-housing/bloom/commit/c58bf25bb7243ea357e208aef88e74af4a968e97)), closes [#1927](https://github.com/bloom-housing/bloom/issues/1927)
17
+ * Update translation ([f8d2604](https://github.com/bloom-housing/bloom/commit/f8d2604b5244ca9c5bc92665d056f5e58d32f978))
18
+
19
+
20
+ * 2227/lock login attempts frontend (#2260) ([281ea43](https://github.com/bloom-housing/bloom/commit/281ea435e618a73a73f233a7a494f961fbac8fa2)), closes [#2260](https://github.com/bloom-housing/bloom/issues/2260) [#1927](https://github.com/bloom-housing/bloom/issues/1927) [#1927](https://github.com/bloom-housing/bloom/issues/1927) [#1927](https://github.com/bloom-housing/bloom/issues/1927) [#1927](https://github.com/bloom-housing/bloom/issues/1927) [#1927](https://github.com/bloom-housing/bloom/issues/1927) [#1927](https://github.com/bloom-housing/bloom/issues/1927) [#1927](https://github.com/bloom-housing/bloom/issues/1927) [#1927](https://github.com/bloom-housing/bloom/issues/1927) [#1927](https://github.com/bloom-housing/bloom/issues/1927) [#1927](https://github.com/bloom-housing/bloom/issues/1927) [#1927](https://github.com/bloom-housing/bloom/issues/1927) [#1927](https://github.com/bloom-housing/bloom/issues/1927) [#1927](https://github.com/bloom-housing/bloom/issues/1927)
21
+
22
+
23
+ ### Features
24
+
25
+ * add matched style to ApplicationStatus ([a54fb97](https://github.com/bloom-housing/bloom/commit/a54fb9769b68c9362e5f312a1021f5d0ba3d17a7))
26
+ * **backend:** add user password expiration ([107c2f0](https://github.com/bloom-housing/bloom/commit/107c2f06e2f8367b52cb7cc8f00e6d9aef751fe0))
27
+ * password reset message ([0cba6e6](https://github.com/bloom-housing/bloom/commit/0cba6e62b45622a430612672daef5c97c1e6b140))
28
+
29
+
30
+ ### BREAKING CHANGES
31
+
32
+ * sign-in pages have been updated
33
+
34
+
35
+
36
+
37
+
38
+ ## [4.0.1-alpha.1](https://github.com/seanmalbert/bloom/compare/@bloom-housing/ui-components@4.0.0...@bloom-housing/ui-components@4.0.1-alpha.1) (2021-12-23)
39
+
40
+
41
+ ### Bug Fixes
42
+
43
+ * make numbered list breakpoint match config ([326df54](https://github.com/seanmalbert/bloom/commit/326df5404d2a967f1a36f8ba7635d4cb92d37742))
44
+ * make primary buttons primary background ([1b44435](https://github.com/seanmalbert/bloom/commit/1b44435aef22d814a0b511d7d63129d73a7b78ac))
45
+ * Update hardcoded translations ([c58bf25](https://github.com/seanmalbert/bloom/commit/c58bf25bb7243ea357e208aef88e74af4a968e97)), closes [#1927](https://github.com/seanmalbert/bloom/issues/1927)
46
+ * Update translation ([f8d2604](https://github.com/seanmalbert/bloom/commit/f8d2604b5244ca9c5bc92665d056f5e58d32f978))
47
+
48
+
49
+ * 2227/lock login attempts frontend (#2260) ([281ea43](https://github.com/seanmalbert/bloom/commit/281ea435e618a73a73f233a7a494f961fbac8fa2)), closes [#2260](https://github.com/seanmalbert/bloom/issues/2260) [#1927](https://github.com/seanmalbert/bloom/issues/1927) [#1927](https://github.com/seanmalbert/bloom/issues/1927) [#1927](https://github.com/seanmalbert/bloom/issues/1927) [#1927](https://github.com/seanmalbert/bloom/issues/1927) [#1927](https://github.com/seanmalbert/bloom/issues/1927) [#1927](https://github.com/seanmalbert/bloom/issues/1927) [#1927](https://github.com/seanmalbert/bloom/issues/1927) [#1927](https://github.com/seanmalbert/bloom/issues/1927) [#1927](https://github.com/seanmalbert/bloom/issues/1927) [#1927](https://github.com/seanmalbert/bloom/issues/1927) [#1927](https://github.com/seanmalbert/bloom/issues/1927) [#1927](https://github.com/seanmalbert/bloom/issues/1927) [#1927](https://github.com/seanmalbert/bloom/issues/1927)
50
+
51
+
52
+ ### Features
53
+
54
+ * add matched style to ApplicationStatus ([a54fb97](https://github.com/seanmalbert/bloom/commit/a54fb9769b68c9362e5f312a1021f5d0ba3d17a7))
55
+
56
+
57
+ ### BREAKING CHANGES
58
+
59
+ * sign-in pages have been updated
60
+
61
+
62
+
63
+
64
+
65
+ ## [4.0.1-alpha.0](https://github.com/seanmalbert/bloom/compare/@bloom-housing/ui-components@4.0.0...@bloom-housing/ui-components@4.0.1-alpha.0) (2021-12-23)
66
+
67
+
68
+ ### Bug Fixes
69
+
70
+ * make numbered list breakpoint match config ([326df54](https://github.com/seanmalbert/bloom/commit/326df5404d2a967f1a36f8ba7635d4cb92d37742))
71
+ * make primary buttons primary background ([1b44435](https://github.com/seanmalbert/bloom/commit/1b44435aef22d814a0b511d7d63129d73a7b78ac))
72
+ * Update hardcoded translations ([c58bf25](https://github.com/seanmalbert/bloom/commit/c58bf25bb7243ea357e208aef88e74af4a968e97)), closes [#1927](https://github.com/seanmalbert/bloom/issues/1927)
73
+ * Update translation ([f8d2604](https://github.com/seanmalbert/bloom/commit/f8d2604b5244ca9c5bc92665d056f5e58d32f978))
74
+
75
+
76
+ * 2227/lock login attempts frontend (#2260) ([281ea43](https://github.com/seanmalbert/bloom/commit/281ea435e618a73a73f233a7a494f961fbac8fa2)), closes [#2260](https://github.com/seanmalbert/bloom/issues/2260) [#1927](https://github.com/seanmalbert/bloom/issues/1927) [#1927](https://github.com/seanmalbert/bloom/issues/1927) [#1927](https://github.com/seanmalbert/bloom/issues/1927) [#1927](https://github.com/seanmalbert/bloom/issues/1927) [#1927](https://github.com/seanmalbert/bloom/issues/1927) [#1927](https://github.com/seanmalbert/bloom/issues/1927) [#1927](https://github.com/seanmalbert/bloom/issues/1927) [#1927](https://github.com/seanmalbert/bloom/issues/1927) [#1927](https://github.com/seanmalbert/bloom/issues/1927) [#1927](https://github.com/seanmalbert/bloom/issues/1927) [#1927](https://github.com/seanmalbert/bloom/issues/1927) [#1927](https://github.com/seanmalbert/bloom/issues/1927) [#1927](https://github.com/seanmalbert/bloom/issues/1927)
77
+
78
+
79
+ ### Features
80
+
81
+ * add matched style to ApplicationStatus ([a54fb97](https://github.com/seanmalbert/bloom/commit/a54fb9769b68c9362e5f312a1021f5d0ba3d17a7))
82
+
83
+
84
+ ### BREAKING CHANGES
85
+
86
+ * sign-in pages have been updated
87
+
88
+
89
+
90
+
91
+
92
+ # [4.0.0](https://github.com/seanmalbert/bloom/compare/@bloom-housing/ui-components@3.0.1-alpha.48...@bloom-housing/ui-components@4.0.0) (2021-12-22)
93
+
94
+
95
+ ### Bug Fixes
96
+
97
+ * removes more closed listing application paths ([#2319](https://github.com/seanmalbert/bloom/issues/2319)) ([ff50205](https://github.com/seanmalbert/bloom/commit/ff50205f371ebd63d07168b290733d0f1e2d493c))
98
+
99
+
100
+ ### Code Refactoring
101
+
102
+ * removing helpers from ui-components that are backend dependent ([#2108](https://github.com/seanmalbert/bloom/issues/2108)) ([1d0c1f3](https://github.com/seanmalbert/bloom/commit/1d0c1f340781a3ba76c89462d8bee954dd40b889))
103
+
104
+
105
+ ### Features
106
+
107
+ * adds updating open listing modal ([#2288](https://github.com/seanmalbert/bloom/issues/2288)) ([4f6945f](https://github.com/seanmalbert/bloom/commit/4f6945f04d797fad1b3140bcdc74b134ea42810a))
108
+ * make page header title optional ([6ce7707](https://github.com/seanmalbert/bloom/commit/6ce770790120fe3d472bca2a937a9b9d3faaa943))
109
+
110
+
111
+ ### BREAKING CHANGES
112
+
113
+ * moved some helpers from ui-components to shared-helpers
114
+
115
+
116
+
117
+
118
+
119
+ ## [3.0.1-alpha.48](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@3.0.1-alpha.47...@bloom-housing/ui-components@3.0.1-alpha.48) (2021-12-15)
120
+
121
+
122
+ ### Bug Fixes
123
+
124
+ * add mailThin icon to stories ([ba8400b](https://github.com/bloom-housing/bloom/commit/ba8400bed4e9d653f85ec38ef4bca3b74df371dd))
125
+ * make mailThin background transparent ([87b372b](https://github.com/bloom-housing/bloom/commit/87b372b28e1b44c5a450544a2d15f09a84de2ebb))
126
+
127
+
128
+
129
+
130
+
131
+ ## [3.0.1-alpha.47](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@3.0.1-alpha.46...@bloom-housing/ui-components@3.0.1-alpha.47) (2021-12-15)
132
+
133
+ **Note:** Version bump only for package @bloom-housing/ui-components
134
+
135
+
136
+
137
+
138
+
139
+ ## [3.0.1-alpha.46](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@3.0.1-alpha.45...@bloom-housing/ui-components@3.0.1-alpha.46) (2021-12-15)
140
+
141
+ **Note:** Version bump only for package @bloom-housing/ui-components
142
+
143
+
144
+
145
+
146
+
147
+ ## [3.0.1-alpha.45](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@3.0.1-alpha.44...@bloom-housing/ui-components@3.0.1-alpha.45) (2021-12-14)
148
+
149
+ **Note:** Version bump only for package @bloom-housing/ui-components
150
+
151
+
152
+
153
+
154
+
155
+ ## [3.0.1-alpha.44](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@3.0.1-alpha.43...@bloom-housing/ui-components@3.0.1-alpha.44) (2021-12-14)
156
+
157
+ **Note:** Version bump only for package @bloom-housing/ui-components
158
+
159
+
160
+
161
+
162
+
163
+ ## [3.0.1-alpha.43](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@3.0.1-alpha.42...@bloom-housing/ui-components@3.0.1-alpha.43) (2021-12-13)
164
+
165
+ **Note:** Version bump only for package @bloom-housing/ui-components
166
+
167
+
168
+
169
+
170
+
171
+ ## [3.0.1-alpha.42](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@3.0.1-alpha.40...@bloom-housing/ui-components@3.0.1-alpha.42) (2021-12-13)
172
+
173
+
174
+ ### Bug Fixes
175
+
176
+ * fix hero button width with secondary button ([#2306](https://github.com/bloom-housing/bloom/issues/2306)) ([929ac8e](https://github.com/bloom-housing/bloom/commit/929ac8e7fd30718a77a10277323abf1604a45a19))
177
+ * mobile notice text wrap issue ([#2308](https://github.com/bloom-housing/bloom/issues/2308)) ([47fdd7e](https://github.com/bloom-housing/bloom/commit/47fdd7ea0e15ec50888cb00f1caa11df269c9e84))
178
+ * versioning issues ([#2311](https://github.com/bloom-housing/bloom/issues/2311)) ([0b1d143](https://github.com/bloom-housing/bloom/commit/0b1d143ab8b17add9d52533560f28d7a1f6dfd3d))
179
+
180
+
181
+
182
+
183
+
184
+ ## [3.0.1-alpha.40](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@3.0.1-alpha.39...@bloom-housing/ui-components@3.0.1-alpha.40) (2021-12-10)
185
+
186
+ **Note:** Version bump only for package @bloom-housing/ui-components
187
+
188
+
189
+
190
+
191
+
192
+ ## [3.0.1-alpha.39](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@3.0.1-alpha.38...@bloom-housing/ui-components@3.0.1-alpha.39) (2021-12-09)
193
+
194
+ **Note:** Version bump only for package @bloom-housing/ui-components
195
+
196
+
197
+
198
+
199
+
200
+ ## [3.0.1-alpha.38](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@3.0.1-alpha.37...@bloom-housing/ui-components@3.0.1-alpha.38) (2021-12-09)
201
+
202
+ **Note:** Version bump only for package @bloom-housing/ui-components
203
+
204
+
205
+
206
+
207
+
208
+ ## [3.0.1-alpha.37](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@3.0.1-alpha.36...@bloom-housing/ui-components@3.0.1-alpha.37) (2021-12-09)
209
+
210
+ **Note:** Version bump only for package @bloom-housing/ui-components
211
+
212
+
213
+
214
+
215
+
216
+ ## [3.0.1-alpha.36](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@3.0.1-alpha.35...@bloom-housing/ui-components@3.0.1-alpha.36) (2021-12-09)
217
+
218
+ **Note:** Version bump only for package @bloom-housing/ui-components
219
+
220
+
221
+
222
+
223
+
224
+ ## [3.0.1-alpha.35](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@3.0.1-alpha.34...@bloom-housing/ui-components@3.0.1-alpha.35) (2021-12-08)
225
+
226
+ **Note:** Version bump only for package @bloom-housing/ui-components
227
+
228
+
229
+
230
+
231
+
232
+ ## [3.0.1-alpha.34](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@3.0.1-alpha.33...@bloom-housing/ui-components@3.0.1-alpha.34) (2021-12-07)
233
+
234
+
235
+ ### Bug Fixes
236
+
237
+ * account translations ([#2278](https://github.com/bloom-housing/bloom/issues/2278)) ([1420282](https://github.com/bloom-housing/bloom/commit/1420282ec0de17b8629f2a7dd6c1149f7a1f8894))
238
+
239
+
240
+
241
+
242
+
243
+ ## [3.0.1-alpha.33](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@3.0.1-alpha.32...@bloom-housing/ui-components@3.0.1-alpha.33) (2021-12-07)
244
+
245
+
246
+ ### Features
247
+
248
+ * overrides fallback to english, tagalog support ([#2262](https://github.com/bloom-housing/bloom/issues/2262)) ([679ab9b](https://github.com/bloom-housing/bloom/commit/679ab9b1816d5934f48f02ca5f5696952ef88ae7))
249
+
250
+
251
+
252
+
253
+
254
+ ## [3.0.1-alpha.32](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@3.0.1-alpha.31...@bloom-housing/ui-components@3.0.1-alpha.32) (2021-12-07)
255
+
256
+
257
+ ### Bug Fixes
258
+
259
+ * Fix modal styles on mobile ([#2280](https://github.com/bloom-housing/bloom/issues/2280)) ([95f45e5](https://github.com/bloom-housing/bloom/commit/95f45e5a6d2c38c512f59d8cb35847cab59dc8bb)), closes [#2253](https://github.com/bloom-housing/bloom/issues/2253)
260
+
261
+
262
+
263
+
264
+
265
+ ## [3.0.1-alpha.31](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@3.0.1-alpha.30...@bloom-housing/ui-components@3.0.1-alpha.31) (2021-12-06)
266
+
267
+ **Note:** Version bump only for package @bloom-housing/ui-components
268
+
269
+
270
+
271
+
272
+
273
+ ## [3.0.1-alpha.30](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@3.0.1-alpha.29...@bloom-housing/ui-components@3.0.1-alpha.30) (2021-12-03)
274
+
275
+ **Note:** Version bump only for package @bloom-housing/ui-components
276
+
277
+
278
+
279
+
280
+
281
+ ## [3.0.1-alpha.29](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@3.0.1-alpha.28...@bloom-housing/ui-components@3.0.1-alpha.29) (2021-12-03)
282
+
283
+ **Note:** Version bump only for package @bloom-housing/ui-components
284
+
285
+
286
+
287
+
288
+
289
+ ## [3.0.1-alpha.28](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@3.0.1-alpha.27...@bloom-housing/ui-components@3.0.1-alpha.28) (2021-12-03)
290
+
291
+ **Note:** Version bump only for package @bloom-housing/ui-components
292
+
293
+
294
+
295
+
296
+
297
+ ## [3.0.1-alpha.27](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@3.0.1-alpha.26...@bloom-housing/ui-components@3.0.1-alpha.27) (2021-12-01)
298
+
299
+ **Note:** Version bump only for package @bloom-housing/ui-components
300
+
301
+
302
+
303
+
304
+
305
+ ## [3.0.1-alpha.26](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@3.0.1-alpha.25...@bloom-housing/ui-components@3.0.1-alpha.26) (2021-12-01)
306
+
307
+ **Note:** Version bump only for package @bloom-housing/ui-components
308
+
309
+
310
+
311
+
312
+
313
+ ## [3.0.1-alpha.25](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@3.0.1-alpha.24...@bloom-housing/ui-components@3.0.1-alpha.25) (2021-11-30)
314
+
315
+ **Note:** Version bump only for package @bloom-housing/ui-components
316
+
317
+
318
+
319
+
320
+
321
+ ## [3.0.1-alpha.24](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@3.0.1-alpha.23...@bloom-housing/ui-components@3.0.1-alpha.24) (2021-11-29)
322
+
323
+
324
+ ### Bug Fixes
325
+
326
+ * guard against 0 output ([0ea9012](https://github.com/bloom-housing/bloom/commit/0ea9012fdac02fb1cb4357abec2ec69633902654))
327
+ * remove bold style from current waitlist size ([2e2f414](https://github.com/bloom-housing/bloom/commit/2e2f4141e62c8544c0828b29de0b99bb97abb201))
328
+ * show waitlist values even if they're zero ([6a35e67](https://github.com/bloom-housing/bloom/commit/6a35e679f142105e40719e89bda3d957e3200e1d))
329
+ * simpler conditionals ([f3e588d](https://github.com/bloom-housing/bloom/commit/f3e588d5e6dd0a39d1aed99ef6eba0054540ed14))
330
+ * waitlist: handle both null and undefined ([90fd369](https://github.com/bloom-housing/bloom/commit/90fd369b471c7f9baa0a1d58f452159449fe6fcf))
331
+
332
+
333
+ ### Features
334
+
335
+ * simplify Waitlist component and use more flexible schema ([96df149](https://github.com/bloom-housing/bloom/commit/96df1496f377ddfa6f0e6c016c84954b6a43ff4a))
336
+
337
+
338
+
339
+
340
+
341
+ ## [3.0.1-alpha.23](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@3.0.1-alpha.22...@bloom-housing/ui-components@3.0.1-alpha.23) (2021-11-29)
342
+
343
+ **Note:** Version bump only for package @bloom-housing/ui-components
344
+
345
+
346
+
347
+
348
+
349
+ ## [3.0.1-alpha.22](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@3.0.1-alpha.21...@bloom-housing/ui-components@3.0.1-alpha.22) (2021-11-23)
350
+
351
+
352
+ ### Bug Fixes
353
+
354
+ * remove alameda reference in demographics ([#2209](https://github.com/bloom-housing/bloom/issues/2209)) ([7d5991c](https://github.com/bloom-housing/bloom/commit/7d5991cbf6dbe0b61f2b14d265e87ce3687f743d))
355
+
356
+
357
+
358
+
359
+
360
+ ## [3.0.1-alpha.21](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@3.0.1-alpha.20...@bloom-housing/ui-components@3.0.1-alpha.21) (2021-11-23)
361
+
362
+
363
+ ### Bug Fixes
364
+
365
+ * change the yes/no radio text to be more descriptive ([#2208](https://github.com/bloom-housing/bloom/issues/2208)) ([0c46054](https://github.com/bloom-housing/bloom/commit/0c46054574535523d6f217bb0677bbe732b8945f))
366
+
367
+
368
+
369
+
370
+
371
+ ## [3.0.1-alpha.20](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@3.0.1-alpha.19...@bloom-housing/ui-components@3.0.1-alpha.20) (2021-11-23)
372
+
373
+
374
+ ### Bug Fixes
375
+
376
+ * add ariaLabel prop to Button component ([509ddc8](https://github.com/bloom-housing/bloom/commit/509ddc898ba44c05e26f8ed8c777f1ba456eeee5))
377
+
378
+
379
+
380
+
381
+
382
+ ## [3.0.1-alpha.19](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@3.0.1-alpha.18...@bloom-housing/ui-components@3.0.1-alpha.19) (2021-11-23)
383
+
384
+
385
+ ### Bug Fixes
386
+
387
+ * add ariaHidden to Icon component ([c7bb86a](https://github.com/bloom-housing/bloom/commit/c7bb86aec6fd5ad386c7ca50087d0113b14503be))
388
+
389
+
390
+
391
+
392
+
393
+ ## [3.0.1-alpha.18](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@3.0.1-alpha.17...@bloom-housing/ui-components@3.0.1-alpha.18) (2021-11-23)
394
+
395
+
396
+ ### Features
397
+
398
+ * new demographics sub-race questions ([#2109](https://github.com/bloom-housing/bloom/issues/2109)) ([9ab8926](https://github.com/bloom-housing/bloom/commit/9ab892694c1ad2fa8890b411b3b32af68ade1fc3))
399
+
400
+
401
+
402
+
403
+
404
+ ## [3.0.1-alpha.17](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@3.0.1-alpha.16...@bloom-housing/ui-components@3.0.1-alpha.17) (2021-11-22)
405
+
406
+ **Note:** Version bump only for package @bloom-housing/ui-components
407
+
408
+
409
+
410
+
411
+
412
+ ## [3.0.1-alpha.16](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@3.0.1-alpha.15...@bloom-housing/ui-components@3.0.1-alpha.16) (2021-11-22)
413
+
414
+ **Note:** Version bump only for package @bloom-housing/ui-components
415
+
416
+
417
+
418
+
419
+
420
+ ## [3.0.1-alpha.15](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@3.0.1-alpha.14...@bloom-housing/ui-components@3.0.1-alpha.15) (2021-11-16)
421
+
422
+ **Note:** Version bump only for package @bloom-housing/ui-components
423
+
424
+
425
+
426
+
427
+
428
+ ## [3.0.1-alpha.14](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@3.0.1-alpha.13...@bloom-housing/ui-components@3.0.1-alpha.14) (2021-11-16)
429
+
430
+
431
+ ### Bug Fixes
432
+
433
+ * preference cleanup for avance ([d0aebbc](https://github.com/bloom-housing/bloom/commit/d0aebbcd334dfffc4a7a1a39e9964c90155c5bfb))
434
+
435
+
436
+
437
+
438
+
439
+ ## [3.0.1-alpha.13](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@3.0.1-alpha.12...@bloom-housing/ui-components@3.0.1-alpha.13) (2021-11-16)
440
+
441
+ **Note:** Version bump only for package @bloom-housing/ui-components
442
+
443
+
444
+
445
+
446
+
447
+ ## [3.0.1-alpha.12](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@3.0.1-alpha.11...@bloom-housing/ui-components@3.0.1-alpha.12) (2021-11-16)
448
+
449
+ **Note:** Version bump only for package @bloom-housing/ui-components
450
+
451
+
452
+
453
+
454
+
455
+ ## [3.0.1-alpha.11](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@3.0.1-alpha.10...@bloom-housing/ui-components@3.0.1-alpha.11) (2021-11-15)
456
+
457
+ **Note:** Version bump only for package @bloom-housing/ui-components
458
+
459
+
460
+
461
+
462
+
463
+ ## [3.0.1-alpha.10](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@3.0.1-alpha.9...@bloom-housing/ui-components@3.0.1-alpha.10) (2021-11-12)
464
+
465
+
466
+ ### Features
467
+
468
+ * refactor and add public site application flow cypress tests ([#2118](https://github.com/bloom-housing/bloom/issues/2118)) ([9ec0e8d](https://github.com/bloom-housing/bloom/commit/9ec0e8d05f9570773110754e7fdaf49254d1eab8))
469
+
470
+
471
+
472
+
473
+
6
474
  ## [3.0.1-alpha.9](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@3.0.1-alpha.8...@bloom-housing/ui-components@3.0.1-alpha.9) (2021-11-12)
7
475
 
8
476
  **Note:** Version bump only for package @bloom-housing/ui-components
package/index.ts CHANGED
@@ -58,23 +58,16 @@ export * from "./src/helpers/dateToString"
58
58
  export * from "./src/helpers/formOptions"
59
59
  export * from "./src/helpers/links"
60
60
  export * from "./src/helpers/mergeDeep"
61
- export * from "./src/helpers/localeRoute"
62
- export * from "./src/helpers/nextjs"
63
61
  export * from "./src/helpers/numberOrdinal"
64
- export * from "./src/helpers/occupancyFormatting"
65
- export * from "./src/helpers/photos"
66
- export * from "./src/helpers/pdfs"
67
- export * from "./src/helpers/tableSummaries"
68
62
  export * from "./src/helpers/translator"
69
63
  export * from "./src/helpers/debounce"
70
64
  export * from "./src/helpers/validators"
71
- export * from "./src/helpers/blankApplication"
72
65
  export * from "./src/helpers/formatYesNoLabel"
73
66
  export * from "./src/helpers/getTranslationWithArguments"
74
67
  export * from "./src/helpers/preferences"
75
68
  export * from "./src/helpers/resolveObject"
76
69
  export * from "./src/helpers/useMutate"
77
- export * from "./src/helpers/unitTypes"
70
+ export * from "./src/helpers/tableSummaries"
78
71
 
79
72
  /* Icons */
80
73
  export * from "./src/icons/HeaderBadge"
@@ -126,6 +119,7 @@ export * from "./src/page_components/listing/listing_sidebar/events/OpenHouseEve
126
119
  export * from "./src/page_components/listing/listing_sidebar/events/LotteryResultsEvent"
127
120
  export * from "./src/page_components/listing/listing_sidebar/events/PublicLotteryEvent"
128
121
  export * from "./src/page_components/listing/listing_sidebar/events/EventDateSection"
122
+ export * from "./src/page_components/sign-in/FormSignIn"
129
123
 
130
124
  /* Responsive Wrappers */
131
125
  export * from "./src/sections/ResponsiveWrappers"
package/jest.config.js CHANGED
@@ -9,7 +9,6 @@ module.exports = {
9
9
  "**/*.tsx",
10
10
  "!**/*.stories.tsx",
11
11
  "<rootDir>/ui-components/src/helpers/*.ts",
12
- "!<rootDir>/ui-components/src/helpers/blankApplication.ts",
13
12
  ],
14
13
  coverageReporters: ["lcov", "text"],
15
14
  coverageDirectory: "test-coverage",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bloom-housing/ui-components",
3
- "version": "3.0.1-alpha.9",
3
+ "version": "4.0.1-alpha.6",
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,6 +69,7 @@
69
69
  "webpack": "^4.44.2"
70
70
  },
71
71
  "dependencies": {
72
+ "@bloom-housing/backend-core": "^3.0.2-alpha.6",
72
73
  "@mapbox/mapbox-sdk": "^0.13.0",
73
74
  "@types/body-scroll-lock": "^2.6.1",
74
75
  "@types/jwt-decode": "^2.2.1",
@@ -79,7 +80,7 @@
79
80
  "@types/react-dom": "^16.9.5",
80
81
  "@types/react-text-mask": "^5.4.6",
81
82
  "@types/react-transition-group": "^4.4.0",
82
- "axios": "^0.21.1",
83
+ "axios": "0.21.1",
83
84
  "body-scroll-lock": "^3.1.5",
84
85
  "jwt-decode": "^2.2.0",
85
86
  "markdown-to-jsx": "^6.11.4",
@@ -99,8 +100,5 @@
99
100
  "tailwindcss": "2.2.10",
100
101
  "typesafe-actions": "^5.1.0"
101
102
  },
102
- "peerDependencies": {
103
- "@bloom-housing/backend-core": ">= 2.0.0-pre-tailwind"
104
- },
105
- "gitHead": "22fe6a3536ece3c0860efe1b7f2f382d1f336054"
103
+ "gitHead": "f0c24508b61a6119df2bcccab367980b8061268f"
106
104
  }
@@ -19,6 +19,9 @@ export interface ButtonProps extends AppearanceProps {
19
19
  className?: string
20
20
  disabled?: boolean
21
21
  loading?: boolean
22
+ ariaLabel?: string
23
+ dataTestId?: string
24
+ "data-test-id"?: string
22
25
  }
23
26
 
24
27
  export const buttonClassesForProps = (props: Omit<ButtonProps, "onClick">) => {
@@ -67,11 +70,14 @@ const Button = (props: ButtonProps) => {
67
70
 
68
71
  return (
69
72
  <button
73
+ {...props}
70
74
  id={props.id}
71
75
  type={props.type}
72
76
  className={buttonClasses.join(" ")}
73
77
  onClick={props.onClick}
74
78
  disabled={props.disabled || props.loading}
79
+ aria-label={props.ariaLabel}
80
+ data-test-id={props.dataTestId || props["data-test-id"]}
75
81
  >
76
82
  {buttonInner(props)}
77
83
  </button>
@@ -6,6 +6,7 @@ import { isExternalLink } from "../helpers/links"
6
6
 
7
7
  export interface LinkButtonProps extends Omit<ButtonProps, "onClick"> {
8
8
  href: string
9
+ dataTestId?: string
9
10
  }
10
11
 
11
12
  const LinkButton = (props: LinkButtonProps) => {
@@ -14,13 +15,17 @@ const LinkButton = (props: LinkButtonProps) => {
14
15
 
15
16
  if (isExternalLink(props.href)) {
16
17
  return (
17
- <a href={props.href} className={buttonClasses.join(" ")}>
18
+ <a href={props.href} className={buttonClasses.join(" ")} data-test-id={props.dataTestId}>
18
19
  {buttonInner(props)}
19
20
  </a>
20
21
  )
21
22
  } else {
22
23
  return (
23
- <LinkComponent href={props.href} className={buttonClasses.join(" ")}>
24
+ <LinkComponent
25
+ href={props.href}
26
+ className={buttonClasses.join(" ")}
27
+ data-test-id={props.dataTestId}
28
+ >
24
29
  {buttonInner(props)}
25
30
  </LinkComponent>
26
31
  )
@@ -7,6 +7,7 @@ interface DashBlockProps {
7
7
  subtitle?: string
8
8
  icon: React.ReactNode
9
9
  children?: React.ReactNode
10
+ dataTestId?: string
10
11
  }
11
12
  const DashBlock = (props: DashBlockProps) => {
12
13
  const { href, title, subtitle, icon, children } = props
@@ -37,6 +38,10 @@ const DashBlock = (props: DashBlockProps) => {
37
38
  </>
38
39
  )
39
40
  }
40
- return <div className="dash-block">{wrapper}</div>
41
+ return (
42
+ <div className="dash-block" data-test-id={props.dataTestId}>
43
+ {wrapper}
44
+ </div>
45
+ )
41
46
  }
42
47
  export { DashBlock as default, DashBlock }
@@ -6,12 +6,14 @@ import { Tag } from "../text/Tag"
6
6
  import { ApplicationStatusType } from "../global/ApplicationStatusType"
7
7
  import { AppearanceStyleType } from "../global/AppearanceTypes"
8
8
  import { t } from "../helpers/translator"
9
+ import { IconTypes } from "../icons/Icon"
9
10
 
10
11
  export interface StatusBarType {
11
12
  status?: ApplicationStatusType
12
13
  content: string
13
14
  subContent?: string
14
15
  hideIcon?: boolean
16
+ iconType?: IconTypes
15
17
  }
16
18
 
17
19
  export interface ImageCardProps {
@@ -34,6 +36,7 @@ const ImageCard = (props: ImageCardProps) => {
34
36
  content={status.content}
35
37
  subContent={status.subContent}
36
38
  withIcon={!status.hideIcon}
39
+ iconType={status.iconType}
37
40
  vivid
38
41
  />
39
42
  </aside>