@bloom-housing/ui-components 5.1.1-alpha.25 → 5.1.1-alpha.27
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,25 @@
|
|
|
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
|
+
## [5.1.1-alpha.27](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@5.1.1-alpha.26...@bloom-housing/ui-components@5.1.1-alpha.27) (2022-09-16)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @bloom-housing/ui-components
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [5.1.1-alpha.26](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@5.1.1-alpha.25...@bloom-housing/ui-components@5.1.1-alpha.26) (2022-09-16)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* updated css class naming ([#483](https://github.com/bloom-housing/bloom/issues/483)) ([#3073](https://github.com/bloom-housing/bloom/issues/3073)) ([bfd68de](https://github.com/bloom-housing/bloom/commit/bfd68de406b1785676e6453afd1536159096d080))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
## [5.1.1-alpha.25](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@5.1.1-alpha.24...@bloom-housing/ui-components@5.1.1-alpha.25) (2022-09-14)
|
|
7
26
|
|
|
8
27
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bloom-housing/ui-components",
|
|
3
|
-
"version": "5.1.1-alpha.
|
|
3
|
+
"version": "5.1.1-alpha.27",
|
|
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",
|
|
@@ -110,5 +110,5 @@
|
|
|
110
110
|
"ts-jest": "^26.4.1",
|
|
111
111
|
"typesafe-actions": "^5.1.0"
|
|
112
112
|
},
|
|
113
|
-
"gitHead": "
|
|
113
|
+
"gitHead": "0d2c0044506b3d858bf077ce9d85b2ee400c4557"
|
|
114
114
|
}
|
package/src/forms/Dropzone.scss
CHANGED
package/src/forms/Dropzone.tsx
CHANGED
|
@@ -11,6 +11,7 @@ interface DropzoneProps {
|
|
|
11
11
|
accept?: string | string[]
|
|
12
12
|
progress?: number
|
|
13
13
|
className?: string
|
|
14
|
+
maxFiles?: number
|
|
14
15
|
strings?: {
|
|
15
16
|
chooseFromFolder?: string
|
|
16
17
|
dragHere?: string
|
|
@@ -24,6 +25,8 @@ const Dropzone = (props: DropzoneProps) => {
|
|
|
24
25
|
const classNames = ["field"]
|
|
25
26
|
if (props.className) classNames.push(props.className)
|
|
26
27
|
|
|
28
|
+
const maxFiles = props.maxFiles || 1
|
|
29
|
+
|
|
27
30
|
const onDrop = useCallback(
|
|
28
31
|
(acceptedFiles) => {
|
|
29
32
|
acceptedFiles.forEach((file: File) => uploader(file))
|
|
@@ -33,7 +36,8 @@ const Dropzone = (props: DropzoneProps) => {
|
|
|
33
36
|
const { getRootProps, getInputProps, isDragActive } = useDropzone({
|
|
34
37
|
onDrop,
|
|
35
38
|
accept: props.accept,
|
|
36
|
-
maxFiles: 1,
|
|
39
|
+
maxFiles: maxFiles > 1 ? maxFiles : undefined,
|
|
40
|
+
multiple: maxFiles > 1,
|
|
37
41
|
})
|
|
38
42
|
|
|
39
43
|
const dropzoneClasses = ["dropzone", "control"]
|
|
@@ -48,7 +52,7 @@ const Dropzone = (props: DropzoneProps) => {
|
|
|
48
52
|
<label htmlFor={props.id} className="label">
|
|
49
53
|
{props.label}
|
|
50
54
|
</label>
|
|
51
|
-
{props.helptext && <p className="
|
|
55
|
+
{props.helptext && <p className="dropzone__helptext">{props.helptext}</p>}
|
|
52
56
|
{props.progress && props.progress === 100 ? (
|
|
53
57
|
<></>
|
|
54
58
|
) : props.progress && props.progress > 0 ? (
|
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
}
|
|
5
5
|
|
|
6
6
|
.application-timeline {
|
|
7
|
-
.progress-
|
|
7
|
+
.progress-nav__dot-item {
|
|
8
8
|
@apply pt-0;
|
|
9
9
|
|
|
10
10
|
text-transform: unset;
|
|
11
11
|
|
|
12
12
|
.absolute {
|
|
13
|
-
margin-top: 0.
|
|
13
|
+
margin-top: 0.25rem;
|
|
14
14
|
z-index: 2;
|
|
15
15
|
margin-left: -0.4rem;
|
|
16
16
|
}
|
|
@@ -20,17 +20,17 @@
|
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
.progress-
|
|
24
|
-
.progress-
|
|
23
|
+
.progress-nav__dot-item.is-active::before,
|
|
24
|
+
.progress-nav__dot-item.is-disabled::before {
|
|
25
25
|
height: 2rem;
|
|
26
26
|
width: 2rem;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
.progress-
|
|
29
|
+
.progress-nav__dot-item.is-active::before {
|
|
30
30
|
@apply bg-green-700;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
.progress-
|
|
33
|
+
.progress-nav__dot-item::after {
|
|
34
34
|
top: 1rem;
|
|
35
35
|
}
|
|
36
36
|
}
|
|
@@ -16,7 +16,7 @@ const ApplicationTimeline = (props: ApplicationTimelineProps) => (
|
|
|
16
16
|
className="progress-nav application-timeline"
|
|
17
17
|
aria-label="Steps of processing your application"
|
|
18
18
|
>
|
|
19
|
-
<li className="progress-
|
|
19
|
+
<li className="progress-nav__dot-item is-active" aria-current="step">
|
|
20
20
|
<span className="text-white absolute">
|
|
21
21
|
<Icon symbol="check" size="base" />
|
|
22
22
|
</span>
|
|
@@ -25,13 +25,13 @@ const ApplicationTimeline = (props: ApplicationTimelineProps) => (
|
|
|
25
25
|
t("application.review.confirmation.applicationReceived")}
|
|
26
26
|
</Markdown>
|
|
27
27
|
</li>
|
|
28
|
-
<li className="progress-
|
|
28
|
+
<li className="progress-nav__dot-item is-disabled">
|
|
29
29
|
<Markdown options={{ disableParsingRawHTML: true }}>
|
|
30
30
|
{props.strings?.applicationsClosed ??
|
|
31
31
|
t("application.review.confirmation.applicationsClosed")}
|
|
32
32
|
</Markdown>
|
|
33
33
|
</li>
|
|
34
|
-
<li className="progress-
|
|
34
|
+
<li className="progress-nav__dot-item is-disabled">
|
|
35
35
|
<Markdown options={{ disableParsingRawHTML: true }}>
|
|
36
36
|
{props.strings?.applicationsRanked ??
|
|
37
37
|
t("application.review.confirmation.applicationsRanked")}
|