sag_components 1.0.536 → 1.0.538
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,9 +111,12 @@ 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
|
},
|
|
117
|
+
'& .MuiInputLabel-filled': {
|
|
118
|
+
color: labelColor
|
|
119
|
+
},
|
|
112
120
|
'& .MuiInputLabel-shrink': {
|
|
113
121
|
marginLeft: '1px',
|
|
114
122
|
paddingLeft: '4px',
|
|
@@ -181,11 +189,6 @@ const TextField = exports.TextField = /*#__PURE__*/_react.default.forwardRef((_r
|
|
|
181
189
|
// color: 'red',
|
|
182
190
|
textalign: 'start'
|
|
183
191
|
}
|
|
184
|
-
},
|
|
185
|
-
InputLabelProps: {
|
|
186
|
-
style: {
|
|
187
|
-
color: labelColor
|
|
188
|
-
}
|
|
189
192
|
}
|
|
190
193
|
}), passwordField && /*#__PURE__*/_react.default.createElement(_FormControl.default, {
|
|
191
194
|
sx: getTextFieldStyle(),
|
|
@@ -8,4 +8,4 @@ exports.TextFieldContainer = void 0;
|
|
|
8
8
|
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
|
9
9
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
10
10
|
var _templateObject;
|
|
11
|
-
const TextFieldContainer = exports.TextFieldContainer = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n width: ", "; \n text-align: left; \n position: relative; \n align-items: flex-start;\n justify-content: flex-start;\n font-
|
|
11
|
+
const TextFieldContainer = exports.TextFieldContainer = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\nfont-family: \"Poppins\";\n display: flex;\n width: ", "; \n text-align: left; \n position: relative; \n align-items: flex-start;\n justify-content: flex-start;\n font-size: 14px;\n"])), props => props.width);
|