@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/index.mjs CHANGED
@@ -921,7 +921,8 @@ function ScrollFade({ fade = "var(--card)", className, innerClassName, children,
921
921
  onScroll: measure,
922
922
  tabIndex: edges.left || edges.right ? 0 : void 0,
923
923
  className: cn(
924
- "overflow-x-auto overscroll-x-contain rounded-[inherit] outline-none focus-visible:ring-2 focus-visible:ring-ring",
924
+ // Positioned, so sr-only text deep in a wide row scrolls and clips with the row.
925
+ "relative overflow-x-auto overscroll-x-contain rounded-[inherit] outline-none focus-visible:ring-2 focus-visible:ring-ring",
925
926
  innerClassName
926
927
  ),
927
928
  children
@@ -4209,7 +4210,7 @@ function Panel({
4209
4210
  const [open, setOpen] = useState(false);
4210
4211
  const body = (expanded) => typeof children === "function" ? children(expanded) : children;
4211
4212
  const head = (expanded) => /* @__PURE__ */ jsxs("header", { className: "flex flex-wrap items-start justify-between gap-x-4 gap-y-2", children: [
4212
- /* @__PURE__ */ jsxs("div", { className: "flex min-w-0 flex-col gap-1", children: [
4213
+ /* @__PURE__ */ jsxs("div", { className: "flex min-w-[min(100%,12rem)] flex-1 basis-0 flex-col gap-1", children: [
4213
4214
  expanded ? /* @__PURE__ */ jsx(DialogTitle, { className: "text-[1.0625rem] font-medium leading-snug", children: title }) : /* @__PURE__ */ jsx("h3", { className: "text-[1rem] font-medium leading-snug", children: title }),
4214
4215
  description ? expanded ? /* @__PURE__ */ jsx(DialogDescription, { className: "text-[0.875rem] leading-snug text-muted-foreground", children: description }) : /* @__PURE__ */ jsx("p", { className: "text-[0.875rem] leading-snug text-muted-foreground", children: description }) : null
4215
4216
  ] }),
@@ -4238,7 +4239,7 @@ function Panel({
4238
4239
  className: "flex h-[min(92dvh,56rem)] w-[min(96vw,80rem)] max-w-none flex-col gap-4 overflow-y-auto",
4239
4240
  children: [
4240
4241
  head(true),
4241
- /* @__PURE__ */ jsx("div", { className: "min-h-0 min-w-0 flex-1", children: open ? body(true) : null }),
4242
+ /* @__PURE__ */ jsx("div", { className: "min-h-0 min-w-0 flex-1 overflow-y-auto", children: open ? body(true) : null }),
4242
4243
  source ? /* @__PURE__ */ jsx("div", { className: "border-t border-border pt-3", children: source }) : null
4243
4244
  ]
4244
4245
  }
@@ -6630,7 +6631,7 @@ function RailShell({ nav = [], persistent = [], page: pageOverride, header, acco
6630
6631
  const tabs = tabsFor([{ items: [...main, ...foot] }]);
6631
6632
  const active = activeItem([...nav, ...persistent]);
6632
6633
  const place = useMemo(() => ({ page: pageOverride ?? active?.label }), [pageOverride, active?.label]);
6633
- return /* @__PURE__ */ jsx(ShellContext.Provider, { value: place, children: /* @__PURE__ */ jsx(TooltipProvider, { delayDuration: 300, children: /* @__PURE__ */ jsxs("div", { className: cn("flex h-dvh flex-col overflow-hidden bg-background", className), children: [
6634
+ return /* @__PURE__ */ jsx(ShellContext.Provider, { value: place, children: /* @__PURE__ */ jsx(TooltipProvider, { delayDuration: 300, children: /* @__PURE__ */ jsxs("div", { className: cn("relative flex h-dvh flex-col overflow-clip bg-background", className), children: [
6634
6635
  header,
6635
6636
  banner,
6636
6637
  /* @__PURE__ */ jsxs("div", { className: "flex min-h-0 flex-1", children: [
@@ -7345,7 +7346,9 @@ function ToolShell({
7345
7346
  {
7346
7347
  className: cn(
7347
7348
  "flex flex-col bg-background",
7348
- app ? "h-dvh overflow-hidden" : "min-h-dvh",
7349
+ // An app frame contains what is positioned inside it (sr-only text deep in the page's own
7350
+ // scroller would otherwise size the document), and clips without becoming a scroller.
7351
+ app ? "relative h-dvh overflow-clip" : "min-h-dvh",
7349
7352
  tabs && "max-md:pb-[calc(3.5rem_+_env(safe-area-inset-bottom))]"
7350
7353
  ),
7351
7354
  children: [