x-ui-design 0.8.32 → 0.8.34
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 +6 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +6 -1
- package/dist/index.js.map +1 -1
- package/lib/components/Popover/Popover.tsx +2 -2
- package/lib/hooks/usePosition.ts +6 -0
- package/package.json +1 -1
- package/src/app/page.tsx +3 -2
package/dist/index.esm.js
CHANGED
|
@@ -2614,6 +2614,11 @@ const usePosition = ({
|
|
|
2614
2614
|
const [showPlacement, setShowPlacement] = useState('');
|
|
2615
2615
|
const [_dropdownPosition, setDropdownPosition] = useState({});
|
|
2616
2616
|
const dropdownPosition = useCallback(() => {
|
|
2617
|
+
console.log({
|
|
2618
|
+
getPopupContainer,
|
|
2619
|
+
popupRef: popupRef.current,
|
|
2620
|
+
triggerRef: triggerRef.current
|
|
2621
|
+
});
|
|
2617
2622
|
if (!triggerRef.current) {
|
|
2618
2623
|
return {};
|
|
2619
2624
|
}
|
|
@@ -5598,7 +5603,7 @@ const Popover = ({
|
|
|
5598
5603
|
onMouseLeave: handleOnMouseLeave
|
|
5599
5604
|
}, [trigger]);
|
|
5600
5605
|
return /*#__PURE__*/React.createElement(React.Fragment, null, Children.map(children, (child, index) => {
|
|
5601
|
-
if (! /*#__PURE__*/isValidElement(child)
|
|
5606
|
+
if (! /*#__PURE__*/isValidElement(child)) {
|
|
5602
5607
|
child = /*#__PURE__*/React.createElement("div", null, child);
|
|
5603
5608
|
}
|
|
5604
5609
|
return /*#__PURE__*/cloneElement(child, {
|