import type { MultiSelectProps as MantineMultiSelectProps, SelectProps as MantineSelectProps, } from '@mantine/core'; import { MultiSelect as MantineMultiSelect, Select as MantineSelect } from '@mantine/core'; import styled from 'styled-components'; export interface MultiSelectProps extends MantineMultiSelectProps { maxWidth?: number | string; width?: number | string; } export interface SelectProps extends MantineSelectProps { maxWidth?: number | string; width?: number | string; } const StyledSelect = styled(MantineSelect)` & [data-selected='true'] { background: var(--input-bg); } & [data-disabled='true'] { background: var(--input-bg); opacity: 0.6; } & .mantine-Select-label { margin-bottom: 0.5rem; font-family: var(--label-font-family); } & .mantine-Select-itemsWrapper { & .mantine-Select-item { padding: 40px; } } `; export const Select = ({ maxWidth, width, ...props }: SelectProps) => { return ( ); }; const StyledMultiSelect = styled(MantineMultiSelect)` & [data-selected='true'] { background: var(--input-select-bg); } & [data-disabled='true'] { background: var(--input-bg); opacity: 0.6; } & .mantine-MultiSelect-itemsWrapper { & .mantine-Select-item { padding: 40px; } } `; export const MultiSelect = ({ maxWidth, width, ...props }: MultiSelectProps) => { return ( ); }; Select.defaultProps = { maxWidth: undefined, width: undefined, }; MultiSelect.defaultProps = { maxWidth: undefined, width: undefined, };