ab-nextjs-components 0.1.6 → 0.1.7
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.
- package/CHANGELOG.md +4 -0
- package/ab-navbar/index.tsx +1 -1
- package/package.json +1 -1
- package/server/ab-navbar/index.tsx +1 -1
package/CHANGELOG.md
CHANGED
package/ab-navbar/index.tsx
CHANGED
|
@@ -40,7 +40,7 @@ const AbNavbar = ({
|
|
|
40
40
|
}: AbNavbarProps): ReactElement => {
|
|
41
41
|
const pathname = usePathname() ?? '';
|
|
42
42
|
return (
|
|
43
|
-
<nav data-type={type} className={clsx('AbNavbar', styles.abNavbar, className)} aria-label="Primary">
|
|
43
|
+
<nav data-type={type} data-ab-part="bottomBar" className={clsx('AbNavbar', styles.abNavbar, className)} aria-label="Primary">
|
|
44
44
|
<ul className={styles.abNavbarList}>
|
|
45
45
|
{links.map((link) => {
|
|
46
46
|
const active = page ? page === link.value : pathname === link.href || pathname.startsWith(`${link.href}/`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ab-nextjs-components",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7",
|
|
4
4
|
"description": "\ud83d\ude80 A lightweight collection of server & client React components created by Abraham Ukachi, and optimized for Next.js applications \ud83d\ude0e.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.ts",
|
|
@@ -36,7 +36,7 @@ const AbNavbar = ({
|
|
|
36
36
|
links = [],
|
|
37
37
|
}: AbNavbarProps): ReactElement => {
|
|
38
38
|
return (
|
|
39
|
-
<nav data-type={type} className={clsx('AbNavbar', styles.abNavbar, className)} aria-label="Primary">
|
|
39
|
+
<nav data-type={type} data-ab-part="bottomBar" className={clsx('AbNavbar', styles.abNavbar, className)} aria-label="Primary">
|
|
40
40
|
<ul className={styles.abNavbarList}>
|
|
41
41
|
{links.map((link) => {
|
|
42
42
|
const active = page === link.value;
|