@bitrise/bitkit 9.26.2 → 9.26.3
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,17 +1,16 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Select as ChakraSelect, SelectProps as ChakraSelectProps } from '@chakra-ui/react';
|
|
3
|
-
import Icon
|
|
3
|
+
import Icon from '../Icon/Icon';
|
|
4
4
|
|
|
5
5
|
export interface SelectProps extends ChakraSelectProps {
|
|
6
|
-
iconName?: TypeIconName;
|
|
7
6
|
size?: 'small' | 'medium';
|
|
8
7
|
}
|
|
9
8
|
|
|
10
9
|
const Select = (props: SelectProps) => {
|
|
11
|
-
const {
|
|
10
|
+
const { size, placeholder, children, ...rest } = props;
|
|
12
11
|
const iconSize = size === 'medium' ? '24' : '16';
|
|
13
12
|
const properties: ChakraSelectProps = {
|
|
14
|
-
icon: <Icon name=
|
|
13
|
+
icon: <Icon name="DropdownArrows" fontSize={iconSize} size={iconSize} />,
|
|
15
14
|
size,
|
|
16
15
|
variant: 'select',
|
|
17
16
|
...rest,
|
|
@@ -29,7 +28,6 @@ const Select = (props: SelectProps) => {
|
|
|
29
28
|
};
|
|
30
29
|
|
|
31
30
|
Select.defaultProps = {
|
|
32
|
-
iconName: 'DropdownArrows',
|
|
33
31
|
size: 'medium',
|
|
34
32
|
} as SelectProps;
|
|
35
33
|
|