@bloom-housing/ui-components 4.0.1-alpha.37 → 4.0.1-alpha.41

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,38 @@
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.41](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@4.0.1-alpha.40...@bloom-housing/ui-components@4.0.1-alpha.41) (2022-02-02)
7
+
8
+ **Note:** Version bump only for package @bloom-housing/ui-components
9
+
10
+
11
+
12
+
13
+
14
+ ## [4.0.1-alpha.40](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@4.0.1-alpha.39...@bloom-housing/ui-components@4.0.1-alpha.40) (2022-02-01)
15
+
16
+ **Note:** Version bump only for package @bloom-housing/ui-components
17
+
18
+
19
+
20
+
21
+
22
+ ## [4.0.1-alpha.39](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@4.0.1-alpha.38...@bloom-housing/ui-components@4.0.1-alpha.39) (2022-02-01)
23
+
24
+ **Note:** Version bump only for package @bloom-housing/ui-components
25
+
26
+
27
+
28
+
29
+
30
+ ## [4.0.1-alpha.38](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@4.0.1-alpha.37...@bloom-housing/ui-components@4.0.1-alpha.38) (2022-02-01)
31
+
32
+ **Note:** Version bump only for package @bloom-housing/ui-components
33
+
34
+
35
+
36
+
37
+
6
38
  ## [4.0.1-alpha.37](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@4.0.1-alpha.36...@bloom-housing/ui-components@4.0.1-alpha.37) (2022-02-01)
7
39
 
8
40
  **Note:** Version bump only for package @bloom-housing/ui-components
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bloom-housing/ui-components",
3
- "version": "4.0.1-alpha.37",
3
+ "version": "4.0.1-alpha.41",
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.23",
72
+ "@bloom-housing/backend-core": "^3.0.2-alpha.26",
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": "4182703a6d7148566d9078e8a1ec8bf620112a4e"
103
+ "gitHead": "ebf2b31f803e63f0fe4dbbef326bfa696a8a0282"
104
104
  }
@@ -12,6 +12,7 @@ interface FieldSingle {
12
12
  defaultChecked?: boolean
13
13
  description?: React.ReactNode
14
14
  defaultText?: string
15
+ disabled?: boolean
15
16
  note?: string
16
17
  inputProps?: Record<string, unknown>
17
18
  subFields?: FieldSingle[]
@@ -83,11 +84,17 @@ const FieldGroup = ({
83
84
  }
84
85
  }}
85
86
  defaultChecked={item.defaultChecked || false}
87
+ disabled={item.disabled}
86
88
  ref={register(validation)}
87
89
  {...item.inputProps}
88
90
  data-test-id={dataTestId}
89
91
  />
90
- <label htmlFor={item.id} className={`font-semibold ${fieldLabelClassName}`}>
92
+ <label
93
+ htmlFor={item.id}
94
+ className={`font-semibold ${fieldLabelClassName} ${
95
+ item.disabled && "text-gray-600 cursor-default cursor-not-allowed"
96
+ }`}
97
+ >
91
98
  {item.label}
92
99
  </label>
93
100
  {item.note && <span className={"field-note font-normal"}>{item.note}</span>}
@@ -133,6 +140,7 @@ const FieldGroup = ({
133
140
  defaultValue={item.defaultText}
134
141
  placeholder={t("t.description")}
135
142
  className={"mb-4"}
143
+ disabled={item.disabled}
136
144
  />
137
145
  )}
138
146
  </div>