x-ui-design 0.8.66 → 0.8.67
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/index.esm.js +10 -7
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +10 -7
- package/dist/index.js.map +1 -1
- package/lib/components/Popover/Popover.tsx +5 -5
- package/package.json +1 -1
- package/src/app/page.tsx +0 -3
package/dist/index.esm.js
CHANGED
|
@@ -5559,12 +5559,15 @@ const Popover = ({
|
|
|
5559
5559
|
setInnerOpen(false);
|
|
5560
5560
|
}
|
|
5561
5561
|
}, [triggers]);
|
|
5562
|
-
const childProps = useMemo(() =>
|
|
5563
|
-
|
|
5564
|
-
|
|
5565
|
-
|
|
5566
|
-
|
|
5567
|
-
|
|
5562
|
+
const childProps = useMemo(() => ({
|
|
5563
|
+
...(triggers.includes("click") ? {
|
|
5564
|
+
onClick: handleOnClick
|
|
5565
|
+
} : {}),
|
|
5566
|
+
...(triggers.includes("hover") ? {
|
|
5567
|
+
onMouseEnter: handleOnMouseEnter,
|
|
5568
|
+
onMouseLeave: handleOnMouseLeave
|
|
5569
|
+
} : {})
|
|
5570
|
+
}), [triggers]);
|
|
5568
5571
|
const _children = useMemo(() => {
|
|
5569
5572
|
if (Children.count(children) > 1) {
|
|
5570
5573
|
children = /*#__PURE__*/React.createElement("div", null, children);
|
|
@@ -5583,7 +5586,7 @@ const Popover = ({
|
|
|
5583
5586
|
}
|
|
5584
5587
|
});
|
|
5585
5588
|
});
|
|
5586
|
-
}, [children, style
|
|
5589
|
+
}, [children, style]);
|
|
5587
5590
|
return /*#__PURE__*/React.createElement(React.Fragment, null, _children, isOpen && /*#__PURE__*/React.createElement(ConditionalWrapper, {
|
|
5588
5591
|
condition: !!getPopupContainer,
|
|
5589
5592
|
wrapper: element => getPopupContainer ? /*#__PURE__*/createPortal(element, getPopupContainer(triggerRef.current)) : /*#__PURE__*/React.createElement(React.Fragment, null, element)
|