@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
|
@@ -223,13 +223,14 @@ function useIsMobile() {
|
|
|
223
223
|
|
|
224
224
|
// src/dialog.tsx
|
|
225
225
|
import { jsx as jsx5, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
226
|
+
var DialogWindowedByDefaultContext = React5.createContext(false);
|
|
226
227
|
var Dialog = ({
|
|
227
228
|
children,
|
|
228
229
|
...props
|
|
229
230
|
}) => {
|
|
230
231
|
const isMobile = useIsMobile();
|
|
231
232
|
const modal = props.modal ?? isMobile;
|
|
232
|
-
return /* @__PURE__ */ jsx5(RadixDialogModalProvider, { modal, children: /* @__PURE__ */ jsx5(DialogPrimitive.Root, { ...props, modal, children }) });
|
|
233
|
+
return /* @__PURE__ */ jsx5(DialogWindowedByDefaultContext.Provider, { value: props.modal === void 0, children: /* @__PURE__ */ jsx5(RadixDialogModalProvider, { modal, children: /* @__PURE__ */ jsx5(DialogPrimitive.Root, { ...props, modal, children }) }) });
|
|
233
234
|
};
|
|
234
235
|
Dialog.displayName = "Dialog";
|
|
235
236
|
var DialogPortal = ({
|
|
@@ -298,6 +299,7 @@ var DialogContent = React5.forwardRef(
|
|
|
298
299
|
const injectedContainer = usePortalContainer(container);
|
|
299
300
|
const asSheet = mobileSheet && isMobile;
|
|
300
301
|
const windowed = !isModal && !asSheet;
|
|
302
|
+
const windowedByDefault = React5.useContext(DialogWindowedByDefaultContext);
|
|
301
303
|
const [containerEl, setContainerEl] = React5.useState(
|
|
302
304
|
null
|
|
303
305
|
);
|
|
@@ -358,7 +360,7 @@ var DialogContent = React5.forwardRef(
|
|
|
358
360
|
// can sit beside a host's floating window manager (which starts at
|
|
359
361
|
// z=1000); staying below that boundary makes a newly focused window
|
|
360
362
|
// usable without coupling the two systems.
|
|
361
|
-
!isModal && "z-[900]",
|
|
363
|
+
!isModal && !windowedByDefault && "z-[900]",
|
|
362
364
|
// Without an overlay the card needs its own separation from the page.
|
|
363
365
|
windowed && "shadow-2xl ring-1 ring-border/60"
|
|
364
366
|
),
|