@orangecheck/ui 0.8.1 → 0.8.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
@@ -375,7 +375,7 @@ function OcLogoDropdown({
375
375
  "div",
376
376
  {
377
377
  ref: containerRef,
378
- className: "relative " + (className ?? ""),
378
+ className: "relative inline-flex items-center " + (className ?? ""),
379
379
  "data-oc-logo-dropdown": "",
380
380
  "data-oc-current-category": currentCategory,
381
381
  "data-oc-site-state": siteState,
@@ -403,24 +403,28 @@ function OcLogoDropdown({
403
403
  "aria-hidden": true,
404
404
  className: "text-muted-foreground/70 group-hover:text-foreground/80 h-3.5 w-3.5 shrink-0 transition-transform duration-200 " + (open ? "rotate-180" : "")
405
405
  }
406
- ),
407
- /* @__PURE__ */ jsxRuntime.jsxs(
408
- "span",
406
+ )
407
+ ]
408
+ }
409
+ ),
410
+ /* @__PURE__ */ jsxRuntime.jsxs(
411
+ Link5__default.default,
412
+ {
413
+ href: homeHref,
414
+ "aria-label": "go to " + homeHref + " (this site's home)",
415
+ onClick: () => setOpen(false),
416
+ tabIndex: open ? 0 : -1,
417
+ className: "hover:text-primary group/home -ml-1 hidden items-center gap-1 rounded-sm px-1.5 py-1 font-mono text-[9px] tracking-widest uppercase transition-all duration-200 sm:inline-flex " + (open ? "pointer-events-auto translate-x-0 text-muted-foreground/70 opacity-100 hover:bg-accent/30" : "pointer-events-none -translate-x-1 opacity-0"),
418
+ "data-oc-logo-dropdown-home-hint": "",
419
+ children: [
420
+ /* @__PURE__ */ jsxRuntime.jsx(
421
+ lucideReact.CornerDownLeft,
409
422
  {
410
423
  "aria-hidden": true,
411
- className: "pointer-events-none ml-0.5 hidden items-center gap-1 font-mono text-[9px] tracking-widest uppercase transition-all duration-200 sm:inline-flex " + (open ? "text-muted-foreground/70 translate-x-0 opacity-100" : "-translate-x-1 opacity-0"),
412
- "data-oc-logo-dropdown-home-hint": "",
413
- children: [
414
- /* @__PURE__ */ jsxRuntime.jsx(
415
- lucideReact.CornerDownLeft,
416
- {
417
- className: "h-3 w-3 " + (open ? "motion-safe:animate-pulse" : "")
418
- }
419
- ),
420
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-primary/70", children: "home" })
421
- ]
424
+ className: "h-3 w-3 group-hover/home:text-primary " + (open ? "motion-safe:animate-pulse" : "")
422
425
  }
423
- )
426
+ ),
427
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-primary/70 group-hover/home:text-primary", children: "home" })
424
428
  ]
425
429
  }
426
430
  ),