@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 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",
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": "4e7935694f2d0551656828a64d487d2419c29ef4"
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
- ["text_caps-spaced", <div className={"text_caps-spaced"}>Caps Spaced Text Style</div>],
63
+ ["text__caps-spaced", <div className={"text__caps-spaced"}>Caps Spaced Text Style</div>],
64
64
  ]}
65
65
  />
66
66
  )
@@ -56,7 +56,7 @@ const DOBField = (props: DOBFieldProps) => {
56
56
  )
57
57
  }
58
58
 
59
- const labelClasses = ["text_caps-spaced"]
59
+ const labelClasses = ["text__caps-spaced"]
60
60
  if (props.readerOnly) labelClasses.push("sr-only")
61
61
  if (hasError) labelClasses.push("text-alert")
62
62
 
@@ -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("text_caps-spaced")
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") {
@@ -165,7 +165,7 @@ const FieldGroup = ({
165
165
  }
166
166
  return (
167
167
  <div>
168
- {groupLabel && <label className="text_caps-spaced">{groupLabel}</label>}
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`}>
@@ -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("text_caps-spaced")
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,
@@ -23,7 +23,7 @@
23
23
  }
24
24
 
25
25
  label.sr-only + .control,
26
- label.text_caps-spaced + .control {
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
- .text_caps-spaced.label + .field-note {
34
+ .text__caps-spaced.label + .field-note {
35
35
  @apply mt-0;
36
36
  }
37
37
 
@@ -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
- .text_caps-spaced {
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));