@councilbox/councilbox-ui 0.3.8 → 0.3.9
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.
|
@@ -40,7 +40,9 @@ var SelectInput = function SelectInput(_ref) {
|
|
|
40
40
|
children = _ref.children,
|
|
41
41
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
42
42
|
|
|
43
|
-
return /*#__PURE__*/_react.default.createElement(_FormControl.default,
|
|
43
|
+
return /*#__PURE__*/_react.default.createElement(_FormControl.default, {
|
|
44
|
+
fullWidth: fullWidth
|
|
45
|
+
}, label && /*#__PURE__*/_react.default.createElement(_InputLabel.default, {
|
|
44
46
|
disabled: disabled,
|
|
45
47
|
sx: {
|
|
46
48
|
'&.MuiFormLabel-root:not(.Mui-focused)': {
|
|
@@ -19,7 +19,7 @@ var _styled = _interopRequireDefault(require("@mui/material/styles/styled"));
|
|
|
19
19
|
|
|
20
20
|
var _Typography = _interopRequireDefault(require("../Typography/Typography"));
|
|
21
21
|
|
|
22
|
-
var _excluded = ["id", "className", "onChange", "label", "disabled", "error", "helper", "success", "width", "helperText", "fullWidth", "disableUnderline"];
|
|
22
|
+
var _excluded = ["id", "className", "onChange", "label", "disabled", "error", "helper", "success", "width", "helperText", "fullWidth", "disableUnderline", "sx"];
|
|
23
23
|
|
|
24
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
25
25
|
|
|
@@ -150,6 +150,7 @@ var TextInput = function TextInput(_ref2) {
|
|
|
150
150
|
helperText = _ref2.helperText,
|
|
151
151
|
fullWidth = _ref2.fullWidth,
|
|
152
152
|
disableUnderline = _ref2.disableUnderline,
|
|
153
|
+
sx = _ref2.sx,
|
|
153
154
|
props = _objectWithoutProperties(_ref2, _excluded);
|
|
154
155
|
|
|
155
156
|
return /*#__PURE__*/_react.default.createElement(CssTextField, _extends({
|
|
@@ -158,7 +159,11 @@ var TextInput = function TextInput(_ref2) {
|
|
|
158
159
|
className: className,
|
|
159
160
|
sx: {
|
|
160
161
|
minWidth: width || '15rem',
|
|
161
|
-
height: '3rem'
|
|
162
|
+
height: '3rem',
|
|
163
|
+
'&.MuiFormControl-root label.Mui-focused': {
|
|
164
|
+
borderWidth: 0
|
|
165
|
+
},
|
|
166
|
+
sx: sx
|
|
162
167
|
},
|
|
163
168
|
label: label,
|
|
164
169
|
fullWidth: fullWidth,
|