@councilbox/councilbox-ui 2.0.37 → 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,17 @@ 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
+
32
+ <h2>v2.0.38</h2>
33
+ <div>Add prefixClass en DrawerPanel</div>
34
+ <div>Fix tooltip MenuLateralRight</div>
35
+
36
+ <h2>v2.0.37</h2>
37
+ <div>Fix InputAutocomplete async</div>
38
+
28
39
  <h2>v2.0.36</h2>
29
40
  <div>Fix IconButton error</div>
30
41
  <div>Fix badge in Tabs</div>
@@ -146,7 +146,7 @@ var DrawerPanel = function DrawerPanel(_ref) {
146
146
 
147
147
  return isOpenRender && /*#__PURE__*/(0, _reactDom.createPortal)( /*#__PURE__*/_react.default.createElement("div", _extends({
148
148
  id: id,
149
- className: "".concat(classNameDialog, " cbx-drawerPanel-container"),
149
+ className: prefixClass("".concat(classNameDialog, " cbx-drawerPanel-container")),
150
150
  style: _objectSpread(_objectSpread(_objectSpread({}, styles), style), stylesInLine)
151
151
  }, props), /*#__PURE__*/_react.default.createElement("div", {
152
152
  className: "".concat(prefixClass('cbx-drawerPanel-block'), " ").concat(direction === 'left' ? prefixClass('cbx-drawerPanel-block-left') : '', " ").concat(isOpen && !isClosing ? prefixClass('cbx-drawerPanel-block-open') : ''),
@@ -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
  }
@@ -90,6 +90,8 @@ var MenuLateralRight = function MenuLateralRight(_ref) {
90
90
  onClick: buttonVideo.action,
91
91
  badge: buttonVideo.badge,
92
92
  sx: buttonVideo.sx,
93
+ tooltip: !mobile && buttonVideo.text,
94
+ placementTooltip: 'left',
93
95
  text: mobile && textVisibleMenuMobile && buttonVideo.text,
94
96
  variant: mobile && textVisibleMenuMobile && 'M',
95
97
  fontWeight: mobile && textVisibleMenuMobile && '700',
@@ -106,6 +108,8 @@ var MenuLateralRight = function MenuLateralRight(_ref) {
106
108
  active: buttonVideo.active ? false : item.active,
107
109
  onClick: item.action,
108
110
  sx: item.sx,
111
+ tooltip: !mobile && item.text,
112
+ placementTooltip: 'left',
109
113
  badge: item.badge,
110
114
  text: mobile && textVisibleMenuMobile && item.text,
111
115
  variant: mobile && textVisibleMenuMobile && 'M',
@@ -123,6 +127,8 @@ var MenuLateralRight = function MenuLateralRight(_ref) {
123
127
  onClick: iconSelectDropDown().action,
124
128
  badge: iconSelectDropDown().badge,
125
129
  sx: iconSelectDropDown().sx,
130
+ tooltip: !mobile && iconSelectDropDown().text,
131
+ placementTooltip: 'left',
126
132
  text: mobile && textVisibleMenuMobile && iconSelectDropDown().text,
127
133
  variant: mobile && textVisibleMenuMobile && 'M',
128
134
  fontWeight: mobile && textVisibleMenuMobile && '700',
@@ -182,7 +188,7 @@ var MenuLateralRight = function MenuLateralRight(_ref) {
182
188
  }, /*#__PURE__*/_react.default.createElement(_IconButtonSquare.default, {
183
189
  icon: expanded ? item.active ? item.iconActive || item.icon : item.icon : item.icon,
184
190
  text: !mobile && item.text,
185
- tooltip: item.text,
191
+ tooltip: !mobile && item.text,
186
192
  active: item.active,
187
193
  onClick: item.action,
188
194
  badge: item.badge,
@@ -201,7 +207,8 @@ var MenuLateralRight = function MenuLateralRight(_ref) {
201
207
  }, underSection === null || underSection === void 0 ? void 0 : underSection.map(function (item, index) {
202
208
  return /*#__PURE__*/_react.default.createElement("div", {
203
209
  key: "under-section-".concat(index),
204
- 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
205
212
  }, item.actionTooltip && /*#__PURE__*/_react.default.createElement("div", {
206
213
  className: prefixClass('cbx-menuLateralRight-block-tooltip-under'),
207
214
  onClick: item.setActionTooltip
@@ -218,10 +225,10 @@ var MenuLateralRight = function MenuLateralRight(_ref) {
218
225
  onClick: item.actionDisabled
219
226
  }), /*#__PURE__*/_react.default.createElement(_IconButton.default, {
220
227
  disabled: item.disabled,
221
- tooltip: item.text,
228
+ tooltip: !mobile && item.text,
222
229
  icon: item.icon,
223
230
  badge: item.badge,
224
- onClick: item.action,
231
+ onClick: expanded && !mobile ? undefined : item.action,
225
232
  placementTooltip: 'left',
226
233
  hoverColor: item.active ? '#272762' : '',
227
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.37",
3
+ "version": "2.0.39",
4
4
  "main": "dist/build-index.js",
5
5
  "files": [
6
6
  "dist",