@luminati-io/uikit 6.2.3-beta.0 → 6.2.4-beta.0
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.
@@ -42151,7 +42151,7 @@ var HeaderCell = function HeaderCell(props) {
|
|
42151
42151
|
compact: compact
|
42152
42152
|
}), compact && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_3__.Label, {
|
42153
42153
|
variant: "sm",
|
42154
|
-
color: "
|
42154
|
+
color: "text_quaternary",
|
42155
42155
|
no_wrap: true
|
42156
42156
|
}, name || id), canSort && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_sort_icon__WEBPACK_IMPORTED_MODULE_9__.SortIcon, {
|
42157
42157
|
visible: !!iconVisible,
|
@@ -42212,11 +42212,13 @@ var HeaderCellResizer = styled_components__WEBPACK_IMPORTED_MODULE_2___default()
|
|
42212
42212
|
});
|
42213
42213
|
var renderCellContent = function renderCellContent(column, type, props) {
|
42214
42214
|
var content = column[type];
|
42215
|
-
if (lodash_isString__WEBPACK_IMPORTED_MODULE_0___default()(content))
|
42216
|
-
|
42217
|
-
|
42218
|
-
|
42219
|
-
|
42215
|
+
if (lodash_isString__WEBPACK_IMPORTED_MODULE_0___default()(content)) {
|
42216
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_3__.Label, {
|
42217
|
+
variant: "sm",
|
42218
|
+
color: "text_quaternary",
|
42219
|
+
no_wrap: true
|
42220
|
+
}, content);
|
42221
|
+
}
|
42220
42222
|
return column.render(type, props);
|
42221
42223
|
};
|
42222
42224
|
|
@@ -46093,6 +46095,9 @@ function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
46093
46095
|
|
46094
46096
|
|
46095
46097
|
|
46098
|
+
var isPrimitiveElement = function isPrimitiveElement(element) {
|
46099
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().isValidElement(element) && typeof element.type == 'string';
|
46100
|
+
};
|
46096
46101
|
var _Tooltip = function Tooltip(_ref) {
|
46097
46102
|
var children = _ref.children,
|
46098
46103
|
tooltip = _ref.tooltip,
|
@@ -46170,7 +46175,7 @@ var _Tooltip = function Tooltip(_ref) {
|
|
46170
46175
|
update = _usePopper.update;
|
46171
46176
|
var tooltipRef = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)();
|
46172
46177
|
var acceptsRef = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(function () {
|
46173
|
-
return (0,react_is__WEBPACK_IMPORTED_MODULE_3__.isForwardRef)(children);
|
46178
|
+
return (0,react_is__WEBPACK_IMPORTED_MODULE_3__.isForwardRef)(children) || isPrimitiveElement(children);
|
46174
46179
|
}, [children]);
|
46175
46180
|
if (visible && tooltip != tooltipRef.current && typeof update == 'function') update();
|
46176
46181
|
tooltipRef.current = tooltip;
|