x-ui-design 0.8.35 → 0.8.36
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 +15 -15
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +15 -15
- package/dist/index.js.map +1 -1
- package/lib/components/Popover/Popover.tsx +19 -19
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -5604,24 +5604,24 @@ const Popover = ({
|
|
|
5604
5604
|
}, [trigger]);
|
|
5605
5605
|
const _children = useMemo(() => {
|
|
5606
5606
|
if (Children.count(children) > 1) {
|
|
5607
|
-
|
|
5607
|
+
children = /*#__PURE__*/React.createElement("div", null, children);
|
|
5608
5608
|
}
|
|
5609
|
-
return children
|
|
5610
|
-
|
|
5611
|
-
|
|
5612
|
-
if (! /*#__PURE__*/isValidElement(child)) {
|
|
5613
|
-
child = /*#__PURE__*/React.createElement("div", null, child);
|
|
5614
|
-
}
|
|
5615
|
-
return /*#__PURE__*/cloneElement(child, {
|
|
5616
|
-
key: index,
|
|
5617
|
-
...{
|
|
5618
|
-
style,
|
|
5619
|
-
...childProps,
|
|
5620
|
-
ref: triggerRef,
|
|
5621
|
-
className: `${prefixCls}-wrapper-content`
|
|
5609
|
+
return Children.map(children, (child, index) => {
|
|
5610
|
+
if (! /*#__PURE__*/isValidElement(child)) {
|
|
5611
|
+
child = /*#__PURE__*/React.createElement("div", null, child);
|
|
5622
5612
|
}
|
|
5613
|
+
return /*#__PURE__*/cloneElement(child, {
|
|
5614
|
+
key: index,
|
|
5615
|
+
...{
|
|
5616
|
+
style,
|
|
5617
|
+
...childProps,
|
|
5618
|
+
ref: triggerRef,
|
|
5619
|
+
className: `${prefixCls}-wrapper-content`
|
|
5620
|
+
}
|
|
5621
|
+
});
|
|
5623
5622
|
});
|
|
5624
|
-
}
|
|
5623
|
+
}, [children, style, childProps]);
|
|
5624
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, _children, isOpen && /*#__PURE__*/React.createElement(ConditionalWrapper, {
|
|
5625
5625
|
condition: !!getPopupContainer,
|
|
5626
5626
|
wrapper: element => getPopupContainer ? /*#__PURE__*/createPortal(element, getPopupContainer(popupRef.current)) : /*#__PURE__*/React.createElement(React.Fragment, null, element)
|
|
5627
5627
|
}, /*#__PURE__*/React.createElement("div", _extends({
|