@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 CHANGED
@@ -1,7 +1,7 @@
1
- # 14.5.2-beta.0 - 05/09/2022
1
+ # 14.5.2 - 05/10/2022
2
2
 
3
3
  ## Miscellaneous Updates
4
- * [[4e10f87](https://github.com/spothero/fe-ui/commit/4e10f87)] - `fix:` Link new Input and Label using htmlFor (Mick Johnson)
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-beta.0 - 05/09/2022
1
+ # 14.5.2 - 05/10/2022
2
2
 
3
3
  ## Miscellaneous Updates
4
- * [[4e10f87](https://github.com/spothero/fe-ui/commit/4e10f87)] - `fix:` Link new Input and Label using htmlFor (Mick Johnson)
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spothero/ui",
3
- "version": "14.5.2-beta.0",
3
+ "version": "14.5.2",
4
4
  "description": "SpotHero's React component UI library.",
5
5
  "main": "v2/index-bundled.cjs.js",
6
6
  "module": "v2/index.js",
@@ -12,7 +12,7 @@ const FormControl = forwardRef(
12
12
  <ChakraFormControl {...props} ref={ref}>
13
13
  {label && (
14
14
  <FormLabel
15
- color={props.isInvalid ? 'error' : 'gray.600'}
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,