@bloom-housing/ui-components 4.0.1-alpha.1 → 4.0.1-alpha.10
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,100 @@
|
|
|
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.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)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* remove next dependency from ui-components ([#2352](https://github.com/bloom-housing/bloom/issues/2352)) ([136e8a1](https://github.com/bloom-housing/bloom/commit/136e8a1af2b4f285644caa9a18d60121f4d82566))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [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)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @bloom-housing/ui-components
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
## [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)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### Bug Fixes
|
|
29
|
+
|
|
30
|
+
* 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))
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
## [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)
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
### Bug Fixes
|
|
40
|
+
|
|
41
|
+
* bump version ([#2349](https://github.com/bloom-housing/bloom/issues/2349)) ([b9e3ba1](https://github.com/bloom-housing/bloom/commit/b9e3ba10aebd6534090f8be231a9ea77b3c929b6))
|
|
42
|
+
* bump version ([#2350](https://github.com/bloom-housing/bloom/issues/2350)) ([05863f5](https://github.com/bloom-housing/bloom/commit/05863f55f3939bea4387bd7cf4eb1f34df106124))
|
|
43
|
+
* make numbered list breakpoint match config ([326df54](https://github.com/bloom-housing/bloom/commit/326df5404d2a967f1a36f8ba7635d4cb92d37742))
|
|
44
|
+
* make primary buttons primary background ([1b44435](https://github.com/bloom-housing/bloom/commit/1b44435aef22d814a0b511d7d63129d73a7b78ac))
|
|
45
|
+
* propagate custom icon type to ImageCard prop ([afb045d](https://github.com/bloom-housing/bloom/commit/afb045dfea0937c89bdc90886d161f0e4e27d880))
|
|
46
|
+
* Update hardcoded translations ([c58bf25](https://github.com/bloom-housing/bloom/commit/c58bf25bb7243ea357e208aef88e74af4a968e97)), closes [#1927](https://github.com/bloom-housing/bloom/issues/1927)
|
|
47
|
+
* Update translation ([f8d2604](https://github.com/bloom-housing/bloom/commit/f8d2604b5244ca9c5bc92665d056f5e58d32f978))
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
* 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)
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
### Features
|
|
54
|
+
|
|
55
|
+
* add matched style to ApplicationStatus ([a54fb97](https://github.com/bloom-housing/bloom/commit/a54fb9769b68c9362e5f312a1021f5d0ba3d17a7))
|
|
56
|
+
* **backend:** add user password expiration ([107c2f0](https://github.com/bloom-housing/bloom/commit/107c2f06e2f8367b52cb7cc8f00e6d9aef751fe0))
|
|
57
|
+
* password reset message ([0cba6e6](https://github.com/bloom-housing/bloom/commit/0cba6e62b45622a430612672daef5c97c1e6b140))
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
### BREAKING CHANGES
|
|
61
|
+
|
|
62
|
+
* sign-in pages have been updated
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
## [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)
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
### Bug Fixes
|
|
72
|
+
|
|
73
|
+
* bump version ([#2349](https://github.com/bloom-housing/bloom/issues/2349)) ([b9e3ba1](https://github.com/bloom-housing/bloom/commit/b9e3ba10aebd6534090f8be231a9ea77b3c929b6))
|
|
74
|
+
* bump version ([#2350](https://github.com/bloom-housing/bloom/issues/2350)) ([05863f5](https://github.com/bloom-housing/bloom/commit/05863f55f3939bea4387bd7cf4eb1f34df106124))
|
|
75
|
+
* make numbered list breakpoint match config ([326df54](https://github.com/bloom-housing/bloom/commit/326df5404d2a967f1a36f8ba7635d4cb92d37742))
|
|
76
|
+
* make primary buttons primary background ([1b44435](https://github.com/bloom-housing/bloom/commit/1b44435aef22d814a0b511d7d63129d73a7b78ac))
|
|
77
|
+
* propagate custom icon type to ImageCard prop ([afb045d](https://github.com/bloom-housing/bloom/commit/afb045dfea0937c89bdc90886d161f0e4e27d880))
|
|
78
|
+
* Update hardcoded translations ([c58bf25](https://github.com/bloom-housing/bloom/commit/c58bf25bb7243ea357e208aef88e74af4a968e97)), closes [#1927](https://github.com/bloom-housing/bloom/issues/1927)
|
|
79
|
+
* Update translation ([f8d2604](https://github.com/bloom-housing/bloom/commit/f8d2604b5244ca9c5bc92665d056f5e58d32f978))
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
* 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)
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
### Features
|
|
86
|
+
|
|
87
|
+
* add matched style to ApplicationStatus ([a54fb97](https://github.com/bloom-housing/bloom/commit/a54fb9769b68c9362e5f312a1021f5d0ba3d17a7))
|
|
88
|
+
* **backend:** add user password expiration ([107c2f0](https://github.com/bloom-housing/bloom/commit/107c2f06e2f8367b52cb7cc8f00e6d9aef751fe0))
|
|
89
|
+
* password reset message ([0cba6e6](https://github.com/bloom-housing/bloom/commit/0cba6e62b45622a430612672daef5c97c1e6b140))
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
### BREAKING CHANGES
|
|
93
|
+
|
|
94
|
+
* sign-in pages have been updated
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
|
|
6
100
|
## [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)
|
|
7
101
|
|
|
8
102
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bloom-housing/ui-components",
|
|
3
|
-
"version": "4.0.1-alpha.
|
|
3
|
+
"version": "4.0.1-alpha.10",
|
|
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.
|
|
72
|
+
"@bloom-housing/backend-core": "^3.0.2-alpha.8",
|
|
73
73
|
"@mapbox/mapbox-sdk": "^0.13.0",
|
|
74
74
|
"@types/body-scroll-lock": "^2.6.1",
|
|
75
75
|
"@types/jwt-decode": "^2.2.1",
|
|
@@ -100,5 +100,5 @@
|
|
|
100
100
|
"tailwindcss": "2.2.10",
|
|
101
101
|
"typesafe-actions": "^5.1.0"
|
|
102
102
|
},
|
|
103
|
-
"gitHead": "
|
|
103
|
+
"gitHead": "7fa438b09d06c49295843dc77e731f3e549e07cf"
|
|
104
104
|
}
|
package/src/blocks/ImageCard.tsx
CHANGED
|
@@ -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>
|
package/src/locales/general.json
CHANGED
|
@@ -832,6 +832,7 @@
|
|
|
832
832
|
"errorGenericMessage": "Please try again, or contact support for help.",
|
|
833
833
|
"forgotPassword": "Forgot password?",
|
|
834
834
|
"success": "Welcome back, %{name}!",
|
|
835
|
+
"passwordOutdated": "Your password has expired. Please reset your password.",
|
|
835
836
|
"accountHasBeenLocked": "For security reasons, this account has been locked.",
|
|
836
837
|
"youHaveToWait": "You’ll have to wait 30 minutes since the last failed attempt before trying again.",
|
|
837
838
|
"enterValidEmailAndPassword": "Please enter a valid email and password.",
|
package/src/overlays/Modal.tsx
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React from "react"
|
|
2
2
|
import "./Modal.scss"
|
|
3
3
|
import { Icon } from "../icons/Icon"
|
|
4
|
-
import { GridCell, GridSection } from "../sections/GridSection"
|
|
5
4
|
import { Overlay, OverlayProps } from "./Overlay"
|
|
6
5
|
|
|
7
6
|
export interface ModalProps extends Omit<OverlayProps, "children"> {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import React from "react"
|
|
2
|
-
import Link from "next/link"
|
|
1
|
+
import React, { useContext } from "react"
|
|
3
2
|
import {
|
|
4
3
|
AppearanceStyleType,
|
|
5
4
|
Button,
|
|
@@ -17,6 +16,8 @@ import {
|
|
|
17
16
|
import type { UseFormMethods } from "react-hook-form"
|
|
18
17
|
import type { NetworkErrorValue, NetworkErrorReset } from "@bloom-housing/shared-helpers"
|
|
19
18
|
|
|
19
|
+
import { NavigationContext } from "../../config/NavigationContext"
|
|
20
|
+
|
|
20
21
|
export type FormSignInProps = {
|
|
21
22
|
control: FormSignInControl
|
|
22
23
|
onSubmit: (data: FormSignInValues) => void
|
|
@@ -49,6 +50,7 @@ const FormSignIn = ({
|
|
|
49
50
|
const onError = () => {
|
|
50
51
|
window.scrollTo(0, 0)
|
|
51
52
|
}
|
|
53
|
+
const { LinkComponent } = useContext(NavigationContext)
|
|
52
54
|
|
|
53
55
|
return (
|
|
54
56
|
<FormCard>
|
|
@@ -90,9 +92,9 @@ const FormSignIn = ({
|
|
|
90
92
|
/>
|
|
91
93
|
|
|
92
94
|
<aside className="float-right text-tiny font-semibold">
|
|
93
|
-
<
|
|
95
|
+
<LinkComponent href="/forgot-password">
|
|
94
96
|
<a>{t("authentication.signIn.forgotPassword")}</a>
|
|
95
|
-
</
|
|
97
|
+
</LinkComponent>
|
|
96
98
|
</aside>
|
|
97
99
|
|
|
98
100
|
<Field
|