Merge branch 'develop' into v2-select-component
This commit is contained in:
commit
b9afca3608
59 files changed
+2615
-469
No files matched your search
@@ -2,6 +2,7 @@ import { Typography, Select } from "@mui/material";
|
||||
import MenuItem from "@mui/material/MenuItem";
|
||||
import { forwardRef } from "react";
|
||||
import type { SelectProps } from "@mui/material/Select";
|
||||
import { useTheme } from "@mui/material/styles";
|
||||
import KeyboardArrowDownIcon from "@mui/icons-material/KeyboardArrowDown";
|
||||
type ItemId = string | number;
|
||||
interface SelectItem {
|
||||
@@ -20,12 +21,21 @@ export const SelectInput = forwardRef<HTMLDivElement, CustomSelectProps>(
|
||||
{ items, placeholder, isHidden = false, hasError = false, ...props },
|
||||
ref
|
||||
) {
|
||||
const theme = useTheme();
|
||||
return (
|
||||
<Select
|
||||
sx={{
|
||||
height: "34px",
|
||||
"& .MuiSelect-select": {
|
||||
padding: "0",
|
||||
},
|
||||
"& .MuiOutlinedInput-notchedOutline": {
|
||||
borderRadius: theme.shape.borderRadius,
|
||||
borderColor: theme.palette.primary.lowContrast,
|
||||
},
|
||||
"&:hover .MuiOutlinedInput-notchedOutline": {
|
||||
borderColor: theme.palette.primary.lowContrast,
|
||||
},
|
||||
}}
|
||||
error={hasError}
|
||||
ref={ref}
|
||||
|
||||
Reference in new issue
Block a user