sag_components 1.0.536 → 1.0.537
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.
|
@@ -27,6 +27,7 @@ const TextField = exports.TextField = /*#__PURE__*/_react.default.forwardRef((_r
|
|
|
27
27
|
height = '49px',
|
|
28
28
|
label,
|
|
29
29
|
labelColor,
|
|
30
|
+
outlineColor,
|
|
30
31
|
shape,
|
|
31
32
|
size,
|
|
32
33
|
placeHolder = 'Enter your email address',
|
|
@@ -87,18 +88,22 @@ const TextField = exports.TextField = /*#__PURE__*/_react.default.forwardRef((_r
|
|
|
87
88
|
},
|
|
88
89
|
paddingTop: multiline ? '12px' : '0',
|
|
89
90
|
marginTop: 0,
|
|
90
|
-
borderColor:
|
|
91
|
+
borderColor: '#212121',
|
|
91
92
|
borderRadius: '12px',
|
|
92
93
|
legend: {
|
|
93
94
|
marginLeft: '6px'
|
|
94
95
|
},
|
|
95
96
|
alignItems: multiline ? 'flex-start' : 'center',
|
|
96
97
|
'&.Mui-focused fieldset': {
|
|
97
|
-
borderColor:
|
|
98
|
+
borderColor: outlineColor // Change outline color when focused
|
|
98
99
|
}
|
|
100
|
+
// '&.Mui-error .MuiOutlinedInput-notchedOutline': {
|
|
101
|
+
// borderColor: '#D23630', // Change outline color when there's an error
|
|
102
|
+
// },
|
|
99
103
|
},
|
|
104
|
+
|
|
100
105
|
'& label.Mui-focused': {
|
|
101
|
-
color:
|
|
106
|
+
color: labelColor
|
|
102
107
|
},
|
|
103
108
|
'& .MuiAutocomplete-inputRoot': {
|
|
104
109
|
paddingLeft: '10px !important',
|
|
@@ -106,7 +111,7 @@ const TextField = exports.TextField = /*#__PURE__*/_react.default.forwardRef((_r
|
|
|
106
111
|
},
|
|
107
112
|
'& .MuiInputLabel-outlined': {
|
|
108
113
|
paddingLeft: '10px',
|
|
109
|
-
color:
|
|
114
|
+
color: outlineColor,
|
|
110
115
|
paddingTop: '4px'
|
|
111
116
|
},
|
|
112
117
|
'& .MuiInputLabel-shrink': {
|
|
@@ -181,11 +186,6 @@ const TextField = exports.TextField = /*#__PURE__*/_react.default.forwardRef((_r
|
|
|
181
186
|
// color: 'red',
|
|
182
187
|
textalign: 'start'
|
|
183
188
|
}
|
|
184
|
-
},
|
|
185
|
-
InputLabelProps: {
|
|
186
|
-
style: {
|
|
187
|
-
color: labelColor
|
|
188
|
-
}
|
|
189
189
|
}
|
|
190
190
|
}), passwordField && /*#__PURE__*/_react.default.createElement(_FormControl.default, {
|
|
191
191
|
sx: getTextFieldStyle(),
|