@orangecheck/app-design 1.1.1 → 1.2.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.
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 +13 -9
  4. package/dist/chrome.js.map +1 -1
  5. package/dist/chrome.mjs +13 -9
  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 +21 -9
  24. package/dist/index.js.map +1 -1
  25. package/dist/index.mjs +21 -10
  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
@@ -599,7 +599,7 @@ function NavDropdown({ item }) {
599
599
  PopoverTrigger,
600
600
  {
601
601
  className: cn(
602
- "group inline-flex items-center gap-1 rounded-full py-2 pl-3 pr-2.5 text-[0.9375rem] transition-colors",
602
+ "group inline-flex items-center gap-1 rounded-full py-2 pl-3 pr-2.5 text-[0.9375rem] transition-colors md:max-lg:pl-2.5 md:max-lg:pr-2",
603
603
  active ? "text-foreground" : "text-muted-foreground hover:text-foreground data-[state=open]:text-foreground"
604
604
  ),
605
605
  children: [
@@ -648,7 +648,10 @@ function SiteHeader({
648
648
  ] }) : null
649
649
  ] });
650
650
  const navigation = nav.length > 0 ? /* @__PURE__ */ jsxRuntime.jsx("nav", { "aria-label": "Main", className: "hidden items-center gap-1 md:flex", children: nav.map(
651
- (n) => n.children?.length ? /* @__PURE__ */ jsxRuntime.jsx(NavDropdown, { item: n }, n.href) : /* @__PURE__ */ jsxRuntime.jsx(NavLink, { item: n, line: tool }, n.href)
651
+ (n) => n.children?.length ? /* @__PURE__ */ jsxRuntime.jsx(NavDropdown, { item: n }, n.href) : (
652
+ // Between md and lg the family menu and the actions share the row: tighter.
653
+ /* @__PURE__ */ jsxRuntime.jsx(NavLink, { item: n, line: tool, className: tool ? void 0 : "md:max-lg:px-2.5" }, n.href)
654
+ )
652
655
  ) }) : null;
653
656
  return /* @__PURE__ */ jsxRuntime.jsx(
654
657
  "header",
@@ -663,7 +666,7 @@ function SiteHeader({
663
666
  {
664
667
  className: cn(
665
668
  "flex items-center justify-between gap-4",
666
- tool ? "h-14 px-4 md:px-6" : "oca-container h-16 md:h-[4.5rem]",
669
+ tool ? "h-14 px-4 md:px-6" : "oca-container h-16 md:h-[4.5rem] md:max-lg:gap-2",
667
670
  // Three columns, the outer two each at least their content: the
668
671
  // navigation stays centred whatever the actions hold, so it does
669
672
  // not shift when they change (signed out to signed in).
@@ -771,9 +774,9 @@ function SiteBanner({
771
774
  ] }) });
772
775
  }
773
776
  var FOOT_LINK = "inline-flex min-h-11 items-center transition-colors hover:text-foreground md:min-h-0";
774
- function LegalRow() {
777
+ function LegalRow({ links }) {
775
778
  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)) }) }),
779
+ /* @__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
780
  /* @__PURE__ */ jsxRuntime.jsxs("p", { children: [
778
781
  "\xA9 ",
779
782
  (/* @__PURE__ */ new Date()).getFullYear(),
@@ -791,14 +794,15 @@ function SiteFooter({
791
794
  signature = true,
792
795
  className
793
796
  }) {
797
+ const legalLinks = legal === true ? LEGAL_LINKS : legal || null;
794
798
  if (compact) {
795
799
  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
800
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-wrap items-center gap-x-6 gap-y-1", children: [
797
801
  /* @__PURE__ */ jsxRuntime.jsx("a", { href: OCHK_IO, className: "rounded-lg text-foreground", children: /* @__PURE__ */ jsxRuntime.jsx(Lockup, { size: 22 }) }),
798
802
  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
803
  ] }),
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,
804
+ 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: [
805
+ legalLinks ? /* @__PURE__ */ jsxRuntime.jsx(LegalRow, { links: legalLinks }) : null,
802
806
  meta
803
807
  ] }) : null
804
808
  ] }) });
@@ -856,8 +860,8 @@ function SiteFooter({
856
860
  /* @__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
861
  /* @__PURE__ */ jsxRuntime.jsx("span", { children: "orangecheck" })
858
862
  ] }) }) : 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,
863
+ 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: [
864
+ legalLinks ? /* @__PURE__ */ jsxRuntime.jsx(LegalRow, { links: legalLinks }) : null,
861
865
  meta
862
866
  ] }) }) : null
863
867
  ] });