@rovula/ui 0.0.25 → 0.0.26

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.
@@ -7,6 +7,10 @@ export type NavbarProps = {
7
7
  center?: ReactNode;
8
8
  container?: boolean;
9
9
  className?: string;
10
+ containerClassName?: string;
11
+ leftNavClassName?: string;
12
+ centerClassName?: string;
13
+ rightNavClassName?: string;
10
14
  };
11
15
  declare const Navbar: FC<NavbarProps>;
12
16
  export default Navbar;
@@ -14,6 +14,10 @@ declare const meta: {
14
14
  center?: React.ReactNode;
15
15
  container?: boolean | undefined;
16
16
  className?: string | undefined;
17
+ containerClassName?: string | undefined;
18
+ leftNavClassName?: string | undefined;
19
+ centerClassName?: string | undefined;
20
+ rightNavClassName?: string | undefined;
17
21
  }>) => import("react/jsx-runtime").JSX.Element)[];
18
22
  };
19
23
  export default meta;
package/dist/index.d.ts CHANGED
@@ -192,6 +192,10 @@ type NavbarProps = {
192
192
  center?: ReactNode;
193
193
  container?: boolean;
194
194
  className?: string;
195
+ containerClassName?: string;
196
+ leftNavClassName?: string;
197
+ centerClassName?: string;
198
+ rightNavClassName?: string;
195
199
  };
196
200
  declare const Navbar: FC<NavbarProps>;
197
201
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rovula/ui",
3
- "version": "0.0.25",
3
+ "version": "0.0.26",
4
4
  "main": "dist/cjs/bundle.js",
5
5
  "module": "dist/esm/bundle.js",
6
6
  "types": "dist/index.d.ts",
@@ -9,6 +9,10 @@ export type NavbarProps = {
9
9
  center?: ReactNode;
10
10
  container?: boolean;
11
11
  className?: string;
12
+ containerClassName?: string;
13
+ leftNavClassName?: string;
14
+ centerClassName?: string;
15
+ rightNavClassName?: string;
12
16
  };
13
17
 
14
18
  const Navbar: FC<NavbarProps> = ({
@@ -19,6 +23,10 @@ const Navbar: FC<NavbarProps> = ({
19
23
  rightNav,
20
24
  position,
21
25
  container = false,
26
+ containerClassName,
27
+ leftNavClassName,
28
+ centerClassName,
29
+ rightNavClassName,
22
30
  }) => {
23
31
  return (
24
32
  <header
@@ -29,21 +37,40 @@ const Navbar: FC<NavbarProps> = ({
29
37
  )}
30
38
  >
31
39
  <div
32
- className={cn("mx-auto flex h-full justify-between items-center", {
33
- container,
34
- })}
40
+ className={cn(
41
+ "mx-auto flex h-full justify-between items-center",
42
+ {
43
+ container,
44
+ },
45
+ containerClassName
46
+ )}
35
47
  >
36
48
  {children || (
37
49
  <>
38
- <nav className="flex w-1/2 gap-x-[var(--navbar-gap)] text-xl">
50
+ <nav
51
+ className={cn(
52
+ "flex w-1/2 gap-x-[var(--navbar-gap)] text-xl",
53
+ leftNavClassName
54
+ )}
55
+ >
39
56
  {leftNav}
40
57
  </nav>
41
58
 
42
- <div className="flex flex-shrink-0 flex-wrap justify-center">
59
+ <div
60
+ className={cn(
61
+ "flex flex-shrink-0 flex-wrap justify-center",
62
+ centerClassName
63
+ )}
64
+ >
43
65
  {center}
44
66
  </div>
45
67
 
46
- <nav className="flex w-1/2 justify-end gap-x-[var(--navbar-gap)] text-xl">
68
+ <nav
69
+ className={cn(
70
+ "flex w-1/2 justify-end gap-x-[var(--navbar-gap)] text-xl",
71
+ rightNavClassName
72
+ )}
73
+ >
47
74
  {rightNav}
48
75
  </nav>
49
76
  </>