@ai-matrx/design-system 0.38.0 → 0.39.0
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 +18 -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/copy-helpers.d.cts +2 -1
- package/dist/data-table/copy-helpers.d.ts +2 -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/filter-engine.d.cts +2 -1
- package/dist/data-table/filter-engine.d.ts +2 -1
- package/dist/data-table/host.d.cts +2 -1
- package/dist/data-table/host.d.ts +2 -1
- package/dist/data-table/index.cjs +43 -19
- package/dist/data-table/index.cjs.map +1 -1
- package/dist/data-table/index.d.cts +26 -3
- package/dist/data-table/index.d.ts +26 -3
- package/dist/data-table/index.js +43 -19
- package/dist/data-table/index.js.map +1 -1
- package/dist/data-table/infer-filter.d.cts +2 -1
- package/dist/data-table/infer-filter.d.ts +2 -1
- package/dist/data-table/layered-filters.d.cts +2 -1
- package/dist/data-table/layered-filters.d.ts +2 -1
- package/dist/data-table/query-control.d.cts +2 -1
- package/dist/data-table/query-control.d.ts +2 -1
- package/dist/data-table/table-style.cjs +332 -0
- package/dist/data-table/table-style.cjs.map +1 -0
- package/dist/data-table/table-style.d.cts +146 -0
- package/dist/data-table/table-style.d.ts +146 -0
- package/dist/data-table/table-style.js +312 -0
- package/dist/data-table/table-style.js.map +1 -0
- package/dist/data-table/types.d.cts +2 -1
- package/dist/data-table/types.d.ts +2 -1
- package/dist/data-table/url-state.d.cts +2 -1
- package/dist/data-table/url-state.d.ts +2 -1
- package/dist/data-table/xlsx.d.cts +2 -1
- package/dist/data-table/xlsx.d.ts +2 -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/dist/{types-B8vwElPz.d.ts → types--rz-dVeQ.d.ts} +2 -146
- package/dist/{types-BuMHbFjs.d.cts → types-CZmM6ERA.d.cts} +2 -146
- package/package.json +11 -1
package/dist/content-transfer.js
CHANGED
|
@@ -214,13 +214,14 @@ function useIsMobile() {
|
|
|
214
214
|
|
|
215
215
|
// src/dialog.tsx
|
|
216
216
|
import { jsx as jsx5, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
217
|
+
var DialogWindowedByDefaultContext = React5.createContext(false);
|
|
217
218
|
var Dialog = ({
|
|
218
219
|
children,
|
|
219
220
|
...props
|
|
220
221
|
}) => {
|
|
221
222
|
const isMobile = useIsMobile();
|
|
222
223
|
const modal = props.modal ?? isMobile;
|
|
223
|
-
return /* @__PURE__ */ jsx5(RadixDialogModalProvider, { modal, children: /* @__PURE__ */ jsx5(DialogPrimitive.Root, { ...props, modal, children }) });
|
|
224
|
+
return /* @__PURE__ */ jsx5(DialogWindowedByDefaultContext.Provider, { value: props.modal === void 0, children: /* @__PURE__ */ jsx5(RadixDialogModalProvider, { modal, children: /* @__PURE__ */ jsx5(DialogPrimitive.Root, { ...props, modal, children }) }) });
|
|
224
225
|
};
|
|
225
226
|
Dialog.displayName = "Dialog";
|
|
226
227
|
var DialogPortal = ({
|
|
@@ -289,6 +290,7 @@ var DialogContent = React5.forwardRef(
|
|
|
289
290
|
const injectedContainer = usePortalContainer(container);
|
|
290
291
|
const asSheet = mobileSheet && isMobile;
|
|
291
292
|
const windowed = !isModal && !asSheet;
|
|
293
|
+
const windowedByDefault = React5.useContext(DialogWindowedByDefaultContext);
|
|
292
294
|
const [containerEl, setContainerEl] = React5.useState(
|
|
293
295
|
null
|
|
294
296
|
);
|
|
@@ -349,7 +351,7 @@ var DialogContent = React5.forwardRef(
|
|
|
349
351
|
// can sit beside a host's floating window manager (which starts at
|
|
350
352
|
// z=1000); staying below that boundary makes a newly focused window
|
|
351
353
|
// usable without coupling the two systems.
|
|
352
|
-
!isModal && "z-[900]",
|
|
354
|
+
!isModal && !windowedByDefault && "z-[900]",
|
|
353
355
|
// Without an overlay the card needs its own separation from the page.
|
|
354
356
|
windowed && "shadow-2xl ring-1 ring-border/60"
|
|
355
357
|
),
|