@bloom-housing/ui-components 6.0.1-alpha.3 → 6.0.1-alpha.4
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 +11 -0
- package/package.json +2 -2
- package/src/documentation/Utilities.tsx +1 -1
- package/src/forms/DOBField.tsx +1 -1
- package/src/forms/Field.tsx +1 -1
- package/src/forms/FieldGroup.tsx +1 -1
- package/src/forms/PhoneField.tsx +1 -1
- package/src/global/forms.scss +2 -2
- package/src/global/text.scss +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
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
|
+
## [6.0.1-alpha.4](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@6.0.1-alpha.3...@bloom-housing/ui-components@6.0.1-alpha.4) (2022-10-05)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* rename text style class for consistency ([#3122](https://github.com/bloom-housing/bloom/issues/3122)) ([4209072](https://github.com/bloom-housing/bloom/commit/420907230615af11fe4b096d8ba9b8ffc629c505))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [6.0.1-alpha.3](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@6.0.1-alpha.2...@bloom-housing/ui-components@6.0.1-alpha.3) (2022-10-03)
|
|
7
18
|
|
|
8
19
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bloom-housing/ui-components",
|
|
3
|
-
"version": "6.0.1-alpha.
|
|
3
|
+
"version": "6.0.1-alpha.4",
|
|
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",
|
|
@@ -113,5 +113,5 @@
|
|
|
113
113
|
"ts-jest": "^26.4.1",
|
|
114
114
|
"typesafe-actions": "^5.1.0"
|
|
115
115
|
},
|
|
116
|
-
"gitHead": "
|
|
116
|
+
"gitHead": "a28023c5df60577812f64f5f82da891d47655c58"
|
|
117
117
|
}
|
|
@@ -60,7 +60,7 @@ export const Typography = () => {
|
|
|
60
60
|
"text__caps-weighted",
|
|
61
61
|
<div className={"text__caps-weighted"}>Caps Weighted Text Style</div>,
|
|
62
62
|
],
|
|
63
|
-
["
|
|
63
|
+
["text__caps-spaced", <div className={"text__caps-spaced"}>Caps Spaced Text Style</div>],
|
|
64
64
|
]}
|
|
65
65
|
/>
|
|
66
66
|
)
|
package/src/forms/DOBField.tsx
CHANGED
package/src/forms/Field.tsx
CHANGED
|
@@ -75,7 +75,7 @@ const Field = (props: FieldProps) => {
|
|
|
75
75
|
|
|
76
76
|
const label = useMemo(() => {
|
|
77
77
|
const labelClasses = ["label"]
|
|
78
|
-
if (props.caps) labelClasses.push("
|
|
78
|
+
if (props.caps) labelClasses.push("text__caps-spaced")
|
|
79
79
|
if (props.primary) labelClasses.push("text-primary")
|
|
80
80
|
if (props.readerOnly) labelClasses.push("sr-only")
|
|
81
81
|
if (props.type === "radio") {
|
package/src/forms/FieldGroup.tsx
CHANGED
|
@@ -165,7 +165,7 @@ const FieldGroup = ({
|
|
|
165
165
|
}
|
|
166
166
|
return (
|
|
167
167
|
<div>
|
|
168
|
-
{groupLabel && <label className="
|
|
168
|
+
{groupLabel && <label className="text__caps-spaced">{groupLabel}</label>}
|
|
169
169
|
{groupNote && <p className="field-note mb-4">{groupNote}</p>}
|
|
170
170
|
|
|
171
171
|
<div className={`field ${error && "error"} ${fieldGroupClassName || ""} mb-0`}>
|
package/src/forms/PhoneField.tsx
CHANGED
|
@@ -22,7 +22,7 @@ export const PhoneField = (props: {
|
|
|
22
22
|
dataTestId?: string
|
|
23
23
|
}) => {
|
|
24
24
|
const labelClasses = ["label"]
|
|
25
|
-
if (props.caps) labelClasses.push("
|
|
25
|
+
if (props.caps) labelClasses.push("text__caps-spaced")
|
|
26
26
|
if (props.readerOnly) labelClasses.push("sr-only")
|
|
27
27
|
/**
|
|
28
28
|
* we need to handle two different use cases,
|
package/src/global/forms.scss
CHANGED
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
label.sr-only + .control,
|
|
26
|
-
label.
|
|
26
|
+
label.text__caps-spaced + .control {
|
|
27
27
|
@apply mt-0;
|
|
28
28
|
}
|
|
29
29
|
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
@apply mt-2;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
.
|
|
34
|
+
.text__caps-spaced.label + .field-note {
|
|
35
35
|
@apply mt-0;
|
|
36
36
|
}
|
|
37
37
|
|
package/src/global/text.scss
CHANGED
|
@@ -163,7 +163,7 @@ h1.title {
|
|
|
163
163
|
font-size: var(--text-light-weighted-font-size, var(--bloom-font-size-sm));
|
|
164
164
|
}
|
|
165
165
|
|
|
166
|
-
.
|
|
166
|
+
.text__caps-spaced {
|
|
167
167
|
font-family: var(--text-caps-spaced-font-family, var(--bloom-font-sans));
|
|
168
168
|
text-transform: uppercase;
|
|
169
169
|
color: var(--text-caps-spaced-color, var(--bloom-text-color));
|