@bloom-housing/ui-components 2.0.0-alpha.12 → 2.0.0-alpha.16

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,41 @@
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
+ # [2.0.0-alpha.16](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@2.0.0-alpha.15...@bloom-housing/ui-components@2.0.0-alpha.16) (2021-10-28)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * expandable text without text ([#2100](https://github.com/bloom-housing/bloom/issues/2100)) ([289edd2](https://github.com/bloom-housing/bloom/commit/289edd253904fe9dae5c399d53516cec57f75208))
12
+
13
+
14
+
15
+
16
+
17
+ # [2.0.0-alpha.15](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@2.0.0-alpha.14...@bloom-housing/ui-components@2.0.0-alpha.15) (2021-10-28)
18
+
19
+ **Note:** Version bump only for package @bloom-housing/ui-components
20
+
21
+
22
+
23
+
24
+
25
+ # [2.0.0-alpha.14](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@2.0.0-alpha.13...@bloom-housing/ui-components@2.0.0-alpha.14) (2021-10-27)
26
+
27
+ **Note:** Version bump only for package @bloom-housing/ui-components
28
+
29
+
30
+
31
+
32
+
33
+ # [2.0.0-alpha.13](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@2.0.0-alpha.12...@bloom-housing/ui-components@2.0.0-alpha.13) (2021-10-26)
34
+
35
+ **Note:** Version bump only for package @bloom-housing/ui-components
36
+
37
+
38
+
39
+
40
+
6
41
  # [2.0.0-alpha.12](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@2.0.0-alpha.11...@bloom-housing/ui-components@2.0.0-alpha.12) (2021-10-25)
7
42
 
8
43
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bloom-housing/ui-components",
3
- "version": "2.0.0-alpha.12",
3
+ "version": "2.0.0-alpha.16",
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": "^2.0.0-pre-tailwind.8",
72
+ "@bloom-housing/backend-core": "^2.0.0-pre-tailwind.11",
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": "60dd529df6cb96c6affe01ed57c4ed82e93db1e9"
103
+ "gitHead": "0d26cfbb68a17849d0352e27de0433323c57d5e6"
104
104
  }
@@ -35,6 +35,8 @@ const ExpandableText = (props: ExpandableTextProps) => {
35
35
  const maxLength = props.maxLength || 350
36
36
  let button
37
37
 
38
+ if (!props.children) return null
39
+
38
40
  if (props.children.length > maxLength) {
39
41
  button = moreLessButton(expanded, setExpanded)
40
42
  }