@paubox/ui 0.14.5 → 0.15.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.
- package/index.esm.js +15 -4
- package/package.json +1 -1
package/index.esm.js
CHANGED
|
@@ -21931,8 +21931,19 @@ var Popper = function(param) {
|
|
|
21931
21931
|
if (anchorRef.current && containerRef.current) {
|
|
21932
21932
|
var anchorRect = anchorRef.current.getBoundingClientRect();
|
|
21933
21933
|
var popperRect = containerRef.current.getBoundingClientRect();
|
|
21934
|
-
var
|
|
21935
|
-
var
|
|
21934
|
+
var el = anchorRef.current;
|
|
21935
|
+
var isInsideFixedContainer = false;
|
|
21936
|
+
while(el && el !== document.body){
|
|
21937
|
+
var style = window.getComputedStyle(el);
|
|
21938
|
+
if (style.position === 'fixed') {
|
|
21939
|
+
isInsideFixedContainer = true;
|
|
21940
|
+
break;
|
|
21941
|
+
}
|
|
21942
|
+
if (!el.parentElement) break;
|
|
21943
|
+
el = el.parentElement;
|
|
21944
|
+
}
|
|
21945
|
+
var scrollX = isInsideFixedContainer ? 0 : window.scrollX || document.documentElement.scrollLeft;
|
|
21946
|
+
var scrollY = isInsideFixedContainer ? 0 : window.scrollY || document.documentElement.scrollTop;
|
|
21936
21947
|
var _calculatePosition = calculatePosition(anchorRect, popperRect, side, align, offset, detectEdges), top = _calculatePosition.top, left = _calculatePosition.left;
|
|
21937
21948
|
setPosition({
|
|
21938
21949
|
top: top + scrollY,
|
|
@@ -33575,7 +33586,7 @@ var Table = function(param) {
|
|
|
33575
33586
|
var containerRef = useRef(null);
|
|
33576
33587
|
var _useState = _sliced_to_array$1(useState({}), 2), columnSizing = _useState[0], setColumnSizing = _useState[1];
|
|
33577
33588
|
var _useState1 = _sliced_to_array$1(useState(null), 2), openMenuId = _useState1[0], setOpenMenuId = _useState1[1];
|
|
33578
|
-
var disableControls = isLoading || !data.length || !!error;
|
|
33589
|
+
var disableControls = isLoading || !(data === null || data === void 0 ? void 0 : data.length) || !!error;
|
|
33579
33590
|
var hasSomePageProps = !!(pageInfo || onPageSizeChange || onPageChange);
|
|
33580
33591
|
var hasAllPageProps = !!(pageInfo && onPageSizeChange && onPageChange);
|
|
33581
33592
|
if (hasSomePageProps && !hasAllPageProps) {
|
|
@@ -33736,7 +33747,7 @@ var Table = function(param) {
|
|
|
33736
33747
|
ref: containerRef,
|
|
33737
33748
|
children: [
|
|
33738
33749
|
isLoading && /*#__PURE__*/ jsx(LoadingOverlay, {}),
|
|
33739
|
-
Boolean(!isLoading && (!data.length || error)) && /*#__PURE__*/ jsx(Typography, {
|
|
33750
|
+
Boolean(!isLoading && (!(data === null || data === void 0 ? void 0 : data.length) || error)) && /*#__PURE__*/ jsx(Typography, {
|
|
33740
33751
|
variant: "paragraph200Regular",
|
|
33741
33752
|
as: "div",
|
|
33742
33753
|
style: {
|