@orangecheck/app-design 1.4.0 → 1.4.1
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.d.mts +3 -2
- package/dist/chrome.d.ts +3 -2
- package/dist/chrome.js +9 -5
- package/dist/chrome.js.map +1 -1
- package/dist/chrome.mjs +9 -5
- package/dist/chrome.mjs.map +1 -1
- package/dist/components.d.mts +6 -4
- package/dist/components.d.ts +6 -4
- package/dist/components.js +170 -152
- package/dist/components.js.map +1 -1
- package/dist/components.mjs +170 -152
- package/dist/components.mjs.map +1 -1
- package/dist/{docs-BB9gK4KF.d.ts → docs-ByUx4t-D.d.ts} +2 -1
- package/dist/{docs-D-T-nHiu.d.mts → docs-CFE5mU_6.d.mts} +2 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +223 -195
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +223 -195
- package/dist/index.mjs.map +1 -1
- package/dist/mdx.d.mts +1 -1
- package/dist/mdx.d.ts +1 -1
- package/dist/mdx.js +7 -2
- package/dist/mdx.js.map +1 -1
- package/dist/mdx.mjs +7 -2
- package/dist/mdx.mjs.map +1 -1
- package/dist/primitives.d.mts +3 -3
- package/dist/primitives.d.ts +3 -3
- package/dist/primitives.js +10 -1
- package/dist/primitives.js.map +1 -1
- package/dist/primitives.mjs +10 -1
- package/dist/primitives.mjs.map +1 -1
- package/dist/session.js +1 -1
- package/dist/session.js.map +1 -1
- package/dist/session.mjs +1 -1
- package/dist/session.mjs.map +1 -1
- package/package.json +3 -2
package/dist/chrome.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import { e as FooterColumn, N as NavItem, d as FamilySlug } from './index-DmfyPYe5.mjs';
|
|
3
|
+
import { e as FooterColumn, N as NavItem, d as FamilySlug, j as ProtocolSlug } from './index-DmfyPYe5.mjs';
|
|
4
4
|
import { T as TocItem } from './hero-Dn37il-9.mjs';
|
|
5
5
|
import { a as Status } from './status-badge-BJ9Sdsx8.mjs';
|
|
6
6
|
export { A as AccountMenu, a as AccountMenuItem, b as AppShell, O as OCHK_APP_ACCOUNT, S as SessionAccountView, c as SessionState, d as ShellNavGroup, e as ShellNavItem, f as ShellSection, T as ThemeToggle, g as ToolShell, h as ToolShellProps, u as useSignInHref } from './tool-shell-D8Q8XX11.mjs';
|
|
@@ -57,7 +57,7 @@ declare function FamilyMenu({ current, className }: {
|
|
|
57
57
|
className?: string;
|
|
58
58
|
}): react.JSX.Element;
|
|
59
59
|
|
|
60
|
-
declare function SignInFrame({ title, lead, children, error, fineprint, brand, home, back, art, caption, className, }: {
|
|
60
|
+
declare function SignInFrame({ title, lead, children, error, fineprint, brand, home, protocol, back, art, caption, className, }: {
|
|
61
61
|
title?: ReactNode;
|
|
62
62
|
lead?: ReactNode;
|
|
63
63
|
children: ReactNode;
|
|
@@ -65,6 +65,7 @@ declare function SignInFrame({ title, lead, children, error, fineprint, brand, h
|
|
|
65
65
|
fineprint?: ReactNode;
|
|
66
66
|
brand?: ReactNode;
|
|
67
67
|
home?: string;
|
|
68
|
+
protocol?: ProtocolSlug;
|
|
68
69
|
back?: ReactNode;
|
|
69
70
|
art?: ReactNode;
|
|
70
71
|
caption?: ReactNode;
|
package/dist/chrome.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import { e as FooterColumn, N as NavItem, d as FamilySlug } from './index-DmfyPYe5.js';
|
|
3
|
+
import { e as FooterColumn, N as NavItem, d as FamilySlug, j as ProtocolSlug } from './index-DmfyPYe5.js';
|
|
4
4
|
import { T as TocItem } from './hero-Dn37il-9.js';
|
|
5
5
|
import { a as Status } from './status-badge-Bt8x3RhO.js';
|
|
6
6
|
export { A as AccountMenu, a as AccountMenuItem, b as AppShell, O as OCHK_APP_ACCOUNT, S as SessionAccountView, c as SessionState, d as ShellNavGroup, e as ShellNavItem, f as ShellSection, T as ThemeToggle, g as ToolShell, h as ToolShellProps, u as useSignInHref } from './tool-shell-gmlj47Ie.js';
|
|
@@ -57,7 +57,7 @@ declare function FamilyMenu({ current, className }: {
|
|
|
57
57
|
className?: string;
|
|
58
58
|
}): react.JSX.Element;
|
|
59
59
|
|
|
60
|
-
declare function SignInFrame({ title, lead, children, error, fineprint, brand, home, back, art, caption, className, }: {
|
|
60
|
+
declare function SignInFrame({ title, lead, children, error, fineprint, brand, home, protocol, back, art, caption, className, }: {
|
|
61
61
|
title?: ReactNode;
|
|
62
62
|
lead?: ReactNode;
|
|
63
63
|
children: ReactNode;
|
|
@@ -65,6 +65,7 @@ declare function SignInFrame({ title, lead, children, error, fineprint, brand, h
|
|
|
65
65
|
fineprint?: ReactNode;
|
|
66
66
|
brand?: ReactNode;
|
|
67
67
|
home?: string;
|
|
68
|
+
protocol?: ProtocolSlug;
|
|
68
69
|
back?: ReactNode;
|
|
69
70
|
art?: ReactNode;
|
|
70
71
|
caption?: ReactNode;
|
package/dist/chrome.js
CHANGED
|
@@ -1260,12 +1260,14 @@ function SignInFrame({
|
|
|
1260
1260
|
error,
|
|
1261
1261
|
fineprint,
|
|
1262
1262
|
brand,
|
|
1263
|
-
home
|
|
1263
|
+
home,
|
|
1264
|
+
protocol: protocol2,
|
|
1264
1265
|
back,
|
|
1265
1266
|
art,
|
|
1266
1267
|
caption,
|
|
1267
1268
|
className
|
|
1268
1269
|
}) {
|
|
1270
|
+
const homeHref = home ?? (protocol2 ? protocolSite(protocol2).pageHref : OCHK_IO);
|
|
1269
1271
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1270
1272
|
"main",
|
|
1271
1273
|
{
|
|
@@ -1274,14 +1276,14 @@ function SignInFrame({
|
|
|
1274
1276
|
children: [
|
|
1275
1277
|
/* @__PURE__ */ jsxRuntime.jsxs("section", { className: "flex flex-col px-4 pb-8 pt-5 sm:px-8 lg:px-14 lg:pt-8", children: [
|
|
1276
1278
|
/* @__PURE__ */ jsxRuntime.jsxs("header", { className: "flex items-center justify-between gap-4", children: [
|
|
1277
|
-
/* @__PURE__ */ jsxRuntime.jsxs(Link__default.default, { href:
|
|
1279
|
+
/* @__PURE__ */ jsxRuntime.jsxs(Link__default.default, { href: homeHref, className: "w-fit rounded-lg", children: [
|
|
1278
1280
|
brand ?? /* @__PURE__ */ jsxRuntime.jsx(Lockup, { size: 28 }),
|
|
1279
1281
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: " home" })
|
|
1280
1282
|
] }),
|
|
1281
1283
|
back === void 0 ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
1282
1284
|
Link__default.default,
|
|
1283
1285
|
{
|
|
1284
|
-
href:
|
|
1286
|
+
href: homeHref,
|
|
1285
1287
|
className: "text-[0.9375rem] text-muted-foreground underline-offset-4 hover:text-foreground hover:underline",
|
|
1286
1288
|
children: "Back to home"
|
|
1287
1289
|
}
|
|
@@ -1628,6 +1630,7 @@ function DocsShell({
|
|
|
1628
1630
|
footer ?? /* @__PURE__ */ jsxRuntime.jsx(OchkIoFooter, {})
|
|
1629
1631
|
] });
|
|
1630
1632
|
}
|
|
1633
|
+
var SiteHomeContext = sharedContext("site-home", void 0);
|
|
1631
1634
|
var OCHK_APP_ACCOUNT = "https://ochk.app/me/account";
|
|
1632
1635
|
function onHistory(change) {
|
|
1633
1636
|
window.addEventListener("popstate", change);
|
|
@@ -1699,6 +1702,7 @@ function ToolShell({
|
|
|
1699
1702
|
children
|
|
1700
1703
|
}) {
|
|
1701
1704
|
const p = protocolSite(protocol2);
|
|
1705
|
+
const homeHref = home ?? p.pageHref;
|
|
1702
1706
|
const app = variant === "app";
|
|
1703
1707
|
const tabs = app ? null : tabsFor([{ items: [...tools] }]);
|
|
1704
1708
|
const about = /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -1728,7 +1732,7 @@ function ToolShell({
|
|
|
1728
1732
|
SiteHeader,
|
|
1729
1733
|
{
|
|
1730
1734
|
variant: "tool",
|
|
1731
|
-
home:
|
|
1735
|
+
home: homeHref,
|
|
1732
1736
|
product: p.label,
|
|
1733
1737
|
family: protocol2,
|
|
1734
1738
|
nav: tools.map((t) => ({ href: t.href, label: t.label, active: t.active })),
|
|
@@ -1753,7 +1757,7 @@ function ToolShell({
|
|
|
1753
1757
|
{
|
|
1754
1758
|
id: "main-content",
|
|
1755
1759
|
className: cn("min-w-0 flex-1", app ? "flex min-h-0 flex-col" : "px-4 pb-16 pt-8 md:px-8 md:pt-10"),
|
|
1756
|
-
children: app ? children : /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mx-auto w-full max-w-[72rem]", children })
|
|
1760
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(SiteHomeContext.Provider, { value: homeHref, children: app ? children : /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mx-auto w-full max-w-[72rem]", children }) })
|
|
1757
1761
|
}
|
|
1758
1762
|
)
|
|
1759
1763
|
] }),
|