@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/index.js CHANGED
@@ -20,7 +20,7 @@ var PopoverPrimitive = require('@radix-ui/react-popover');
20
20
  var TooltipPrimitive = require('@radix-ui/react-tooltip');
21
21
  var TabsPrimitive = require('@radix-ui/react-tabs');
22
22
  var QRCode = require('qrcode');
23
- var Link8 = require('next/link');
23
+ var Link8 = require('next/link.js');
24
24
  var nextThemes = require('next-themes');
25
25
 
26
26
  function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
@@ -5771,7 +5771,7 @@ function NavDropdown({ item }) {
5771
5771
  PopoverTrigger,
5772
5772
  {
5773
5773
  className: cn(
5774
- "group inline-flex items-center gap-1 rounded-full py-2 pl-3 pr-2.5 text-[0.9375rem] transition-colors",
5774
+ "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",
5775
5775
  active ? "text-foreground" : "text-muted-foreground hover:text-foreground data-[state=open]:text-foreground"
5776
5776
  ),
5777
5777
  children: [
@@ -5820,7 +5820,10 @@ function SiteHeader({
5820
5820
  ] }) : null
5821
5821
  ] });
5822
5822
  const navigation = nav.length > 0 ? /* @__PURE__ */ jsxRuntime.jsx("nav", { "aria-label": "Main", className: "hidden items-center gap-1 md:flex", children: nav.map(
5823
- (n) => n.children?.length ? /* @__PURE__ */ jsxRuntime.jsx(NavDropdown, { item: n }, n.href) : /* @__PURE__ */ jsxRuntime.jsx(NavLink, { item: n, line: tool }, n.href)
5823
+ (n) => n.children?.length ? /* @__PURE__ */ jsxRuntime.jsx(NavDropdown, { item: n }, n.href) : (
5824
+ // Between md and lg the family menu and the actions share the row: tighter.
5825
+ /* @__PURE__ */ jsxRuntime.jsx(NavLink, { item: n, line: tool, className: tool ? void 0 : "md:max-lg:px-2.5" }, n.href)
5826
+ )
5824
5827
  ) }) : null;
5825
5828
  return /* @__PURE__ */ jsxRuntime.jsx(
5826
5829
  "header",
@@ -5835,7 +5838,7 @@ function SiteHeader({
5835
5838
  {
5836
5839
  className: cn(
5837
5840
  "flex items-center justify-between gap-4",
5838
- tool ? "h-14 px-4 md:px-6" : "oca-container h-16 md:h-[4.5rem]",
5841
+ tool ? "h-14 px-4 md:px-6" : "oca-container h-16 md:h-[4.5rem] md:max-lg:gap-2",
5839
5842
  // Three columns, the outer two each at least their content: the
5840
5843
  // navigation stays centred whatever the actions hold, so it does
5841
5844
  // not shift when they change (signed out to signed in).