@algorithm-shift/design-system 1.2.69 → 1.2.70

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.mjs CHANGED
@@ -12,7 +12,7 @@ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
12
12
  import { jsx, jsxs } from "react/jsx-runtime";
13
13
  function Modal({
14
14
  isOpen,
15
- onClose,
15
+ onModalClose,
16
16
  title,
17
17
  children,
18
18
  size = "md",
@@ -23,7 +23,7 @@ function Modal({
23
23
  useEffect(() => {
24
24
  const handleEscape = (e) => {
25
25
  if (e.key === "Escape") {
26
- onClose?.();
26
+ onModalClose?.();
27
27
  }
28
28
  };
29
29
  if (isOpen) {
@@ -34,7 +34,7 @@ function Modal({
34
34
  document.removeEventListener("keydown", handleEscape);
35
35
  document.body.style.overflow = "unset";
36
36
  };
37
- }, [isOpen, onClose]);
37
+ }, [isOpen, onModalClose]);
38
38
  if (!isOpen) return null;
39
39
  const sizeClasses = {
40
40
  sm: "w-md",
@@ -58,7 +58,7 @@ function Modal({
58
58
  showCloseButton && /* @__PURE__ */ jsx(
59
59
  "button",
60
60
  {
61
- onClick: onClose,
61
+ onClick: onModalClose,
62
62
  className: "text-gray-400 hover:text-gray-600 dark:hover:text-gray-300 transition-colors cursor-pointer",
63
63
  "aria-label": "Close modal",
64
64
  children: /* @__PURE__ */ jsx(FontAwesomeIcon, { icon: faTimes, className: "w-5 h-5" })