@councilbox/councilbox-ui 2.0.38 → 2.0.39

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.
@@ -16,7 +16,7 @@ a.noStyles:hover{
16
16
  `}</style>
17
17
 
18
18
 
19
- # Librería de componentes ui-councilbox NEW v2.0.37 &#127881;
19
+ # Librería de componentes ui-councilbox NEW v2.0.39 &#127881;
20
20
 
21
21
  <h2>Componentes:</h2>
22
22
  <div><a class='noStyles' href='/story/components-accordion--default'>Accordion</a></div>
@@ -25,6 +25,10 @@ a.noStyles:hover{
25
25
  <div>Fix zIndex label InputText y SelectInput</div>
26
26
  </div>
27
27
 
28
+ <h2>v2.0.39</h2>
29
+ <div>Fix MenuLateralRight under button expanded</div>
30
+ <div>Fix position Tooltip</div>
31
+
28
32
  <h2>v2.0.38</h2>
29
33
  <div>Add prefixClass en DrawerPanel</div>
30
34
  <div>Fix tooltip MenuLateralRight</div>
@@ -177,7 +177,7 @@
177
177
  justify-content: flex-start;
178
178
  }
179
179
 
180
- .cbx-menuLateralRight-block-expanded .cbx-menuLateralRight-container-under .cbx-IconButton i{
180
+ .cbx-menuLateralRight-block-expanded .cbx-menuLateralRight-container-under .cbx-IconButton i {
181
181
  font-size: 2rem;
182
182
  }
183
183
 
@@ -190,4 +190,8 @@
190
190
  .cbx-menuLateralRight-block-expanded .cbx-menuLateralRight-container-under .cbx-menuLateralRight-text-under {
191
191
  display: flex;
192
192
  align-items: center;
193
+ }
194
+
195
+ .cbx-menuLateralRight-container-under.cbx-menuLateralRight-container-under-expanded-button {
196
+ cursor: pointer;
193
197
  }
@@ -207,7 +207,8 @@ var MenuLateralRight = function MenuLateralRight(_ref) {
207
207
  }, underSection === null || underSection === void 0 ? void 0 : underSection.map(function (item, index) {
208
208
  return /*#__PURE__*/_react.default.createElement("div", {
209
209
  key: "under-section-".concat(index),
210
- className: prefixClass(mobile ? 'cbx-menuLateralRight-container-under-mobile' : 'cbx-menuLateralRight-container-under')
210
+ className: prefixClass(mobile ? 'cbx-menuLateralRight-container-under-mobile' : "cbx-menuLateralRight-container-under ".concat(expanded && !item.disabled ? 'cbx-menuLateralRight-container-under-expanded-button' : '')),
211
+ onClick: expanded && !item.disabled && !mobile ? item.action : undefined
211
212
  }, item.actionTooltip && /*#__PURE__*/_react.default.createElement("div", {
212
213
  className: prefixClass('cbx-menuLateralRight-block-tooltip-under'),
213
214
  onClick: item.setActionTooltip
@@ -227,7 +228,7 @@ var MenuLateralRight = function MenuLateralRight(_ref) {
227
228
  tooltip: !mobile && item.text,
228
229
  icon: item.icon,
229
230
  badge: item.badge,
230
- onClick: item.action,
231
+ onClick: expanded && !mobile ? undefined : item.action,
231
232
  placementTooltip: 'left',
232
233
  hoverColor: item.active ? '#272762' : '',
233
234
  styles: _objectSpread({}, item.active ? {
@@ -438,6 +438,17 @@ var Tooltip = function Tooltip(_ref2) {
438
438
  }, props), title), document.body));
439
439
  };
440
440
 
441
+ _react.default.useEffect(function () {
442
+ if (!tooltipRef.current) return;
443
+ var observer = new ResizeObserver(function () {
444
+ adjustPopoverPosition();
445
+ });
446
+ observer.observe(tooltipRef.current);
447
+ return function () {
448
+ observer.disconnect();
449
+ };
450
+ }, [tooltipRef.current, adjustPopoverPosition]);
451
+
441
452
  return title === '' ? children : getTooltip();
442
453
  };
443
454
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@councilbox/councilbox-ui",
3
- "version": "2.0.38",
3
+ "version": "2.0.39",
4
4
  "main": "dist/build-index.js",
5
5
  "files": [
6
6
  "dist",