@orangecheck/app-design 1.6.1 → 1.6.2
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/chrome.js +4 -2
- package/dist/chrome.js.map +1 -1
- package/dist/chrome.mjs +4 -2
- package/dist/chrome.mjs.map +1 -1
- package/dist/components.js +4 -3
- package/dist/components.js.map +1 -1
- package/dist/components.mjs +4 -3
- package/dist/components.mjs.map +1 -1
- package/dist/index.js +8 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -5
- package/dist/index.mjs.map +1 -1
- package/dist/mdx.js +2 -1
- package/dist/mdx.js.map +1 -1
- package/dist/mdx.mjs +2 -1
- package/dist/mdx.mjs.map +1 -1
- package/dist/primitives.js +2 -1
- package/dist/primitives.js.map +1 -1
- package/dist/primitives.mjs +2 -1
- package/dist/primitives.mjs.map +1 -1
- package/dist/session.js.map +1 -1
- package/dist/session.mjs.map +1 -1
- package/package.json +5 -2
package/dist/index.js
CHANGED
|
@@ -956,7 +956,8 @@ function ScrollFade({ fade = "var(--card)", className, innerClassName, children,
|
|
|
956
956
|
onScroll: measure,
|
|
957
957
|
tabIndex: edges.left || edges.right ? 0 : void 0,
|
|
958
958
|
className: cn(
|
|
959
|
-
|
|
959
|
+
// Positioned, so sr-only text deep in a wide row scrolls and clips with the row.
|
|
960
|
+
"relative overflow-x-auto overscroll-x-contain rounded-[inherit] outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
960
961
|
innerClassName
|
|
961
962
|
),
|
|
962
963
|
children
|
|
@@ -4244,7 +4245,7 @@ function Panel({
|
|
|
4244
4245
|
const [open, setOpen] = react.useState(false);
|
|
4245
4246
|
const body = (expanded) => typeof children === "function" ? children(expanded) : children;
|
|
4246
4247
|
const head = (expanded) => /* @__PURE__ */ jsxRuntime.jsxs("header", { className: "flex flex-wrap items-start justify-between gap-x-4 gap-y-2", children: [
|
|
4247
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex min-w-0 flex-col gap-1", children: [
|
|
4248
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex min-w-[min(100%,12rem)] flex-1 basis-0 flex-col gap-1", children: [
|
|
4248
4249
|
expanded ? /* @__PURE__ */ jsxRuntime.jsx(DialogTitle, { className: "text-[1.0625rem] font-medium leading-snug", children: title }) : /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "text-[1rem] font-medium leading-snug", children: title }),
|
|
4249
4250
|
description ? expanded ? /* @__PURE__ */ jsxRuntime.jsx(DialogDescription, { className: "text-[0.875rem] leading-snug text-muted-foreground", children: description }) : /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-[0.875rem] leading-snug text-muted-foreground", children: description }) : null
|
|
4250
4251
|
] }),
|
|
@@ -4273,7 +4274,7 @@ function Panel({
|
|
|
4273
4274
|
className: "flex h-[min(92dvh,56rem)] w-[min(96vw,80rem)] max-w-none flex-col gap-4 overflow-y-auto",
|
|
4274
4275
|
children: [
|
|
4275
4276
|
head(true),
|
|
4276
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "min-h-0 min-w-0 flex-1", children: open ? body(true) : null }),
|
|
4277
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "min-h-0 min-w-0 flex-1 overflow-y-auto", children: open ? body(true) : null }),
|
|
4277
4278
|
source ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "border-t border-border pt-3", children: source }) : null
|
|
4278
4279
|
]
|
|
4279
4280
|
}
|
|
@@ -6665,7 +6666,7 @@ function RailShell({ nav = [], persistent = [], page: pageOverride, header, acco
|
|
|
6665
6666
|
const tabs = tabsFor([{ items: [...main, ...foot] }]);
|
|
6666
6667
|
const active = activeItem([...nav, ...persistent]);
|
|
6667
6668
|
const place = react.useMemo(() => ({ page: pageOverride ?? active?.label }), [pageOverride, active?.label]);
|
|
6668
|
-
return /* @__PURE__ */ jsxRuntime.jsx(ShellContext.Provider, { value: place, children: /* @__PURE__ */ jsxRuntime.jsx(TooltipProvider, { delayDuration: 300, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn("flex h-dvh flex-col overflow-
|
|
6669
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ShellContext.Provider, { value: place, children: /* @__PURE__ */ jsxRuntime.jsx(TooltipProvider, { delayDuration: 300, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn("relative flex h-dvh flex-col overflow-clip bg-background", className), children: [
|
|
6669
6670
|
header,
|
|
6670
6671
|
banner,
|
|
6671
6672
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex min-h-0 flex-1", children: [
|
|
@@ -7380,7 +7381,9 @@ function ToolShell({
|
|
|
7380
7381
|
{
|
|
7381
7382
|
className: cn(
|
|
7382
7383
|
"flex flex-col bg-background",
|
|
7383
|
-
app
|
|
7384
|
+
// An app frame contains what is positioned inside it (sr-only text deep in the page's own
|
|
7385
|
+
// scroller would otherwise size the document), and clips without becoming a scroller.
|
|
7386
|
+
app ? "relative h-dvh overflow-clip" : "min-h-dvh",
|
|
7384
7387
|
tabs && "max-md:pb-[calc(3.5rem_+_env(safe-area-inset-bottom))]"
|
|
7385
7388
|
),
|
|
7386
7389
|
children: [
|