@thecb/components 6.0.0-beta.12 → 6.0.0-beta.13

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thecb/components",
3
- "version": "6.0.0-beta.12",
3
+ "version": "6.0.0-beta.13",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
@@ -51,6 +51,7 @@ const DropdownItemWrapper = styled.li`
51
51
  padding: 1rem;
52
52
  box-sizing: border-box;
53
53
  width: 100%;
54
+ list-style: none;
54
55
  cursor: ${({ disabled }) => (disabled ? "default" : "pointer")};
55
56
 
56
57
  &:hover {
@@ -230,8 +231,13 @@ const Dropdown = ({
230
231
  }, [filteredOptions]);
231
232
 
232
233
  return (
233
- <Fragment>
234
- <Stack direction="row" bottomItem={2} extraStyles={`position: relative;`}>
234
+ <Box
235
+ padding="0"
236
+ extraStyles={`position: relative;`}
237
+ minWidth="100%"
238
+ width="100%"
239
+ >
240
+ <Stack direction="row" bottomItem={2}>
235
241
  <Box
236
242
  as="input"
237
243
  aria-multiline="false"
@@ -261,6 +267,7 @@ const Dropdown = ({
261
267
  }
262
268
  hoverStyles={`background-color: ${themeValues.hoverColor};`}
263
269
  isOpen={isOpen}
270
+ minWidth="85%"
264
271
  name={autocompleteValue}
265
272
  onKeyDown={onKeyDown}
266
273
  onClick={onClick}
@@ -278,7 +285,7 @@ const Dropdown = ({
278
285
  type="text"
279
286
  tabIndex={-1}
280
287
  value={inputValue}
281
- width="100%"
288
+ width="85%"
282
289
  dataQa={placeholder}
283
290
  />
284
291
  <IconWrapper open={isOpen}>
@@ -361,7 +368,7 @@ const Dropdown = ({
361
368
  <Fragment />
362
369
  )}
363
370
  </Fragment>
364
- </Fragment>
371
+ </Box>
365
372
  );
366
373
  };
367
374