@comicrelief/component-library 8.10.2 → 8.11.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.
@@ -35,7 +35,6 @@ const KEY_CODE_ENTER = 13;
35
35
  * - only throw errors with user-friendly messages
36
36
  *
37
37
  * Any errors thrown will be caught and the message will be displayed to the user.
38
- *
39
38
  * The `onSelect` function will receive the chosen option.
40
39
  *
41
40
  * @param name
@@ -118,7 +117,8 @@ const Lookup = _ref2 => {
118
117
  onClick: () => handler(),
119
118
  loading: isSearching,
120
119
  disabled: isSearching,
121
- loadingText: "Searching"
120
+ loadingText: "Searching",
121
+ "data-test": "lookupButton"
122
122
  }, buttonText));
123
123
  };
124
124
  var _default = exports.default = Lookup;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@comicrelief/component-library",
3
3
  "author": "Comic Relief Engineering Team",
4
- "version": "8.10.2",
4
+ "version": "8.11.0",
5
5
  "main": "dist/index.js",
6
6
  "license": "ISC",
7
7
  "jest": {
@@ -11,7 +11,6 @@ const StyledButton = styled(ButtonWithStates)`${({ theme }) => css`
11
11
  background-color: ${theme.color('white')};
12
12
  padding-left: ${spacing('lg')};
13
13
  padding-right: ${spacing('lg')};
14
-
15
14
  &:hover {
16
15
  color: ${theme.color('grey_dark')};
17
16
  background-color: ${theme.color('white')};
@@ -33,7 +32,6 @@ const KEY_CODE_ENTER = 13;
33
32
  * - only throw errors with user-friendly messages
34
33
  *
35
34
  * Any errors thrown will be caught and the message will be displayed to the user.
36
- *
37
35
  * The `onSelect` function will receive the chosen option.
38
36
  *
39
37
  * @param name
@@ -121,6 +119,7 @@ const Lookup = ({
121
119
  loading={isSearching}
122
120
  disabled={isSearching}
123
121
  loadingText="Searching"
122
+ data-test="lookupButton"
124
123
  >
125
124
  {buttonText}
126
125
  </StyledButton>