@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.
- package/CHANGELOG.md +6 -0
- package/dist/content-transfer.cjs +4 -2
- package/dist/content-transfer.cjs.map +1 -1
- package/dist/content-transfer.js +4 -2
- package/dist/content-transfer.js.map +1 -1
- package/dist/data-table/data-row-inspector.cjs +4 -2
- package/dist/data-table/data-row-inspector.cjs.map +1 -1
- package/dist/data-table/data-row-inspector.js +4 -2
- package/dist/data-table/data-row-inspector.js.map +1 -1
- package/dist/data-table/data-row-window.cjs +4 -2
- package/dist/data-table/data-row-window.cjs.map +1 -1
- package/dist/data-table/data-row-window.js +4 -2
- package/dist/data-table/data-row-window.js.map +1 -1
- package/dist/data-table/index.cjs +4 -2
- package/dist/data-table/index.cjs.map +1 -1
- package/dist/data-table/index.js +4 -2
- package/dist/data-table/index.js.map +1 -1
- package/dist/index.cjs +4 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -126,13 +126,14 @@ function useIsMobile() {
|
|
|
126
126
|
|
|
127
127
|
// src/dialog.tsx
|
|
128
128
|
import { jsx as jsx4, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
129
|
+
var DialogWindowedByDefaultContext = React4.createContext(false);
|
|
129
130
|
var Dialog = ({
|
|
130
131
|
children,
|
|
131
132
|
...props
|
|
132
133
|
}) => {
|
|
133
134
|
const isMobile = useIsMobile();
|
|
134
135
|
const modal = props.modal ?? isMobile;
|
|
135
|
-
return /* @__PURE__ */ jsx4(RadixDialogModalProvider, { modal, children: /* @__PURE__ */ jsx4(DialogPrimitive.Root, { ...props, modal, children }) });
|
|
136
|
+
return /* @__PURE__ */ jsx4(DialogWindowedByDefaultContext.Provider, { value: props.modal === void 0, children: /* @__PURE__ */ jsx4(RadixDialogModalProvider, { modal, children: /* @__PURE__ */ jsx4(DialogPrimitive.Root, { ...props, modal, children }) }) });
|
|
136
137
|
};
|
|
137
138
|
Dialog.displayName = "Dialog";
|
|
138
139
|
var DialogPortal = ({
|
|
@@ -201,6 +202,7 @@ var DialogContent = React4.forwardRef(
|
|
|
201
202
|
const injectedContainer = usePortalContainer(container);
|
|
202
203
|
const asSheet = mobileSheet && isMobile;
|
|
203
204
|
const windowed = !isModal && !asSheet;
|
|
205
|
+
const windowedByDefault = React4.useContext(DialogWindowedByDefaultContext);
|
|
204
206
|
const [containerEl, setContainerEl] = React4.useState(
|
|
205
207
|
null
|
|
206
208
|
);
|
|
@@ -261,7 +263,7 @@ var DialogContent = React4.forwardRef(
|
|
|
261
263
|
// can sit beside a host's floating window manager (which starts at
|
|
262
264
|
// z=1000); staying below that boundary makes a newly focused window
|
|
263
265
|
// usable without coupling the two systems.
|
|
264
|
-
!isModal && "z-[900]",
|
|
266
|
+
!isModal && !windowedByDefault && "z-[900]",
|
|
265
267
|
// Without an overlay the card needs its own separation from the page.
|
|
266
268
|
windowed && "shadow-2xl ring-1 ring-border/60"
|
|
267
269
|
),
|