@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 +1 -1
- package/dist/chrome.d.ts +1 -1
- package/dist/chrome.js +6 -2
- package/dist/chrome.js.map +1 -1
- package/dist/chrome.mjs +6 -2
- package/dist/chrome.mjs.map +1 -1
- package/dist/components.js +6 -2
- package/dist/components.js.map +1 -1
- package/dist/components.mjs +6 -2
- package/dist/components.mjs.map +1 -1
- package/dist/index.js +6 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3853,7 +3853,11 @@ function isActive(pathname, link) {
|
|
|
3853
3853
|
if (link.href === "/") return pathname === "/";
|
|
3854
3854
|
return pathname === link.href || pathname.startsWith(link.href + "/");
|
|
3855
3855
|
}
|
|
3856
|
-
function OcPrimaryNav({
|
|
3856
|
+
function OcPrimaryNav({
|
|
3857
|
+
activePath,
|
|
3858
|
+
links,
|
|
3859
|
+
className
|
|
3860
|
+
}) {
|
|
3857
3861
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3858
3862
|
"nav",
|
|
3859
3863
|
{
|
|
@@ -3862,7 +3866,7 @@ function OcPrimaryNav({ activePath, links, className }) {
|
|
|
3862
3866
|
"data-oc-primary-nav": "",
|
|
3863
3867
|
children: links.map((link) => {
|
|
3864
3868
|
const active = isActive(activePath, link);
|
|
3865
|
-
const className2 = "font-display
|
|
3869
|
+
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");
|
|
3866
3870
|
const content = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
3867
3871
|
link.label,
|
|
3868
3872
|
link.external ? /* @__PURE__ */ jsxRuntime.jsx(
|