@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.js CHANGED
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var lucideReact = require('lucide-react');
4
- var Link5 = require('next/link');
4
+ var Link5 = require('next/link.js');
5
5
  var react = require('react');
6
6
  var clsx = require('clsx');
7
7
  var tailwindMerge = require('tailwind-merge');
@@ -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).