@bitrise/bitkit 11.2.1-alpha-chakra.2 → 11.2.1

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@bitrise/bitkit",
3
3
  "description": "Bitrise React component library",
4
- "version": "11.2.1-alpha-chakra.2",
4
+ "version": "11.2.1",
5
5
  "repository": "git@github.com:bitrise-io/bitkit.git",
6
6
  "main": "src/index.ts",
7
7
  "license": "UNLICENSED",
@@ -2,7 +2,7 @@ import React, { cloneElement, forwardRef, ReactNode, useCallback, useEffect, use
2
2
  import { chakra, ChakraProps, useControllableState, useMultiStyleConfig } from '@chakra-ui/react';
3
3
  import { FloatingFocusManager, UseFloatingProps } from '@floating-ui/react-dom-interactions';
4
4
  import { TypeIconName } from '../Icon/Icon';
5
- import Input from '../Form/Input/Input';
5
+ import SearchInput from '../SearchInput/SearchInput';
6
6
  import { DropdownEventArgs, DropdownProvider, useDropdownContext, useDropdownStyles } from './Dropdown.context';
7
7
  import { DropdownOption, DropdownGroup, DropdownDetailedOption, DropdownOptionProps } from './DropdownOption';
8
8
  import DropdownButton from './DropdownButton';
@@ -26,8 +26,8 @@ const DropdownSearch = ({
26
26
  const { value, onChange } = 'onChange' in rest ? rest : { value: searchValue, onChange: searchOnChange };
27
27
 
28
28
  const onChangeCB = useCallback(
29
- (ev: React.ChangeEvent<HTMLInputElement>) => {
30
- onChange(ev.target.value);
29
+ (q: string) => {
30
+ onChange(q);
31
31
  },
32
32
  [onChange],
33
33
  );
@@ -48,7 +48,7 @@ const DropdownSearch = ({
48
48
  [searchOnSubmit],
49
49
  );
50
50
  return (
51
- <Input
51
+ <SearchInput
52
52
  onKeyDown={onKeyDown}
53
53
  inputRef={searchRef}
54
54
  role="search"
@@ -56,7 +56,6 @@ const DropdownSearch = ({
56
56
  placeholder={placeholder}
57
57
  value={value}
58
58
  onChange={onChangeCB}
59
- leftIconName="Magnifier"
60
59
  sx={search}
61
60
  />
62
61
  );