@spothero/ui 14.6.0 → 14.7.0
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 +6 -0
- package/CHANGELOG.tmp +3 -7
- package/package.json +1 -1
- package/styles/v2/components/Input/Input.jsx +18 -13
- package/styles/v2/components/Select/Select.jsx +24 -18
- package/v2/index-bundled.cjs.js +3 -3
- 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 +12 -2
- package/v2/index-unbundled.cjs.js.map +1 -1
- package/v2/index-unbundled.esm.js +11 -2
- package/v2/index-unbundled.esm.js.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
# 14.7.0 - 05/12/2022
|
|
2
|
+
|
|
3
|
+
## New Features
|
|
4
|
+
* [[bf20c4f](https://github.com/spothero/fe-ui/commit/bf20c4f)] - Add classname to input and select so it doesn't break in prod ([#287](https://github.com/spothero/fe-ui/pull/287)) (annaliarosed)
|
|
5
|
+
* `Co-authored-by:` Annalia Destefano <annalia.destefano@spothero.com>
|
|
6
|
+
|
|
1
7
|
# 14.6.0 - 05/10/2022
|
|
2
8
|
|
|
3
9
|
## New Features
|
package/CHANGELOG.tmp
CHANGED
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
# 14.
|
|
1
|
+
# 14.7.0 - 05/12/2022
|
|
2
2
|
|
|
3
3
|
## New Features
|
|
4
|
-
* [[
|
|
5
|
-
* `
|
|
6
|
-
* `feat:` Update styles to match design
|
|
7
|
-
* `chore:` Remove FormControl stories for now
|
|
8
|
-
* `fix:` Connect label and input
|
|
9
|
-
* `fix:` Connect label and inputCo-authored-by: Annalia Destefano <annalia.destefano@spothero.com>
|
|
4
|
+
* [[bf20c4f](https://github.com/spothero/fe-ui/commit/bf20c4f)] - Add classname to input and select so it doesn't break in prod ([#287](https://github.com/spothero/fe-ui/pull/287)) (annaliarosed)
|
|
5
|
+
* `Co-authored-by:` Annalia Destefano <annalia.destefano@spothero.com>
|
|
10
6
|
|
package/package.json
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React, {forwardRef} from 'react';
|
|
2
|
+
import cn from 'classnames';
|
|
2
3
|
import PropTypes from 'prop-types';
|
|
3
4
|
import {Input as ChakraInput} from '@chakra-ui/react';
|
|
4
5
|
import FormControl from '../FormControl/FormControl';
|
|
@@ -15,19 +16,23 @@ const Input = forwardRef(
|
|
|
15
16
|
...props
|
|
16
17
|
},
|
|
17
18
|
ref
|
|
18
|
-
) =>
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
19
|
+
) => {
|
|
20
|
+
const classes = cn({'FormElement-contains-error': isInvalid});
|
|
21
|
+
|
|
22
|
+
return (
|
|
23
|
+
<FormControl
|
|
24
|
+
isInvalid={isInvalid}
|
|
25
|
+
isDisabled={isDisabled}
|
|
26
|
+
isRequired={isRequired}
|
|
27
|
+
errorMessage={errorMessage}
|
|
28
|
+
helperText={helperText}
|
|
29
|
+
label={label}
|
|
30
|
+
inputId={props.id}
|
|
31
|
+
>
|
|
32
|
+
<ChakraInput ref={ref} className={classes} {...props} />
|
|
33
|
+
</FormControl>
|
|
34
|
+
);
|
|
35
|
+
}
|
|
31
36
|
);
|
|
32
37
|
|
|
33
38
|
Input.propTypes = {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React, {forwardRef} from 'react';
|
|
2
|
+
import cn from 'classnames';
|
|
2
3
|
import PropTypes from 'prop-types';
|
|
3
4
|
import {Select as ChakraSelect} from '@chakra-ui/react';
|
|
4
5
|
import FormControl from '../FormControl/FormControl';
|
|
@@ -15,24 +16,29 @@ const Select = forwardRef(
|
|
|
15
16
|
...props
|
|
16
17
|
},
|
|
17
18
|
ref
|
|
18
|
-
) =>
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
19
|
+
) => {
|
|
20
|
+
const classes = cn({'FormElement-contains-error': isInvalid});
|
|
21
|
+
|
|
22
|
+
return (
|
|
23
|
+
<FormControl
|
|
24
|
+
isInvalid={isInvalid}
|
|
25
|
+
isDisabled={isDisabled}
|
|
26
|
+
isRequired={isRequired}
|
|
27
|
+
errorMessage={errorMessage}
|
|
28
|
+
helperText={helperText}
|
|
29
|
+
label={label}
|
|
30
|
+
inputId={props.id}
|
|
31
|
+
>
|
|
32
|
+
<ChakraSelect
|
|
33
|
+
fontWeight="regular"
|
|
34
|
+
fontSize="sm"
|
|
35
|
+
ref={ref}
|
|
36
|
+
className={classes}
|
|
37
|
+
{...props}
|
|
38
|
+
/>
|
|
39
|
+
</FormControl>
|
|
40
|
+
);
|
|
41
|
+
}
|
|
36
42
|
);
|
|
37
43
|
|
|
38
44
|
Select.propTypes = {
|