Skip to content

Commit 650a269

Browse files
committed
fix: update types for select picker size map
1 parent 4bd2de9 commit 650a269

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed
Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
1+
import { CSSProperties } from 'react'
12
import { ComponentSizeType } from '@Shared/constants'
23
import { SelectPickerProps } from './type'
34

4-
export const SELECT_PICKER_FONT_SIZE_MAP: Record<SelectPickerProps['size'], string> = {
5+
export const SELECT_PICKER_FONT_SIZE_MAP: Record<SelectPickerProps['size'], CSSProperties['fontSize']> = {
56
[ComponentSizeType.small]: '12px',
67
[ComponentSizeType.medium]: '13px',
78
[ComponentSizeType.large]: '13px',
89
}
910

10-
export const SELECT_PICKER_ICON_SIZE_MAP: Record<SelectPickerProps['size'], { width: string; height: string }> = {
11+
export const SELECT_PICKER_ICON_SIZE_MAP: Record<SelectPickerProps['size'], Pick<CSSProperties, 'width' | 'height'>> = {
1112
[ComponentSizeType.small]: { width: '12px', height: '12px' },
1213
[ComponentSizeType.medium]: { width: '16px', height: '16px' },
1314
[ComponentSizeType.large]: { width: '16px', height: '16px' },
1415
}
1516

16-
export const SELECT_PICKER_CONTROL_SIZE_MAP: Record<SelectPickerProps['size'], string> = {
17+
export const SELECT_PICKER_CONTROL_SIZE_MAP: Record<SelectPickerProps['size'], CSSProperties['minHeight']> = {
1718
[ComponentSizeType.small]: 'auto',
1819
[ComponentSizeType.medium]: 'auto',
19-
[ComponentSizeType.large]: '36px',
20+
[ComponentSizeType.large]: '3px',
2021
}

0 commit comments

Comments
 (0)