@councilbox/councilbox-ui 0.3.7 → 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.
@@ -56,7 +56,8 @@ var Header = function Header(_ref) {
56
56
  onChangeSearch = _ref.onChangeSearch,
57
57
  onClickIconButtonRight = _ref.onClickIconButtonRight,
58
58
  colorNoLogo = _ref.colorNoLogo,
59
- actionLogoLeft = _ref.actionLogoLeft;
59
+ actionLogoLeft = _ref.actionLogoLeft,
60
+ backIcon = _ref.backIcon;
60
61
 
61
62
  var _useWindowSize = (0, _useWindowSize2.default)(),
62
63
  innerWidth = _useWindowSize.innerWidth,
@@ -114,7 +115,7 @@ var Header = function Header(_ref) {
114
115
  id: 'cbx-header-first-button-left',
115
116
  className: "cbx-header-first-button-left cbx-header-button",
116
117
  onClick: back,
117
- icon: /*#__PURE__*/_react.default.createElement("i", {
118
+ icon: backIcon || /*#__PURE__*/_react.default.createElement("i", {
118
119
  className: "ri-arrow-left-line"
119
120
  })
120
121
  })), dropdownLeft && /*#__PURE__*/_react.default.createElement("div", {
@@ -121,6 +121,7 @@
121
121
  align-items: center;
122
122
  justify-content: center;
123
123
  font-size: 1.375rem;
124
+ min-width: var(--spacing40);
124
125
  }
125
126
 
126
127
  .cbx-header-button {
@@ -55,7 +55,8 @@ var MenuLateralLeft = function MenuLateralLeft(_ref) {
55
55
  var id = _ref.id,
56
56
  upperSection = _ref.upperSection,
57
57
  underSection = _ref.underSection,
58
- mobile = _ref.mobile;
58
+ mobile = _ref.mobile,
59
+ upperIndex = _ref.upperIndex;
59
60
 
60
61
  var _useWindowSize = (0, _useWindowSize2.default)(),
61
62
  innerWidth = _useWindowSize.innerWidth,
@@ -120,6 +121,12 @@ var MenuLateralLeft = function MenuLateralLeft(_ref) {
120
121
  }
121
122
  }, [resize()]);
122
123
 
124
+ _react.default.useEffect(function () {
125
+ to(upperSection.findIndex(function (item) {
126
+ return item.active;
127
+ }));
128
+ }, [upperIndex]);
129
+
123
130
  return /*#__PURE__*/_react.default.createElement("div", {
124
131
  id: id,
125
132
  className: mobile ? 'cbx-menuLateralLeft-block-mobile' : resize() ? 'cbx-menuLateralLeft-block-mini' : 'cbx-menuLateralLeft-block',
@@ -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, null, label && /*#__PURE__*/_react.default.createElement(_InputLabel.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,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@councilbox/councilbox-ui",
3
- "version": "0.3.7",
3
+ "version": "0.3.9",
4
4
  "main": "dist/build-index.js",
5
5
  "files": [
6
6
  "dist",