@councilbox/councilbox-ui 0.3.9 → 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: '2px',
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,
@@ -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: '2px',
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': {
@@ -160,9 +160,6 @@ var TextInput = function TextInput(_ref2) {
160
160
  sx: {
161
161
  minWidth: width || '15rem',
162
162
  height: '3rem',
163
- '&.MuiFormControl-root label.Mui-focused': {
164
- borderWidth: 0
165
- },
166
163
  sx: sx
167
164
  },
168
165
  label: label,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@councilbox/councilbox-ui",
3
- "version": "0.3.9",
3
+ "version": "0.3.10",
4
4
  "main": "dist/build-index.js",
5
5
  "files": [
6
6
  "dist",