@dust-tt/sparkle 0.2.134 → 0.2.135
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.
- package/dist/cjs/index.js +4 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +4 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -777,8 +777,9 @@ function Tooltip(_a) {
|
|
|
777
777
|
React.useEffect(function () {
|
|
778
778
|
setIsTouchDevice("ontouchstart" in window || navigator.maxTouchPoints > 0);
|
|
779
779
|
return function () {
|
|
780
|
-
if (timerId)
|
|
780
|
+
if (timerId) {
|
|
781
781
|
window.clearTimeout(timerId);
|
|
782
|
+
}
|
|
782
783
|
};
|
|
783
784
|
}, [timerId]);
|
|
784
785
|
if (isTouchDevice) {
|
|
@@ -32328,8 +32329,9 @@ ContextItem.List = function (_a) {
|
|
|
32328
32329
|
var children = _a.children, className = _a.className, hasBorder = _a.hasBorder;
|
|
32329
32330
|
// Ensure all children are of type ContextItem or ContextItem.SectionHeader
|
|
32330
32331
|
React.Children.forEach(children, function (child) {
|
|
32331
|
-
if (child === null || child === undefined)
|
|
32332
|
+
if (child === null || child === undefined) {
|
|
32332
32333
|
return;
|
|
32334
|
+
}
|
|
32333
32335
|
if (!React.isValidElement(child) ||
|
|
32334
32336
|
(child.type !== ContextItem &&
|
|
32335
32337
|
child.type !== ContextItem.SectionHeader &&
|