@hexdspace/react 0.1.22 → 0.1.24
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.js +2 -8
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1732,7 +1732,6 @@ function Dialog({
|
|
|
1732
1732
|
}, [isOpen]);
|
|
1733
1733
|
const overlayClassName = cn(dialogOverlayClass);
|
|
1734
1734
|
const surfaceClassName = cn(dialogSurfaceVariants({ chrome }));
|
|
1735
|
-
const panelRef = React3.useRef(null);
|
|
1736
1735
|
return /* @__PURE__ */ jsxs3(DialogPrimitive.Root, { open: open2, defaultOpen, onOpenChange: handleOpenChange, modal, children: [
|
|
1737
1736
|
trigger ? /* @__PURE__ */ jsx7(DialogPrimitive.Trigger, { asChild: true, children: trigger }) : null,
|
|
1738
1737
|
/* @__PURE__ */ jsx7(DialogPrimitive.Portal, { forceMount: true, children: /* @__PURE__ */ jsx7(AnimatePresence, { children: isOpen ? /* @__PURE__ */ jsxs3(Fragment2, { children: [
|
|
@@ -1755,10 +1754,6 @@ function Dialog({
|
|
|
1755
1754
|
{
|
|
1756
1755
|
forceMount: true,
|
|
1757
1756
|
asChild: true,
|
|
1758
|
-
onOpenAutoFocus: (event) => {
|
|
1759
|
-
event.preventDefault();
|
|
1760
|
-
panelRef.current?.focus();
|
|
1761
|
-
},
|
|
1762
1757
|
onInteractOutside: (event) => {
|
|
1763
1758
|
if (!dismissible) event.preventDefault();
|
|
1764
1759
|
},
|
|
@@ -1770,8 +1765,6 @@ function Dialog({
|
|
|
1770
1765
|
motion.div,
|
|
1771
1766
|
{
|
|
1772
1767
|
className: cn(dialogPanelVariants(), className),
|
|
1773
|
-
ref: panelRef,
|
|
1774
|
-
tabIndex: -1,
|
|
1775
1768
|
style: {
|
|
1776
1769
|
...style,
|
|
1777
1770
|
zIndex,
|
|
@@ -1803,7 +1796,8 @@ function Dialog({
|
|
|
1803
1796
|
size: "icon",
|
|
1804
1797
|
leftIcon: /* @__PURE__ */ jsx7(XIcon, { className: "w-5 h-5" }),
|
|
1805
1798
|
className: "absolute right-2 top-2 z-10 rounded-full",
|
|
1806
|
-
"aria-label": closeLabel
|
|
1799
|
+
"aria-label": closeLabel,
|
|
1800
|
+
tabIndex: -1
|
|
1807
1801
|
}
|
|
1808
1802
|
) }) : null,
|
|
1809
1803
|
/* @__PURE__ */ jsx7(
|