@orangecheck/app-design 1.2.0 → 1.2.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.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { X, ChevronDown, Menu, ChevronRight, PanelLeft, Sun, Moon, SunMoon, CircleUser, LogOut, ArrowUpRight } from 'lucide-react';
2
- import Link5 from 'next/link';
2
+ import Link5 from 'next/link.js';
3
3
  import { forwardRef, createContext, useState, useContext, useMemo, useEffect, useRef, useId, createElement } from 'react';
4
4
  import { clsx } from 'clsx';
5
5
  import { extendTailwindMerge } from 'tailwind-merge';
@@ -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).