@ai-matrx/design-system 0.38.0 → 0.38.1

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.
@@ -1486,13 +1486,14 @@ function useIsMobile() {
1486
1486
 
1487
1487
  // src/dialog.tsx
1488
1488
  import { jsx as jsx15, jsxs as jsxs9 } from "react/jsx-runtime";
1489
+ var DialogWindowedByDefaultContext = React10.createContext(false);
1489
1490
  var Dialog = ({
1490
1491
  children,
1491
1492
  ...props
1492
1493
  }) => {
1493
1494
  const isMobile = useIsMobile();
1494
1495
  const modal = props.modal ?? isMobile;
1495
- return /* @__PURE__ */ jsx15(RadixDialogModalProvider, { modal, children: /* @__PURE__ */ jsx15(DialogPrimitive.Root, { ...props, modal, children }) });
1496
+ return /* @__PURE__ */ jsx15(DialogWindowedByDefaultContext.Provider, { value: props.modal === void 0, children: /* @__PURE__ */ jsx15(RadixDialogModalProvider, { modal, children: /* @__PURE__ */ jsx15(DialogPrimitive.Root, { ...props, modal, children }) }) });
1496
1497
  };
1497
1498
  Dialog.displayName = "Dialog";
1498
1499
  var DialogPortal = ({
@@ -1561,6 +1562,7 @@ var DialogContent = React10.forwardRef(
1561
1562
  const injectedContainer = usePortalContainer(container);
1562
1563
  const asSheet = mobileSheet && isMobile;
1563
1564
  const windowed = !isModal && !asSheet;
1565
+ const windowedByDefault = React10.useContext(DialogWindowedByDefaultContext);
1564
1566
  const [containerEl, setContainerEl] = React10.useState(
1565
1567
  null
1566
1568
  );
@@ -1621,7 +1623,7 @@ var DialogContent = React10.forwardRef(
1621
1623
  // can sit beside a host's floating window manager (which starts at
1622
1624
  // z=1000); staying below that boundary makes a newly focused window
1623
1625
  // usable without coupling the two systems.
1624
- !isModal && "z-[900]",
1626
+ !isModal && !windowedByDefault && "z-[900]",
1625
1627
  // Without an overlay the card needs its own separation from the page.
1626
1628
  windowed && "shadow-2xl ring-1 ring-border/60"
1627
1629
  ),