@councilbox/councilbox-ui 0.3.7 → 0.3.8

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',
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.8",
4
4
  "main": "dist/build-index.js",
5
5
  "files": [
6
6
  "dist",