@councilbox/councilbox-ui 0.3.11 → 0.3.12
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.
|
@@ -160,6 +160,11 @@ var InputText = function InputText(_ref) {
|
|
|
160
160
|
sx: {
|
|
161
161
|
minWidth: width || '15rem',
|
|
162
162
|
minHeight: '3rem',
|
|
163
|
+
'& .MuiOutlinedInput-notchedOutline': {
|
|
164
|
+
'& legend': {
|
|
165
|
+
width: label ? 'auto' : '0px'
|
|
166
|
+
}
|
|
167
|
+
},
|
|
163
168
|
sx: sx
|
|
164
169
|
},
|
|
165
170
|
label: label,
|
|
@@ -204,7 +209,7 @@ InputText.propTypes = {
|
|
|
204
209
|
success: _propTypes.default.bool
|
|
205
210
|
};
|
|
206
211
|
InputText.defaultProps = {
|
|
207
|
-
label: '
|
|
212
|
+
label: '',
|
|
208
213
|
helper: '',
|
|
209
214
|
width: '',
|
|
210
215
|
id: '',
|
|
@@ -11,8 +11,6 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
11
11
|
|
|
12
12
|
require("../../styles/main.css");
|
|
13
13
|
|
|
14
|
-
var _InputText = _interopRequireDefault(require("../InputText/InputText"));
|
|
15
|
-
|
|
16
14
|
var _SelectInput = _interopRequireDefault(require("./SelectInput"));
|
|
17
15
|
|
|
18
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -46,19 +44,14 @@ var DesignSelectInput = function DesignSelectInput() {
|
|
|
46
44
|
onChange: function onChange(e) {
|
|
47
45
|
return setItem(e.target.value);
|
|
48
46
|
},
|
|
49
|
-
value: item
|
|
50
|
-
|
|
47
|
+
value: item // error={'hola esto es un error '}
|
|
48
|
+
|
|
51
49
|
}, majorityTypes.map(function (type) {
|
|
52
50
|
return /*#__PURE__*/_react.default.createElement(_material.MenuItem, {
|
|
53
51
|
key: type,
|
|
54
52
|
value: type
|
|
55
53
|
}, type);
|
|
56
|
-
}))
|
|
57
|
-
label: 'Majority Type',
|
|
58
|
-
error: 'hola esto es un error' // onChange={e => setItem(e.target.value)}
|
|
59
|
-
// value={item}
|
|
60
|
-
|
|
61
|
-
})));
|
|
54
|
+
}))));
|
|
62
55
|
};
|
|
63
56
|
|
|
64
57
|
var _default = DesignSelectInput;
|
|
@@ -47,6 +47,9 @@ var CssSelect = (0, _styled.default)(_Select.default)(function () {
|
|
|
47
47
|
padding: 'var(--spacing12)',
|
|
48
48
|
paddingRight: 'var(--spacing8)'
|
|
49
49
|
},
|
|
50
|
+
'&.MuiInputBase-root.Mui-error': {
|
|
51
|
+
color: 'var(--error)'
|
|
52
|
+
},
|
|
50
53
|
'& .MuiOutlinedInput-notchedOutline': {
|
|
51
54
|
color: 'var(--gray5)',
|
|
52
55
|
paddingRight: 'var(--spacing8)',
|
|
@@ -163,7 +166,12 @@ var SelectInput = function SelectInput(_ref) {
|
|
|
163
166
|
sx: {
|
|
164
167
|
minWidth: width || '15rem',
|
|
165
168
|
minHeight: '3rem',
|
|
166
|
-
maxHeight: '3rem'
|
|
169
|
+
maxHeight: '3rem',
|
|
170
|
+
'& .MuiOutlinedInput-notchedOutline': {
|
|
171
|
+
'& legend': {
|
|
172
|
+
width: label ? 'auto' : '0px'
|
|
173
|
+
}
|
|
174
|
+
}
|
|
167
175
|
},
|
|
168
176
|
label: label,
|
|
169
177
|
fullWidth: fullWidth,
|