@otl-core/next-navigation 1.1.23 → 1.1.25
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.
|
@@ -9,9 +9,9 @@ function LogoContent({ navigation, siteName, logoTextColor }) {
|
|
|
9
9
|
alt: navigation.logo.alt || siteName,
|
|
10
10
|
width: navigation.logo.width,
|
|
11
11
|
height: navigation.logo.height,
|
|
12
|
-
className: "h-auto w-auto",
|
|
13
12
|
style: {
|
|
14
|
-
height: navigation.logo.height ? `${navigation.logo.height}px` : "40px"
|
|
13
|
+
height: navigation.logo.height ? `${navigation.logo.height}px` : "40px",
|
|
14
|
+
width: navigation.logo.width ? `${navigation.logo.width}px` : "auto"
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/items/logo.tsx"],"sourcesContent":["import { HeaderConfig } from \"@otl-core/cms-types\";\nimport Link from \"next/link\";\n\ninterface LogoProps {\n navigation: HeaderConfig;\n siteName: string;\n logoTextColor?: string;\n}\n\nfunction LogoContent({ navigation, siteName, logoTextColor }: LogoProps) {\n if (navigation.logo?.url) {\n return (\n <img\n src={navigation.logo.url}\n alt={navigation.logo.alt || siteName}\n width={navigation.logo.width}\n height={navigation.logo.height}\n
|
|
1
|
+
{"version":3,"sources":["../../../src/components/items/logo.tsx"],"sourcesContent":["import { HeaderConfig } from \"@otl-core/cms-types\";\nimport Link from \"next/link\";\n\ninterface LogoProps {\n navigation: HeaderConfig;\n siteName: string;\n logoTextColor?: string;\n}\n\nfunction LogoContent({ navigation, siteName, logoTextColor }: LogoProps) {\n if (navigation.logo?.url) {\n return (\n <img\n src={navigation.logo.url}\n alt={navigation.logo.alt || siteName}\n width={navigation.logo.width}\n height={navigation.logo.height}\n style={{\n height: navigation.logo.height\n ? `${navigation.logo.height}px`\n : \"40px\",\n width: navigation.logo.width ? `${navigation.logo.width}px` : \"auto\",\n }}\n />\n );\n }\n\n const text = navigation.logo?.alt || siteName;\n return (\n <span\n className=\"text-xl font-bold\"\n style={logoTextColor ? { color: logoTextColor } : undefined}\n >\n {text}\n </span>\n );\n}\n\nexport function Logo({ navigation, siteName, logoTextColor }: LogoProps) {\n return (\n <Link href=\"/\" className=\"flex-shrink-0\">\n <LogoContent\n navigation={navigation}\n siteName={siteName}\n logoTextColor={logoTextColor}\n />\n </Link>\n );\n}\n"],"mappings":"AAYM;AAXN,OAAO,UAAU;AAQjB,SAAS,YAAY,EAAE,YAAY,UAAU,cAAc,GAAc;AACvE,MAAI,WAAW,MAAM,KAAK;AACxB,WACE;AAAA,MAAC;AAAA;AAAA,QACC,KAAK,WAAW,KAAK;AAAA,QACrB,KAAK,WAAW,KAAK,OAAO;AAAA,QAC5B,OAAO,WAAW,KAAK;AAAA,QACvB,QAAQ,WAAW,KAAK;AAAA,QACxB,OAAO;AAAA,UACL,QAAQ,WAAW,KAAK,SACpB,GAAG,WAAW,KAAK,MAAM,OACzB;AAAA,UACJ,OAAO,WAAW,KAAK,QAAQ,GAAG,WAAW,KAAK,KAAK,OAAO;AAAA,QAChE;AAAA;AAAA,IACF;AAAA,EAEJ;AAEA,QAAM,OAAO,WAAW,MAAM,OAAO;AACrC,SACE;AAAA,IAAC;AAAA;AAAA,MACC,WAAU;AAAA,MACV,OAAO,gBAAgB,EAAE,OAAO,cAAc,IAAI;AAAA,MAEjD;AAAA;AAAA,EACH;AAEJ;AAEO,SAAS,KAAK,EAAE,YAAY,UAAU,cAAc,GAAc;AACvE,SACE,oBAAC,QAAK,MAAK,KAAI,WAAU,iBACvB;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA;AAAA,MACA;AAAA;AAAA,EACF,GACF;AAEJ;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@otl-core/next-navigation",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.25",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Reusable navigation components for OTL CMS",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -48,13 +48,13 @@
|
|
|
48
48
|
"tailwind-merge": "^3.3.1"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@otl-core/cms-utils": "^1.1.
|
|
52
|
-
"@otl-core/style-utils": "^1.1.
|
|
51
|
+
"@otl-core/cms-utils": "^1.1.25",
|
|
52
|
+
"@otl-core/style-utils": "^1.1.25"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@eslint/eslintrc": "^3.3.1",
|
|
56
|
-
"@otl-core/cms-types": "^1.1.
|
|
57
|
-
"@otl-core/cms-utils": "^1.1.
|
|
56
|
+
"@otl-core/cms-types": "^1.1.25",
|
|
57
|
+
"@otl-core/cms-utils": "^1.1.25",
|
|
58
58
|
"@radix-ui/react-focus-scope": "^1.1.7",
|
|
59
59
|
"@radix-ui/react-slot": "^1.2.3",
|
|
60
60
|
"@testing-library/jest-dom": "^6.9.1",
|