@adminide-stack/yantra-help-browser 12.0.16-alpha.26 → 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;
|
|
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"}
|
package/lib/components/Logo.js
CHANGED
|
@@ -1,20 +1,15 @@
|
|
|
1
|
-
import {jsxs,jsx}from'react/jsx-runtime';import {useParams
|
|
2
|
-
* Routes that have a dark hero section behind the header.
|
|
3
|
-
* On these pages, the logo can safely use white fill before scrolling.
|
|
4
|
-
*/
|
|
5
|
-
const DARK_HERO_ROUTES = ['/', '/landing', '/help-center', '/get-started'];
|
|
6
|
-
const Logo = props => {
|
|
1
|
+
import {jsxs,jsx}from'react/jsx-runtime';import {useParams}from'@remix-run/react';const Logo = props => {
|
|
7
2
|
useParams();
|
|
8
|
-
const loc = useLocation();
|
|
9
3
|
const {
|
|
10
4
|
settings,
|
|
11
5
|
logo,
|
|
12
6
|
scrolled,
|
|
13
7
|
location
|
|
14
8
|
} = props;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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))';
|
|
18
13
|
return jsxs("svg", {
|
|
19
14
|
version: "1.1",
|
|
20
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":"
|
|
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;
|
|
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"}
|
|
@@ -11,11 +11,6 @@ import {jsxs,jsx}from'react/jsx-runtime';import {useState}from'react';import {us
|
|
|
11
11
|
label: 'Help Center',
|
|
12
12
|
path: '/help-center'
|
|
13
13
|
}];
|
|
14
|
-
/**
|
|
15
|
-
* Routes that have a dark hero section behind the header.
|
|
16
|
-
* On these pages, the nav text can safely use white color before scrolling.
|
|
17
|
-
*/
|
|
18
|
-
const DARK_HERO_ROUTES = ['/', '/landing', '/help-center', '/get-started'];
|
|
19
14
|
const RightNavItems = ({
|
|
20
15
|
scrolled = false
|
|
21
16
|
}) => {
|
|
@@ -23,17 +18,18 @@ const RightNavItems = ({
|
|
|
23
18
|
const location = useLocation();
|
|
24
19
|
useParams();
|
|
25
20
|
const isActive = path => location.pathname === path;
|
|
26
|
-
|
|
27
|
-
|
|
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.
|
|
28
24
|
return jsxs("div", {
|
|
29
|
-
className:
|
|
25
|
+
className: "flex items-center justify-between text-foreground",
|
|
30
26
|
children: [jsxs("div", {
|
|
31
27
|
className: "flex items-center min-w-0",
|
|
32
28
|
children: [jsx("div", {
|
|
33
29
|
className: "hidden sm:ml-6 sm:flex sm:items-center sm:gap-0.5 md:gap-1 min-w-0 flex-shrink",
|
|
34
30
|
children: navItems.map(item => jsxs(Link, {
|
|
35
31
|
to: item.path,
|
|
36
|
-
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) ?
|
|
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'}`,
|
|
37
33
|
children: [item.label, isActive(item.path) && jsx("span", {
|
|
38
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"
|
|
39
35
|
})]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/components/navbar/index.tsx"],"sourcesContent":[null],"names":[
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/navbar/index.tsx"],"sourcesContent":[null],"names":[],"mappings":"gIASA,MAAM,QAAQ,GAAc,CAAA;KACtB,EAAA,MAAK;OACL,EAAG,MAAE;MACL,EAAA;CACL,EAAC;AAMF,EAAM,GAAA,EAAC,aAAM;OACH,EAAA,aAAW;AACjB,EAAA,IAAA,EAAA;AACA,CAAA,EAAA;AAEA,EAAA,GAAA,EAAA,aAAc;OAE+D,EAAA,aAAA;MACC,EAAA;;AAG1E,MAAK,aAAA,GAAA,CAAA;AAUuB,EAAA,QAAA,GAAA;AACA,CAAA,KAAA;AA+CI,EAAA,MAAA,CAAA,UAAA,EAAA,aAAoE,CAAA,GAAA,QAAA,CAAA,KAAA,CAAA;AACpE,EAAA,MAAA,QAAA,GAAA,WAAE,EACV;AAYhC,EAAE,SAAA;AAEF,EAAA,MAAA,2BAA6B,CAAA,QAAA,KAAA,IAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adminide-stack/yantra-help-browser",
|
|
3
|
-
"version": "12.0.16-alpha.
|
|
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": "
|
|
74
|
+
"gitHead": "721aad5a54cdf80d94c48c8c805684c472757b29"
|
|
75
75
|
}
|