@orangecheck/app-design 1.1.1 → 1.2.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.
Files changed (39) hide show
  1. package/dist/chrome.d.mts +4 -4
  2. package/dist/chrome.d.ts +4 -4
  3. package/dist/chrome.js +7 -6
  4. package/dist/chrome.js.map +1 -1
  5. package/dist/chrome.mjs +7 -6
  6. package/dist/chrome.mjs.map +1 -1
  7. package/dist/components.d.mts +3 -3
  8. package/dist/components.d.ts +3 -3
  9. package/dist/components.js.map +1 -1
  10. package/dist/components.mjs.map +1 -1
  11. package/dist/{docs-DhnstueM.d.ts → docs-Dxg4Tp_q.d.ts} +2 -2
  12. package/dist/{docs-DiR6s43s.d.mts → docs-wJBfLS08.d.mts} +2 -2
  13. package/dist/family.d.mts +1 -1
  14. package/dist/family.d.ts +1 -1
  15. package/dist/family.js +8 -0
  16. package/dist/family.js.map +1 -1
  17. package/dist/family.mjs +8 -1
  18. package/dist/family.mjs.map +1 -1
  19. package/dist/{index-C6hDqOOS.d.mts → index-DmfyPYe5.d.mts} +2 -1
  20. package/dist/{index-C6hDqOOS.d.ts → index-DmfyPYe5.d.ts} +2 -1
  21. package/dist/index.d.mts +4 -4
  22. package/dist/index.d.ts +4 -4
  23. package/dist/index.js +15 -6
  24. package/dist/index.js.map +1 -1
  25. package/dist/index.mjs +15 -7
  26. package/dist/index.mjs.map +1 -1
  27. package/dist/mdx.d.mts +3 -3
  28. package/dist/mdx.d.ts +3 -3
  29. package/dist/mdx.js.map +1 -1
  30. package/dist/mdx.mjs.map +1 -1
  31. package/dist/primitives.d.mts +2 -2
  32. package/dist/primitives.d.ts +2 -2
  33. package/dist/session.d.mts +3 -3
  34. package/dist/session.d.ts +3 -3
  35. package/dist/{status-badge-DRwGhB0h.d.mts → status-badge-BJ9Sdsx8.d.mts} +1 -1
  36. package/dist/{status-badge-BEOxeY9j.d.ts → status-badge-Bt8x3RhO.d.ts} +1 -1
  37. package/dist/{tool-shell-B1C7ahKE.d.ts → tool-shell-DLSwUxTD.d.ts} +1 -1
  38. package/dist/{tool-shell-BDx_N5ai.d.mts → tool-shell-kqGWMTep.d.mts} +1 -1
  39. package/package.json +1 -1
package/dist/chrome.d.mts CHANGED
@@ -1,9 +1,9 @@
1
1
  import * as react from 'react';
2
2
  import { ReactNode } from 'react';
3
- import { e as FooterColumn, d as FamilySlug, N as NavItem } from './index-C6hDqOOS.mjs';
3
+ import { e as FooterColumn, N as NavItem, d as FamilySlug } from './index-DmfyPYe5.mjs';
4
4
  import { T as TocItem } from './hero-Dn37il-9.mjs';
5
- import { a as Status } from './status-badge-DRwGhB0h.mjs';
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 } from './tool-shell-BDx_N5ai.mjs';
5
+ import { a as Status } from './status-badge-BJ9Sdsx8.mjs';
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 } from './tool-shell-kqGWMTep.mjs';
7
7
  import './tools-DFIxIj5p.mjs';
8
8
  import './format.mjs';
9
9
 
@@ -39,7 +39,7 @@ declare function SiteBanner({ tone, children, action, className, }: {
39
39
  interface SiteFooterProps {
40
40
  columns?: readonly FooterColumn[];
41
41
  family?: boolean;
42
- legal?: boolean;
42
+ legal?: boolean | readonly NavItem[];
43
43
  compact?: boolean;
44
44
  fineprint?: ReactNode;
45
45
  meta?: ReactNode;
package/dist/chrome.d.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  import * as react from 'react';
2
2
  import { ReactNode } from 'react';
3
- import { e as FooterColumn, d as FamilySlug, N as NavItem } from './index-C6hDqOOS.js';
3
+ import { e as FooterColumn, N as NavItem, d as FamilySlug } from './index-DmfyPYe5.js';
4
4
  import { T as TocItem } from './hero-Dn37il-9.js';
5
- import { a as Status } from './status-badge-BEOxeY9j.js';
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 } from './tool-shell-B1C7ahKE.js';
5
+ import { a as Status } from './status-badge-Bt8x3RhO.js';
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 } from './tool-shell-DLSwUxTD.js';
7
7
  import './tools-BggNN5DV.js';
8
8
  import './format.js';
9
9
 
@@ -39,7 +39,7 @@ declare function SiteBanner({ tone, children, action, className, }: {
39
39
  interface SiteFooterProps {
40
40
  columns?: readonly FooterColumn[];
41
41
  family?: boolean;
42
- legal?: boolean;
42
+ legal?: boolean | readonly NavItem[];
43
43
  compact?: boolean;
44
44
  fineprint?: ReactNode;
45
45
  meta?: ReactNode;
package/dist/chrome.js CHANGED
@@ -771,9 +771,9 @@ function SiteBanner({
771
771
  ] }) });
772
772
  }
773
773
  var FOOT_LINK = "inline-flex min-h-11 items-center transition-colors hover:text-foreground md:min-h-0";
774
- function LegalRow() {
774
+ function LegalRow({ links }) {
775
775
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-x-6 gap-y-2 sm:flex-row sm:items-center sm:justify-between", children: [
776
- /* @__PURE__ */ jsxRuntime.jsx("nav", { "aria-label": "Legal", children: /* @__PURE__ */ jsxRuntime.jsx("ul", { className: "flex flex-wrap gap-x-5", children: LEGAL_LINKS.map((l) => /* @__PURE__ */ jsxRuntime.jsx("li", { children: /* @__PURE__ */ jsxRuntime.jsx("a", { href: l.href, className: FOOT_LINK, children: l.label }) }, l.href)) }) }),
776
+ /* @__PURE__ */ jsxRuntime.jsx("nav", { "aria-label": "Legal", children: /* @__PURE__ */ jsxRuntime.jsx("ul", { className: "flex flex-wrap gap-x-5", children: links.map((l) => /* @__PURE__ */ jsxRuntime.jsx("li", { children: l.href.startsWith("/") ? /* @__PURE__ */ jsxRuntime.jsx(Link5__default.default, { href: l.href, className: FOOT_LINK, children: l.label }) : /* @__PURE__ */ jsxRuntime.jsx("a", { href: l.href, className: FOOT_LINK, children: l.label }) }, l.href)) }) }),
777
777
  /* @__PURE__ */ jsxRuntime.jsxs("p", { children: [
778
778
  "\xA9 ",
779
779
  (/* @__PURE__ */ new Date()).getFullYear(),
@@ -791,14 +791,15 @@ function SiteFooter({
791
791
  signature = true,
792
792
  className
793
793
  }) {
794
+ const legalLinks = legal === true ? LEGAL_LINKS : legal || null;
794
795
  if (compact) {
795
796
  return /* @__PURE__ */ jsxRuntime.jsx("footer", { className: cn("border-t border-border bg-background text-[0.875rem] text-muted-foreground", className), children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "oca-container flex flex-col gap-x-8 gap-y-3 py-5 lg:flex-row lg:items-center lg:justify-between", children: [
796
797
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-wrap items-center gap-x-6 gap-y-1", children: [
797
798
  /* @__PURE__ */ jsxRuntime.jsx("a", { href: OCHK_IO, className: "rounded-lg text-foreground", children: /* @__PURE__ */ jsxRuntime.jsx(Lockup, { size: 22 }) }),
798
799
  family ? /* @__PURE__ */ jsxRuntime.jsx("nav", { "aria-label": "Protocols", children: /* @__PURE__ */ jsxRuntime.jsx("ul", { className: "flex flex-wrap gap-x-4", children: PROTOCOLS.map((p) => /* @__PURE__ */ jsxRuntime.jsx("li", { children: /* @__PURE__ */ jsxRuntime.jsx("a", { href: p.pageHref, className: FOOT_LINK, children: p.label }) }, p.slug)) }) }) : null
799
800
  ] }),
800
- legal || meta ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-x-6 gap-y-2 sm:flex-row sm:flex-wrap sm:items-center", children: [
801
- legal ? /* @__PURE__ */ jsxRuntime.jsx(LegalRow, {}) : null,
801
+ legalLinks || meta ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-x-6 gap-y-2 sm:flex-row sm:flex-wrap sm:items-center", children: [
802
+ legalLinks ? /* @__PURE__ */ jsxRuntime.jsx(LegalRow, { links: legalLinks }) : null,
802
803
  meta
803
804
  ] }) : null
804
805
  ] }) });
@@ -856,8 +857,8 @@ function SiteFooter({
856
857
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "mb-[0.06em] inline-block w-[1.1em] shrink-0", children: /* @__PURE__ */ jsxRuntime.jsx(Mark, { className: "block h-auto w-full" }) }),
857
858
  /* @__PURE__ */ jsxRuntime.jsx("span", { children: "orangecheck" })
858
859
  ] }) }) : null,
859
- legal || meta ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "oca-container", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-3 border-t border-border py-6 text-[0.875rem] text-muted-foreground", children: [
860
- legal ? /* @__PURE__ */ jsxRuntime.jsx(LegalRow, {}) : null,
860
+ legalLinks || meta ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "oca-container", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-3 border-t border-border py-6 text-[0.875rem] text-muted-foreground", children: [
861
+ legalLinks ? /* @__PURE__ */ jsxRuntime.jsx(LegalRow, { links: legalLinks }) : null,
861
862
  meta
862
863
  ] }) }) : null
863
864
  ] });