@councilbox/councilbox-ui 0.3.8 → 0.3.10
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.
|
@@ -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"];
|
|
22
|
+
var _excluded = ["id", "className", "onChange", "label", "disabled", "error", "helper", "success", "width", "helperText", "fullWidth", "sx"];
|
|
23
23
|
|
|
24
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
25
25
|
|
|
@@ -32,9 +32,9 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
32
32
|
var CssTextField = (0, _styled.default)(_TextField.default)(function () {
|
|
33
33
|
return {
|
|
34
34
|
'& label.Mui-focused': {
|
|
35
|
-
color: 'primary',
|
|
36
|
-
borderWidth: '
|
|
37
|
-
background: 'white',
|
|
35
|
+
color: 'var(--primary)',
|
|
36
|
+
borderWidth: '0px!important',
|
|
37
|
+
background: 'white!important',
|
|
38
38
|
top: '1px'
|
|
39
39
|
},
|
|
40
40
|
'& .MuiInput-underline:after': {
|
|
@@ -151,6 +151,7 @@ var InputText = function InputText(_ref) {
|
|
|
151
151
|
width = _ref.width,
|
|
152
152
|
helperText = _ref.helperText,
|
|
153
153
|
fullWidth = _ref.fullWidth,
|
|
154
|
+
sx = _ref.sx,
|
|
154
155
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
155
156
|
|
|
156
157
|
return /*#__PURE__*/_react.default.createElement(CssTextField, _extends({
|
|
@@ -158,7 +159,8 @@ var InputText = function InputText(_ref) {
|
|
|
158
159
|
className: className,
|
|
159
160
|
sx: {
|
|
160
161
|
minWidth: width || '15rem',
|
|
161
|
-
minHeight: '3rem'
|
|
162
|
+
minHeight: '3rem',
|
|
163
|
+
sx: sx
|
|
162
164
|
},
|
|
163
165
|
label: label,
|
|
164
166
|
fullWidth: fullWidth,
|
|
@@ -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
|
|
|
@@ -33,9 +33,9 @@ var CssTextField = (0, _styled.default)(_TextField.default)(function (_ref) {
|
|
|
33
33
|
var theme = _ref.theme;
|
|
34
34
|
return {
|
|
35
35
|
'& label.Mui-focused': {
|
|
36
|
-
color: 'primary',
|
|
37
|
-
borderWidth: '
|
|
38
|
-
background: 'white',
|
|
36
|
+
color: 'var(--primary)',
|
|
37
|
+
borderWidth: '0px!important',
|
|
38
|
+
background: 'white!important',
|
|
39
39
|
top: '1px'
|
|
40
40
|
},
|
|
41
41
|
'& .MuiInput-underline:after': {
|
|
@@ -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,8 @@ var TextInput = function TextInput(_ref2) {
|
|
|
158
159
|
className: className,
|
|
159
160
|
sx: {
|
|
160
161
|
minWidth: width || '15rem',
|
|
161
|
-
height: '3rem'
|
|
162
|
+
height: '3rem',
|
|
163
|
+
sx: sx
|
|
162
164
|
},
|
|
163
165
|
label: label,
|
|
164
166
|
fullWidth: fullWidth,
|