@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.mjs CHANGED
@@ -570,7 +570,7 @@ function NavDropdown({ item }) {
570
570
  PopoverTrigger,
571
571
  {
572
572
  className: cn(
573
- "group inline-flex items-center gap-1 rounded-full py-2 pl-3 pr-2.5 text-[0.9375rem] transition-colors",
573
+ "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",
574
574
  active ? "text-foreground" : "text-muted-foreground hover:text-foreground data-[state=open]:text-foreground"
575
575
  ),
576
576
  children: [
@@ -619,7 +619,10 @@ function SiteHeader({
619
619
  ] }) : null
620
620
  ] });
621
621
  const navigation = nav.length > 0 ? /* @__PURE__ */ jsx("nav", { "aria-label": "Main", className: "hidden items-center gap-1 md:flex", children: nav.map(
622
- (n) => n.children?.length ? /* @__PURE__ */ jsx(NavDropdown, { item: n }, n.href) : /* @__PURE__ */ jsx(NavLink, { item: n, line: tool }, n.href)
622
+ (n) => n.children?.length ? /* @__PURE__ */ jsx(NavDropdown, { item: n }, n.href) : (
623
+ // Between md and lg the family menu and the actions share the row: tighter.
624
+ /* @__PURE__ */ jsx(NavLink, { item: n, line: tool, className: tool ? void 0 : "md:max-lg:px-2.5" }, n.href)
625
+ )
623
626
  ) }) : null;
624
627
  return /* @__PURE__ */ jsx(
625
628
  "header",
@@ -634,7 +637,7 @@ function SiteHeader({
634
637
  {
635
638
  className: cn(
636
639
  "flex items-center justify-between gap-4",
637
- tool ? "h-14 px-4 md:px-6" : "oca-container h-16 md:h-[4.5rem]",
640
+ tool ? "h-14 px-4 md:px-6" : "oca-container h-16 md:h-[4.5rem] md:max-lg:gap-2",
638
641
  // Three columns, the outer two each at least their content: the
639
642
  // navigation stays centred whatever the actions hold, so it does
640
643
  // not shift when they change (signed out to signed in).
@@ -742,9 +745,9 @@ function SiteBanner({
742
745
  ] }) });
743
746
  }
744
747
  var FOOT_LINK = "inline-flex min-h-11 items-center transition-colors hover:text-foreground md:min-h-0";
745
- function LegalRow() {
748
+ function LegalRow({ links }) {
746
749
  return /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-x-6 gap-y-2 sm:flex-row sm:items-center sm:justify-between", children: [
747
- /* @__PURE__ */ jsx("nav", { "aria-label": "Legal", children: /* @__PURE__ */ jsx("ul", { className: "flex flex-wrap gap-x-5", children: LEGAL_LINKS.map((l) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx("a", { href: l.href, className: FOOT_LINK, children: l.label }) }, l.href)) }) }),
750
+ /* @__PURE__ */ jsx("nav", { "aria-label": "Legal", children: /* @__PURE__ */ jsx("ul", { className: "flex flex-wrap gap-x-5", children: links.map((l) => /* @__PURE__ */ jsx("li", { children: l.href.startsWith("/") ? /* @__PURE__ */ jsx(Link5, { href: l.href, className: FOOT_LINK, children: l.label }) : /* @__PURE__ */ jsx("a", { href: l.href, className: FOOT_LINK, children: l.label }) }, l.href)) }) }),
748
751
  /* @__PURE__ */ jsxs("p", { children: [
749
752
  "\xA9 ",
750
753
  (/* @__PURE__ */ new Date()).getFullYear(),
@@ -762,14 +765,15 @@ function SiteFooter({
762
765
  signature = true,
763
766
  className
764
767
  }) {
768
+ const legalLinks = legal === true ? LEGAL_LINKS : legal || null;
765
769
  if (compact) {
766
770
  return /* @__PURE__ */ jsx("footer", { className: cn("border-t border-border bg-background text-[0.875rem] text-muted-foreground", className), children: /* @__PURE__ */ 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: [
767
771
  /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-center gap-x-6 gap-y-1", children: [
768
772
  /* @__PURE__ */ jsx("a", { href: OCHK_IO, className: "rounded-lg text-foreground", children: /* @__PURE__ */ jsx(Lockup, { size: 22 }) }),
769
773
  family ? /* @__PURE__ */ jsx("nav", { "aria-label": "Protocols", children: /* @__PURE__ */ jsx("ul", { className: "flex flex-wrap gap-x-4", children: PROTOCOLS.map((p) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx("a", { href: p.pageHref, className: FOOT_LINK, children: p.label }) }, p.slug)) }) }) : null
770
774
  ] }),
771
- legal || meta ? /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-x-6 gap-y-2 sm:flex-row sm:flex-wrap sm:items-center", children: [
772
- legal ? /* @__PURE__ */ jsx(LegalRow, {}) : null,
775
+ legalLinks || meta ? /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-x-6 gap-y-2 sm:flex-row sm:flex-wrap sm:items-center", children: [
776
+ legalLinks ? /* @__PURE__ */ jsx(LegalRow, { links: legalLinks }) : null,
773
777
  meta
774
778
  ] }) : null
775
779
  ] }) });
@@ -827,8 +831,8 @@ function SiteFooter({
827
831
  /* @__PURE__ */ jsx("span", { className: "mb-[0.06em] inline-block w-[1.1em] shrink-0", children: /* @__PURE__ */ jsx(Mark, { className: "block h-auto w-full" }) }),
828
832
  /* @__PURE__ */ jsx("span", { children: "orangecheck" })
829
833
  ] }) }) : null,
830
- legal || meta ? /* @__PURE__ */ jsx("div", { className: "oca-container", children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-3 border-t border-border py-6 text-[0.875rem] text-muted-foreground", children: [
831
- legal ? /* @__PURE__ */ jsx(LegalRow, {}) : null,
834
+ legalLinks || meta ? /* @__PURE__ */ jsx("div", { className: "oca-container", children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-3 border-t border-border py-6 text-[0.875rem] text-muted-foreground", children: [
835
+ legalLinks ? /* @__PURE__ */ jsx(LegalRow, { links: legalLinks }) : null,
832
836
  meta
833
837
  ] }) }) : null
834
838
  ] });