sag_components 1.0.229 → 1.0.232
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.
|
@@ -62,13 +62,16 @@ var Datepicker = function Datepicker(_ref) {
|
|
|
62
62
|
paddingLeft: "10px !important",
|
|
63
63
|
borderRadius: "12px",
|
|
64
64
|
width: width
|
|
65
|
+
//color: labelColor,
|
|
65
66
|
},
|
|
67
|
+
|
|
66
68
|
"& .MuiOutlinedInput-root": {
|
|
67
69
|
borderRadius: "12px",
|
|
68
70
|
fontFamily: "Poppins",
|
|
69
71
|
fontSize: "14px",
|
|
70
72
|
fontWidth: 400,
|
|
71
73
|
width: width,
|
|
74
|
+
//color: labelColor,
|
|
72
75
|
legend: {
|
|
73
76
|
marginLeft: "10px"
|
|
74
77
|
},
|
|
@@ -78,30 +81,33 @@ var Datepicker = function Datepicker(_ref) {
|
|
|
78
81
|
paddingLeft: "10px"
|
|
79
82
|
},
|
|
80
83
|
"& .MuiOutlinedInput-notchedOutline": {
|
|
81
|
-
borderColor: "#E7E7E7"
|
|
82
|
-
color: labelColor
|
|
84
|
+
borderColor: "#E7E7E7"
|
|
85
|
+
//color: labelColor,
|
|
83
86
|
},
|
|
87
|
+
|
|
84
88
|
"&:hover .MuiOutlinedInput-notchedOutline": {
|
|
85
|
-
borderColor: labelColor,
|
|
86
|
-
color: labelColor
|
|
89
|
+
borderColor: disabled ? "#E7E7E7" : labelColor // "#757575",
|
|
90
|
+
//color: labelColor,
|
|
87
91
|
},
|
|
92
|
+
|
|
88
93
|
"&.Mui-focused .MuiOutlinedInput-notchedOutline": {
|
|
89
|
-
borderColor: labelColor
|
|
90
|
-
color: labelColor
|
|
94
|
+
borderColor: disabled ? "#E7E7E7" : labelColor
|
|
95
|
+
//color: labelColor,
|
|
91
96
|
}
|
|
92
97
|
},
|
|
98
|
+
|
|
93
99
|
"& .MuiInputLabel-outlined:not(.MuiInputLabel-shrink)": {
|
|
94
100
|
// Default transform is "translate(14px, 20px) scale(1)""
|
|
95
101
|
// This lines up the label with the initial cursor position in the input
|
|
96
102
|
// after changing its padding-left.
|
|
97
103
|
transform: "translate(14px, 18px) scale(1);",
|
|
98
104
|
fontSize: "14px",
|
|
99
|
-
color: "#
|
|
105
|
+
color: disabled ? "#E7E7E7" : valueState ? labelColor : "#757575"
|
|
100
106
|
},
|
|
101
107
|
"& .MuiInputLabel-outlined": {
|
|
102
108
|
fontFamily: "Poppins",
|
|
103
109
|
paddingLeft: "10px",
|
|
104
|
-
color: labelColor,
|
|
110
|
+
color: disabled ? "#E7E7E7" : valueState ? labelColor : "#757575",
|
|
105
111
|
fontWidth: 400,
|
|
106
112
|
fontSize: "18px"
|
|
107
113
|
},
|
|
@@ -110,6 +116,7 @@ var Datepicker = function Datepicker(_ref) {
|
|
|
110
116
|
paddingLeft: "4px",
|
|
111
117
|
paddingRight: 0,
|
|
112
118
|
background: "white"
|
|
119
|
+
//color: labelColor,
|
|
113
120
|
}
|
|
114
121
|
};
|
|
115
122
|
} else {
|
|
@@ -111,7 +111,7 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
111
111
|
"& .MuiOutlinedInput-root": {
|
|
112
112
|
borderRadius: "12px",
|
|
113
113
|
legend: {
|
|
114
|
-
marginLeft: "
|
|
114
|
+
marginLeft: "10px"
|
|
115
115
|
}
|
|
116
116
|
},
|
|
117
117
|
"& .MuiAutocomplete-inputRoot": {
|
|
@@ -123,16 +123,13 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
123
123
|
paddingLeft: "10px"
|
|
124
124
|
},
|
|
125
125
|
"& .MuiOutlinedInput-notchedOutline": {
|
|
126
|
-
borderColor: "#E7E7E7"
|
|
127
|
-
color: labelColor
|
|
126
|
+
borderColor: "#E7E7E7"
|
|
128
127
|
},
|
|
129
128
|
"&:hover .MuiOutlinedInput-notchedOutline": {
|
|
130
|
-
borderColor: labelColor
|
|
131
|
-
color: labelColor
|
|
129
|
+
borderColor: disabled ? "#E7E7E7" : labelColor
|
|
132
130
|
},
|
|
133
131
|
"&.Mui-focused .MuiOutlinedInput-notchedOutline": {
|
|
134
|
-
borderColor: labelColor
|
|
135
|
-
color: labelColor
|
|
132
|
+
borderColor: disabled ? "#E7E7E7" : labelColor
|
|
136
133
|
}
|
|
137
134
|
},
|
|
138
135
|
"& .MuiInputLabel-outlined:not(.MuiInputLabel-shrink)": {
|
|
@@ -141,17 +138,17 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
141
138
|
// after changing its padding-left.
|
|
142
139
|
transform: "translate(14px, 18px) scale(1);",
|
|
143
140
|
fontSize: "14px",
|
|
144
|
-
color: "#212121"
|
|
141
|
+
color: disabled ? "#E7E7E7" : currentInputValue && currentInputValue.length > 0 ? "#212121" : "#757575"
|
|
145
142
|
},
|
|
146
143
|
"& .MuiInputLabel-outlined": {
|
|
147
144
|
paddingLeft: "10px",
|
|
148
|
-
color: labelColor,
|
|
145
|
+
color: disabled ? "#E7E7E7" : labelColor,
|
|
149
146
|
fontSize: "18px"
|
|
150
147
|
},
|
|
151
148
|
"& .MuiInputLabel-shrink": {
|
|
152
149
|
marginLeft: "1px",
|
|
153
150
|
paddingLeft: "4px",
|
|
154
|
-
paddingRight:
|
|
151
|
+
paddingRight: "6px",
|
|
155
152
|
background: "white"
|
|
156
153
|
}
|
|
157
154
|
};
|
|
@@ -165,6 +162,7 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
165
162
|
syntheticBaseEvent: event,
|
|
166
163
|
inputValue: newInputValue
|
|
167
164
|
});
|
|
165
|
+
console.log("newInputValue", newInputValue);
|
|
168
166
|
};
|
|
169
167
|
var onChangeHandler = function onChangeHandler(event, newValue) {
|
|
170
168
|
setCurrentOption({
|