@bloom-housing/ui-components 4.0.1-alpha.7 → 4.0.2
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 +298 -0
- package/package.json +4 -4
- package/src/actions/Button.tsx +0 -1
- package/src/blocks/ActionBlock.scss +1 -1
- package/src/forms/DOBField.tsx +5 -3
- package/src/forms/DateField.tsx +2 -2
- package/src/forms/Dropzone.tsx +1 -1
- package/src/forms/Field.tsx +4 -5
- package/src/forms/FieldGroup.tsx +2 -2
- package/src/forms/Select.tsx +2 -2
- package/src/forms/TimeField.tsx +2 -2
- package/src/global/forms.scss +2 -3
- package/src/helpers/dateToString.ts +4 -2
- package/src/icons/Icon.tsx +2 -0
- package/src/icons/Icons.tsx +14 -0
- package/src/locales/es.json +107 -1
- package/src/locales/general.json +137 -5
- package/src/locales/vi.json +108 -2
- package/src/locales/zh.json +107 -1
- package/src/overlays/Modal.tsx +0 -1
- package/src/page_components/listing/ListingCard.tsx +31 -21
- package/src/page_components/listing/ListingsGroup.scss +42 -17
- package/src/page_components/listing/ListingsGroup.tsx +15 -17
- package/src/page_components/listing/listing_sidebar/GetApplication.tsx +1 -3
- package/src/page_components/listing/listing_sidebar/ListingUpdated.tsx +2 -2
- package/src/page_components/listing/listing_sidebar/SubmitApplication.tsx +49 -39
- package/src/page_components/listing/listing_sidebar/events/DownloadLotteryResults.tsx +2 -2
- package/src/page_components/listing/listing_sidebar/events/EventDateSection.tsx +8 -7
- package/src/page_components/listing/listing_sidebar/events/LotteryResultsEvent.tsx +3 -3
- package/src/page_components/sign-in/FormSignIn.tsx +14 -5
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,272 @@
|
|
|
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.2](https://github.com/seanmalbert/bloom/compare/@bloom-housing/ui-components@4.0.1...@bloom-housing/ui-components@4.0.2) (2022-02-09)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* 2419/adding SMC preferences ([#2482](https://github.com/seanmalbert/bloom/issues/2482)) ([bbb16c9](https://github.com/seanmalbert/bloom/commit/bbb16c934c956eb8f2684fc691322db8a6dfefef))
|
|
12
|
+
* 2468/adding dublin preferences ([#2483](https://github.com/seanmalbert/bloom/issues/2483)) ([d797ed4](https://github.com/seanmalbert/bloom/commit/d797ed4309c7bca2e577aa9adcad2350b4ef48fb))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
## [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)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### Bug Fixes
|
|
22
|
+
|
|
23
|
+
* account translations ([d85997d](https://github.com/seanmalbert/bloom/commit/d85997dfb50d47c3e4cd42ed4cae759985036c88))
|
|
24
|
+
* fix modal styles on mobile ([9cdc8e6](https://github.com/seanmalbert/bloom/commit/9cdc8e63217da345e3101866c8e9a1fd83a0d6ae))
|
|
25
|
+
* mobile notice text wrap issue ([#2308](https://github.com/seanmalbert/bloom/issues/2308)) ([8cbe3cf](https://github.com/seanmalbert/bloom/commit/8cbe3cf25b34362ef7ebceb865bf8b97a3838f20))
|
|
26
|
+
* patch issue with submit application section ([88854c5](https://github.com/seanmalbert/bloom/commit/88854c542855f2e6ac8fbb2f376faaedf9e64d46))
|
|
27
|
+
* patches translations for preferences ([#2410](https://github.com/seanmalbert/bloom/issues/2410)) ([21f517e](https://github.com/seanmalbert/bloom/commit/21f517e3f62dc5fefc8b4031d8915c8d7690677d))
|
|
28
|
+
* versioning issues ([#2311](https://github.com/seanmalbert/bloom/issues/2311)) ([c274a29](https://github.com/seanmalbert/bloom/commit/c274a2985061b389c2cae6386137a4caacd7f7c0))
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
* 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)
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
### Features
|
|
35
|
+
|
|
36
|
+
* 2165/rosefield preference updates ([#2386](https://github.com/seanmalbert/bloom/issues/2386)) ([54177cb](https://github.com/seanmalbert/bloom/commit/54177cbaf137cd8e5acb1ad9c770e659c89054d6))
|
|
37
|
+
* add SRO unit type ([a4c1403](https://github.com/seanmalbert/bloom/commit/a4c140350a84a5bacfa65fb6714aa594e406945d))
|
|
38
|
+
* adds updating open listing modal ([#2288](https://github.com/seanmalbert/bloom/issues/2288)) ([d184326](https://github.com/seanmalbert/bloom/commit/d18432610a55a5e54f567ff6157bb863ed61cb21))
|
|
39
|
+
* overrides fallback to english, tagalog support ([b79fd10](https://github.com/seanmalbert/bloom/commit/b79fd1018619f618bd9be8e870d35c1180b81dfb))
|
|
40
|
+
* postmark date time fields partners ([#2239](https://github.com/seanmalbert/bloom/issues/2239)) ([cf20b88](https://github.com/seanmalbert/bloom/commit/cf20b88cb613b815c641cad34a38908e22722a4a))
|
|
41
|
+
* simplify Waitlist component and use more flexible schema ([aa8e006](https://github.com/seanmalbert/bloom/commit/aa8e00616d886e8d57316b2362d35c0c550007c6))
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
### Reverts
|
|
45
|
+
|
|
46
|
+
* Revert "chore(release): version" ([47a2c67](https://github.com/seanmalbert/bloom/commit/47a2c67af5c7c41f360fafc6c5386476866ea403))
|
|
47
|
+
* Revert "chore: removes application program partners" ([91e22d8](https://github.com/seanmalbert/bloom/commit/91e22d891104e8d4fc024d709a6a14cec1400733))
|
|
48
|
+
* Revert "chore: removes application program display" ([740cf00](https://github.com/seanmalbert/bloom/commit/740cf00dc3a729eed037d56a8dfc5988decd2651))
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
### BREAKING CHANGES
|
|
52
|
+
|
|
53
|
+
* sign-in pages have been updated
|
|
54
|
+
* moved some helpers from ui-components to shared-helpers
|
|
55
|
+
* remove applicationDueTime field and consolidated into applicationDueDate
|
|
56
|
+
|
|
57
|
+
* chore(release): version
|
|
58
|
+
|
|
59
|
+
- @bloom-housing/backend-core@3.0.2-alpha.13
|
|
60
|
+
- @bloom-housing/shared-helpers@4.0.1-alpha.21
|
|
61
|
+
- @bloom-housing/partners@4.0.1-alpha.23
|
|
62
|
+
- @bloom-housing/public@4.0.1-alpha.22
|
|
63
|
+
- @bloom-housing/ui-components@4.0.1-alpha.21
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
## [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)
|
|
70
|
+
|
|
71
|
+
**Note:** Version bump only for package @bloom-housing/ui-components
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
## [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)
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
### Bug Fixes
|
|
81
|
+
|
|
82
|
+
* 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)
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
## [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)
|
|
89
|
+
|
|
90
|
+
**Note:** Version bump only for package @bloom-housing/ui-components
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
## [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)
|
|
97
|
+
|
|
98
|
+
**Note:** Version bump only for package @bloom-housing/ui-components
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
## [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)
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
### Features
|
|
108
|
+
|
|
109
|
+
* listing card takes optional children ([#2407](https://github.com/bloom-housing/bloom/issues/2407)) ([3c73a11](https://github.com/bloom-housing/bloom/commit/3c73a1144748fca6d50e5e0b220230eb8bf48dc6))
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
## [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)
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
### Bug Fixes
|
|
119
|
+
|
|
120
|
+
* patches translations for preferences ([#2410](https://github.com/bloom-housing/bloom/issues/2410)) ([7906e6b](https://github.com/bloom-housing/bloom/commit/7906e6bc035fab4deea79ea51833a0ef29926d45))
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
## [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)
|
|
127
|
+
|
|
128
|
+
**Note:** Version bump only for package @bloom-housing/ui-components
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
## [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)
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
### Bug Fixes
|
|
138
|
+
|
|
139
|
+
* 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))
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
### BREAKING CHANGES
|
|
143
|
+
|
|
144
|
+
* remove applicationDueTime field and consolidated into applicationDueDate
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
## [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)
|
|
151
|
+
|
|
152
|
+
**Note:** Version bump only for package @bloom-housing/ui-components
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
## [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)
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
### Bug Fixes
|
|
162
|
+
|
|
163
|
+
* use drag n drop ([a354904](https://github.com/bloom-housing/bloom/commit/a3549045d4f0da64692318f84f0336f1287ad48a))
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
## [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)
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
### Bug Fixes
|
|
173
|
+
|
|
174
|
+
* ensure dayjs parsing strings will work as expected ([eb44939](https://github.com/bloom-housing/bloom/commit/eb449395ebea3a3b4b58eb217df1e1313c722a0d))
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
## [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)
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
### Bug Fixes
|
|
184
|
+
|
|
185
|
+
* listings group expandable section css updates ([#2377](https://github.com/bloom-housing/bloom/issues/2377)) ([fba77ef](https://github.com/bloom-housing/bloom/commit/fba77efc25ccb213a0e18a8b58ddf8ada07fbb8c))
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
## [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)
|
|
192
|
+
|
|
193
|
+
**Note:** Version bump only for package @bloom-housing/ui-components
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
## [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)
|
|
200
|
+
|
|
201
|
+
**Note:** Version bump only for package @bloom-housing/ui-components
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
## [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)
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
### Bug Fixes
|
|
211
|
+
|
|
212
|
+
* 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))
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
## [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)
|
|
219
|
+
|
|
220
|
+
**Note:** Version bump only for package @bloom-housing/ui-components
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
## [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)
|
|
227
|
+
|
|
228
|
+
**Note:** Version bump only for package @bloom-housing/ui-components
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
## [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)
|
|
235
|
+
|
|
236
|
+
**Note:** Version bump only for package @bloom-housing/ui-components
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
## [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)
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
### Bug Fixes
|
|
246
|
+
|
|
247
|
+
* remove next dependency from ui-components ([#2352](https://github.com/bloom-housing/bloom/issues/2352)) ([136e8a1](https://github.com/bloom-housing/bloom/commit/136e8a1af2b4f285644caa9a18d60121f4d82566))
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
## [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)
|
|
254
|
+
|
|
255
|
+
**Note:** Version bump only for package @bloom-housing/ui-components
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
## [4.0.1-alpha.8](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@4.0.1-alpha.7...@bloom-housing/ui-components@4.0.1-alpha.8) (2022-01-03)
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
### Bug Fixes
|
|
265
|
+
|
|
266
|
+
* apply action block style to button class not component ([#2348](https://github.com/bloom-housing/bloom/issues/2348)) ([cd79ee5](https://github.com/bloom-housing/bloom/commit/cd79ee558554815f4b8421740e4850484a97ad21))
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
|
|
6
272
|
## [4.0.1-alpha.7](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@4.0.0...@bloom-housing/ui-components@4.0.1-alpha.7) (2022-01-03)
|
|
7
273
|
|
|
8
274
|
|
|
@@ -192,6 +458,38 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
192
458
|
|
|
193
459
|
|
|
194
460
|
|
|
461
|
+
## [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)
|
|
462
|
+
|
|
463
|
+
|
|
464
|
+
|
|
465
|
+
### Bug Fixes
|
|
466
|
+
|
|
467
|
+
* account translations ([d85997d](https://github.com/seanmalbert/bloom/commit/d85997dfb50d47c3e4cd42ed4cae759985036c88))
|
|
468
|
+
* fix modal styles on mobile ([9cdc8e6](https://github.com/seanmalbert/bloom/commit/9cdc8e63217da345e3101866c8e9a1fd83a0d6ae))
|
|
469
|
+
* mobile notice text wrap issue ([#2308](https://github.com/seanmalbert/bloom/issues/2308)) ([8cbe3cf](https://github.com/seanmalbert/bloom/commit/8cbe3cf25b34362ef7ebceb865bf8b97a3838f20))
|
|
470
|
+
* versioning issues ([#2311](https://github.com/seanmalbert/bloom/issues/2311)) ([c274a29](https://github.com/seanmalbert/bloom/commit/c274a2985061b389c2cae6386137a4caacd7f7c0))
|
|
471
|
+
|
|
472
|
+
|
|
473
|
+
### Features
|
|
474
|
+
|
|
475
|
+
* 2165/rosefield preference updates ([#2386](https://github.com/seanmalbert/bloom/issues/2386)) ([54177cb](https://github.com/seanmalbert/bloom/commit/54177cbaf137cd8e5acb1ad9c770e659c89054d6))
|
|
476
|
+
* add SRO unit type ([a4c1403](https://github.com/seanmalbert/bloom/commit/a4c140350a84a5bacfa65fb6714aa594e406945d))
|
|
477
|
+
* adds updating open listing modal ([#2288](https://github.com/seanmalbert/bloom/issues/2288)) ([d184326](https://github.com/seanmalbert/bloom/commit/d18432610a55a5e54f567ff6157bb863ed61cb21))
|
|
478
|
+
* overrides fallback to english, tagalog support ([b79fd10](https://github.com/seanmalbert/bloom/commit/b79fd1018619f618bd9be8e870d35c1180b81dfb))
|
|
479
|
+
* postmark date time fields partners ([#2239](https://github.com/seanmalbert/bloom/issues/2239)) ([cf20b88](https://github.com/seanmalbert/bloom/commit/cf20b88cb613b815c641cad34a38908e22722a4a))
|
|
480
|
+
* simplify Waitlist component and use more flexible schema ([aa8e006](https://github.com/seanmalbert/bloom/commit/aa8e00616d886e8d57316b2362d35c0c550007c6))
|
|
481
|
+
|
|
482
|
+
|
|
483
|
+
### Reverts
|
|
484
|
+
|
|
485
|
+
* Revert "chore(release): version" ([47a2c67](https://github.com/seanmalbert/bloom/commit/47a2c67af5c7c41f360fafc6c5386476866ea403))
|
|
486
|
+
* Revert "chore: removes application program partners" ([91e22d8](https://github.com/seanmalbert/bloom/commit/91e22d891104e8d4fc024d709a6a14cec1400733))
|
|
487
|
+
* Revert "chore: removes application program display" ([740cf00](https://github.com/seanmalbert/bloom/commit/740cf00dc3a729eed037d56a8dfc5988decd2651))
|
|
488
|
+
|
|
489
|
+
|
|
490
|
+
|
|
491
|
+
|
|
492
|
+
|
|
195
493
|
## [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)
|
|
196
494
|
|
|
197
495
|
**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.
|
|
3
|
+
"version": "4.0.2",
|
|
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": "^
|
|
72
|
+
"@bloom-housing/backend-core": "^4.0.2",
|
|
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": "
|
|
103
|
+
"gitHead": "ccf64bdf73d75e60061d6e5806b4aa994554d73c"
|
|
104
104
|
}
|
package/src/actions/Button.tsx
CHANGED
package/src/forms/DOBField.tsx
CHANGED
|
@@ -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
|
|
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
|
-
|
|
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) >
|
|
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
|
package/src/forms/DateField.tsx
CHANGED
|
@@ -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
|
|
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) >
|
|
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
|
},
|
package/src/forms/Dropzone.tsx
CHANGED
|
@@ -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
|
) : (
|
package/src/forms/Field.tsx
CHANGED
|
@@ -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:
|
|
21
|
-
onPaste?: (e:
|
|
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?:
|
|
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"
|
package/src/forms/FieldGroup.tsx
CHANGED
|
@@ -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?:
|
|
32
|
+
validation?: RegisterOptions
|
|
33
33
|
fieldGroupClassName?: string
|
|
34
34
|
fieldClassName?: string
|
|
35
35
|
fieldLabelClassName?: string
|
package/src/forms/Select.tsx
CHANGED
|
@@ -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?:
|
|
24
|
+
validation?: RegisterOptions
|
|
25
25
|
disabled?: boolean
|
|
26
26
|
options: (string | SelectOption)[]
|
|
27
27
|
keyPrefix?: string
|
package/src/forms/TimeField.tsx
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useState, useEffect } from "react"
|
|
2
|
-
import
|
|
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 =
|
|
35
|
+
const dateObj = dayjs(date)
|
|
36
36
|
|
|
37
37
|
return {
|
|
38
38
|
hours: dateObj.format("hh"),
|
package/src/global/forms.scss
CHANGED
|
@@ -93,8 +93,7 @@
|
|
|
93
93
|
input[type="checkbox"] + label,
|
|
94
94
|
input[type="radio"] + label {
|
|
95
95
|
cursor: pointer;
|
|
96
|
-
|
|
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-
|
|
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
|
|
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 =
|
|
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")
|
package/src/icons/Icon.tsx
CHANGED
|
@@ -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,
|
package/src/icons/Icons.tsx
CHANGED
|
@@ -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"}>
|