@syncular/ui 0.0.6-46 → 0.0.6-48
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":"top-navigation.d.ts","sourceRoot":"","sources":["../../src/navigation/top-navigation.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,MAAM,MAAM,kBAAkB,GAAG;IAC/B,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,wBAAgB,aAAa,CAAC,EAC5B,KAAK,EACL,MAAM,EACN,KAAK,EACL,SAAS,EACV,EAAE,kBAAkB,
|
|
1
|
+
{"version":3,"file":"top-navigation.d.ts","sourceRoot":"","sources":["../../src/navigation/top-navigation.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,MAAM,MAAM,kBAAkB,GAAG;IAC/B,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,wBAAgB,aAAa,CAAC,EAC5B,KAAK,EACL,MAAM,EACN,KAAK,EACL,SAAS,EACV,EAAE,kBAAkB,2CAgBpB"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { cn } from '../lib/cn.js';
|
|
4
4
|
export function TopNavigation({ brand, center, right, className, }) {
|
|
5
|
-
return (_jsxs(
|
|
6
|
-
_jsx("div", { className: "
|
|
5
|
+
return (_jsxs(_Fragment, { children: [
|
|
6
|
+
_jsx("div", { "aria-hidden": "true", className: "h-[42px] shrink-0" }), _jsxs("nav", { className: cn('fixed top-0 left-0 right-0 z-100 h-[42px] border-b border-border bg-surface/88 backdrop-blur-lg flex items-center justify-between px-5', className), children: [
|
|
7
|
+
_jsx("div", { className: "flex items-center gap-3", children: brand }), _jsx("div", { className: "flex items-center gap-0.5", children: center }), _jsx("div", { className: "flex items-center gap-2", children: right })
|
|
8
|
+
] })
|
|
7
9
|
] }));
|
|
8
10
|
}
|
|
9
11
|
//# sourceMappingURL=top-navigation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"top-navigation.js","sourceRoot":"","sources":["../../src/navigation/top-navigation.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAGb,OAAO,EAAE,EAAE,EAAE,MAAM,WAAW,CAAC;AAS/B,MAAM,UAAU,aAAa,CAAC,EAC5B,KAAK,EACL,MAAM,EACN,KAAK,EACL,SAAS,GACU,EAAE;IACrB,OAAO,CACL,eACE,SAAS,EAAE,EAAE,CACX,wIAAwI,EACxI,SAAS,CACV;
|
|
1
|
+
{"version":3,"file":"top-navigation.js","sourceRoot":"","sources":["../../src/navigation/top-navigation.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAGb,OAAO,EAAE,EAAE,EAAE,MAAM,WAAW,CAAC;AAS/B,MAAM,UAAU,aAAa,CAAC,EAC5B,KAAK,EACL,MAAM,EACN,KAAK,EACL,SAAS,GACU,EAAE;IACrB,OAAO,CACL;YACE,6BAAiB,MAAM,EAAC,SAAS,EAAC,mBAAmB,GAAG,EACxD,eACE,SAAS,EAAE,EAAE,CACX,wIAAwI,EACxI,SAAS,CACV;oBAED,cAAK,SAAS,EAAC,yBAAyB,YAAE,KAAK,GAAO,EACtD,cAAK,SAAS,EAAC,2BAA2B,YAAE,MAAM,GAAO,EACzD,cAAK,SAAS,EAAC,yBAAyB,YAAE,KAAK,GAAO;oBAClD;YACL,CACJ,CAAC;AAAA,CACH"}
|
package/package.json
CHANGED
|
@@ -17,15 +17,18 @@ export function TopNavigation({
|
|
|
17
17
|
className,
|
|
18
18
|
}: TopNavigationProps) {
|
|
19
19
|
return (
|
|
20
|
-
|
|
21
|
-
className=
|
|
22
|
-
|
|
23
|
-
className
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
20
|
+
<>
|
|
21
|
+
<div aria-hidden="true" className="h-[42px] shrink-0" />
|
|
22
|
+
<nav
|
|
23
|
+
className={cn(
|
|
24
|
+
'fixed top-0 left-0 right-0 z-100 h-[42px] border-b border-border bg-surface/88 backdrop-blur-lg flex items-center justify-between px-5',
|
|
25
|
+
className
|
|
26
|
+
)}
|
|
27
|
+
>
|
|
28
|
+
<div className="flex items-center gap-3">{brand}</div>
|
|
29
|
+
<div className="flex items-center gap-0.5">{center}</div>
|
|
30
|
+
<div className="flex items-center gap-2">{right}</div>
|
|
31
|
+
</nav>
|
|
32
|
+
</>
|
|
30
33
|
);
|
|
31
34
|
}
|