@orangecheck/app-design 1.6.0 → 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 +5 -4
- package/dist/components.js.map +1 -1
- package/dist/components.mjs +5 -4
- package/dist/components.mjs.map +1 -1
- package/dist/index.js +9 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -6
- 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/dist/styles/tokens.css +2 -0
- package/package.json +6 -2
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
|
-
|
|
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
|
}
|
|
@@ -5337,7 +5338,7 @@ function SignMessage({
|
|
|
5337
5338
|
return /* @__PURE__ */ jsxs("div", { className: cn("flex flex-col gap-5", className), children: [
|
|
5338
5339
|
lead ? /* @__PURE__ */ jsx("p", { className: "text-[0.9375rem] leading-relaxed", children: lead }) : null,
|
|
5339
5340
|
wallets ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
5340
|
-
/* @__PURE__ */ jsx("div", { className: "flex flex-wrap gap-2", children: wallets }),
|
|
5341
|
+
/* @__PURE__ */ jsx("div", { className: "flex flex-wrap gap-2 [--oc-wallet-heading:none]", children: wallets }),
|
|
5341
5342
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3 text-[0.8125rem] text-muted-foreground", children: [
|
|
5342
5343
|
/* @__PURE__ */ jsx("span", { className: "h-px flex-1 bg-border" }),
|
|
5343
5344
|
"or sign it in any wallet",
|
|
@@ -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-
|
|
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
|
|
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: [
|