@orangecheck/design 0.13.0 → 0.14.0

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.
@@ -1734,7 +1734,11 @@ function isActive(pathname, link) {
1734
1734
  if (link.href === "/") return pathname === "/";
1735
1735
  return pathname === link.href || pathname.startsWith(link.href + "/");
1736
1736
  }
1737
- function OcPrimaryNav({ activePath, links, className }) {
1737
+ function OcPrimaryNav({
1738
+ activePath,
1739
+ links,
1740
+ className
1741
+ }) {
1738
1742
  return /* @__PURE__ */ jsx(
1739
1743
  "nav",
1740
1744
  {
@@ -1743,7 +1747,7 @@ function OcPrimaryNav({ activePath, links, className }) {
1743
1747
  "data-oc-primary-nav": "",
1744
1748
  children: links.map((link) => {
1745
1749
  const active = isActive(activePath, link);
1746
- const className2 = "font-display relative shrink-0 px-2 py-1 sm:px-3 text-[11px] sm:text-[12px] font-semibold tracking-wider uppercase transition-colors " + (active ? 'text-primary after:bg-primary after:absolute after:inset-x-2 after:-bottom-[13px] after:h-px after:content-[""]' : "text-muted-foreground hover:text-foreground");
1750
+ const className2 = "font-display shrink-0 px-2 py-1 sm:px-3 text-[11px] sm:text-[12px] font-semibold tracking-wider uppercase transition-colors " + (active ? "text-primary" : "text-muted-foreground hover:text-foreground");
1747
1751
  const content = /* @__PURE__ */ jsxs(Fragment$1, { children: [
1748
1752
  link.label,
1749
1753
  link.external ? /* @__PURE__ */ jsx(
@@ -2083,7 +2087,40 @@ function LayoutSubHeader({
2083
2087
  tags.length > 0 && /* @__PURE__ */ jsx("div", { className: "text-muted-foreground flex flex-wrap items-center gap-x-4 gap-y-1 tracking-widest uppercase", children: tags.map((tag, i) => /* @__PURE__ */ jsx("span", { className: tag.hideBelow ? HIDE[tag.hideBelow] : void 0, children: tag.label }, i)) })
2084
2088
  ] }) });
2085
2089
  }
2090
+ function OcAppBar({
2091
+ variant = "full",
2092
+ start,
2093
+ center,
2094
+ end,
2095
+ sticky = true,
2096
+ className
2097
+ }) {
2098
+ return /* @__PURE__ */ jsx(
2099
+ "header",
2100
+ {
2101
+ className: cn(
2102
+ "bg-background/90 supports-[backdrop-filter]:bg-background/70 w-full border-b backdrop-blur",
2103
+ sticky && "sticky top-0 z-50",
2104
+ className
2105
+ ),
2106
+ children: /* @__PURE__ */ jsxs(
2107
+ "div",
2108
+ {
2109
+ className: cn(
2110
+ variant === "full" ? "app-bar" : "container",
2111
+ "flex h-12 items-center justify-between gap-4"
2112
+ ),
2113
+ children: [
2114
+ start,
2115
+ /* @__PURE__ */ jsx("div", { className: "flex min-w-0 flex-1 justify-center px-2", children: center }),
2116
+ /* @__PURE__ */ jsx("div", { className: "flex items-center gap-1", children: end })
2117
+ ]
2118
+ }
2119
+ )
2120
+ }
2121
+ );
2122
+ }
2086
2123
 
2087
- export { AppShell, Callout, DataRow, DefinitionList, EcosystemSwitcher, EmptyState, FAMILY_PROPERTIES, HelpHint, LayoutSubHeader, OcAccountMenu, OcAccountMenuView, OcDashboardHub, OcDashboardShell, OcLogoDropdown, OcPrimaryNav, SITE_STATE_LABEL, SectionHeader, StatCard, StatGrid, StatTile, findFamilyProperty };
2124
+ export { AppShell, Callout, DataRow, DefinitionList, EcosystemSwitcher, EmptyState, FAMILY_PROPERTIES, HelpHint, LayoutSubHeader, OcAccountMenu, OcAccountMenuView, OcAppBar, OcDashboardHub, OcDashboardShell, OcLogoDropdown, OcPrimaryNav, SITE_STATE_LABEL, SectionHeader, StatCard, StatGrid, StatTile, findFamilyProperty };
2088
2125
  //# sourceMappingURL=components.mjs.map
2089
2126
  //# sourceMappingURL=components.mjs.map