@axzydev/axzy_ui_system 1.0.162 → 1.0.164

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.cjs CHANGED
@@ -1655,6 +1655,7 @@ function ITDatePicker({
1655
1655
  }
1656
1656
 
1657
1657
  // src/components/dialog/dialog.tsx
1658
+ var import_react_dom = require("react-dom");
1658
1659
  var import_react7 = require("react");
1659
1660
  var import_fa4 = require("react-icons/fa");
1660
1661
 
@@ -1723,7 +1724,8 @@ function ITDialog({
1723
1724
  };
1724
1725
  }, [isOpen, onClose]);
1725
1726
  if (!isOpen) return null;
1726
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "fixed inset-0 flex items-center justify-center bg-black bg-opacity-50 z-50", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1727
+ if (typeof document === "undefined") return null;
1728
+ const content = /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "fixed inset-0 flex items-center justify-center bg-black bg-opacity-50 z-[9999]", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1727
1729
  "div",
1728
1730
  {
1729
1731
  ref: modalRef,
@@ -1732,7 +1734,6 @@ function ITDialog({
1732
1734
  backgroundColor: theme.card.backgroundColor,
1733
1735
  borderRadius: theme.card.borderRadius,
1734
1736
  boxShadow: theme.card.shadow,
1735
- // Border? theme.card.borderWidth?
1736
1737
  borderWidth: theme.card.borderWidth,
1737
1738
  borderColor: theme.card.borderColor,
1738
1739
  borderStyle: "solid"
@@ -1754,6 +1755,7 @@ function ITDialog({
1754
1755
  ] })
1755
1756
  }
1756
1757
  ) });
1758
+ return (0, import_react_dom.createPortal)(content, document.body);
1757
1759
  }
1758
1760
 
1759
1761
  // src/components/form-builder/formBuilder.tsx
@@ -2783,7 +2785,7 @@ function ITPagination({
2783
2785
  totalPages,
2784
2786
  siblingCount
2785
2787
  });
2786
- if (currentPage === 0 || paginationRange && paginationRange.length < 2) {
2788
+ if (currentPage === 0 || !itemsPerPageOptions && paginationRange && paginationRange.length < 2) {
2787
2789
  return null;
2788
2790
  }
2789
2791
  const isSemantic = color in theme.colors;