2024-12-11 18:45:46 -05:00
|
|
|
import { Input } from 'antd';
|
|
|
|
|
import styled from 'styled-components';
|
|
|
|
|
|
2025-04-30 11:21:41 -04:00
|
|
|
import { getColor } from '@components/theme/utils';
|
|
|
|
|
|
2025-04-16 16:55:38 -07:00
|
|
|
import { colors, typography } from '@src/alchemy-components/theme';
|
|
|
|
|
|
2025-04-22 19:16:01 +03:00
|
|
|
export const StyledSearchBar = styled(Input)<{ $width?: string; $height?: string }>`
|
|
|
|
|
height: ${(props) => props.$height};
|
2024-12-11 18:45:46 -05:00
|
|
|
width: ${(props) => props.$width};
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
border-radius: 8px;
|
|
|
|
|
|
|
|
|
|
input {
|
|
|
|
|
color: ${colors.gray[600]};
|
|
|
|
|
font-size: ${typography.fontSizes.md} !important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.ant-input-prefix {
|
|
|
|
|
width: 20px;
|
|
|
|
|
color: ${colors.gray[1800]};
|
|
|
|
|
|
|
|
|
|
svg {
|
|
|
|
|
height: 16px;
|
|
|
|
|
width: 16px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:hover,
|
|
|
|
|
&:focus,
|
|
|
|
|
&:focus-within {
|
2025-04-30 11:21:41 -04:00
|
|
|
border-color: ${({ theme }) => getColor('primary', 300, theme)} !important;
|
2024-12-11 18:45:46 -05:00
|
|
|
box-shadow: none !important;
|
|
|
|
|
}
|
|
|
|
|
`;
|