@adminide-stack/yantra-help-browser 12.0.16-alpha.25 → 12.0.16-alpha.27

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.
@@ -1 +1 @@
1
- {"version":3,"file":"Logo.d.ts","sourceRoot":"","sources":["../../src/components/Logo.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,6DAA6D,CAAC;AAGzF,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CAqIrC,CAAC"}
1
+ {"version":3,"file":"Logo.d.ts","sourceRoot":"","sources":["../../src/components/Logo.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,6DAA6D,CAAC;AAGzF,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CAwIrC,CAAC"}
@@ -1,12 +1,15 @@
1
1
  import {jsxs,jsx}from'react/jsx-runtime';import {useParams}from'@remix-run/react';const Logo = props => {
2
- const params = useParams();
2
+ useParams();
3
3
  const {
4
4
  settings,
5
5
  logo,
6
6
  scrolled,
7
7
  location
8
8
  } = props;
9
- const fill = !scrolled && !params.articleSlug ? '#fff' : settings?.navTheme === 'dark' ? '#fff' : 'black';
9
+ // Use CSS theme variable so the fill automatically adapts to light/dark mode.
10
+ // The header bg is always transparent (showing bg-background) before scroll,
11
+ // so hardcoded white is never correct on light theme.
12
+ const fill = 'hsl(var(--foreground))';
10
13
  return jsxs("svg", {
11
14
  version: "1.1",
12
15
  xmlns: "http://www.w3.org/2000/svg",
@@ -1 +1 @@
1
- {"version":3,"file":"Logo.js","sources":["../../src/components/Logo.tsx"],"sourcesContent":[null],"names":[],"mappings":"kFAIa,MAAA,IAAI,GAAyB,KAAC,IAAS;AAChD,EAAA,MAAA,MAAY,GAAA,SAAY,EAAA;QAClB;AACN,IAAA,QAAU;AAEV,IAAA,IAAA;;;;;;;;;;;;;;UA0BgB,EAAA;AAsGpB,MAAE,QAAA,EAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"Logo.js","sources":["../../src/components/Logo.tsx"],"sourcesContent":[null],"names":[],"mappings":"kFAIa,MAAA,IAAI,GAAyB,KAAC,IAAS;AAChD,EAAY,SAAY;QAClB;IACN,QAA8E;IAC9E,IAA6E;IAC7E,QAAsD;IACtD;AAEA,GAAA,GAAA,KAAO;;;;;;;;;;;;;;UA0BS,EAAA;AAsGpB,MAAE,QAAA,EAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/navbar/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAexC,UAAU,kBAAkB;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAqFtD,CAAC;AAEF,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/navbar/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAexC,UAAU,kBAAkB;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAmFtD,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -16,18 +16,20 @@ const RightNavItems = ({
16
16
  }) => {
17
17
  const [isMenuOpen, setIsMenuOpen] = useState(false);
18
18
  const location = useLocation();
19
- const params = useParams();
19
+ useParams();
20
20
  const isActive = path => location.pathname === path;
21
- const isDark = !scrolled && !params.articleSlug;
21
+ // Always use theme-aware colors. The header bg is transparent before scroll,
22
+ // showing bg-background behind it — white on light theme, dark on dark theme.
23
+ // CSS variables (--foreground, --muted-foreground) automatically adapt.
22
24
  return jsxs("div", {
23
- className: `flex items-center justify-between ${isDark ? 'text-white' : 'text-foreground'}`,
25
+ className: "flex items-center justify-between text-foreground",
24
26
  children: [jsxs("div", {
25
27
  className: "flex items-center min-w-0",
26
28
  children: [jsx("div", {
27
29
  className: "hidden sm:ml-6 sm:flex sm:items-center sm:gap-0.5 md:gap-1 min-w-0 flex-shrink",
28
30
  children: navItems.map(item => jsxs(Link, {
29
31
  to: item.path,
30
- className: `relative rounded-lg px-2 sm:px-2.5 md:px-3.5 py-2 text-[12px] sm:text-[13px] md:text-[14px] font-medium transition-all duration-200 whitespace-nowrap flex-shrink-0 ${isActive(item.path) ? isDark ? 'bg-white/[0.08] text-white' : 'bg-foreground/[0.06] text-foreground' : isDark ? 'text-white/60 hover:bg-white/[0.05] hover:text-white' : 'text-muted-foreground hover:bg-muted hover:text-foreground'}`,
32
+ className: `relative rounded-lg px-2 sm:px-2.5 md:px-3.5 py-2 text-[12px] sm:text-[13px] md:text-[14px] font-medium transition-all duration-200 whitespace-nowrap flex-shrink-0 ${isActive(item.path) ? 'bg-foreground/[0.06] text-foreground' : 'text-muted-foreground hover:bg-muted hover:text-foreground'}`,
31
33
  children: [item.label, isActive(item.path) && jsx("span", {
32
34
  className: "absolute bottom-0 left-1/2 h-[2px] w-4 -translate-x-1/2 rounded-full bg-gradient-to-r from-cyan-500 to-blue-500"
33
35
  })]
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../src/components/navbar/index.tsx"],"sourcesContent":[null],"names":["_jsxs"],"mappings":"gIASA,MAAM,QAAQ,GAAc,CAAA;KACtB,EAAA,MAAK;OACL,EAAG,MAAE;MACL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AAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adminide-stack/yantra-help-browser",
3
- "version": "12.0.16-alpha.25",
3
+ "version": "12.0.16-alpha.27",
4
4
  "description": "Sample core for higher packages to depend on",
5
5
  "license": "ISC",
6
6
  "author": "Yantra App",
@@ -71,5 +71,5 @@
71
71
  "typescript": {
72
72
  "definition": "lib/index.d.ts"
73
73
  },
74
- "gitHead": "b74f379177e6ad458cc64ec5318c367d1cf7c8fd"
74
+ "gitHead": "721aad5a54cdf80d94c48c8c805684c472757b29"
75
75
  }