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

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,264 @@
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.3](https://github.com/seanmalbert/bloom/compare/@bloom-housing/ui-components@4.0.2...@bloom-housing/ui-components@4.0.3) (2022-02-25)
7
+
8
+
9
+ ### Features
10
+
11
+ * adds veteran to reserved community types translations ([#2544](https://github.com/seanmalbert/bloom/issues/2544)) ([96c08bf](https://github.com/seanmalbert/bloom/commit/96c08bffd749d9c0a97d06e40808ef9d2960eaf5))
12
+
13
+
14
+
15
+
16
+
17
+ ## [4.0.2](https://github.com/seanmalbert/bloom/compare/@bloom-housing/ui-components@4.0.1...@bloom-housing/ui-components@4.0.2) (2022-02-09)
18
+
19
+
20
+ ### Features
21
+
22
+ * 2419/adding SMC preferences ([#2482](https://github.com/seanmalbert/bloom/issues/2482)) ([bbb16c9](https://github.com/seanmalbert/bloom/commit/bbb16c934c956eb8f2684fc691322db8a6dfefef))
23
+ * 2468/adding dublin preferences ([#2483](https://github.com/seanmalbert/bloom/issues/2483)) ([d797ed4](https://github.com/seanmalbert/bloom/commit/d797ed4309c7bca2e577aa9adcad2350b4ef48fb))
24
+
25
+
26
+
27
+
28
+
29
+ ## [4.0.1](https://github.com/seanmalbert/bloom/compare/@bloom-housing/ui-components@3.0.1-alpha.22...@bloom-housing/ui-components@4.0.1) (2022-02-03)
30
+
31
+
32
+ ### Bug Fixes
33
+
34
+ * account translations ([d85997d](https://github.com/seanmalbert/bloom/commit/d85997dfb50d47c3e4cd42ed4cae759985036c88))
35
+ * fix modal styles on mobile ([9cdc8e6](https://github.com/seanmalbert/bloom/commit/9cdc8e63217da345e3101866c8e9a1fd83a0d6ae))
36
+ * mobile notice text wrap issue ([#2308](https://github.com/seanmalbert/bloom/issues/2308)) ([8cbe3cf](https://github.com/seanmalbert/bloom/commit/8cbe3cf25b34362ef7ebceb865bf8b97a3838f20))
37
+ * patch issue with submit application section ([88854c5](https://github.com/seanmalbert/bloom/commit/88854c542855f2e6ac8fbb2f376faaedf9e64d46))
38
+ * patches translations for preferences ([#2410](https://github.com/seanmalbert/bloom/issues/2410)) ([21f517e](https://github.com/seanmalbert/bloom/commit/21f517e3f62dc5fefc8b4031d8915c8d7690677d))
39
+ * versioning issues ([#2311](https://github.com/seanmalbert/bloom/issues/2311)) ([c274a29](https://github.com/seanmalbert/bloom/commit/c274a2985061b389c2cae6386137a4caacd7f7c0))
40
+
41
+
42
+ * 2022-01-27 release (#2439) ([860f6af](https://github.com/seanmalbert/bloom/commit/860f6af6204903e4dcddf671d7ba54f3ec04f121)), closes [#2439](https://github.com/seanmalbert/bloom/issues/2439) [#2196](https://github.com/seanmalbert/bloom/issues/2196) [#2238](https://github.com/seanmalbert/bloom/issues/2238) [#2226](https://github.com/seanmalbert/bloom/issues/2226) [#2230](https://github.com/seanmalbert/bloom/issues/2230) [#2243](https://github.com/seanmalbert/bloom/issues/2243) [#2195](https://github.com/seanmalbert/bloom/issues/2195) [#2215](https://github.com/seanmalbert/bloom/issues/2215) [#2266](https://github.com/seanmalbert/bloom/issues/2266) [#2188](https://github.com/seanmalbert/bloom/issues/2188) [#2270](https://github.com/seanmalbert/bloom/issues/2270) [#2188](https://github.com/seanmalbert/bloom/issues/2188) [#2213](https://github.com/seanmalbert/bloom/issues/2213) [#2234](https://github.com/seanmalbert/bloom/issues/2234) [#1901](https://github.com/seanmalbert/bloom/issues/1901) [#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) [#2280](https://github.com/seanmalbert/bloom/issues/2280) [#2253](https://github.com/seanmalbert/bloom/issues/2253) [#2276](https://github.com/seanmalbert/bloom/issues/2276) [#2282](https://github.com/seanmalbert/bloom/issues/2282) [#2262](https://github.com/seanmalbert/bloom/issues/2262) [#2278](https://github.com/seanmalbert/bloom/issues/2278) [#2293](https://github.com/seanmalbert/bloom/issues/2293) [#2295](https://github.com/seanmalbert/bloom/issues/2295) [#2296](https://github.com/seanmalbert/bloom/issues/2296) [#2294](https://github.com/seanmalbert/bloom/issues/2294) [#2277](https://github.com/seanmalbert/bloom/issues/2277) [#2290](https://github.com/seanmalbert/bloom/issues/2290) [#2299](https://github.com/seanmalbert/bloom/issues/2299) [#2292](https://github.com/seanmalbert/bloom/issues/2292) [#2303](https://github.com/seanmalbert/bloom/issues/2303) [#2305](https://github.com/seanmalbert/bloom/issues/2305) [#2306](https://github.com/seanmalbert/bloom/issues/2306) [#2308](https://github.com/seanmalbert/bloom/issues/2308) [#2190](https://github.com/seanmalbert/bloom/issues/2190) [#2239](https://github.com/seanmalbert/bloom/issues/2239) [#2311](https://github.com/seanmalbert/bloom/issues/2311) [#2302](https://github.com/seanmalbert/bloom/issues/2302) [#2301](https://github.com/seanmalbert/bloom/issues/2301) [#1927](https://github.com/seanmalbert/bloom/issues/1927) [#2313](https://github.com/seanmalbert/bloom/issues/2313) [#2289](https://github.com/seanmalbert/bloom/issues/2289) [#2279](https://github.com/seanmalbert/bloom/issues/2279) [#2288](https://github.com/seanmalbert/bloom/issues/2288) [#2317](https://github.com/seanmalbert/bloom/issues/2317) [#2319](https://github.com/seanmalbert/bloom/issues/2319) [#2108](https://github.com/seanmalbert/bloom/issues/2108) [#2326](https://github.com/seanmalbert/bloom/issues/2326) [#2349](https://github.com/seanmalbert/bloom/issues/2349) [#2350](https://github.com/seanmalbert/bloom/issues/2350) [#2351](https://github.com/seanmalbert/bloom/issues/2351) [#2348](https://github.com/seanmalbert/bloom/issues/2348) [#2352](https://github.com/seanmalbert/bloom/issues/2352) [#2316](https://github.com/seanmalbert/bloom/issues/2316) [#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) [#2434](https://github.com/seanmalbert/bloom/issues/2434)
43
+
44
+
45
+ ### Features
46
+
47
+ * 2165/rosefield preference updates ([#2386](https://github.com/seanmalbert/bloom/issues/2386)) ([54177cb](https://github.com/seanmalbert/bloom/commit/54177cbaf137cd8e5acb1ad9c770e659c89054d6))
48
+ * add SRO unit type ([a4c1403](https://github.com/seanmalbert/bloom/commit/a4c140350a84a5bacfa65fb6714aa594e406945d))
49
+ * adds updating open listing modal ([#2288](https://github.com/seanmalbert/bloom/issues/2288)) ([d184326](https://github.com/seanmalbert/bloom/commit/d18432610a55a5e54f567ff6157bb863ed61cb21))
50
+ * overrides fallback to english, tagalog support ([b79fd10](https://github.com/seanmalbert/bloom/commit/b79fd1018619f618bd9be8e870d35c1180b81dfb))
51
+ * postmark date time fields partners ([#2239](https://github.com/seanmalbert/bloom/issues/2239)) ([cf20b88](https://github.com/seanmalbert/bloom/commit/cf20b88cb613b815c641cad34a38908e22722a4a))
52
+ * simplify Waitlist component and use more flexible schema ([aa8e006](https://github.com/seanmalbert/bloom/commit/aa8e00616d886e8d57316b2362d35c0c550007c6))
53
+
54
+
55
+ ### Reverts
56
+
57
+ * Revert "chore(release): version" ([47a2c67](https://github.com/seanmalbert/bloom/commit/47a2c67af5c7c41f360fafc6c5386476866ea403))
58
+ * Revert "chore: removes application program partners" ([91e22d8](https://github.com/seanmalbert/bloom/commit/91e22d891104e8d4fc024d709a6a14cec1400733))
59
+ * Revert "chore: removes application program display" ([740cf00](https://github.com/seanmalbert/bloom/commit/740cf00dc3a729eed037d56a8dfc5988decd2651))
60
+
61
+
62
+ ### BREAKING CHANGES
63
+
64
+ * sign-in pages have been updated
65
+ * moved some helpers from ui-components to shared-helpers
66
+ * remove applicationDueTime field and consolidated into applicationDueDate
67
+
68
+ * chore(release): version
69
+
70
+ - @bloom-housing/backend-core@3.0.2-alpha.13
71
+ - @bloom-housing/shared-helpers@4.0.1-alpha.21
72
+ - @bloom-housing/partners@4.0.1-alpha.23
73
+ - @bloom-housing/public@4.0.1-alpha.22
74
+ - @bloom-housing/ui-components@4.0.1-alpha.21
75
+
76
+
77
+
78
+
79
+
80
+ ## [4.0.1-alpha.28](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@4.0.1-alpha.27...@bloom-housing/ui-components@4.0.1-alpha.28) (2022-01-26)
81
+
82
+ **Note:** Version bump only for package @bloom-housing/ui-components
83
+
84
+
85
+
86
+
87
+
88
+ ## [4.0.1-alpha.27](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@4.0.1-alpha.26...@bloom-housing/ui-components@4.0.1-alpha.27) (2022-01-26)
89
+
90
+
91
+ ### Bug Fixes
92
+
93
+ * Fix infinite page width ([#2434](https://github.com/bloom-housing/bloom/issues/2434)) ([12ac594](https://github.com/bloom-housing/bloom/commit/12ac594a7aa5a04370b20b19d6fff3189c0cfeee)), closes [#2374](https://github.com/bloom-housing/bloom/issues/2374)
94
+
95
+
96
+
97
+
98
+
99
+ ## [4.0.1-alpha.26](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@4.0.1-alpha.25...@bloom-housing/ui-components@4.0.1-alpha.26) (2022-01-24)
100
+
101
+ **Note:** Version bump only for package @bloom-housing/ui-components
102
+
103
+
104
+
105
+
106
+
107
+ ## [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)
108
+
109
+ **Note:** Version bump only for package @bloom-housing/ui-components
110
+
111
+
112
+
113
+
114
+
115
+ ## [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)
116
+
117
+
118
+ ### Features
119
+
120
+ * listing card takes optional children ([#2407](https://github.com/bloom-housing/bloom/issues/2407)) ([3c73a11](https://github.com/bloom-housing/bloom/commit/3c73a1144748fca6d50e5e0b220230eb8bf48dc6))
121
+
122
+
123
+
124
+
125
+
126
+ ## [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)
127
+
128
+
129
+ ### Bug Fixes
130
+
131
+ * patches translations for preferences ([#2410](https://github.com/bloom-housing/bloom/issues/2410)) ([7906e6b](https://github.com/bloom-housing/bloom/commit/7906e6bc035fab4deea79ea51833a0ef29926d45))
132
+
133
+
134
+
135
+
136
+
137
+ ## [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)
138
+
139
+ **Note:** Version bump only for package @bloom-housing/ui-components
140
+
141
+
142
+
143
+
144
+
145
+ ## [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)
146
+
147
+
148
+ ### Bug Fixes
149
+
150
+ * dates showing as invalid in send by mail section ([#2362](https://github.com/bloom-housing/bloom/issues/2362)) ([3567388](https://github.com/bloom-housing/bloom/commit/35673882d87e2b524b2c94d1fb7b40c9d777f0a3))
151
+
152
+
153
+ ### BREAKING CHANGES
154
+
155
+ * remove applicationDueTime field and consolidated into applicationDueDate
156
+
157
+
158
+
159
+
160
+
161
+ ## [4.0.1-alpha.20](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@4.0.1-alpha.19...@bloom-housing/ui-components@4.0.1-alpha.20) (2022-01-13)
162
+
163
+ **Note:** Version bump only for package @bloom-housing/ui-components
164
+
165
+
166
+
167
+
168
+
169
+ ## [4.0.1-alpha.19](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@4.0.1-alpha.18...@bloom-housing/ui-components@4.0.1-alpha.19) (2022-01-11)
170
+
171
+
172
+ ### Bug Fixes
173
+
174
+ * use drag n drop ([a354904](https://github.com/bloom-housing/bloom/commit/a3549045d4f0da64692318f84f0336f1287ad48a))
175
+
176
+
177
+
178
+
179
+
180
+ ## [4.0.1-alpha.18](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@4.0.1-alpha.17...@bloom-housing/ui-components@4.0.1-alpha.18) (2022-01-08)
181
+
182
+
183
+ ### Bug Fixes
184
+
185
+ * ensure dayjs parsing strings will work as expected ([eb44939](https://github.com/bloom-housing/bloom/commit/eb449395ebea3a3b4b58eb217df1e1313c722a0d))
186
+
187
+
188
+
189
+
190
+
191
+ ## [4.0.1-alpha.17](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@4.0.1-alpha.16...@bloom-housing/ui-components@4.0.1-alpha.17) (2022-01-07)
192
+
193
+
194
+ ### Bug Fixes
195
+
196
+ * listings group expandable section css updates ([#2377](https://github.com/bloom-housing/bloom/issues/2377)) ([fba77ef](https://github.com/bloom-housing/bloom/commit/fba77efc25ccb213a0e18a8b58ddf8ada07fbb8c))
197
+
198
+
199
+
200
+
201
+
202
+ ## [4.0.1-alpha.16](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@4.0.1-alpha.15...@bloom-housing/ui-components@4.0.1-alpha.16) (2022-01-07)
203
+
204
+ **Note:** Version bump only for package @bloom-housing/ui-components
205
+
206
+
207
+
208
+
209
+
210
+ ## [4.0.1-alpha.15](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@4.0.1-alpha.14...@bloom-housing/ui-components@4.0.1-alpha.15) (2022-01-07)
211
+
212
+ **Note:** Version bump only for package @bloom-housing/ui-components
213
+
214
+
215
+
216
+
217
+
218
+ ## [4.0.1-alpha.14](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@4.0.1-alpha.13...@bloom-housing/ui-components@4.0.1-alpha.14) (2022-01-04)
219
+
220
+
221
+ ### Bug Fixes
222
+
223
+ * move type declarations out of shared-helpers ([#2356](https://github.com/bloom-housing/bloom/issues/2356)) ([2fd4a87](https://github.com/bloom-housing/bloom/commit/2fd4a8743414df113ec0f653c143fd16e8c57c55))
224
+
225
+
226
+
227
+
228
+
229
+ ## [4.0.1-alpha.13](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@4.0.1-alpha.12...@bloom-housing/ui-components@4.0.1-alpha.13) (2022-01-04)
230
+
231
+ **Note:** Version bump only for package @bloom-housing/ui-components
232
+
233
+
234
+
235
+
236
+
237
+ ## [4.0.1-alpha.12](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@4.0.1-alpha.11...@bloom-housing/ui-components@4.0.1-alpha.12) (2022-01-04)
238
+
239
+ **Note:** Version bump only for package @bloom-housing/ui-components
240
+
241
+
242
+
243
+
244
+
245
+ ## [4.0.1-alpha.11](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@4.0.1-alpha.10...@bloom-housing/ui-components@4.0.1-alpha.11) (2022-01-03)
246
+
247
+ **Note:** Version bump only for package @bloom-housing/ui-components
248
+
249
+
250
+
251
+
252
+
253
+ ## [4.0.1-alpha.10](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@4.0.1-alpha.9...@bloom-housing/ui-components@4.0.1-alpha.10) (2022-01-03)
254
+
255
+
256
+ ### Bug Fixes
257
+
258
+ * remove next dependency from ui-components ([#2352](https://github.com/bloom-housing/bloom/issues/2352)) ([136e8a1](https://github.com/bloom-housing/bloom/commit/136e8a1af2b4f285644caa9a18d60121f4d82566))
259
+
260
+
261
+
262
+
263
+
6
264
  ## [4.0.1-alpha.9](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@4.0.1-alpha.8...@bloom-housing/ui-components@4.0.1-alpha.9) (2022-01-03)
7
265
 
8
266
  **Note:** Version bump only for package @bloom-housing/ui-components
@@ -211,6 +469,38 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
211
469
 
212
470
 
213
471
 
472
+ ## [3.0.1](https://github.com/seanmalbert/bloom/compare/@bloom-housing/ui-components@3.0.1-alpha.22...@bloom-housing/ui-components@3.0.1) (2022-01-13)
473
+
474
+
475
+
476
+ ### Bug Fixes
477
+
478
+ * account translations ([d85997d](https://github.com/seanmalbert/bloom/commit/d85997dfb50d47c3e4cd42ed4cae759985036c88))
479
+ * fix modal styles on mobile ([9cdc8e6](https://github.com/seanmalbert/bloom/commit/9cdc8e63217da345e3101866c8e9a1fd83a0d6ae))
480
+ * mobile notice text wrap issue ([#2308](https://github.com/seanmalbert/bloom/issues/2308)) ([8cbe3cf](https://github.com/seanmalbert/bloom/commit/8cbe3cf25b34362ef7ebceb865bf8b97a3838f20))
481
+ * versioning issues ([#2311](https://github.com/seanmalbert/bloom/issues/2311)) ([c274a29](https://github.com/seanmalbert/bloom/commit/c274a2985061b389c2cae6386137a4caacd7f7c0))
482
+
483
+
484
+ ### Features
485
+
486
+ * 2165/rosefield preference updates ([#2386](https://github.com/seanmalbert/bloom/issues/2386)) ([54177cb](https://github.com/seanmalbert/bloom/commit/54177cbaf137cd8e5acb1ad9c770e659c89054d6))
487
+ * add SRO unit type ([a4c1403](https://github.com/seanmalbert/bloom/commit/a4c140350a84a5bacfa65fb6714aa594e406945d))
488
+ * adds updating open listing modal ([#2288](https://github.com/seanmalbert/bloom/issues/2288)) ([d184326](https://github.com/seanmalbert/bloom/commit/d18432610a55a5e54f567ff6157bb863ed61cb21))
489
+ * overrides fallback to english, tagalog support ([b79fd10](https://github.com/seanmalbert/bloom/commit/b79fd1018619f618bd9be8e870d35c1180b81dfb))
490
+ * postmark date time fields partners ([#2239](https://github.com/seanmalbert/bloom/issues/2239)) ([cf20b88](https://github.com/seanmalbert/bloom/commit/cf20b88cb613b815c641cad34a38908e22722a4a))
491
+ * simplify Waitlist component and use more flexible schema ([aa8e006](https://github.com/seanmalbert/bloom/commit/aa8e00616d886e8d57316b2362d35c0c550007c6))
492
+
493
+
494
+ ### Reverts
495
+
496
+ * Revert "chore(release): version" ([47a2c67](https://github.com/seanmalbert/bloom/commit/47a2c67af5c7c41f360fafc6c5386476866ea403))
497
+ * Revert "chore: removes application program partners" ([91e22d8](https://github.com/seanmalbert/bloom/commit/91e22d891104e8d4fc024d709a6a14cec1400733))
498
+ * Revert "chore: removes application program display" ([740cf00](https://github.com/seanmalbert/bloom/commit/740cf00dc3a729eed037d56a8dfc5988decd2651))
499
+
500
+
501
+
502
+
503
+
214
504
  ## [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)
215
505
 
216
506
  **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.9",
3
+ "version": "4.0.3",
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.8",
72
+ "@bloom-housing/backend-core": "^4.0.3",
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",
@@ -82,9 +82,9 @@
82
82
  "@types/react-transition-group": "^4.4.0",
83
83
  "axios": "0.21.1",
84
84
  "body-scroll-lock": "^3.1.5",
85
+ "dayjs": "^1.10.7",
85
86
  "jwt-decode": "^2.2.0",
86
87
  "markdown-to-jsx": "^6.11.4",
87
- "moment": "^2.29.1",
88
88
  "nanoid": "^3.1.12",
89
89
  "react": "^17.0.2",
90
90
  "react-accessible-accordion": "^3.3.5",
@@ -100,5 +100,5 @@
100
100
  "tailwindcss": "2.2.10",
101
101
  "typesafe-actions": "^5.1.0"
102
102
  },
103
- "gitHead": "02fbbfd9a1a781db8dbaa3221c0d2c212e912d2f"
103
+ "gitHead": "4f27ebe4620ef6b6b9f5e82771a6a3d0ba303391"
104
104
  }
@@ -70,7 +70,6 @@ const Button = (props: ButtonProps) => {
70
70
 
71
71
  return (
72
72
  <button
73
- {...props}
74
73
  id={props.id}
75
74
  type={props.type}
76
75
  className={buttonClasses.join(" ")}
@@ -1,7 +1,9 @@
1
1
  import React from "react"
2
2
  import { t } from "../helpers/translator"
3
3
  import { Field } from "./Field"
4
- import moment from "moment"
4
+ import dayjs from "dayjs"
5
+ import customParseFormat from "dayjs/plugin/customParseFormat"
6
+ dayjs.extend(customParseFormat)
5
7
  import { UseFormMethods, FieldError, DeepMap } from "react-hook-form"
6
8
 
7
9
  export type DOBFieldValues = {
@@ -39,7 +41,7 @@ const DOBField = (props: DOBFieldProps) => {
39
41
  const validateAge = (value: string) => {
40
42
  return (
41
43
  parseInt(value) > 1900 &&
42
- moment(`${birthMonth}/${birthDay}/${value}`, "MM/DD/YYYY") < moment().subtract(18, "years")
44
+ dayjs(`${birthMonth}/${birthDay}/${value}`, "MM/DD/YYYY") < dayjs().subtract(18, "years")
43
45
  )
44
46
  }
45
47
 
@@ -108,7 +110,7 @@ const DOBField = (props: DOBFieldProps) => {
108
110
  validate: {
109
111
  yearRange: (value: string) => {
110
112
  if (props.required && value && parseInt(value) < 1900) return false
111
- if (props.required && value && parseInt(value) > moment().year() + 10) return false
113
+ if (props.required && value && parseInt(value) > dayjs().year() + 10) return false
112
114
  if (!props.required && !value?.length) return true
113
115
  if (value?.length && validateAge18) return validateAge(value)
114
116
  return true
@@ -1,7 +1,7 @@
1
1
  import React from "react"
2
2
  import { t } from "../helpers/translator"
3
3
  import { Field } from "./Field"
4
- import moment from "moment"
4
+ import dayjs from "dayjs"
5
5
  import { UseFormMethods, FieldError, DeepMap } from "react-hook-form"
6
6
 
7
7
  export type DateFieldValues = {
@@ -97,7 +97,7 @@ const DateField = (props: DateFieldProps) => {
97
97
  validate: {
98
98
  yearRange: (value: string) => {
99
99
  if (props.required && value && parseInt(value) < 1900) return false
100
- if (props.required && value && parseInt(value) > moment().year() + 10) return false
100
+ if (props.required && value && parseInt(value) > dayjs().year() + 10) return false
101
101
  if (!props.required && !value?.length) return true
102
102
  return true
103
103
  },
@@ -49,7 +49,7 @@ const Dropzone = (props: DropzoneProps) => {
49
49
  <progress className="dropzone__progress" max="100" value={props.progress}></progress>
50
50
  ) : (
51
51
  <div className={dropzoneClasses.join(" ")} {...getRootProps()}>
52
- <input id={props.id} {...getInputProps()} />
52
+ <input id={props.id} {...getInputProps()} data-test-id={"dropzone-input"} />
53
53
  {isDragActive ? (
54
54
  <p>{t("t.dropFilesHere")}</p>
55
55
  ) : (
@@ -1,6 +1,6 @@
1
1
  import React, { useMemo } from "react"
2
2
  import { ErrorMessage } from "../notifications/ErrorMessage"
3
- import { UseFormMethods } from "react-hook-form"
3
+ import { UseFormMethods, RegisterOptions } from "react-hook-form"
4
4
 
5
5
  export interface FieldProps {
6
6
  error?: boolean
@@ -17,12 +17,12 @@ export interface FieldProps {
17
17
  subNote?: string
18
18
  label?: string
19
19
  defaultValue?: string | number
20
- onDrop?: (e: any) => boolean
21
- onPaste?: (e: any) => boolean
20
+ onDrop?: (e: React.DragEvent<HTMLElement>) => boolean
21
+ onPaste?: (e: React.ClipboardEvent) => boolean
22
22
  onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void
23
23
  placeholder?: string
24
24
  register?: UseFormMethods["register"]
25
- validation?: Record<string, any>
25
+ validation?: RegisterOptions
26
26
  disabled?: boolean
27
27
  prepend?: string
28
28
  inputProps?: Record<string, unknown>
@@ -95,7 +95,6 @@ const Field = (props: FieldProps) => {
95
95
  <div className={controlClasses.join(" ")}>
96
96
  {props.prepend && <span className="prepend">{props.prepend}</span>}
97
97
  <input
98
- {...props}
99
98
  aria-describedby={props.describedBy ? props.describedBy : `${idOrName}`}
100
99
  aria-invalid={!!props.error || false}
101
100
  className="input"
@@ -1,7 +1,7 @@
1
1
  import React, { useState, useEffect } from "react"
2
2
  import { ExpandableContent } from "../actions/ExpandableContent"
3
3
  import { ErrorMessage } from "../notifications/ErrorMessage"
4
- import { UseFormMethods } from "react-hook-form"
4
+ import { UseFormMethods, RegisterOptions } from "react-hook-form"
5
5
  import { Field } from "./Field"
6
6
  import { t } from "../helpers/translator"
7
7
 
@@ -29,7 +29,7 @@ interface FieldGroupProps {
29
29
  groupNote?: string
30
30
  groupSubNote?: string
31
31
  register: UseFormMethods["register"]
32
- validation?: Record<string, unknown>
32
+ validation?: RegisterOptions
33
33
  fieldGroupClassName?: string
34
34
  fieldClassName?: string
35
35
  fieldLabelClassName?: string
@@ -1,7 +1,7 @@
1
1
  import React from "react"
2
2
  import { ErrorMessage } from "../notifications/ErrorMessage"
3
3
  import { FormOptions } from "../helpers/formOptions"
4
- import { UseFormMethods } from "react-hook-form"
4
+ import { UseFormMethods, RegisterOptions } from "react-hook-form"
5
5
 
6
6
  export interface SelectOption {
7
7
  value: string
@@ -21,7 +21,7 @@ interface SelectProps {
21
21
  defaultValue?: string
22
22
  placeholder?: string
23
23
  register?: UseFormMethods["register"]
24
- validation?: Record<string, unknown>
24
+ validation?: RegisterOptions
25
25
  disabled?: boolean
26
26
  options: (string | SelectOption)[]
27
27
  keyPrefix?: string
@@ -1,5 +1,5 @@
1
1
  import React, { useState, useEffect } from "react"
2
- import moment from "moment"
2
+ import dayjs from "dayjs"
3
3
  import { t } from "../helpers/translator"
4
4
  import { ErrorMessage } from "../notifications/ErrorMessage"
5
5
  import { Field } from "./Field"
@@ -32,7 +32,7 @@ export type TimeFieldProps = {
32
32
  }
33
33
 
34
34
  export const formatDateToTimeField = (date: Date) => {
35
- const dateObj = moment(date)
35
+ const dateObj = dayjs(date)
36
36
 
37
37
  return {
38
38
  hours: dateObj.format("hh"),
@@ -93,8 +93,7 @@
93
93
  input[type="checkbox"] + label,
94
94
  input[type="radio"] + label {
95
95
  cursor: pointer;
96
- // margin-bottom: 0.5em;
97
- margin-left: 2rem;
96
+ margin-inline-start: 2rem;
98
97
  display: block;
99
98
  text-indent: -2rem;
100
99
  }
@@ -108,7 +107,7 @@
108
107
  display: inline-block;
109
108
  height: 1.25rem;
110
109
  line-height: 0.8;
111
- margin-right: 0.8em;
110
+ margin-inline-end: 0.8em;
112
111
  text-indent: 0.15em;
113
112
  vertical-align: 0.2em;
114
113
  width: 1.25rem;
@@ -1,8 +1,10 @@
1
- import moment from "moment"
1
+ import dayjs from "dayjs"
2
+ import utc from "dayjs/plugin/utc"
3
+ dayjs.extend(utc)
2
4
 
3
5
  export const dateToString = (submissionDate: Date) => {
4
6
  if (!submissionDate) return null
5
- const formattedSubmissionDate = moment(new Date(submissionDate)).utc()
7
+ const formattedSubmissionDate = dayjs(new Date(submissionDate)).utc()
6
8
  const month = formattedSubmissionDate.format("MMMM")
7
9
  const day = formattedSubmissionDate.format("DD")
8
10
  const year = formattedSubmissionDate.format("YYYY")
@@ -17,6 +17,7 @@ import {
17
17
  CloseRound,
18
18
  CloseSmall,
19
19
  Cross,
20
+ DoubleHouse,
20
21
  Down,
21
22
  Download,
22
23
  Draggable,
@@ -75,6 +76,7 @@ const IconMap = {
75
76
  closeRound: CloseRound,
76
77
  closeSmall: CloseSmall,
77
78
  cross: Cross,
79
+ doubleHouse: DoubleHouse,
78
80
  down: Down,
79
81
  download: Download,
80
82
  draggable: Draggable,
@@ -243,6 +243,20 @@ export const Cross = (props: IconProps) => {
243
243
  )
244
244
  }
245
245
 
246
+ export const DoubleHouse = (props: IconProps) => {
247
+ return (
248
+ <svg viewBox="0 0 32 32" fill={props.fill ?? "currentColor"}>
249
+ <path d="M8.68 24.053c0.173 0 0.347-0.080 0.48-0.213 0.12-0.12 0.187-0.28 0.187-0.467 0-0.16-0.067-0.333-0.187-0.469-0.253-0.251-0.707-0.24-0.947 0-0.12 0.122-0.2 0.294-0.2 0.469 0 0.187 0.080 0.347 0.2 0.478 0.12 0.122 0.293 0.202 0.467 0.202z"></path>
250
+ <path d="M18.019 22.714h1.384c0.368 0 0.667-0.299 0.667-0.667s-0.299-0.667-0.667-0.667h-1.384c-0.368 0-0.667 0.299-0.667 0.667s0.298 0.667 0.667 0.667z"></path>
251
+ <path d="M18.019 18.714h1.384c0.368 0 0.667-0.299 0.667-0.667s-0.299-0.667-0.667-0.667h-1.384c-0.368 0-0.667 0.299-0.667 0.667s0.298 0.667 0.667 0.667z"></path>
252
+ <path d="M23.354 22.714h1.333c0.368 0 0.667-0.299 0.667-0.667s-0.299-0.667-0.667-0.667h-1.333c-0.368 0-0.667 0.299-0.667 0.667s0.298 0.667 0.667 0.667z"></path>
253
+ <path d="M23.354 26.715h1.333c0.368 0 0.667-0.299 0.667-0.667s-0.299-0.667-0.667-0.667h-1.333c-0.368 0-0.667 0.299-0.667 0.667s0.298 0.667 0.667 0.667z"></path>
254
+ <path d="M23.354 18.714h1.333c0.368 0 0.667-0.299 0.667-0.667s-0.299-0.667-0.667-0.667h-1.333c-0.368 0-0.667 0.299-0.667 0.667s0.298 0.667 0.667 0.667z"></path>
255
+ <path d="M31.51 15.406l-19.499-7.253c-0.342-0.128-0.728 0.046-0.858 0.392s0.048 0.73 0.394 0.858l1.805 0.672v6.784l-10.166 2.629c0 0 0 0-0.002 0l-2.618 0.675c-0.357 0.091-0.571 0.456-0.478 0.813 0.077 0.301 0.347 0.501 0.643 0.501 0.056 0 0.11-0.006 0.166-0.021l1.784-0.461v10.387c0 0.368 0.299 0.667 0.667 0.667h25.333c0.368 0 0.667-0.299 0.667-0.667v-15.354l1.693 0.629c0.077 0.027 0.157 0.042 0.234 0.042 0.27 0 0.525-0.166 0.626-0.435 0.128-0.344-0.045-0.728-0.39-0.856zM4.019 20.65l9.333-2.414v12.478h-1.333v-4.667c0-0.368-0.299-0.667-0.667-0.667h-5.333c-0.368 0-0.667 0.299-0.667 0.667v4.667h-1.333v-10.064zM6.685 30.715v-4h4v4h-4zM18.686 30.715v-4h1.333v4h-1.333zM28.019 30.715h-6.667v-4.667c0-0.368-0.299-0.667-0.667-0.667h-2.667c-0.368 0-0.667 0.299-0.667 0.667v4.667h-2.667v-20.144l13.333 4.962v15.182z"></path>
256
+ </svg>
257
+ )
258
+ }
259
+
246
260
  export const Down = (props: IconProps) => {
247
261
  return (
248
262
  <svg viewBox={"0 0 32 32"} fill={props.fill ?? "currentColor"}>