@spothero/ui 14.5.2-beta.0 → 14.5.2
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 +2 -2
- package/CHANGELOG.tmp +2 -2
- package/package.json +1 -1
- package/styles/v2/components/FormControl/FormControl.jsx +3 -8
- package/v1/index-bundled.cjs.js +1 -1
- package/v1/index-bundled.cjs.js.map +1 -1
- package/v1/index-bundled.esm.js +1 -1
- package/v1/index-bundled.esm.js.map +1 -1
- package/v1/index-unbundled.cjs.js +35 -35
- package/v1/index-unbundled.esm.js +35 -35
- package/v2/index-bundled.cjs.js +1 -1
- package/v2/index-bundled.cjs.js.map +1 -1
- package/v2/index-bundled.esm.js +3 -3
- package/v2/index-bundled.esm.js.map +1 -1
- package/v2/index-unbundled.cjs.js +155 -156
- package/v2/index-unbundled.cjs.js.map +1 -1
- package/v2/index-unbundled.esm.js +155 -156
- package/v2/index-unbundled.esm.js.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
# 14.5.2
|
|
1
|
+
# 14.5.2 - 05/10/2022
|
|
2
2
|
|
|
3
3
|
## Miscellaneous Updates
|
|
4
|
-
* [[
|
|
4
|
+
* [[d59e284](https://github.com/spothero/fe-ui/commit/d59e284)] - `fix:` Link new Input and Label using htmlFor ([#286](https://github.com/spothero/fe-ui/pull/286)) (Mick Johnson)
|
|
5
5
|
|
|
6
6
|
# 14.5.1 - 05/05/2022
|
|
7
7
|
## Miscellaneous Updates
|
package/CHANGELOG.tmp
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
# 14.5.2
|
|
1
|
+
# 14.5.2 - 05/10/2022
|
|
2
2
|
|
|
3
3
|
## Miscellaneous Updates
|
|
4
|
-
* [[
|
|
4
|
+
* [[d59e284](https://github.com/spothero/fe-ui/commit/d59e284)] - `fix:` Link new Input and Label using htmlFor ([#286](https://github.com/spothero/fe-ui/pull/286)) (Mick Johnson)
|
|
5
5
|
|
package/package.json
CHANGED
|
@@ -12,7 +12,7 @@ const FormControl = forwardRef(
|
|
|
12
12
|
<ChakraFormControl {...props} ref={ref}>
|
|
13
13
|
{label && (
|
|
14
14
|
<FormLabel
|
|
15
|
-
color=
|
|
15
|
+
color="gray.600"
|
|
16
16
|
fontWeight="semibold"
|
|
17
17
|
mb={2}
|
|
18
18
|
fontSize="sm"
|
|
@@ -23,11 +23,7 @@ const FormControl = forwardRef(
|
|
|
23
23
|
)}
|
|
24
24
|
{children}
|
|
25
25
|
{helperText && (
|
|
26
|
-
<FormHelperText
|
|
27
|
-
color={props.isInvalid ? 'error' : 'gray.600'}
|
|
28
|
-
mt={1}
|
|
29
|
-
fontSize="xs"
|
|
30
|
-
>
|
|
26
|
+
<FormHelperText color="gray.600" mt={1} fontSize="xs">
|
|
31
27
|
{helperText}
|
|
32
28
|
</FormHelperText>
|
|
33
29
|
)}
|
|
@@ -39,9 +35,8 @@ const FormControl = forwardRef(
|
|
|
39
35
|
);
|
|
40
36
|
|
|
41
37
|
FormControl.propTypes = {
|
|
38
|
+
inputId: PropTypes.string.isRequired,
|
|
42
39
|
label: PropTypes.string,
|
|
43
|
-
isInvalid: PropTypes.bool,
|
|
44
|
-
inputId: PropTypes.string,
|
|
45
40
|
helperText: PropTypes.string,
|
|
46
41
|
errorMessage: PropTypes.string,
|
|
47
42
|
children: PropTypes.node,
|