@bloom-housing/ui-components 4.0.1-alpha.0 → 4.0.1-alpha.12

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,143 @@
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.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)
7
+
8
+ **Note:** Version bump only for package @bloom-housing/ui-components
9
+
10
+
11
+
12
+
13
+
14
+ ## [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)
15
+
16
+ **Note:** Version bump only for package @bloom-housing/ui-components
17
+
18
+
19
+
20
+
21
+
22
+ ## [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)
23
+
24
+
25
+ ### Bug Fixes
26
+
27
+ * remove next dependency from ui-components ([#2352](https://github.com/bloom-housing/bloom/issues/2352)) ([136e8a1](https://github.com/bloom-housing/bloom/commit/136e8a1af2b4f285644caa9a18d60121f4d82566))
28
+
29
+
30
+
31
+
32
+
33
+ ## [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)
34
+
35
+ **Note:** Version bump only for package @bloom-housing/ui-components
36
+
37
+
38
+
39
+
40
+
41
+ ## [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)
42
+
43
+
44
+ ### Bug Fixes
45
+
46
+ * 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))
47
+
48
+
49
+
50
+
51
+
52
+ ## [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)
53
+
54
+
55
+ ### Bug Fixes
56
+
57
+ * bump version ([#2349](https://github.com/bloom-housing/bloom/issues/2349)) ([b9e3ba1](https://github.com/bloom-housing/bloom/commit/b9e3ba10aebd6534090f8be231a9ea77b3c929b6))
58
+ * bump version ([#2350](https://github.com/bloom-housing/bloom/issues/2350)) ([05863f5](https://github.com/bloom-housing/bloom/commit/05863f55f3939bea4387bd7cf4eb1f34df106124))
59
+ * make numbered list breakpoint match config ([326df54](https://github.com/bloom-housing/bloom/commit/326df5404d2a967f1a36f8ba7635d4cb92d37742))
60
+ * make primary buttons primary background ([1b44435](https://github.com/bloom-housing/bloom/commit/1b44435aef22d814a0b511d7d63129d73a7b78ac))
61
+ * propagate custom icon type to ImageCard prop ([afb045d](https://github.com/bloom-housing/bloom/commit/afb045dfea0937c89bdc90886d161f0e4e27d880))
62
+ * Update hardcoded translations ([c58bf25](https://github.com/bloom-housing/bloom/commit/c58bf25bb7243ea357e208aef88e74af4a968e97)), closes [#1927](https://github.com/bloom-housing/bloom/issues/1927)
63
+ * Update translation ([f8d2604](https://github.com/bloom-housing/bloom/commit/f8d2604b5244ca9c5bc92665d056f5e58d32f978))
64
+
65
+
66
+ * 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)
67
+
68
+
69
+ ### Features
70
+
71
+ * add matched style to ApplicationStatus ([a54fb97](https://github.com/bloom-housing/bloom/commit/a54fb9769b68c9362e5f312a1021f5d0ba3d17a7))
72
+ * **backend:** add user password expiration ([107c2f0](https://github.com/bloom-housing/bloom/commit/107c2f06e2f8367b52cb7cc8f00e6d9aef751fe0))
73
+ * password reset message ([0cba6e6](https://github.com/bloom-housing/bloom/commit/0cba6e62b45622a430612672daef5c97c1e6b140))
74
+
75
+
76
+ ### BREAKING CHANGES
77
+
78
+ * sign-in pages have been updated
79
+
80
+
81
+
82
+
83
+
84
+ ## [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)
85
+
86
+
87
+ ### Bug Fixes
88
+
89
+ * bump version ([#2349](https://github.com/bloom-housing/bloom/issues/2349)) ([b9e3ba1](https://github.com/bloom-housing/bloom/commit/b9e3ba10aebd6534090f8be231a9ea77b3c929b6))
90
+ * bump version ([#2350](https://github.com/bloom-housing/bloom/issues/2350)) ([05863f5](https://github.com/bloom-housing/bloom/commit/05863f55f3939bea4387bd7cf4eb1f34df106124))
91
+ * make numbered list breakpoint match config ([326df54](https://github.com/bloom-housing/bloom/commit/326df5404d2a967f1a36f8ba7635d4cb92d37742))
92
+ * make primary buttons primary background ([1b44435](https://github.com/bloom-housing/bloom/commit/1b44435aef22d814a0b511d7d63129d73a7b78ac))
93
+ * propagate custom icon type to ImageCard prop ([afb045d](https://github.com/bloom-housing/bloom/commit/afb045dfea0937c89bdc90886d161f0e4e27d880))
94
+ * Update hardcoded translations ([c58bf25](https://github.com/bloom-housing/bloom/commit/c58bf25bb7243ea357e208aef88e74af4a968e97)), closes [#1927](https://github.com/bloom-housing/bloom/issues/1927)
95
+ * Update translation ([f8d2604](https://github.com/bloom-housing/bloom/commit/f8d2604b5244ca9c5bc92665d056f5e58d32f978))
96
+
97
+
98
+ * 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)
99
+
100
+
101
+ ### Features
102
+
103
+ * add matched style to ApplicationStatus ([a54fb97](https://github.com/bloom-housing/bloom/commit/a54fb9769b68c9362e5f312a1021f5d0ba3d17a7))
104
+ * **backend:** add user password expiration ([107c2f0](https://github.com/bloom-housing/bloom/commit/107c2f06e2f8367b52cb7cc8f00e6d9aef751fe0))
105
+ * password reset message ([0cba6e6](https://github.com/bloom-housing/bloom/commit/0cba6e62b45622a430612672daef5c97c1e6b140))
106
+
107
+
108
+ ### BREAKING CHANGES
109
+
110
+ * sign-in pages have been updated
111
+
112
+
113
+
114
+
115
+
116
+ ## [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)
117
+
118
+
119
+ ### Bug Fixes
120
+
121
+ * make numbered list breakpoint match config ([326df54](https://github.com/seanmalbert/bloom/commit/326df5404d2a967f1a36f8ba7635d4cb92d37742))
122
+ * make primary buttons primary background ([1b44435](https://github.com/seanmalbert/bloom/commit/1b44435aef22d814a0b511d7d63129d73a7b78ac))
123
+ * Update hardcoded translations ([c58bf25](https://github.com/seanmalbert/bloom/commit/c58bf25bb7243ea357e208aef88e74af4a968e97)), closes [#1927](https://github.com/seanmalbert/bloom/issues/1927)
124
+ * Update translation ([f8d2604](https://github.com/seanmalbert/bloom/commit/f8d2604b5244ca9c5bc92665d056f5e58d32f978))
125
+
126
+
127
+ * 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)
128
+
129
+
130
+ ### Features
131
+
132
+ * add matched style to ApplicationStatus ([a54fb97](https://github.com/seanmalbert/bloom/commit/a54fb9769b68c9362e5f312a1021f5d0ba3d17a7))
133
+
134
+
135
+ ### BREAKING CHANGES
136
+
137
+ * sign-in pages have been updated
138
+
139
+
140
+
141
+
142
+
6
143
  ## [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)
7
144
 
8
145
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bloom-housing/ui-components",
3
- "version": "4.0.1-alpha.0",
3
+ "version": "4.0.1-alpha.12",
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.0",
72
+ "@bloom-housing/backend-core": "^3.0.2-alpha.9",
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": "02379da7dc3cf07b4476a19d5406abddefb47164"
103
+ "gitHead": "b3dcb250d12ca53628801c25c041b2734685f5b8"
104
104
  }
@@ -18,7 +18,7 @@
18
18
  justify-items: center;
19
19
  }
20
20
  }
21
- .action-block__actions button {
21
+ .action-block__actions .button {
22
22
  @apply m-2;
23
23
  }
24
24
  .action-block__subheader {
@@ -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>
@@ -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;
@@ -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.",
@@ -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
- <Link href="/forgot-password">
95
+ <LinkComponent href="/forgot-password">
94
96
  <a>{t("authentication.signIn.forgotPassword")}</a>
95
- </Link>
97
+ </LinkComponent>
96
98
  </aside>
97
99
 
98
100
  <Field