@madie/madie-design-system 1.0.29 → 1.0.31
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.
|
@@ -5,6 +5,41 @@ import InputLabel from "../InputLabel";
|
|
|
5
5
|
import FormHelperText from "@mui/material/FormHelperText";
|
|
6
6
|
import PropTypes from "prop-types";
|
|
7
7
|
|
|
8
|
+
const selectStyles = {
|
|
9
|
+
borderRadius: "3px",
|
|
10
|
+
height: 40, //there's a .13 coming from somewhere.
|
|
11
|
+
border: "1px solid #DDDDDD",
|
|
12
|
+
// remove weird line break from legend
|
|
13
|
+
"& .MuiOutlinedInput-notchedOutline": {
|
|
14
|
+
borderRadius: "3px",
|
|
15
|
+
"& legend": {
|
|
16
|
+
width: 0,
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
"& .MuiOutlinedInput-root": {
|
|
20
|
+
"&&": {
|
|
21
|
+
borderRadius: "3px",
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
// input base selector
|
|
25
|
+
"& .MuiInputBase-input": {
|
|
26
|
+
fontFamily: "Rubik",
|
|
27
|
+
fontSize: 14,
|
|
28
|
+
borderRadius: "3px",
|
|
29
|
+
padding: "9px 14px",
|
|
30
|
+
"&::placeholder": {
|
|
31
|
+
opacity: 0.6,
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
"& .MuiSelect-icon": {
|
|
35
|
+
color: "#323232",
|
|
36
|
+
},
|
|
37
|
+
"& .Mui-disabled" : {
|
|
38
|
+
backgroundColor: "#EDEDED",
|
|
39
|
+
border: "#EDEDED",
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
8
43
|
const Select = ({
|
|
9
44
|
placeHolder = undefined, // expects placeholder objects of { name: value } and inserts into the render item function.
|
|
10
45
|
required = false,
|
|
@@ -40,36 +75,7 @@ const Select = ({
|
|
|
40
75
|
{label}
|
|
41
76
|
</InputLabel>
|
|
42
77
|
<MUISelect
|
|
43
|
-
sx={
|
|
44
|
-
borderRadius: "3px",
|
|
45
|
-
height: 40, //there's a .13 coming from somewhere.
|
|
46
|
-
border: "1px solid #DDDDDD",
|
|
47
|
-
// remove weird line break from legend
|
|
48
|
-
"& .MuiOutlinedInput-notchedOutline": {
|
|
49
|
-
borderRadius: "3px",
|
|
50
|
-
"& legend": {
|
|
51
|
-
width: 0,
|
|
52
|
-
},
|
|
53
|
-
},
|
|
54
|
-
"& .MuiOutlinedInput-root": {
|
|
55
|
-
"&&": {
|
|
56
|
-
borderRadius: "3px",
|
|
57
|
-
},
|
|
58
|
-
},
|
|
59
|
-
// input base selector
|
|
60
|
-
"& .MuiInputBase-input": {
|
|
61
|
-
fontFamily: "Rubik",
|
|
62
|
-
fontSize: 14,
|
|
63
|
-
borderRadius: "3px",
|
|
64
|
-
padding: "9px 14px",
|
|
65
|
-
"&::placeholder": {
|
|
66
|
-
opacity: 0.6,
|
|
67
|
-
},
|
|
68
|
-
},
|
|
69
|
-
"& .MuiSelect-icon": {
|
|
70
|
-
color: "#323232",
|
|
71
|
-
},
|
|
72
|
-
}}
|
|
78
|
+
sx={selectStyles}
|
|
73
79
|
displayEmpty
|
|
74
80
|
IconComponent={ExpandMoreIcon}
|
|
75
81
|
disabled={disabled}
|