@orangecheck/design 0.13.0 → 0.13.1

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.d.mts CHANGED
@@ -96,7 +96,7 @@ interface OcPrimaryNavProps {
96
96
  links: ReadonlyArray<OcPrimaryNavLink>;
97
97
  className?: string;
98
98
  }
99
- declare function OcPrimaryNav({ activePath, links, className }: OcPrimaryNavProps): react_jsx_runtime.JSX.Element;
99
+ declare function OcPrimaryNav({ activePath, links, className, }: OcPrimaryNavProps): react_jsx_runtime.JSX.Element;
100
100
 
101
101
  interface OcDashboardTool {
102
102
  id: string;
package/dist/chrome.d.ts CHANGED
@@ -96,7 +96,7 @@ interface OcPrimaryNavProps {
96
96
  links: ReadonlyArray<OcPrimaryNavLink>;
97
97
  className?: string;
98
98
  }
99
- declare function OcPrimaryNav({ activePath, links, className }: OcPrimaryNavProps): react_jsx_runtime.JSX.Element;
99
+ declare function OcPrimaryNav({ activePath, links, className, }: OcPrimaryNavProps): react_jsx_runtime.JSX.Element;
100
100
 
101
101
  interface OcDashboardTool {
102
102
  id: string;
package/dist/chrome.js CHANGED
@@ -1510,7 +1510,11 @@ function isActive(pathname, link) {
1510
1510
  if (link.href === "/") return pathname === "/";
1511
1511
  return pathname === link.href || pathname.startsWith(link.href + "/");
1512
1512
  }
1513
- function OcPrimaryNav({ activePath, links, className }) {
1513
+ function OcPrimaryNav({
1514
+ activePath,
1515
+ links,
1516
+ className
1517
+ }) {
1514
1518
  return /* @__PURE__ */ jsxRuntime.jsx(
1515
1519
  "nav",
1516
1520
  {
@@ -1519,7 +1523,7 @@ function OcPrimaryNav({ activePath, links, className }) {
1519
1523
  "data-oc-primary-nav": "",
1520
1524
  children: links.map((link) => {
1521
1525
  const active = isActive(activePath, link);
1522
- 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");
1526
+ 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");
1523
1527
  const content = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
1524
1528
  link.label,
1525
1529
  link.external ? /* @__PURE__ */ jsxRuntime.jsx(